6 #define FILE_SUPERSEDE 0x00000000
7 #define FILE_OPEN 0x00000001
8 #define FILE_CREATE 0x00000002
9 #define FILE_OPEN_IF 0x00000003
10 #define FILE_OVERWRITE 0x00000004
11 #define FILE_OVERWRITE_IF 0x00000005
12 #define FILE_MAXIMUM_DISPOSITION 0x00000005
16 #define FILE_DIRECTORY_FILE 0x00000001
17 #define FILE_WRITE_THROUGH 0x00000002
18 #define FILE_SEQUENTIAL_ONLY 0x00000004
19 #define FILE_NO_INTERMEDIATE_BUFFERING 0x00000008
21 #define FILE_SYNCHRONOUS_IO_ALERT 0x00000010
22 #define FILE_SYNCHRONOUS_IO_NONALERT 0x00000020
23 #define FILE_NON_DIRECTORY_FILE 0x00000040
24 #define FILE_CREATE_TREE_CONNECTION 0x00000080
26 #define FILE_COMPLETE_IF_OPLOCKED 0x00000100
27 #define FILE_NO_EA_KNOWLEDGE 0x00000200
28 #define FILE_OPEN_FOR_RECOVERY 0x00000400
29 #define FILE_RANDOM_ACCESS 0x00000800
31 #define FILE_DELETE_ON_CLOSE 0x00001000
32 #define FILE_OPEN_BY_FILE_ID 0x00002000
33 #define FILE_OPEN_FOR_BACKUP_INTENT 0x00004000
34 #define FILE_NO_COMPRESSION 0x00008000
35 #if (PHNT_VERSION >= PHNT_WIN7)
36 #define FILE_OPEN_REQUIRING_OPLOCK 0x00010000
37 #define FILE_DISALLOW_EXCLUSIVE 0x00020000
39 #if (PHNT_VERSION >= PHNT_WIN8)
40 #define FILE_SESSION_AWARE 0x00040000
43 #define FILE_RESERVE_OPFILTER 0x00100000
44 #define FILE_OPEN_REPARSE_POINT 0x00200000
45 #define FILE_OPEN_NO_RECALL 0x00400000
46 #define FILE_OPEN_FOR_FREE_SPACE_QUERY 0x00800000
48 #define FILE_COPY_STRUCTURED_STORAGE 0x00000041
49 #define FILE_STRUCTURED_STORAGE 0x00000441
53 #define FILE_SUPERSEDED 0x00000000
54 #define FILE_OPENED 0x00000001
55 #define FILE_CREATED 0x00000002
56 #define FILE_OVERWRITTEN 0x00000003
57 #define FILE_EXISTS 0x00000004
58 #define FILE_DOES_NOT_EXIST 0x00000005
62 #define FILE_WRITE_TO_END_OF_FILE 0xffffffff
63 #define FILE_USE_FILE_POINTER_POSITION 0xfffffffe
67 #define FILE_BYTE_ALIGNMENT 0x00000000
68 #define FILE_WORD_ALIGNMENT 0x00000001
69 #define FILE_LONG_ALIGNMENT 0x00000003
70 #define FILE_QUAD_ALIGNMENT 0x00000007
71 #define FILE_OCTA_ALIGNMENT 0x0000000f
72 #define FILE_32_BYTE_ALIGNMENT 0x0000001f
73 #define FILE_64_BYTE_ALIGNMENT 0x0000003f
74 #define FILE_128_BYTE_ALIGNMENT 0x0000007f
75 #define FILE_256_BYTE_ALIGNMENT 0x000000ff
76 #define FILE_512_BYTE_ALIGNMENT 0x000001ff
80 #define MAXIMUM_FILENAME_LENGTH 256
84 #define FILE_NEED_EA 0x00000080
86 #define FILE_EA_TYPE_BINARY 0xfffe
87 #define FILE_EA_TYPE_ASCII 0xfffd
88 #define FILE_EA_TYPE_BITMAP 0xfffb
89 #define FILE_EA_TYPE_METAFILE 0xfffa
90 #define FILE_EA_TYPE_ICON 0xfff9
91 #define FILE_EA_TYPE_EA 0xffee
92 #define FILE_EA_TYPE_MVMT 0xffdf
93 #define FILE_EA_TYPE_MVST 0xffde
94 #define FILE_EA_TYPE_ASN1 0xffdd
95 #define FILE_EA_TYPE_FAMILY_IDS 0xff01
99 #define FILE_REMOVABLE_MEDIA 0x00000001
100 #define FILE_READ_ONLY_DEVICE 0x00000002
101 #define FILE_FLOPPY_DISKETTE 0x00000004
102 #define FILE_WRITE_ONCE_MEDIA 0x00000008
103 #define FILE_REMOTE_DEVICE 0x00000010
104 #define FILE_DEVICE_IS_MOUNTED 0x00000020
105 #define FILE_VIRTUAL_VOLUME 0x00000040
106 #define FILE_AUTOGENERATED_DEVICE_NAME 0x00000080
107 #define FILE_DEVICE_SECURE_OPEN 0x00000100
108 #define FILE_CHARACTERISTIC_PNP_DEVICE 0x00000800
109 #define FILE_CHARACTERISTIC_TS_DEVICE 0x00001000
110 #define FILE_CHARACTERISTIC_WEBDAV_DEVICE 0x00002000
111 #define FILE_CHARACTERISTIC_CSV 0x00010000
112 #define FILE_DEVICE_ALLOW_APPCONTAINER_TRAVERSAL 0x00020000
113 #define FILE_PORTABLE_DEVICE 0x00040000
118 #define FILE_PIPE_BYTE_STREAM_TYPE 0x00000000
119 #define FILE_PIPE_MESSAGE_TYPE 0x00000001
120 #define FILE_PIPE_ACCEPT_REMOTE_CLIENTS 0x00000000
121 #define FILE_PIPE_REJECT_REMOTE_CLIENTS 0x00000002
122 #define FILE_PIPE_TYPE_VALID_MASK 0x00000003
125 #define FILE_PIPE_QUEUE_OPERATION 0x00000000
126 #define FILE_PIPE_COMPLETE_OPERATION 0x00000001
129 #define FILE_PIPE_BYTE_STREAM_MODE 0x00000000
130 #define FILE_PIPE_MESSAGE_MODE 0x00000001
133 #define FILE_PIPE_INBOUND 0x00000000
134 #define FILE_PIPE_OUTBOUND 0x00000001
135 #define FILE_PIPE_FULL_DUPLEX 0x00000002
138 #define FILE_PIPE_DISCONNECTED_STATE 0x00000001
139 #define FILE_PIPE_LISTENING_STATE 0x00000002
140 #define FILE_PIPE_CONNECTED_STATE 0x00000003
141 #define FILE_PIPE_CLOSING_STATE 0x00000004
144 #define FILE_PIPE_CLIENT_END 0x00000000
145 #define FILE_PIPE_SERVER_END 0x00000001
149 #define MAILSLOT_SIZE_AUTO 0
162 _In_ PVOID ApcContext,
163 _In_ PIO_STATUS_BLOCK IoStatusBlock,
519 #define FILE_SKIP_COMPLETION_PORT_ON_SUCCESS 0x1
520 #define FILE_SKIP_SET_EVENT_ON_HANDLE 0x2
521 #define FILE_SKIP_SET_USER_EVENT_ON_FAST_IO 0x4
585 #define CHECKSUM_ENFORCEMENT_OFF 0x00000001
715 #define FILE_ID_GLOBAL_TX_DIR_INFO_FLAG_WRITELOCKED 0x00000001
716 #define FILE_ID_GLOBAL_TX_DIR_INFO_FLAG_VISIBLE_TO_TX 0x00000002
717 #define FILE_ID_GLOBAL_TX_DIR_INFO_FLAG_VISIBLE_OUTSIDE_TX 0x00000004
857 #define SSINFO_FLAGS_ALIGNED_DEVICE 0x00000001
858 #define SSINFO_FLAGS_PARTITION_ALIGNED_ON_DEVICE 0x00000002
861 #define SSINFO_OFFSET_UNKNOWN 0xffffffff
899 _Out_ PHANDLE FileHandle,
900 _In_ ACCESS_MASK DesiredAccess,
902 _Out_ PIO_STATUS_BLOCK IoStatusBlock,
903 _In_opt_ PLARGE_INTEGER AllocationSize,
904 _In_ ULONG FileAttributes,
905 _In_ ULONG ShareAccess,
906 _In_ ULONG CreateDisposition,
907 _In_ ULONG CreateOptions,
908 _In_reads_bytes_opt_(EaLength) PVOID EaBuffer,
916 _Out_ PHANDLE FileHandle,
917 _In_ ULONG DesiredAccess,
919 _Out_ PIO_STATUS_BLOCK IoStatusBlock,
920 _In_ ULONG ShareAccess,
921 _In_ ULONG CreateDisposition,
922 _In_ ULONG CreateOptions,
923 _In_ ULONG NamedPipeType,
925 _In_ ULONG CompletionMode,
926 _In_ ULONG MaximumInstances,
927 _In_ ULONG InboundQuota,
928 _In_ ULONG OutboundQuota,
929 _In_opt_ PLARGE_INTEGER DefaultTimeout
936 _Out_ PHANDLE FileHandle,
937 _In_ ULONG DesiredAccess,
939 _Out_ PIO_STATUS_BLOCK IoStatusBlock,
940 _In_ ULONG CreateOptions,
941 _In_ ULONG MailslotQuota,
942 _In_ ULONG MaximumMessageSize,
943 _In_ PLARGE_INTEGER ReadTimeout
950 _Out_ PHANDLE FileHandle,
951 _In_ ACCESS_MASK DesiredAccess,
953 _Out_ PIO_STATUS_BLOCK IoStatusBlock,
954 _In_ ULONG ShareAccess,
955 _In_ ULONG OpenOptions
969 _In_ HANDLE FileHandle,
970 _Out_ PIO_STATUS_BLOCK IoStatusBlock
973 #define FLUSH_FLAGS_FILE_DATA_ONLY 0x00000001
974 #define FLUSH_FLAGS_NO_SYNC 0x00000002
976 #if (PHNT_VERSION >= PHNT_WIN8)
981 _In_ HANDLE FileHandle,
983 _In_reads_bytes_(ParametersSize) PVOID Parameters,
984 _In_ ULONG ParametersSize,
985 _Out_ PIO_STATUS_BLOCK IoStatusBlock
993 _In_ HANDLE FileHandle,
994 _Out_ PIO_STATUS_BLOCK IoStatusBlock,
995 _Out_writes_bytes_(Length) PVOID FileInformation,
1004 _In_ HANDLE FileHandle,
1005 _Out_ PIO_STATUS_BLOCK IoStatusBlock,
1006 _In_reads_bytes_(Length) PVOID FileInformation,
1015 _In_ HANDLE FileHandle,
1016 _In_opt_ HANDLE Event,
1018 _In_opt_ PVOID ApcContext,
1019 _Out_ PIO_STATUS_BLOCK IoStatusBlock,
1020 _Out_writes_bytes_(Length) PVOID FileInformation,
1023 _In_ BOOLEAN ReturnSingleEntry,
1025 _In_ BOOLEAN RestartScan
1032 _In_ HANDLE FileHandle,
1033 _Out_ PIO_STATUS_BLOCK IoStatusBlock,
1034 _Out_writes_bytes_(Length) PVOID Buffer,
1036 _In_ BOOLEAN ReturnSingleEntry,
1037 _In_reads_bytes_opt_(EaListLength) PVOID EaList,
1038 _In_ ULONG EaListLength,
1039 _In_opt_ PULONG EaIndex,
1040 _In_ BOOLEAN RestartScan
1047 _In_ HANDLE FileHandle,
1048 _Out_ PIO_STATUS_BLOCK IoStatusBlock,
1049 _In_reads_bytes_(Length) PVOID Buffer,
1057 _In_ HANDLE FileHandle,
1058 _Out_ PIO_STATUS_BLOCK IoStatusBlock,
1059 _Out_writes_bytes_(Length) PVOID Buffer,
1061 _In_ BOOLEAN ReturnSingleEntry,
1062 _In_reads_bytes_opt_(SidListLength) PVOID SidList,
1063 _In_ ULONG SidListLength,
1064 _In_opt_ PSID StartSid,
1065 _In_ BOOLEAN RestartScan
1072 _In_ HANDLE FileHandle,
1073 _Out_ PIO_STATUS_BLOCK IoStatusBlock,
1074 _In_reads_bytes_(Length) PVOID Buffer,
1082 _In_ HANDLE FileHandle,
1083 _Out_ PIO_STATUS_BLOCK IoStatusBlock,
1084 _Out_writes_bytes_(Length) PVOID FsInformation,
1093 _In_ HANDLE FileHandle,
1094 _Out_ PIO_STATUS_BLOCK IoStatusBlock,
1095 _In_reads_bytes_(Length) PVOID FsInformation,
1104 _In_ HANDLE FileHandle,
1105 _Out_ PIO_STATUS_BLOCK IoStatusBlock
1108 #if (PHNT_VERSION >= PHNT_VISTA)
1113 _In_ HANDLE FileHandle,
1114 _In_opt_ PIO_STATUS_BLOCK IoRequestToCancel,
1115 _Out_ PIO_STATUS_BLOCK IoStatusBlock
1119 #if (PHNT_VERSION >= PHNT_VISTA)
1124 _In_ HANDLE ThreadHandle,
1125 _In_opt_ PIO_STATUS_BLOCK IoRequestToCancel,
1126 _Out_ PIO_STATUS_BLOCK IoStatusBlock
1134 _In_ HANDLE FileHandle,
1135 _In_opt_ HANDLE Event,
1137 _In_opt_ PVOID ApcContext,
1138 _Out_ PIO_STATUS_BLOCK IoStatusBlock,
1139 _In_ ULONG IoControlCode,
1140 _In_reads_bytes_opt_(InputBufferLength) PVOID InputBuffer,
1141 _In_ ULONG InputBufferLength,
1142 _Out_writes_bytes_opt_(OutputBufferLength) PVOID OutputBuffer,
1143 _In_ ULONG OutputBufferLength
1150 _In_ HANDLE FileHandle,
1151 _In_opt_ HANDLE Event,
1153 _In_opt_ PVOID ApcContext,
1154 _Out_ PIO_STATUS_BLOCK IoStatusBlock,
1155 _In_ ULONG FsControlCode,
1156 _In_reads_bytes_opt_(InputBufferLength) PVOID InputBuffer,
1157 _In_ ULONG InputBufferLength,
1158 _Out_writes_bytes_opt_(OutputBufferLength) PVOID OutputBuffer,
1159 _In_ ULONG OutputBufferLength
1166 _In_ HANDLE FileHandle,
1167 _In_opt_ HANDLE Event,
1169 _In_opt_ PVOID ApcContext,
1170 _Out_ PIO_STATUS_BLOCK IoStatusBlock,
1171 _Out_writes_bytes_(Length) PVOID Buffer,
1173 _In_opt_ PLARGE_INTEGER ByteOffset,
1181 _In_ HANDLE FileHandle,
1182 _In_opt_ HANDLE Event,
1184 _In_opt_ PVOID ApcContext,
1185 _Out_ PIO_STATUS_BLOCK IoStatusBlock,
1186 _In_reads_bytes_(Length) PVOID Buffer,
1188 _In_opt_ PLARGE_INTEGER ByteOffset,
1196 _In_ HANDLE FileHandle,
1197 _In_opt_ HANDLE Event,
1199 _In_opt_ PVOID ApcContext,
1200 _Out_ PIO_STATUS_BLOCK IoStatusBlock,
1201 _In_ PFILE_SEGMENT_ELEMENT SegmentArray,
1203 _In_opt_ PLARGE_INTEGER ByteOffset,
1211 _In_ HANDLE FileHandle,
1212 _In_opt_ HANDLE Event,
1214 _In_opt_ PVOID ApcContext,
1215 _Out_ PIO_STATUS_BLOCK IoStatusBlock,
1216 _In_ PFILE_SEGMENT_ELEMENT SegmentArray,
1218 _In_opt_ PLARGE_INTEGER ByteOffset,
1226 _In_ HANDLE FileHandle,
1227 _In_opt_ HANDLE Event,
1229 _In_opt_ PVOID ApcContext,
1230 _Out_ PIO_STATUS_BLOCK IoStatusBlock,
1231 _In_ PLARGE_INTEGER ByteOffset,
1232 _In_ PLARGE_INTEGER Length,
1234 _In_ BOOLEAN FailImmediately,
1235 _In_ BOOLEAN ExclusiveLock
1242 _In_ HANDLE FileHandle,
1243 _Out_ PIO_STATUS_BLOCK IoStatusBlock,
1244 _In_ PLARGE_INTEGER ByteOffset,
1245 _In_ PLARGE_INTEGER Length,
1254 _Out_ PFILE_BASIC_INFORMATION FileInformation
1262 _Out_ PFILE_NETWORK_OPEN_INFORMATION FileInformation
1269 _In_ HANDLE FileHandle,
1270 _In_opt_ HANDLE Event,
1272 _In_opt_ PVOID ApcContext,
1273 _Out_ PIO_STATUS_BLOCK IoStatusBlock,
1274 _Out_writes_bytes_(Length) PVOID Buffer,
1276 _In_ ULONG CompletionFilter,
1277 _In_ BOOLEAN WatchTree
1296 #ifndef IO_COMPLETION_QUERY_STATE
1297 #define IO_COMPLETION_QUERY_STATE 0x0001
1314 _Out_ PHANDLE IoCompletionHandle,
1315 _In_ ACCESS_MASK DesiredAccess,
1317 _In_opt_ ULONG Count
1324 _Out_ PHANDLE IoCompletionHandle,
1325 _In_ ACCESS_MASK DesiredAccess,
1333 _In_ HANDLE IoCompletionHandle,
1335 _Out_writes_bytes_(IoCompletionInformation) PVOID IoCompletionInformation,
1336 _In_ ULONG IoCompletionInformationLength,
1337 _Out_opt_ PULONG ReturnLength
1344 _In_ HANDLE IoCompletionHandle,
1345 _In_opt_ PVOID KeyContext,
1346 _In_opt_ PVOID ApcContext,
1347 _In_ NTSTATUS IoStatus,
1348 _In_ ULONG_PTR IoStatusInformation
1351 #if (PHNT_VERSION >= PHNT_WIN7)
1356 _In_ HANDLE IoCompletionHandle,
1357 _In_ HANDLE IoCompletionPacketHandle,
1358 _In_opt_ PVOID KeyContext,
1359 _In_opt_ PVOID ApcContext,
1360 _In_ NTSTATUS IoStatus,
1361 _In_ ULONG_PTR IoStatusInformation
1369 _In_ HANDLE IoCompletionHandle,
1370 _Out_ PVOID *KeyContext,
1371 _Out_ PVOID *ApcContext,
1372 _Out_ PIO_STATUS_BLOCK IoStatusBlock,
1373 _In_opt_ PLARGE_INTEGER Timeout
1376 #if (PHNT_VERSION >= PHNT_VISTA)
1381 _In_ HANDLE IoCompletionHandle,
1382 _Out_writes_to_(Count, *NumEntriesRemoved) PFILE_IO_COMPLETION_INFORMATION IoCompletionInformation,
1384 _Out_ PULONG NumEntriesRemoved,
1385 _In_opt_ PLARGE_INTEGER Timeout,
1386 _In_ BOOLEAN Alertable
1392 #if (PHNT_VERSION >= PHNT_WIN8)
1398 _Out_ PHANDLE WaitCompletionPacketHandle,
1399 _In_ ACCESS_MASK DesiredAccess,
1407 _In_ HANDLE WaitCompletionPacketHandle,
1408 _In_ HANDLE IoCompletionHandle,
1409 _In_ HANDLE TargetObjectHandle,
1410 _In_opt_ PVOID KeyContext,
1411 _In_opt_ PVOID ApcContext,
1412 _In_ NTSTATUS IoStatus,
1413 _In_ ULONG_PTR IoStatusInformation,
1414 _Out_opt_ PBOOLEAN AlreadySignaled
1421 _In_ HANDLE WaitCompletionPacketHandle,
1422 _In_ BOOLEAN RemoveSignaledPacket
1454 #if (PHNT_VERSION >= PHNT_WIN7)
1459 _In_ HANDLE SessionHandle,
1460 _In_ ULONG ChangeSequenceNumber,
1461 _In_ PLARGE_INTEGER ChangeTimeStamp,
1465 _In_reads_bytes_opt_(PayloadSize) PVOID Payload,
1466 _In_ ULONG PayloadSize
1535 #define SYMLINK_FLAG_RELATIVE 1
1570 #define FSCTL_PIPE_ASSIGN_EVENT CTL_CODE(FILE_DEVICE_NAMED_PIPE, 0, METHOD_BUFFERED, FILE_ANY_ACCESS)
1571 #define FSCTL_PIPE_DISCONNECT CTL_CODE(FILE_DEVICE_NAMED_PIPE, 1, METHOD_BUFFERED, FILE_ANY_ACCESS)
1572 #define FSCTL_PIPE_LISTEN CTL_CODE(FILE_DEVICE_NAMED_PIPE, 2, METHOD_BUFFERED, FILE_ANY_ACCESS)
1573 #define FSCTL_PIPE_PEEK CTL_CODE(FILE_DEVICE_NAMED_PIPE, 3, METHOD_BUFFERED, FILE_READ_DATA)
1574 #define FSCTL_PIPE_QUERY_EVENT CTL_CODE(FILE_DEVICE_NAMED_PIPE, 4, METHOD_BUFFERED, FILE_ANY_ACCESS)
1575 #define FSCTL_PIPE_TRANSCEIVE CTL_CODE(FILE_DEVICE_NAMED_PIPE, 5, METHOD_NEITHER, FILE_READ_DATA | FILE_WRITE_DATA)
1576 #define FSCTL_PIPE_WAIT CTL_CODE(FILE_DEVICE_NAMED_PIPE, 6, METHOD_BUFFERED, FILE_ANY_ACCESS)
1577 #define FSCTL_PIPE_IMPERSONATE CTL_CODE(FILE_DEVICE_NAMED_PIPE, 7, METHOD_BUFFERED, FILE_ANY_ACCESS)
1578 #define FSCTL_PIPE_SET_CLIENT_PROCESS CTL_CODE(FILE_DEVICE_NAMED_PIPE, 8, METHOD_BUFFERED, FILE_ANY_ACCESS)
1579 #define FSCTL_PIPE_QUERY_CLIENT_PROCESS CTL_CODE(FILE_DEVICE_NAMED_PIPE, 9, METHOD_BUFFERED, FILE_ANY_ACCESS)
1580 #define FSCTL_PIPE_GET_PIPE_ATTRIBUTE CTL_CODE(FILE_DEVICE_NAMED_PIPE, 10, METHOD_BUFFERED, FILE_ANY_ACCESS)
1581 #define FSCTL_PIPE_SET_PIPE_ATTRIBUTE CTL_CODE(FILE_DEVICE_NAMED_PIPE, 11, METHOD_BUFFERED, FILE_ANY_ACCESS)
1582 #define FSCTL_PIPE_GET_CONNECTION_ATTRIBUTE CTL_CODE(FILE_DEVICE_NAMED_PIPE, 12, METHOD_BUFFERED, FILE_ANY_ACCESS)
1583 #define FSCTL_PIPE_SET_CONNECTION_ATTRIBUTE CTL_CODE(FILE_DEVICE_NAMED_PIPE, 13, METHOD_BUFFERED, FILE_ANY_ACCESS)
1584 #define FSCTL_PIPE_GET_HANDLE_ATTRIBUTE CTL_CODE(FILE_DEVICE_NAMED_PIPE, 14, METHOD_BUFFERED, FILE_ANY_ACCESS)
1585 #define FSCTL_PIPE_SET_HANDLE_ATTRIBUTE CTL_CODE(FILE_DEVICE_NAMED_PIPE, 15, METHOD_BUFFERED, FILE_ANY_ACCESS)
1586 #define FSCTL_PIPE_FLUSH CTL_CODE(FILE_DEVICE_NAMED_PIPE, 16, METHOD_BUFFERED, FILE_WRITE_DATA)
1588 #define FSCTL_PIPE_INTERNAL_READ CTL_CODE(FILE_DEVICE_NAMED_PIPE, 2045, METHOD_BUFFERED, FILE_READ_DATA)
1589 #define FSCTL_PIPE_INTERNAL_WRITE CTL_CODE(FILE_DEVICE_NAMED_PIPE, 2046, METHOD_BUFFERED, FILE_WRITE_DATA)
1590 #define FSCTL_PIPE_INTERNAL_TRANSCEIVE CTL_CODE(FILE_DEVICE_NAMED_PIPE, 2047, METHOD_NEITHER, FILE_READ_DATA | FILE_WRITE_DATA)
1591 #define FSCTL_PIPE_INTERNAL_READ_OVFLOW CTL_CODE(FILE_DEVICE_NAMED_PIPE, 2048, METHOD_BUFFERED, FILE_READ_DATA)
1595 #define FILE_PIPE_READ_DATA 0x00000000
1596 #define FILE_PIPE_WRITE_SPACE 0x00000001
1637 #if !defined(BUILD_WOW6432)
1646 #define FILE_PIPE_COMPUTER_NAME_LENGTH 15
1651 #if !defined(BUILD_WOW6432)
1664 #define MAILSLOT_CLASS_FIRSTCLASS 1
1665 #define MAILSLOT_CLASS_SECONDCLASS 2
1667 #define FSCTL_MAILSLOT_PEEK CTL_CODE(FILE_DEVICE_MAILSLOT, 0, METHOD_NEITHER, FILE_READ_DATA)