Support more mountpoint IOCTLs

This commit is contained in:
momo5502
2025-06-01 11:31:48 +02:00
parent 6cc3aded19
commit 909b2db20d
4 changed files with 238 additions and 5 deletions

View File

@@ -77,6 +77,15 @@
#define SEC_RESERVE 0x04000000
#endif
#define CTL_CODE(DeviceType, Function, Method, Access) \
(((DeviceType) << 16) | ((Access) << 14) | ((Function) << 2) | (Method))
#define METHOD_BUFFERED 0
#define FILE_ANY_ACCESS 0
#define FILE_READ_ACCESS (0x0001) // file & pipe
#define FILE_WRITE_ACCESS (0x0002) // file & pipe
typedef enum _FSINFOCLASS
{
FileFsVolumeInformation = 1, // q: FILE_FS_VOLUME_INFORMATION