Class DokanyOperations
java.lang.Object
com.sun.jna.Structure
org.cryptomator.frontend.dokany.internal.structure.DokanyOperations
public class DokanyOperations
extends com.sun.jna.Structure
Dokany API callbacks interface. This is an internal class and should not used directly by code outside com.dokany.java.
A struct of callbacks that describe all Dokany API operation that will be called when Windows accesses the file system.
If an error occurs, return NtStatus.
All these callbacks can be set to null or return NtStatus.NOT_IMPLEMENTED if you don't want to support one of them. Be aware that returning such a value to
important callbacks such as DokanyOperations.ZwCreateFile or DokanyOperations.ReadFile would make the file system not working or unstable.
This is the same struct as _DOKAN_OPERATIONS (dokan.h) in the C++ version of Dokany.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceReceipt of this request indicates that the last handle for a file object that is associated with the target device object has been closed (but, due to outstanding I/O requests, might not have been released).static interfaceCloseFile is called at the end of the life of the context.static interfaceCheck if it is possible to delete a directory.static interfaceCheck if it is possible to delete a file.static interfacestatic interfacestatic interfaceList all files in the path requested.static interfaceSame asDokanyOperations.FindFilesbut with a search pattern to filter the result.static interfaceRetrieve all NTFS Streams informations on the file.static interfaceClears buffers for this context and causes any buffered data to be written to the file.static interfaceRetrieves information about the amount of space that is available on a disk volume, which is the total amount of space, the total amount of free space, and the total amount of free space available to the user that is associated with the calling thread.static interfaceGet specific informations on a file.static interfaceGet specified information about the security of a file or directory.static interfaceRetrieves information about the file system and volume associated with the specified root directory.static interfaceLock file at a specific offset and data length.static interfaceIs called when Dokany succeeded mounting the volume.static interfaceMove a file or directory to a new location.static interfaceReadFile callback on the file previously opened inDokanyOperations.ZwCreateFile.static interfaceSetAllocationSize is used to truncate or extend a file.static interfaceSetEndOfFile is used to truncate or extend a file (physical file size).static interfaceSet file attributes on a specific file.static interfaceSets the security of a file or directory object.static interfaceSet file times on a specific file.static interfaceUnlock file at a specific offset and data length.static interfaceIs called when Dokany succeeded unmounting the volume.static interfacestatic interfaceWriteFile callback on the file previously opened inDokanyOperations.ZwCreateFileIt can be called by different thread at the same time, therefore the write/context has to be thread safe.static interfaceCreateFile is called each time a request is made on a file system object.Nested classes/interfaces inherited from class com.sun.jna.Structure
com.sun.jna.Structure.ByReference, com.sun.jna.Structure.ByValue, com.sun.jna.Structure.FieldOrder, com.sun.jna.Structure.StructField -
Field Summary
FieldsModifier and TypeFieldDescriptionFields inherited from class com.sun.jna.Structure
ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.sun.jna.Structure
allocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, calculateSize, clear, createFieldsOrder, createFieldsOrder, createFieldsOrder, createFieldsOrder, dataEquals, dataEquals, ensureAllocated, equals, fieldOffset, getAutoRead, getAutoWrite, getFieldList, getFields, getNativeAlignment, getNativeSize, getNativeSize, getPointer, getStringEncoding, getStructAlignment, hashCode, newInstance, newInstance, read, readField, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setStringEncoding, size, sortFields, toArray, toArray, toString, toString, useMemory, useMemory, write, writeField, writeField, writeField
-
Field Details
-
ZwCreateFile
-
Cleanup
-
CloseFile
-
ReadFile
-
WriteFile
-
FlushFileBuffers
-
GetFileInformation
-
FindFiles
-
FindFilesWithPattern
-
SetFileAttributes
-
SetFileTime
-
DeleteFile
-
DeleteDirectory
-
MoveFile
-
SetEndOfFile
-
SetAllocationSize
-
LockFile
-
UnlockFile
-
GetDiskFreeSpace
-
GetVolumeInformation
-
Mounted
-
Unmounted
-
GetFileSecurity
-
SetFileSecurity
-
FindStreams
-
-
Constructor Details
-
DokanyOperations
public DokanyOperations()
-
-
Method Details
-
getFieldOrder
- Overrides:
getFieldOrderin classcom.sun.jna.Structure
-