Interface DokanyOperations.ZwCreateFile
- All Superinterfaces:
com.sun.jna.AltCallingConvention,com.sun.jna.Callback,DokanCallback,com.sun.jna.win32.StdCall,com.sun.jna.win32.StdCallLibrary.StdCallCallback
- Enclosing class:
- DokanyOperations
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
CreateFile is called each time a request is made on a file system object.
If the file is a directory, this method is also called. In this case, the method should return NtStatus.SUCCESS when that directory can be opened and
DokanyFileInfo.IsDirectory has to be set to true. DokanyFileInfo.Context can be used to store
data FileStream that can be retrieved in all other request related to the context.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.sun.jna.Callback
com.sun.jna.Callback.UncaughtExceptionHandler -
Field Summary
Fields inherited from interface com.sun.jna.Callback
FORBIDDEN_NAMES, METHOD_NAME -
Method Summary
Modifier and TypeMethodDescriptionlongcallback(com.sun.jna.WString rawPath, com.sun.jna.platform.win32.WinBase.SECURITY_ATTRIBUTES securityContext, int rawDesiredAccess, int rawFileAttributes, int rawShareAccess, int rawCreateDisposition, int rawCreateOptions, DokanyFileInfo dokanyFileInfo)
-
Method Details
-
callback
long callback(com.sun.jna.WString rawPath, com.sun.jna.platform.win32.WinBase.SECURITY_ATTRIBUTES securityContext, int rawDesiredAccess, int rawFileAttributes, int rawShareAccess, int rawCreateDisposition, int rawCreateOptions, DokanyFileInfo dokanyFileInfo) - Parameters:
rawPath- Path requested by the Kernel on the File System.securityContext- ??rawDesiredAccess- ?? Permissions for file or directory.rawFileAttributes- Provides attributes for files and directories. See MSDNrawShareAccess- Type of share access to other threads. Device and intermediate drivers usually set ShareAccess to zero, which gives the caller exclusive access to the open file.rawCreateDisposition-rawCreateOptions- Represents advanced options for creating a File object. See MSDNdokanyFileInfo-DokanyFileInfowith information about the file or directory.- Returns:
NtStatus
-