26#define WIN32_NO_STATUS
34#include "dokan_vector.h"
40typedef struct _DOKAN_INSTANCE_THREADINFO {
42 PTP_CLEANUP_GROUP CleanupGroup;
43 TP_CALLBACK_ENVIRON CallbackEnvironment;
55typedef struct _DOKAN_INSTANCE {
104typedef struct _DOKAN_OPEN_INFO {
105 CRITICAL_SECTION CriticalSection;
108 PDOKAN_VECTOR DirList;
109 PWCHAR DirListSearchPattern;
122 LONG64 CloseUserContext;
138typedef struct _DOKAN_IO_BATCH {
171typedef struct _DOKAN_IO_EVENT {
199#define IOEVENT_RESULT_BUFFER_SIZE(ioEvent) \
200 ((ioEvent)->EventResultSize >= offsetof(EVENT_INFORMATION, Buffer) \
201 ? (ioEvent)->EventResultSize - offsetof(EVENT_INFORMATION, Buffer) \
205int DokanStart(_In_ PDOKAN_INSTANCE DokanInstance);
207BOOL SendToDevice(LPCWSTR DeviceName, DWORD IoControlCode, PVOID InputBuffer,
208 ULONG InputLength, PVOID OutputBuffer, ULONG OutputLength,
209 PULONG ReturnedLength);
212GetRawDeviceName(LPCWSTR DeviceName, LPWSTR DestinationBuffer,
213 rsize_t DestinationBufferSizeInElements);
215VOID ALIGN_ALLOCATION_SIZE(PLARGE_INTEGER size, PDOKAN_OPTIONS DokanOptions);
217BOOL DokanMount(PDOKAN_INSTANCE DokanInstance,
218 PDOKAN_OPTIONS DokanOptions);
220BOOL IsMountPointDriveLetter(LPCWSTR mountPoint);
222VOID EventCompletion(PDOKAN_IO_EVENT EventInfo);
224VOID CreateDispatchCommon(PDOKAN_IO_EVENT IoEvent, ULONG SizeOfEventInfo,
225 BOOL UseExtraMemoryPool, BOOL ClearNonPoolBuffer);
227VOID DispatchDirectoryInformation(PDOKAN_IO_EVENT IoEvent);
229VOID DispatchQueryInformation(PDOKAN_IO_EVENT IoEvent);
231VOID DispatchQueryVolumeInformation(PDOKAN_IO_EVENT IoEvent);
233VOID DispatchSetInformation(PDOKAN_IO_EVENT IoEvent);
235VOID DispatchRead(PDOKAN_IO_EVENT IoEvent);
237VOID DispatchWrite(PDOKAN_IO_EVENT IoEvent);
239VOID DispatchCreate(PDOKAN_IO_EVENT IoEvent);
241VOID DispatchClose(PDOKAN_IO_EVENT IoEvent);
243VOID DispatchCleanup(PDOKAN_IO_EVENT IoEvent);
245VOID DispatchFlush(PDOKAN_IO_EVENT IoEvent);
247VOID DispatchLock(PDOKAN_IO_EVENT IoEvent);
249VOID DispatchQuerySecurity(PDOKAN_IO_EVENT IoEvent);
251VOID DispatchSetSecurity(PDOKAN_IO_EVENT IoEvent);
253BOOL SendReleaseIRP(LPCWSTR DeviceName);
255BOOL SendGlobalReleaseIRP(LPCWSTR MountPoint);
257VOID CheckFileName(LPWSTR FileName);
259VOID ReleaseDokanOpenInfo(PDOKAN_IO_EVENT IoEvent);
261VOID DokanNotifyUnmounted(PDOKAN_INSTANCE DokanInstance);
Dokan file information on the current operation.
Definition dokan.h:181
Dokan mount instance informations.
Definition dokani.h:55
BOOL FileSystemStopped
Definition dokani.h:90
LIST_ENTRY ListEntry
Definition dokani.h:76
LONG UnmountedCalled
Definition dokani.h:95
HANDLE KeepaliveHandle
Definition dokani.h:88
WCHAR UNCName[64]
Definition dokani.h:66
PDOKAN_OPTIONS DokanOptions
Definition dokani.h:72
CRITICAL_SECTION CriticalSection
Definition dokani.h:57
ULONG DeviceNumber
Definition dokani.h:68
DOKAN_INSTANCE_THREADINFO ThreadInfo
Definition dokani.h:84
HANDLE Device
Definition dokani.h:80
HANDLE GlobalDevice
Definition dokani.h:78
HANDLE NotifyHandle
Definition dokani.h:86
WCHAR MountPoint[MAX_PATH]
Definition dokani.h:64
WCHAR DeviceName[64]
Definition dokani.h:62
PDOKAN_OPERATIONS DokanOperations
Definition dokani.h:74
HANDLE DeviceClosedWaitHandle
Definition dokani.h:82
ULONG MountId
Definition dokani.h:70
Dokan IO batch buffer.
Definition dokani.h:138
BOOL MainPullThread
Definition dokani.h:144
BOOL PoolAllocated
Definition dokani.h:149
DWORD NumberOfBytesTransferred
Definition dokani.h:142
LONG EventContextBatchCount
Definition dokani.h:155
PDOKAN_INSTANCE DokanInstance
Definition dokani.h:140
EVENT_CONTEXT EventContext[1]
Definition dokani.h:161
Dokan IO Event.
Definition dokani.h:171
PDOKAN_INSTANCE DokanInstance
Definition dokani.h:173
BOOL PoolAllocated
Definition dokani.h:187
PDOKAN_OPEN_INFO DokanOpenInfo
Definition dokani.h:175
PEVENT_INFORMATION EventResult
Definition dokani.h:180
PEVENT_CONTEXT EventContext
Definition dokani.h:191
ULONG EventResultSize
Definition dokani.h:182
PDOKAN_IO_BATCH IoBatch
Definition dokani.h:196
DOKAN_FILE_INFO DokanFileInfo
Definition dokani.h:189
Dokan open file informations.
Definition dokani.h:104
LPWSTR CloseFileName
Definition dokani.h:121
ULONG OpenCount
Definition dokani.h:119
BOOLEAN UnimplementedFindFilesWithPattern
Definition dokani.h:111
LONG64 UserContext
Definition dokani.h:113
BOOL IsDirectory
Definition dokani.h:117
ULONG EventId
Definition dokani.h:115
PEVENT_CONTEXT EventContext
Definition dokani.h:124
PDOKAN_INSTANCE DokanInstance
Definition dokani.h:107