Changeset 64248 in vbox
- Timestamp:
- Oct 13, 2016 1:12:36 PM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 111257
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DrvHostBase-win.cpp
r64246 r64248 21 21 #define _interlockedbittestandset64 they_messed_it_up_in_winnt_h_this_time_sigh__interlockedbittestandset64 22 22 #define _interlockedbittestandreset64 they_messed_it_up_in_winnt_h_this_time_sigh__interlockedbittestandreset64 23 24 #define WIN32_NO_STATUS 23 25 #include <iprt/win/windows.h> 26 #include <dbt.h> 27 #undef WIN32_NO_STATUS 28 24 29 #include <winioctl.h> 25 30 #include <ntddscsi.h> … … 29 34 #undef _interlockedbittestandset64 30 35 #undef _interlockedbittestandreset64 36 #include <ntstatus.h> 37 38 /* from ntdef.h */ 39 typedef LONG NTSTATUS; 40 41 /* from ntddk.h */ 42 typedef struct _IO_STATUS_BLOCK { 43 union { 44 NTSTATUS Status; 45 PVOID Pointer; 46 }; 47 ULONG_PTR Information; 48 } IO_STATUS_BLOCK, *PIO_STATUS_BLOCK; 49 50 51 /* from ntinternals.com */ 52 typedef enum _FS_INFORMATION_CLASS { 53 FileFsVolumeInformation=1, 54 FileFsLabelInformation, 55 FileFsSizeInformation, 56 FileFsDeviceInformation, 57 FileFsAttributeInformation, 58 FileFsControlInformation, 59 FileFsFullSizeInformation, 60 FileFsObjectIdInformation, 61 FileFsMaximumInformation 62 } FS_INFORMATION_CLASS, *PFS_INFORMATION_CLASS; 63 64 typedef struct _FILE_FS_SIZE_INFORMATION { 65 LARGE_INTEGER TotalAllocationUnits; 66 LARGE_INTEGER AvailableAllocationUnits; 67 ULONG SectorsPerAllocationUnit; 68 ULONG BytesPerSector; 69 } FILE_FS_SIZE_INFORMATION, *PFILE_FS_SIZE_INFORMATION; 70 71 extern "C" 72 NTSTATUS __stdcall NtQueryVolumeInformationFile( 73 /*IN*/ HANDLE FileHandle, 74 /*OUT*/ PIO_STATUS_BLOCK IoStatusBlock, 75 /*OUT*/ PVOID FileSystemInformation, 76 /*IN*/ ULONG Length, 77 /*IN*/ FS_INFORMATION_CLASS FileSystemInformationClass ); 31 78 32 79 #include <iprt/file.h>
Note:
See TracChangeset
for help on using the changeset viewer.