ReactOS  0.4.12-dev-914-g71f84a3
winioctl.h
Go to the documentation of this file.
1 #ifndef _WINIOCTL_
2 #define _WINIOCTL_
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 
8 #ifdef _MSC_VER
9 #pragma warning(push)
10 #pragma warning(disable:4201)
11 #pragma warning(disable:4820)
12 #endif
13 
14 #define HIST_NO_OF_BUCKETS 24
15 #define HISTOGRAM_BUCKET_SIZE sizeof(HISTOGRAM_BUCKET)
16 #define DISK_HISTOGRAM_SIZE sizeof(DISK_HISTOGRAM)
17 
18 #ifndef _NTDDSTOR_H_
19 #define IOCTL_STORAGE_BASE FILE_DEVICE_MASS_STORAGE
20 #define IOCTL_STORAGE_CHECK_VERIFY CTL_CODE(IOCTL_STORAGE_BASE, 0x0200, METHOD_BUFFERED, FILE_READ_ACCESS)
21 #define IOCTL_STORAGE_CHECK_VERIFY2 CTL_CODE(IOCTL_STORAGE_BASE, 0x0200, METHOD_BUFFERED, FILE_ANY_ACCESS)
22 #define IOCTL_STORAGE_MEDIA_REMOVAL CTL_CODE(IOCTL_STORAGE_BASE, 0x0201, METHOD_BUFFERED, FILE_READ_ACCESS)
23 #define IOCTL_STORAGE_EJECT_MEDIA CTL_CODE(IOCTL_STORAGE_BASE, 0x0202, METHOD_BUFFERED, FILE_READ_ACCESS)
24 #define IOCTL_STORAGE_LOAD_MEDIA CTL_CODE(IOCTL_STORAGE_BASE, 0x0203, METHOD_BUFFERED, FILE_READ_ACCESS)
25 #define IOCTL_STORAGE_LOAD_MEDIA2 CTL_CODE(IOCTL_STORAGE_BASE, 0x0203, METHOD_BUFFERED, FILE_ANY_ACCESS)
26 #define IOCTL_STORAGE_RESERVE CTL_CODE(IOCTL_STORAGE_BASE, 0x0204, METHOD_BUFFERED, FILE_READ_ACCESS)
27 #define IOCTL_STORAGE_RELEASE CTL_CODE(IOCTL_STORAGE_BASE, 0x0205, METHOD_BUFFERED, FILE_READ_ACCESS)
28 #define IOCTL_STORAGE_FIND_NEW_DEVICES CTL_CODE(IOCTL_STORAGE_BASE, 0x0206, METHOD_BUFFERED, FILE_READ_ACCESS)
29 #define IOCTL_STORAGE_EJECTION_CONTROL CTL_CODE(IOCTL_STORAGE_BASE, 0x0250, METHOD_BUFFERED, FILE_ANY_ACCESS)
30 #define IOCTL_STORAGE_MCN_CONTROL CTL_CODE(IOCTL_STORAGE_BASE, 0x0251, METHOD_BUFFERED, FILE_ANY_ACCESS)
31 #define IOCTL_STORAGE_GET_MEDIA_TYPES CTL_CODE(IOCTL_STORAGE_BASE, 0x0300, METHOD_BUFFERED, FILE_ANY_ACCESS)
32 #define IOCTL_STORAGE_GET_MEDIA_TYPES_EX CTL_CODE(IOCTL_STORAGE_BASE, 0x0301, METHOD_BUFFERED, FILE_ANY_ACCESS)
33 #define IOCTL_STORAGE_RESET_BUS CTL_CODE(IOCTL_STORAGE_BASE, 0x0400, METHOD_BUFFERED, FILE_READ_ACCESS)
34 #define IOCTL_STORAGE_RESET_DEVICE CTL_CODE(IOCTL_STORAGE_BASE, 0x0401, METHOD_BUFFERED, FILE_READ_ACCESS)
35 #define IOCTL_STORAGE_GET_DEVICE_NUMBER CTL_CODE(IOCTL_STORAGE_BASE, 0x0420, METHOD_BUFFERED, FILE_ANY_ACCESS)
36 #define IOCTL_STORAGE_PREDICT_FAILURE CTL_CODE(IOCTL_STORAGE_BASE, 0x0440, METHOD_BUFFERED, FILE_ANY_ACCESS)
37 #endif
38 
39 #define IOCTL_DISK_BASE FILE_DEVICE_DISK
40 #define IOCTL_DISK_GET_DRIVE_GEOMETRY CTL_CODE(IOCTL_DISK_BASE,0,METHOD_BUFFERED, FILE_ANY_ACCESS)
41 #define IOCTL_DISK_GET_PARTITION_INFO CTL_CODE(IOCTL_DISK_BASE,1,METHOD_BUFFERED,FILE_READ_ACCESS)
42 #define IOCTL_DISK_SET_PARTITION_INFO CTL_CODE(IOCTL_DISK_BASE,2,METHOD_BUFFERED,FILE_READ_ACCESS|FILE_WRITE_ACCESS)
43 #define IOCTL_DISK_GET_DRIVE_LAYOUT CTL_CODE(IOCTL_DISK_BASE,3,METHOD_BUFFERED,FILE_READ_ACCESS)
44 #define IOCTL_DISK_SET_DRIVE_LAYOUT CTL_CODE(IOCTL_DISK_BASE,4,METHOD_BUFFERED,FILE_READ_ACCESS|FILE_WRITE_ACCESS)
45 #define IOCTL_DISK_VERIFY CTL_CODE(IOCTL_DISK_BASE,5,METHOD_BUFFERED,FILE_ANY_ACCESS)
46 #define IOCTL_DISK_FORMAT_TRACKS CTL_CODE(IOCTL_DISK_BASE,6,METHOD_BUFFERED,FILE_READ_ACCESS|FILE_WRITE_ACCESS)
47 #define IOCTL_DISK_REASSIGN_BLOCKS CTL_CODE(IOCTL_DISK_BASE,7,METHOD_BUFFERED,FILE_READ_ACCESS|FILE_WRITE_ACCESS)
48 #define IOCTL_DISK_PERFORMANCE CTL_CODE(IOCTL_DISK_BASE,8,METHOD_BUFFERED,FILE_ANY_ACCESS)
49 #define IOCTL_DISK_IS_WRITABLE CTL_CODE(IOCTL_DISK_BASE,9,METHOD_BUFFERED,FILE_ANY_ACCESS)
50 #define IOCTL_DISK_LOGGING CTL_CODE(IOCTL_DISK_BASE,10,METHOD_BUFFERED,FILE_ANY_ACCESS)
51 #define IOCTL_DISK_FORMAT_TRACKS_EX CTL_CODE(IOCTL_DISK_BASE,11,METHOD_BUFFERED,FILE_READ_ACCESS|FILE_WRITE_ACCESS)
52 #define IOCTL_DISK_HISTOGRAM_STRUCTURE CTL_CODE(IOCTL_DISK_BASE,12,METHOD_BUFFERED,FILE_ANY_ACCESS)
53 #define IOCTL_DISK_HISTOGRAM_DATA CTL_CODE(IOCTL_DISK_BASE,13,METHOD_BUFFERED,FILE_ANY_ACCESS)
54 #define IOCTL_DISK_HISTOGRAM_RESET CTL_CODE(IOCTL_DISK_BASE,14,METHOD_BUFFERED,FILE_ANY_ACCESS)
55 #define IOCTL_DISK_REQUEST_STRUCTURE CTL_CODE(IOCTL_DISK_BASE,15,METHOD_BUFFERED,FILE_ANY_ACCESS)
56 #define IOCTL_DISK_REQUEST_DATA CTL_CODE(IOCTL_DISK_BASE,16,METHOD_BUFFERED,FILE_ANY_ACCESS)
57 #define IOCTL_DISK_GET_PARTITION_INFO_EX CTL_CODE(IOCTL_DISK_BASE,0x12,METHOD_BUFFERED,FILE_ANY_ACCESS)
58 #define IOCTL_DISK_SET_PARTITION_INFO_EX CTL_CODE(IOCTL_DISK_BASE,0x13,METHOD_BUFFERED,FILE_READ_ACCESS | FILE_WRITE_ACCESS)
59 #define IOCTL_DISK_GET_DRIVE_LAYOUT_EX CTL_CODE(IOCTL_DISK_BASE,0x14,METHOD_BUFFERED,FILE_ANY_ACCESS)
60 #define IOCTL_DISK_SET_DRIVE_LAYOUT_EX CTL_CODE(IOCTL_DISK_BASE,0x15,METHOD_BUFFERED,FILE_READ_ACCESS | FILE_WRITE_ACCESS)
61 #define IOCTL_DISK_CREATE_DISK CTL_CODE(IOCTL_DISK_BASE,0x16,METHOD_BUFFERED,FILE_READ_ACCESS | FILE_WRITE_ACCESS)
62 #define IOCTL_DISK_GET_LENGTH_INFO CTL_CODE(IOCTL_DISK_BASE,0x17,METHOD_BUFFERED,FILE_READ_ACCESS)
63 #define IOCTL_DISK_PERFORMANCE_OFF CTL_CODE(IOCTL_DISK_BASE,0x18,METHOD_BUFFERED,FILE_ANY_ACCESS)
64 #define IOCTL_DISK_GET_DRIVE_GEOMETRY_EX CTL_CODE(IOCTL_DISK_BASE,0x28,METHOD_BUFFERED,FILE_ANY_ACCESS)
65 #define IOCTL_DISK_GROW_PARTITION CTL_CODE(IOCTL_DISK_BASE,0x34,METHOD_BUFFERED,FILE_READ_ACCESS | FILE_WRITE_ACCESS)
66 #define IOCTL_DISK_GET_CACHE_INFORMATION CTL_CODE(IOCTL_DISK_BASE,0x35,METHOD_BUFFERED,FILE_READ_ACCESS)
67 #define IOCTL_DISK_SET_CACHE_INFORMATION CTL_CODE(IOCTL_DISK_BASE,0x36,METHOD_BUFFERED,FILE_READ_ACCESS | FILE_WRITE_ACCESS)
68 #define IOCTL_DISK_DELETE_DRIVE_LAYOUT CTL_CODE(IOCTL_DISK_BASE,0x40,METHOD_BUFFERED,FILE_READ_ACCESS | FILE_WRITE_ACCESS)
69 #define IOCTL_DISK_UPDATE_PROPERTIES CTL_CODE(IOCTL_DISK_BASE,0x50,METHOD_BUFFERED,FILE_ANY_ACCESS)
70 #define IOCTL_DISK_CHECK_VERIFY CTL_CODE(IOCTL_DISK_BASE,0x200,METHOD_BUFFERED,FILE_READ_ACCESS)
71 #define IOCTL_DISK_MEDIA_REMOVAL CTL_CODE(IOCTL_DISK_BASE,0x201,METHOD_BUFFERED,FILE_READ_ACCESS)
72 #define IOCTL_DISK_EJECT_MEDIA CTL_CODE(IOCTL_DISK_BASE,0x202,METHOD_BUFFERED,FILE_READ_ACCESS)
73 #define IOCTL_DISK_LOAD_MEDIA CTL_CODE(IOCTL_DISK_BASE,0x203,METHOD_BUFFERED,FILE_READ_ACCESS)
74 #define IOCTL_DISK_RESERVE CTL_CODE(IOCTL_DISK_BASE,0x204,METHOD_BUFFERED,FILE_READ_ACCESS)
75 #define IOCTL_DISK_RELEASE CTL_CODE(IOCTL_DISK_BASE,0x205,METHOD_BUFFERED,FILE_READ_ACCESS)
76 #define IOCTL_DISK_FIND_NEW_DEVICES CTL_CODE(IOCTL_DISK_BASE,0x206,METHOD_BUFFERED,FILE_READ_ACCESS)
77 #define IOCTL_DISK_REMOVE_DEVICE CTL_CODE(IOCTL_DISK_BASE,0x207,METHOD_BUFFERED,FILE_READ_ACCESS)
78 #define IOCTL_DISK_GET_MEDIA_TYPES CTL_CODE(IOCTL_DISK_BASE,0x300,METHOD_BUFFERED,FILE_ANY_ACCESS)
79 #define IOCTL_DISK_UPDATE_DRIVE_SIZE CTL_CODE(IOCTL_DISK_BASE, 0x0032, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS)
80 #define IOCTL_SERIAL_LSRMST_INSERT CTL_CODE(FILE_DEVICE_SERIAL_PORT,31,METHOD_BUFFERED,FILE_ANY_ACCESS)
81 #define IOCTL_VOLUME_BASE ((DWORD)'V')
82 #define IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS CTL_CODE(IOCTL_VOLUME_BASE, 0, METHOD_BUFFERED, FILE_ANY_ACCESS)
83 #define FSCTL_LOCK_VOLUME CTL_CODE(FILE_DEVICE_FILE_SYSTEM,6,METHOD_BUFFERED,FILE_ANY_ACCESS)
84 #define FSCTL_UNLOCK_VOLUME CTL_CODE(FILE_DEVICE_FILE_SYSTEM,7,METHOD_BUFFERED,FILE_ANY_ACCESS)
85 #define FSCTL_PIPE_IMPERSONATE CTL_CODE(FILE_DEVICE_NAMED_PIPE, 7, METHOD_BUFFERED, FILE_ANY_ACCESS)
86 #define FSCTL_DISMOUNT_VOLUME CTL_CODE(FILE_DEVICE_FILE_SYSTEM,8,METHOD_BUFFERED,FILE_ANY_ACCESS)
87 #define FSCTL_MOUNT_DBLS_VOLUME CTL_CODE(FILE_DEVICE_FILE_SYSTEM,13,METHOD_BUFFERED,FILE_ANY_ACCESS)
88 #define FSCTL_GET_COMPRESSION CTL_CODE(FILE_DEVICE_FILE_SYSTEM,15,METHOD_BUFFERED,FILE_ANY_ACCESS)
89 #define FSCTL_SET_COMPRESSION CTL_CODE(FILE_DEVICE_FILE_SYSTEM,16,METHOD_BUFFERED,FILE_READ_DATA|FILE_WRITE_DATA)
90 #define FSCTL_READ_COMPRESSION CTL_CODE(FILE_DEVICE_FILE_SYSTEM,17,METHOD_NEITHER,FILE_READ_DATA)
91 #define FSCTL_WRITE_COMPRESSION CTL_CODE(FILE_DEVICE_FILE_SYSTEM,18,METHOD_NEITHER,FILE_WRITE_DATA)
92 #define FSCTL_GET_NTFS_VOLUME_DATA CTL_CODE(FILE_DEVICE_FILE_SYSTEM,25,METHOD_BUFFERED,FILE_ANY_ACCESS)
93 #define FSCTL_GET_NTFS_FILE_RECORD CTL_CODE(FILE_DEVICE_FILE_SYSTEM,26,METHOD_BUFFERED,FILE_ANY_ACCESS)
94 #define FSCTL_GET_VOLUME_BITMAP CTL_CODE(FILE_DEVICE_FILE_SYSTEM,27,METHOD_NEITHER,FILE_ANY_ACCESS)
95 #define FSCTL_GET_RETRIEVAL_POINTERS CTL_CODE(FILE_DEVICE_FILE_SYSTEM,28,METHOD_NEITHER,FILE_ANY_ACCESS)
96 #define FSCTL_MOVE_FILE CTL_CODE(FILE_DEVICE_FILE_SYSTEM,29,METHOD_BUFFERED,FILE_ANY_ACCESS)
97 #define FSCTL_GET_REPARSE_POINT CTL_CODE(FILE_DEVICE_FILE_SYSTEM, 42, METHOD_BUFFERED, FILE_ANY_ACCESS)
98 #define FSCTL_SET_REPARSE_POINT CTL_CODE(FILE_DEVICE_FILE_SYSTEM, 41, METHOD_BUFFERED, FILE_ANY_ACCESS)
99 #define FSCTL_DELETE_REPARSE_POINT CTL_CODE(FILE_DEVICE_FILE_SYSTEM, 43, METHOD_BUFFERED, FILE_ANY_ACCESS)
100 #define FSCTL_SET_SPARSE CTL_CODE(FILE_DEVICE_FILE_SYSTEM, 49, METHOD_BUFFERED, FILE_SPECIAL_ACCESS)
101 
102 #ifndef _DEVIOCTL_
103 #define _DEVIOCTL_
104 
105 #define DEVICE_TYPE DWORD
106 #define FILE_DEVICE_BEEP 1
107 #define FILE_DEVICE_CD_ROM 2
108 #define FILE_DEVICE_CD_ROM_FILE_SYSTEM 3
109 #define FILE_DEVICE_CONTROLLER 4
110 #define FILE_DEVICE_DATALINK 5
111 #define FILE_DEVICE_DFS 6
112 #define FILE_DEVICE_DISK 7
113 #define FILE_DEVICE_DISK_FILE_SYSTEM 8
114 #define FILE_DEVICE_FILE_SYSTEM 9
115 #define FILE_DEVICE_INPORT_PORT 10
116 #define FILE_DEVICE_KEYBOARD 11
117 #define FILE_DEVICE_MAILSLOT 12
118 #define FILE_DEVICE_MIDI_IN 13
119 #define FILE_DEVICE_MIDI_OUT 14
120 #define FILE_DEVICE_MOUSE 15
121 #define FILE_DEVICE_MULTI_UNC_PROVIDER 16
122 #define FILE_DEVICE_NAMED_PIPE 17
123 #define FILE_DEVICE_NETWORK 18
124 #define FILE_DEVICE_NETWORK_BROWSER 19
125 #define FILE_DEVICE_NETWORK_FILE_SYSTEM 20
126 #define FILE_DEVICE_NULL 21
127 #define FILE_DEVICE_PARALLEL_PORT 22
128 #define FILE_DEVICE_PHYSICAL_NETCARD 23
129 #define FILE_DEVICE_PRINTER 24
130 #define FILE_DEVICE_SCANNER 25
131 #define FILE_DEVICE_SERIAL_MOUSE_PORT 26
132 #define FILE_DEVICE_SERIAL_PORT 27
133 #define FILE_DEVICE_SCREEN 28
134 #define FILE_DEVICE_SOUND 29
135 #define FILE_DEVICE_STREAMS 30
136 #define FILE_DEVICE_TAPE 31
137 #define FILE_DEVICE_TAPE_FILE_SYSTEM 32
138 #define FILE_DEVICE_TRANSPORT 33
139 #define FILE_DEVICE_UNKNOWN 34
140 #define FILE_DEVICE_VIDEO 35
141 #define FILE_DEVICE_VIRTUAL_DISK 36
142 #define FILE_DEVICE_WAVE_IN 37
143 #define FILE_DEVICE_WAVE_OUT 38
144 #define FILE_DEVICE_8042_PORT 39
145 #define FILE_DEVICE_NETWORK_REDIRECTOR 40
146 #define FILE_DEVICE_BATTERY 41
147 #define FILE_DEVICE_BUS_EXTENDER 42
148 #define FILE_DEVICE_MODEM 43
149 #define FILE_DEVICE_VDM 44
150 #define FILE_DEVICE_MASS_STORAGE 45
151 #define FILE_DEVICE_SMB 46
152 #define FILE_DEVICE_KS 47
153 #define FILE_DEVICE_CHANGER 48
154 #define FILE_DEVICE_SMARTCARD 49
155 #define FILE_DEVICE_ACPI 50
156 #define FILE_DEVICE_DVD 51
157 #define FILE_DEVICE_FULLSCREEN_VIDEO 52
158 #define FILE_DEVICE_DFS_FILE_SYSTEM 53
159 #define FILE_DEVICE_DFS_VOLUME 54
160 #define FILE_DEVICE_SERENUM 55
161 #define FILE_DEVICE_TERMSRV 56
162 #define FILE_DEVICE_KSEC 57
163 
164 /* Also in ddk/winddk.h */
165 #define FILE_ANY_ACCESS 0x00000000
166 #define FILE_SPECIAL_ACCESS FILE_ANY_ACCESS
167 #define FILE_READ_ACCESS 0x00000001
168 #define FILE_WRITE_ACCESS 0x00000002
169 
170 #define METHOD_BUFFERED 0
171 #define METHOD_IN_DIRECT 1
172 #define METHOD_OUT_DIRECT 2
173 #define METHOD_NEITHER 3
174 
175 #define CTL_CODE(t,f,m,a) (((t)<<16)|((a)<<14)|((f)<<2)|(m))
176 #define DEVICE_TYPE_FROM_CTL_CODE(c) (((DWORD)((c)&0xffff0000))>>16)
177 
178 #endif /* _DEVIOCTL_ */
179 
180 #define PARTITION_ENTRY_UNUSED 0
181 #define PARTITION_FAT_12 1
182 #define PARTITION_XENIX_1 2
183 #define PARTITION_XENIX_2 3
184 #define PARTITION_FAT_16 4
185 #define PARTITION_EXTENDED 5
186 #define PARTITION_HUGE 6
187 #define PARTITION_IFS 7
188 #define PARTITION_FAT32 0x0B
189 #define PARTITION_FAT32_XINT13 0x0C
190 #define PARTITION_XINT13 0x0E
191 #define PARTITION_XINT13_EXTENDED 0x0F
192 #define PARTITION_PREP 0x41
193 #define PARTITION_LDM 0x42
194 #define PARTITION_UNIX 0x63
195 #define PARTITION_NTFT 0x80
196 #define VALID_NTFT 0xC0
197 #ifdef __REACTOS__
198 #define PARTITION_OLD_LINUX 0x43
199 #define PARTITION_LINUX 0x83
200 #define PARTITION_FREEBSD 0xA5
201 #define PARTITION_OPENBSD 0xA6
202 #define PARTITION_NETBSD 0xA9
203 #endif
204 #define SERIAL_LSRMST_ESCAPE 0
205 #define SERIAL_LSRMST_LSR_DATA 1
206 #define SERIAL_LSRMST_LSR_NODATA 2
207 #define SERIAL_LSRMST_MST 3
208 /* Device GUIDs */
209 #ifdef DEFINE_GUID
210 
211 DEFINE_GUID(GUID_DEVINTERFACE_COMPORT, 0x86E0D1E0L, 0x8089,
212  0x11D0, 0x9C, 0xE4, 0x08, 0x00, 0x3E, 0x30, 0x1F, 0x73);
213 DEFINE_GUID(GUID_DEVINTERFACE_SERENUM_BUS_ENUMERATOR, 0x4D36E978L, 0xE325,
214  0x11CE, 0xBF, 0xC1, 0x08, 0x00, 0x2B, 0xE1, 0x03, 0x18);
215 
216 /* obsolete GUID names */
217 #define GUID_CLASS_COMPORT GUID_DEVINTERFACE_COMPORT
218 #define GUID_SERENUM_BUS_ENUMERATOR GUID_DEVINTERFACE_SERENUM_BUS_ENUMERATOR
219 
220 #endif /* DEFINE_GUID */
221 
222 #define DISK_LOGGING_START 0
223 #define DISK_LOGGING_STOP 1
224 #define DISK_LOGGING_DUMP 2
225 #define DISK_BINNING 3
228 typedef struct _BIN_RANGE {
232 typedef struct _BIN_COUNT {
236 typedef struct _BIN_RESULTS {
240 typedef enum _PARTITION_STYLE {
245 typedef struct {
249 typedef struct {
252 typedef struct {
254  _ANONYMOUS_UNION union {
257  };
259 typedef enum {
264 typedef struct _DISK_CACHE_INFORMATION {
272  _ANONYMOUS_UNION union {
273  struct {
277  } ScalarPrefetch;
278  struct {
279  WORD Minimum;
280  WORD Maximum;
281  } BlockPrefetch;
282  };
284 typedef enum _DETECTION_TYPE {
289 typedef struct _DISK_INT13_INFO {
296 typedef struct _DISK_EX_INT13_INFO {
306 typedef struct _DISK_DETECTION_INFO {
309  _ANONYMOUS_UNION union {
310  _ANONYMOUS_STRUCT struct {
313  };
314  };
316 typedef enum _MEDIA_TYPE {
344 typedef struct _DISK_GEOMETRY {
351 typedef struct _DISK_GEOMETRY_EX {
354  BYTE Data[1];
356 typedef struct _DISK_GROW_PARTITION {
360 typedef struct _DISK_PARTITION_INFO {
363  _ANONYMOUS_UNION union {
364  struct {
366  } Mbr;
367  struct {
368  GUID DiskId;
369  } Gpt;
370  };
372 typedef struct _DISK_PERFORMANCE {
386 typedef struct _DISK_RECORD {
395 typedef struct _DISK_LOGGING {
400 typedef struct DiskQuotaUserInformation {
405 typedef struct _FORMAT_PARAMETERS {
412 typedef struct _FORMAT_EX_PARAMETERS {
422 typedef struct {
425 typedef struct _HISTOGRAM_BUCKET {
429 typedef struct _DISK_HISTOGRAM {
442 typedef struct _DISK_EXTENT {
447 typedef struct _VOLUME_DISK_EXTENTS {
449  DISK_EXTENT Extents[1];
451 typedef struct _PARTITION_INFORMATION {
461 typedef struct _DRIVE_LAYOUT_INFORMATION {
466 typedef struct _DRIVE_LAYOUT_INFORMATION_GPT {
467  GUID DiskId;
472 typedef struct _DRIVE_LAYOUT_INFORMATION_MBR {
475 typedef struct _PARTITION_INFORMATION_MBR {
481 typedef struct _PARTITION_INFORMATION_GPT {
485  WCHAR Name[36];
487 typedef struct _PARTITION_INFORMATION_EX {
493  _ANONYMOUS_UNION union {
496  };
498 typedef struct _DRIVE_LAYOUT_INFORMATION_EX {
501  _ANONYMOUS_UNION union {
504  };
507 typedef struct {
513 typedef struct _PERF_BIN {
518 
519 #ifndef _NTDDSTOR_H_
520 typedef struct _PREVENT_MEDIA_REMOVAL {
523 #endif
524 
528  struct {
531  } Extents[1];
533 typedef struct _REASSIGN_BLOCKS {
538 typedef struct _SET_PARTITION_INFORMATION {
541 typedef struct {
544 typedef struct {
547 typedef struct _VERIFY_INFORMATION {
551 typedef struct {
556 typedef struct {
572 typedef struct {
577 typedef struct {
580 typedef struct {
583  UCHAR FileRecordBuffer[1];
585 
586 #ifdef __REACTOS__
587 #define IsRecognizedPartition(t)\
588  (((t&PARTITION_NTFT)&&((t&~VALID_NTFT)==PARTITION_FAT_12))||\
589  ((t&PARTITION_NTFT)&&((t&~VALID_NTFT)==PARTITION_FAT_16))||\
590  ((t&PARTITION_NTFT)&&((t&~VALID_NTFT)==PARTITION_IFS))||\
591  ((t&PARTITION_NTFT)&&((t&~VALID_NTFT)==PARTITION_HUGE))||\
592  ((t&PARTITION_NTFT)&&((t&~VALID_NTFT)==PARTITION_FAT32))||\
593  ((t&PARTITION_NTFT)&&((t&~VALID_NTFT)==PARTITION_FAT32_XINT13))||\
594  ((t&PARTITION_NTFT)&&((t&~VALID_NTFT)==PARTITION_XINT13))||\
595  ((t)==PARTITION_FAT_12)||\
596  ((t)==PARTITION_FAT_16)||\
597  ((t)==PARTITION_IFS)||\
598  ((t)==PARTITION_HUGE)||\
599  ((t)==PARTITION_FAT32)||\
600  ((t)==PARTITION_FAT32_XINT13)||\
601  ((t)==PARTITION_XINT13)||\
602  ((t)==PARTITION_LINUX)||\
603  ((t)==PARTITION_OLD_LINUX)||\
604  ((t)==PARTITION_FREEBSD)||\
605  ((t)==PARTITION_OPENBSD)||\
606  ((t)==PARTITION_NETBSD))
607 #else
608 #define IsRecognizedPartition(t)\
609  (((t&PARTITION_NTFT)&&((t&~VALID_NTFT)==PARTITION_FAT_12))||\
610  ((t&PARTITION_NTFT)&&((t&~VALID_NTFT)==PARTITION_FAT_16))||\
611  ((t&PARTITION_NTFT)&&((t&~VALID_NTFT)==PARTITION_IFS))||\
612  ((t&PARTITION_NTFT)&&((t&~VALID_NTFT)==PARTITION_HUGE))||\
613  ((t&PARTITION_NTFT)&&((t&~VALID_NTFT)==PARTITION_FAT32))||\
614  ((t&PARTITION_NTFT)&&((t&~VALID_NTFT)==PARTITION_FAT32_XINT13))||\
615  ((t&PARTITION_NTFT)&&((t&~VALID_NTFT)==PARTITION_XINT13))||\
616  ((t)==PARTITION_FAT_12)||\
617  ((t)==PARTITION_FAT_16)||\
618  ((t)==PARTITION_IFS)||\
619  ((t)==PARTITION_HUGE)||\
620  ((t)==PARTITION_FAT32)||\
621  ((t)==PARTITION_FAT32_XINT13)||\
622  ((t)==PARTITION_XINT13))
623 #endif
624 #define IsContainerPartition(t)\
625  (((t&PARTITION_NTFT)&&((t&~VALID_NTFT)==PARTITION_EXTENDED))||\
626  ((t&PARTITION_NTFT)&&((t&~VALID_NTFT)==PARTITION_XINT13_EXTENDED))||\
627  ((t)==PARTITION_EXTENDED)||\
628  ((t)==PARTITION_XINT13_EXTENDED))
629 
630 #ifndef _FILESYSTEMFSCTL_
631 #define _FILESYSTEMFSCTL_
632 
633 #define FSCTL_MARK_VOLUME_DIRTY CTL_CODE(FILE_DEVICE_FILE_SYSTEM, 12, METHOD_BUFFERED, FILE_ANY_ACCESS)
634 #define FSCTL_FILESYSTEM_GET_STATISTICS CTL_CODE(FILE_DEVICE_FILE_SYSTEM, 24, METHOD_BUFFERED, FILE_ANY_ACCESS)
635 #if (_WIN32_WINNT >= _WIN32_WINNT_NT4)
636 #define FSCTL_IS_VOLUME_DIRTY CTL_CODE(FILE_DEVICE_FILE_SYSTEM, 30, METHOD_BUFFERED, FILE_ANY_ACCESS)
637 #endif
638 
639 #if (_WIN32_WINNT >= _WIN32_WINNT_WIN8)
640 #define FSCTL_GET_INTEGRITY_INFORMATION CTL_CODE(FILE_DEVICE_FILE_SYSTEM, 159, METHOD_BUFFERED, FILE_ANY_ACCESS)
641 #define FSCTL_SET_INTEGRITY_INFORMATION CTL_CODE(FILE_DEVICE_FILE_SYSTEM, 160, METHOD_BUFFERED, FILE_READ_DATA | FILE_WRITE_DATA)
642 #endif
643 
644 #if (_WIN32_WINNT >= _WIN32_WINNT_WINBLUE)
645 #define FSCTL_DUPLICATE_EXTENTS_TO_FILE CTL_CODE(FILE_DEVICE_FILE_SYSTEM, 209, METHOD_BUFFERED, FILE_WRITE_DATA)
646 #endif
647 
648 #if (_WIN32_WINNT >= _WIN32_WINNT_WIN2K)
649 #define VOLUME_IS_DIRTY (0x00000001)
650 #define VOLUME_UPGRADE_SCHEDULED (0x00000002)
651 #define VOLUME_SESSION_OPEN (0x00000004)
652 #endif
653 
654 typedef struct _FILESYSTEM_STATISTICS {
671 
672 #define FILESYSTEM_STATISTICS_TYPE_NTFS 1
673 #define FILESYSTEM_STATISTICS_TYPE_FAT 2
674 #define FILESYSTEM_STATISTICS_TYPE_EXFAT 3
675 
676 typedef struct _FAT_STATISTICS {
687 
688 typedef struct _EXFAT_STATISTICS {
699 
700 typedef struct _NTFS_STATISTICS {
707  struct {
718  struct {
719  USHORT Write;
720  USHORT Create;
721  USHORT SetInfo;
722  USHORT Flush;
738  struct {
739  USHORT Write;
740  USHORT Create;
741  USHORT SetInfo;
750  struct {
751  USHORT Write;
752  USHORT Create;
753  USHORT SetInfo;
754  USHORT Flush;
764  struct {
775  } Allocate;
777 
778 #if (_WIN32_WINNT >= _WIN32_WINNT_WIN8)
781  WORD Reserved;
782  DWORD Flags;
786 
789  WORD Reserved;
790  DWORD Flags;
792 #endif
793 
794 #if (_WIN32_WINNT >= _WIN32_WINNT_WINBLUE)
795 typedef struct _DUPLICATE_EXTENTS_DATA {
801 
802 #endif
803 
804 #endif
805 
806 #ifdef _MSC_VER
807 #pragma warning(pop)
808 #endif
809 
810 #ifdef __cplusplus
811 }
812 #endif
813 #endif /* _WINIOCTL_ */
struct _DUPLICATE_EXTENTS_DATA DUPLICATE_EXTENTS_DATA
struct _BIN_RESULTS * PBIN_RESULTS
LARGE_INTEGER ExtentLength
Definition: ntddvol.h:113
USHORT MftBitmapWritesUserRequest
Definition: winioctl.h:749
LARGE_INTEGER FileReferenceNumber
Definition: winioctl.h:578
struct _DISK_GEOMETRY_EX DISK_GEOMETRY_EX
ULONG NonCachedReadBytes
Definition: winioctl.h:681
ULONG BitmapReads
Definition: winioctl.h:731
_BIN_TYPES
Definition: winioctl.h:227
DWORD BytesPerFileRecordSegment
Definition: winioctl.h:564
struct STARTING_VCN_INPUT_BUFFER * PSTARTING_VCN_INPUT_BUFFER
BIN_COUNT BinCounts[1]
Definition: winioctl.h:238
ULONG NonCachedWrites
Definition: winioctl.h:682
LARGE_INTEGER PartitionLength
Definition: ntdddisk.h:394
USHORT BitmapWritesLazyWriter
Definition: winioctl.h:736
struct CREATE_DISK_MBR * PCREATE_DISK_MBR
struct _BIN_RANGE BIN_RANGE
ULONG LogFileWriteBytes
Definition: winioctl.h:763
struct _DISK_EXTENT * PDISK_EXTENT
DETECTION_TYPE DetectionType
Definition: ntdddisk.h:362
struct _FSCTL_SET_INTEGRITY_INFORMATION_BUFFER * PFSCTL_SET_INTEGRITY_INFORMATION_BUFFER
ULONG LogFileFullExceptions
Definition: winioctl.h:701
DISK_CACHE_RETENTION_PRIORITY WriteRetentionPriority
Definition: winioctl.h:269
DWORD64 ExSectorsPerDrive
Definition: winioctl.h:302
LARGE_INTEGER ByteOffset
Definition: winioctl.h:387
struct _DRIVE_LAYOUT_INFORMATION * PDRIVE_LAYOUT_INFORMATION
ULONG NonCachedReads
Definition: winioctl.h:680
struct _FAT_STATISTICS * PFAT_STATISTICS
struct _BIN_RESULTS BIN_RESULTS
USHORT MftWritesUserRequest
Definition: winioctl.h:715
USHORT SectorNumber[1]
Definition: ntdddisk.h:499
struct _NTFS_STATISTICS::@3202 Mft2WritesUserLevel
_MEDIA_TYPE
Definition: ntdddisk.h:301
struct _FSCTL_SET_INTEGRITY_INFORMATION_BUFFER FSCTL_SET_INTEGRITY_INFORMATION_BUFFER
ULONG BitmapReadBytes
Definition: winioctl.h:732
enum _MEDIA_TYPE MEDIA_TYPE
struct _VOLUME_DISK_EXTENTS VOLUME_DISK_EXTENTS
#define _ANONYMOUS_UNION
Definition: ntbasedef.h:30
_PARTITION_STYLE
Definition: imports.h:200
DWORD ReadCount
Definition: winioctl.h:438
CREATE_DISK_MBR Mbr
Definition: winioctl.h:255
struct _NTFS_STATISTICS::@3204 MftBitmapWritesUserLevel
DWORD Granularity
Definition: winioctl.h:436
ULONG UserIndexWrites
Definition: winioctl.h:758
HANDLE FileHandle
Definition: winioctl.h:508
DWORD BinCount
Definition: winioctl.h:234
struct _DISK_PARTITION_INFO DISK_PARTITION_INFO
struct _SET_PARTITION_INFORMATION SET_PARTITION_INFORMATION
struct _NTFS_STATISTICS::@3205 Allocate
struct VOLUME_BITMAP_BUFFER * PVOLUME_BITMAP_BUFFER
LARGE_INTEGER StartingVcn
Definition: winioctl.h:545
enum _MEDIA_TYPE MEDIA_TYPE
struct _PREVENT_MEDIA_REMOVAL PREVENT_MEDIA_REMOVAL
DWORD BytesPerSector
Definition: winioctl.h:349
struct _FILESYSTEM_STATISTICS * PFILESYSTEM_STATISTICS
ULONG MftBitmapWriteBytes
Definition: winioctl.h:746
LARGE_INTEGER MftStartLcn
Definition: winioctl.h:567
DWORD TracksPerCylinder
Definition: winioctl.h:347
struct _BIN_COUNT * PBIN_COUNT
struct _DISK_CACHE_INFORMATION::@3184::@3186 ScalarPrefetch
struct _DISK_CACHE_INFORMATION DISK_CACHE_INFORMATION
DISK_EXTENT Extents[1]
Definition: ntddvol.h:118
USHORT MftWritesLazyWriter
Definition: winioctl.h:714
ULONG FailedCreates
Definition: winioctl.h:691
struct _VERIFY_INFORMATION * PVERIFY_INFORMATION
DWORD DiskNumber
Definition: winioctl.h:443
USHORT MftBitmapWritesFlushForLogFileFull
Definition: winioctl.h:747
struct _PARTITION_INFORMATION PARTITION_INFORMATION
ULONG NonCachedDiskWrites
Definition: winioctl.h:685
ULONG RootIndexReadBytes
Definition: winioctl.h:728
LARGE_INTEGER ReadTime
Definition: ntdddisk.h:433
struct _NTFS_STATISTICS NTFS_STATISTICS
ULONG SuccessfulCreates
Definition: winioctl.h:690
PARTITION_INFORMATION_MBR Mbr
Definition: imports.h:226
enum _DETECTION_TYPE DETECTION_TYPE
struct _DISK_GEOMETRY DISK_GEOMETRY
LARGE_INTEGER StartingLcn
Definition: winioctl.h:542
ULONG NonCachedWriteBytes
Definition: winioctl.h:683
LARGE_INTEGER DiskSize
Definition: ntdddisk.h:381
struct STARTING_LCN_INPUT_BUFFER * PSTARTING_LCN_INPUT_BUFFER
struct _SET_PARTITION_INFORMATION * PSET_PARTITION_INFORMATION
DWORD ExSectorsPerTrack
Definition: winioctl.h:301
PARTITION_INFORMATION_GPT Gpt
Definition: imports.h:227
ULONG NonCachedReads
Definition: winioctl.h:692
struct _VOLUME_DISK_EXTENTS * PVOLUME_DISK_EXTENTS
PARTITION_STYLE PartitionStyle
Definition: imports.h:220
DISK_INT13_INFO Int13
Definition: ntdddisk.h:365
LARGE_INTEGER WriteTime
Definition: ntdddisk.h:434
struct _REASSIGN_BLOCKS REASSIGN_BLOCKS
LARGE_INTEGER BytesRead
Definition: ntdddisk.h:431
struct CREATE_DISK * PCREATE_DISK
ULONG NonCachedWrites
Definition: winioctl.h:694
DWORD NumberOfBins
Definition: winioctl.h:514
LARGE_INTEGER MftZoneEnd
Definition: winioctl.h:570
struct _NTFS_STATISTICS::@3203 BitmapWritesUserLevel
struct _DISK_CACHE_INFORMATION::@3184::@3187 BlockPrefetch
LARGE_INTEGER AverageWrite
Definition: winioctl.h:435
LARGE_INTEGER StartTime
Definition: winioctl.h:388
struct _DRIVE_LAYOUT_INFORMATION_GPT * PDRIVE_LAYOUT_INFORMATION_GPT
struct _PERF_BIN PERF_BIN
ULONG RootIndexReads
Definition: winioctl.h:727
BIN_RANGE BinRange
Definition: winioctl.h:233
USHORT Mft2WritesLazyWriter
Definition: winioctl.h:725
ULONG RootIndexWrites
Definition: winioctl.h:729
DWORD ClusterCount
Definition: winioctl.h:511
ULONG SuccessfulCreates
Definition: winioctl.h:678
struct _FORMAT_EX_PARAMETERS FORMAT_EX_PARAMETERS
struct _DISK_PARTITION_INFO::@3017::@3018 Mbr
ULONG LogFileReadBytes
Definition: winioctl.h:761
DISK_GEOMETRY Geometry
Definition: ntdddisk.h:380
DWORD WriteCount
Definition: winioctl.h:439
struct _GET_LENGTH_INFORMATION GET_LENGTH_INFORMATION
LARGE_INTEGER Mft2StartLcn
Definition: winioctl.h:568
struct _PARTITION_INFORMATION_MBR PARTITION_INFORMATION_MBR
LARGE_INTEGER StartingVcn
Definition: winioctl.h:509
struct RETRIEVAL_POINTERS_BUFFER * PRETRIEVAL_POINTERS_BUFFER
LARGE_INTEGER StartingVcn
Definition: winioctl.h:527
struct _DRIVE_LAYOUT_INFORMATION_EX * PDRIVE_LAYOUT_INFORMATION_EX
struct _DISK_GEOMETRY_EX * PDISK_GEOMETRY_EX
LARGE_INTEGER TotalClusters
Definition: winioctl.h:559
struct _DRIVE_LAYOUT_INFORMATION_EX DRIVE_LAYOUT_INFORMATION_EX
unsigned char BOOLEAN
struct _FSCTL_GET_INTEGRITY_INFORMATION_BUFFER FSCTL_GET_INTEGRITY_INFORMATION_BUFFER
BOOLEAN ReadRequest
Definition: winioctl.h:393
PARTITION_INFORMATION PartitionEntry[1]
Definition: ntdddisk.h:467
struct _REASSIGN_BLOCKS * PREASSIGN_BLOCKS
struct _PARTITION_INFORMATION * PPARTITION_INFORMATION
enum _DETECTION_TYPE DETECTION_TYPE
ULONG RootIndexWriteBytes
Definition: winioctl.h:730
ULONG BitmapWriteBytes
Definition: winioctl.h:734
struct _HISTOGRAM_BUCKET HISTOGRAM_BUCKET
ULONG CreateHits
Definition: winioctl.h:677
MEDIA_TYPE MediaType
Definition: ntdddisk.h:503
Definition: bufpool.h:45
ULONG HintsHonored
Definition: winioctl.h:769
struct _FAT_STATISTICS FAT_STATISTICS
ULONG NonCachedDiskWrites
Definition: winioctl.h:697
struct _DRIVE_LAYOUT_INFORMATION_GPT DRIVE_LAYOUT_INFORMATION_GPT
ULONG MftBitmapReads
Definition: winioctl.h:743
ULONG CacheMissClusters
Definition: winioctl.h:774
LARGE_INTEGER VolumeSerialNumber
Definition: winioctl.h:557
LARGE_INTEGER MftZoneStart
Definition: winioctl.h:569
DWORD StartCylinderNumber
Definition: winioctl.h:407
LARGE_INTEGER End
Definition: winioctl.h:432
struct _VERIFY_INFORMATION VERIFY_INFORMATION
USHORT BitmapWritesFlushForLogFileFull
Definition: winioctl.h:735
ULONG NonCachedDiskReads
Definition: winioctl.h:696
struct RETRIEVAL_POINTERS_BUFFER::@3200 Extents[1]
enum _BIN_TYPES BIN_TYPES
struct _NTFS_STATISTICS::@3201 MftWritesUserLevel
struct NTFS_FILE_RECORD_OUTPUT_BUFFER * PNTFS_FILE_RECORD_OUTPUT_BUFFER
LARGE_INTEGER TotalReserved
Definition: winioctl.h:561
struct _PARTITION_INFORMATION_EX PARTITION_INFORMATION_EX
struct _DUPLICATE_EXTENTS_DATA * PDUPLICATE_EXTENTS_DATA
int64_t LONGLONG
Definition: typedefs.h:66
LARGE_INTEGER SourceFileOffset
Definition: shellext.h:176
struct NTFS_EXTENDED_VOLUME_DATA * PNTFS_EXTENDED_VOLUME_DATA
PHISTOGRAM_BUCKET Histogram
Definition: winioctl.h:440
USHORT MftBitmapWritesLazyWriter
Definition: winioctl.h:748
DISK_CACHE_RETENTION_PRIORITY ReadRetentionPriority
Definition: winioctl.h:268
ULONG LogFileReads
Definition: winioctl.h:760
#define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8)
Definition: guiddef.h:64
struct _BIN_RANGE * PBIN_RANGE
CREATE_DISK_GPT Gpt
Definition: winioctl.h:256
ULONG NonCachedDiskReads
Definition: winioctl.h:684
struct _PERF_BIN * PPERF_BIN
struct _FORMAT_PARAMETERS * PFORMAT_PARAMETERS
WORD DisablePrefetchTransferLength
Definition: winioctl.h:270
struct _HISTOGRAM_BUCKET * PHISTOGRAM_BUCKET
DWORD MaxCylinders
Definition: winioctl.h:291
struct _BIN_COUNT BIN_COUNT
__wchar_t WCHAR
Definition: xmlstorage.h:180
USHORT Mft2WritesUserRequest
Definition: winioctl.h:726
struct NTFS_FILE_RECORD_INPUT_BUFFER * PNTFS_FILE_RECORD_INPUT_BUFFER
LARGE_INTEGER StartingOffset
Definition: ntdddisk.h:393
DRIVE_LAYOUT_INFORMATION_MBR Mbr
Definition: ntdddisk.h:485
struct _PARTITION_INFORMATION_GPT PARTITION_INFORMATION_GPT
LARGE_INTEGER Cylinders
Definition: ntdddisk.h:372
ULONG NonCachedReadBytes
Definition: winioctl.h:693
struct _NTFS_STATISTICS * PNTFS_STATISTICS
DWORD SectorsPerTrack
Definition: winioctl.h:348
BIN_RANGE BinsRanges[1]
Definition: winioctl.h:516
struct _EXFAT_STATISTICS * PEXFAT_STATISTICS
unsigned short WORD
Definition: ntddk_ex.h:93
unsigned long DWORD
Definition: ntddk_ex.h:95
struct _DISK_INT13_INFO DISK_INT13_INFO
MEDIA_TYPE MediaType
Definition: ntdddisk.h:373
enum _MEDIA_TYPE * PMEDIA_TYPE
struct _DISK_LOGGING DISK_LOGGING
struct _DISK_CACHE_INFORMATION * PDISK_CACHE_INFORMATION
struct _DISK_DETECTION_INFO DISK_DETECTION_INFO
struct _DISK_LOGGING * PDISK_LOGGING
LARGE_INTEGER PartitionLength
Definition: imports.h:222
LARGE_INTEGER QueryTime
Definition: ntdddisk.h:440
struct _DISK_PARTITION_INFO * PDISK_PARTITION_INFO
BYTE DeviceNumber
Definition: winioctl.h:392
struct _FORMAT_EX_PARAMETERS * PFORMAT_EX_PARAMETERS
PARTITION_STYLE PartitionStyle
Definition: winioctl.h:253
ULONG CacheClusters
Definition: winioctl.h:772
LARGE_INTEGER Average
Definition: winioctl.h:433
BOOLEAN RewritePartition
Definition: ntdddisk.h:400
struct _FORMAT_PARAMETERS FORMAT_PARAMETERS
MEDIA_TYPE MediaType
Definition: ntdddisk.h:492
LARGE_INTEGER StartingOffset
Definition: imports.h:221
unsigned char UCHAR
Definition: xmlstorage.h:181
BOOLEAN PreventMediaRemoval
Definition: ntddstor.h:251
struct _DISK_HISTOGRAM * PDISK_HISTOGRAM
USHORT MftWritesFlushForLogFileFull
Definition: winioctl.h:713
USHORT SetInfo
Definition: winioctl.h:710
struct _FILESYSTEM_STATISTICS FILESYSTEM_STATISTICS
struct _DISK_PERFORMANCE * PDISK_PERFORMANCE
struct _DISK_EX_INT13_INFO DISK_EX_INT13_INFO
ULONG MftBitmapWrites
Definition: winioctl.h:745
ULONG BitmapWrites
Definition: winioctl.h:733
struct _DISK_GROW_PARTITION * PDISK_GROW_PARTITION
LARGE_INTEGER BytesToGrow
Definition: winioctl.h:358
struct _DISK_EX_INT13_INFO * PDISK_EX_INT13_INFO
struct _DISK_GEOMETRY * PDISK_GEOMETRY
struct _DISK_PERFORMANCE DISK_PERFORMANCE
LARGE_INTEGER Start
Definition: winioctl.h:431
enum _PARTITION_STYLE PARTITION_STYLE
struct _DISK_RECORD * PDISK_RECORD
enum _PARTITION_STYLE PARTITION_STYLE
unsigned char BYTE
Definition: mem.h:68
LARGE_INTEGER BytesWritten
Definition: ntdddisk.h:432
DWORD MaxPartitionCount
Definition: winioctl.h:247
LARGE_INTEGER AverageRead
Definition: winioctl.h:434
struct _EXFAT_STATISTICS EXFAT_STATISTICS
LARGE_INTEGER Length
Definition: winioctl.h:423
LARGE_INTEGER FileReferenceNumber
Definition: winioctl.h:581
#define _ANONYMOUS_STRUCT
Definition: ntbasedef.h:56
ULONG MftReadBytes
Definition: winioctl.h:704
DWORD BufferSize
Definition: winioctl.h:398
struct _DISK_PARTITION_INFO::@3017::@3019 Gpt
DISK_EX_INT13_INFO ExInt13
Definition: ntdddisk.h:366
DWORD NumberOfDiskExtents
Definition: winioctl.h:448
LARGE_INTEGER StartingOffset
Definition: ntddvol.h:112
struct _DISK_INT13_INFO * PDISK_INT13_INFO
struct RETRIEVAL_POINTERS_BUFFER RETRIEVAL_POINTERS_BUFFER
USHORT BitmapWritesUserRequest
Definition: winioctl.h:737
ULONG LogFileWrites
Definition: winioctl.h:762
uint64_t DWORD64
Definition: typedefs.h:65
DWORD SizeOfPartitionInfo
Definition: winioctl.h:361
LARGE_INTEGER IdleTime
Definition: ntdddisk.h:435
unsigned short USHORT
Definition: pedump.c:61
LARGE_INTEGER StartingUsableOffset
Definition: ntdddisk.h:476
DWORD NumberOfBytes
Definition: winioctl.h:391
ULONG Mft2WriteBytes
Definition: winioctl.h:717
_DETECTION_TYPE
Definition: ntdddisk.h:330
ULONG HintsClusters
Definition: winioctl.h:770
struct _DISK_HISTOGRAM DISK_HISTOGRAM
LARGE_INTEGER TargetFileOffset
Definition: shellext.h:177
LARGE_INTEGER BitmapSize
Definition: winioctl.h:553
struct MOVE_FILE_DATA * PMOVE_FILE_DATA
LARGE_INTEGER NextVcn
Definition: winioctl.h:529
DWORD NumberOfBins
Definition: winioctl.h:237
DWORD Signature
Definition: winioctl.h:250
ULONG RunsReturned
Definition: winioctl.h:768
WCHAR StorageManagerName[8]
Definition: ntdddisk.h:442
struct NTFS_VOLUME_DATA_BUFFER * PNTFS_VOLUME_DATA_BUFFER
PARTITION_INFORMATION_EX PartitionEntry[1]
Definition: ntdddisk.h:488
ULONG NonCachedWriteBytes
Definition: winioctl.h:695
LARGE_INTEGER NumberSectors
Definition: winioctl.h:558
LARGE_INTEGER DiskSize
Definition: winioctl.h:430
USHORT Mft2WritesFlushForLogFileFull
Definition: winioctl.h:724
struct _PREVENT_MEDIA_REMOVAL * PPREVENT_MEDIA_REMOVAL
LARGE_INTEGER MftValidDataLength
Definition: winioctl.h:566
LARGE_INTEGER StartValue
Definition: winioctl.h:229
DWORD ClustersPerFileRecordSegment
Definition: winioctl.h:565
unsigned int ULONG
Definition: retypes.h:1
struct _DISK_EXTENT DISK_EXTENT
ULONG OtherExceptions
Definition: winioctl.h:702
LARGE_INTEGER UsableLength
Definition: ntdddisk.h:477
ULONG UserIndexReads
Definition: winioctl.h:756
LARGE_INTEGER Length
Definition: winioctl.h:230
LARGE_INTEGER EndTime
Definition: winioctl.h:389
PVOID BufferAddress
Definition: winioctl.h:397
BOOLEAN RecognizedPartition
Definition: ntdddisk.h:399
ULONG FailedCreates
Definition: winioctl.h:679
DWORD EndCylinderNumber
Definition: winioctl.h:408
ULONG Mft2Writes
Definition: winioctl.h:716
WORD BAD_TRACK_NUMBER
Definition: winioctl.h:226
struct _DRIVE_LAYOUT_INFORMATION_MBR * PDRIVE_LAYOUT_INFORMATION_MBR
BYTE Function
Definition: winioctl.h:396
ULONG MftWriteBytes
Definition: winioctl.h:706
LARGE_INTEGER FreeClusters
Definition: winioctl.h:560
DRIVE_LAYOUT_INFORMATION_GPT Gpt
Definition: ntdddisk.h:486
ULONG BlockNumber[1]
Definition: ntdddisk.h:517
ULONG UserIndexWriteBytes
Definition: winioctl.h:759
struct DiskQuotaUserInformation * PDISKQUOTA_USER_INFORMATION
DWORD StorageDeviceNumber
Definition: winioctl.h:383
struct DiskQuotaUserInformation DISKQUOTA_USER_INFORMATION
struct _DISK_RECORD DISK_RECORD
struct _DRIVE_LAYOUT_INFORMATION_MBR DRIVE_LAYOUT_INFORMATION_MBR
PARTITION_STYLE PartitionStyle
Definition: ntdddisk.h:418
ULONG MftBitmapReadBytes
Definition: winioctl.h:744
DWORD TypeOfBin
Definition: winioctl.h:515
DISK_CACHE_RETENTION_PRIORITY
Definition: winioctl.h:259
WORD * PBAD_TRACK_NUMBER
Definition: winioctl.h:226
LARGE_INTEGER ByteCount
Definition: shellext.h:178
struct _FSCTL_GET_INTEGRITY_INFORMATION_BUFFER * PFSCTL_GET_INTEGRITY_INFORMATION_BUFFER
WORD SectorsPerTrack
Definition: winioctl.h:292
LARGE_INTEGER StartingLcn
Definition: winioctl.h:510
struct CREATE_DISK_GPT * PCREATE_DISK_GPT
struct _DISK_GROW_PARTITION DISK_GROW_PARTITION
ULONG UserIndexReadBytes
Definition: winioctl.h:757
struct _DRIVE_LAYOUT_INFORMATION DRIVE_LAYOUT_INFORMATION
LARGE_INTEGER StartingLcn
Definition: winioctl.h:552
DWORD StartHeadNumber
Definition: winioctl.h:409
struct _DISK_DETECTION_INFO * PDISK_DETECTION_INFO
LARGE_INTEGER StartingOffset
Definition: ntdddisk.h:536
PVOID VirtualAddress
Definition: winioctl.h:390
ULONG SizeOfCompleteStructure
Definition: winioctl.h:657