-
Notifications
You must be signed in to change notification settings - Fork 1
/
volume_info.h
31 lines (25 loc) · 913 Bytes
/
volume_info.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef VOLUME_INFO_H_INCLUDED
#define VOLUME_INFO_H_INCLUDED
#include <windows.h>
#include "dokan.h"
// Neither GetDiskFreeSpace nor GetVolumeInformation
// save the DokanFileContext->Context.
// Before these methods are called, CreateFile may not be called.
// (ditto CloseFile and Cleanup)
// see Win32 API GetDiskFreeSpaceEx
int DOKAN_CALLBACK MxfsGetDiskFreeSpace(
PULONGLONG FreeBytesAvailable,
PULONGLONG TotalNumberOfBytes,
PULONGLONG TotalNumberOfFreeBytes,
PDOKAN_FILE_INFO FileInfo);
// see Win32 API GetVolumeInformation
int DOKAN_CALLBACK MxfsGetVolumeInformation(
LPWSTR VolumeNameBuffer,
DWORD VolumeNameSize, // in num of chars
LPDWORD VolumeSerialNumber,
LPDWORD MaximumComponentLength, // in num of chars
LPDWORD FileSystemFlags,
LPWSTR FileSystemNameBuffer,
DWORD FileSystemNameSize, // in num of chars
PDOKAN_FILE_INFO FileInfo);
#endif // VOLUME_INFO_H_INCLUDED