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
32
33
34
35
36
37
38
39
40
41
42
43
44 #define FSCTL_DEVICE_DFS (0x0006 << 16)
45 #define FSCTL_DEVICE_FILE_SYSTEM (0x0009 << 16)
46 #define FSCTL_DEVICE_NAMED_PIPE (0x0011 << 16)
47 #define FSCTL_DEVICE_NETWORK_FILE_SYSTEM (0x0014 << 16)
48 #define FSCTL_DEVICE_MASK 0xffff0000
49
50 #define FSCTL_DEVICE_ACCESS_FILE_ANY_ACCESS (0x00 << 14)
51 #define FSCTL_DEVICE_ACCESS_FILE_READ_ACCESS (0x01 << 14)
52 #define FSCTL_DEVICE_ACCESS_FILE_WRITE_ACCESS (0x02 << 14)
53 #define FSCTL_DEVICE_ACCESS_FILE_READ_WRITE_ACCESS (0x03 << 14)
54 #define FSCTL_DEVICE_ACCESS_MASK 0x0000c000
55
56 #define FSCTL_DEVICE_FUNCTION_MASK 0x00003ffc
57
58 #define FSCTL_DEVICE_METHOD_BUFFERED 0x00
59 #define FSCTL_DEVICE_METHOD_IN_DIRECT 0x01
60 #define FSCTL_DEVICE_METHOD_OUT_DIRECT 0x02
61 #define FSCTL_DEVICE_METHOD_NEITHER 0x03
62 #define FSCTL_DEVICE_METHOD_MASK 0x00000003
63
64
65 #define FSCTL_DFS_GET_REFERRALS 0x00060194
66 #define FSCTL_DFS_GET_REFERRALS_EX 0x000601B0
67 #define FSCTL_REQUEST_OPLOCK_LEVEL_1 0x00090000
68 #define FSCTL_REQUEST_OPLOCK_LEVEL_2 0x00090004
69 #define FSCTL_REQUEST_BATCH_OPLOCK 0x00090008
70 #define FSCTL_LOCK_VOLUME 0x00090018
71 #define FSCTL_UNLOCK_VOLUME 0x0009001C
72 #define FSCTL_IS_PATHNAME_VALID 0x0009002C
73 #define FSCTL_GET_COMPRESSION 0x0009003C
74 #define FSCTL_SET_COMPRESSION 0x0009C040
75 #define FSCTL_QUERY_FAT_BPB 0x00090058
76
77 #define FSCTL_FILESYSTEM_GET_STATS 0x00090060
78 #define FSCTL_GET_NTFS_VOLUME_DATA 0x00090064
79 #define FSCTL_GET_RETRIEVAL_POINTERS 0x00090073
80 #define FSCTL_IS_VOLUME_DIRTY 0x00090078
81 #define FSCTL_ALLOW_EXTENDED_DASD_IO 0x00090083
82 #define FSCTL_REQUEST_FILTER_OPLOCK 0x0009008C
83 #define FSCTL_FIND_FILES_BY_SID 0x0009008F
84 #define FSCTL_SET_OBJECT_ID 0x00090098
85 #define FSCTL_GET_OBJECT_ID 0x0009009C
86 #define FSCTL_DELETE_OBJECT_ID 0x000900A0
87 #define FSCTL_SET_REPARSE_POINT 0x000900A4
88 #define FSCTL_GET_REPARSE_POINT 0x000900A8
89 #define FSCTL_DELETE_REPARSE_POINT 0x000900AC
90 #define FSCTL_SET_OBJECT_ID_EXTENDED 0x000900BC
91 #define FSCTL_CREATE_OR_GET_OBJECT_ID 0x000900C0
92 #define FSCTL_SET_SPARSE 0x000900C4
93 #define FSCTL_SET_ZERO_DATA 0x000980C8
94 #define FSCTL_SET_ENCRYPTION 0x000900D7
95 #define FSCTL_ENCRYPTION_FSCTL_IO 0x000900DB
96 #define FSCTL_WRITE_RAW_ENCRYPTED 0x000900DF
97 #define FSCTL_READ_RAW_ENCRYPTED 0x000900E3
98 #define FSCTL_READ_FILE_USN_DATA 0x000900EB
99 #define FSCTL_WRITE_USN_CLOSE_RECORD 0x000900EF
100 #define FSCTL_SIS_COPYFILE 0x00090100
101 #define FSCTL_RECALL_FILE 0x00090117
102 #define FSCTL_QUERY_SPARING_INFO 0x00090138
103 #define FSCTL_SET_ZERO_ON_DEALLOC 0x00090194
104 #define FSCTL_SET_SHORT_NAME_BEHAVIOR 0x000901B4
105 #define FSCTL_GET_INTEGRITY_INFORMATION 0x0009027C
106 #define FSCTL_QUERY_ALLOCATED_RANGES 0x000940CF
107 #define FSCTL_SET_DEFECT_MANAGEMENT 0x00098134
108 #define FSCTL_FILE_LEVEL_TRIM 0x00098208
109 #define FSCTL_DUPLICATE_EXTENTS_TO_FILE 0x00098344
110 #define FSCTL_SIS_LINK_FILES 0x0009C104
111 #define FSCTL_SET_INTEGRITY_INFORMATION 0x0009C280
112 #define FSCTL_PIPE_PEEK 0x0011400C
113 #define FSCTL_PIPE_TRANSCEIVE 0x0011C017
114
115 #define FSCTL_PIPE_WAIT 0x00110018
116
117 #define FSCTL_SRV_ENUMERATE_SNAPSHOTS 0x00144064
118
119 #define FSCTL_SRV_REQUEST_RESUME_KEY 0x00140078
120 #define FSCTL_LMR_REQUEST_RESILIENCY 0x001401D4
121 #define FSCTL_LMR_GET_LINK_TRACK_INF 0x001400E8
122 #define FSCTL_LMR_SET_LINK_TRACK_INF 0x001400EC
123 #define FSCTL_VALIDATE_NEGOTIATE_INFO 0x00140204
124
125 #define FSCTL_SRV_COPYCHUNK 0x001440F2
126 #define FSCTL_SRV_COPYCHUNK_WRITE 0x001480F2
127 #define FSCTL_QUERY_NETWORK_INTERFACE_INFO 0x001401FC
128 #define FSCTL_SRV_READ_HASH 0x001441BB
129
130
131 #define IO_REPARSE_TAG_MOUNT_POINT 0xA0000003
132 #define IO_REPARSE_TAG_HSM 0xC0000004
133 #define IO_REPARSE_TAG_SIS 0x80000007
134 #define IO_REPARSE_TAG_HSM2 0x80000006
135 #define IO_REPARSE_TAG_DRIVER_EXTENDER 0x80000005
136
137 #define IO_REPARSE_TAG_DFS 0x8000000A
138
139 #define IO_REPARSE_TAG_DFSR 0x80000012
140 #define IO_REPARSE_TAG_FILTER_MANAGER 0x8000000B
141
142 #define IO_REPARSE_TAG_SYMLINK 0xA000000C
143 #define IO_REPARSE_TAG_DEDUP 0x80000013
144 #define IO_REPARSE_APPXSTREAM 0xC0000014
145
146 #define IO_REPARSE_TAG_NFS 0x80000014
147
148
149
150
151 #define IO_REPARSE_TAG_AZ_FILE_SYNC 0x8000001e
152
153 #define IO_REPARSE_TAG_LX_SYMLINK 0xA000001D
154 #define IO_REPARSE_TAG_AF_UNIX 0x80000023
155 #define IO_REPARSE_TAG_LX_FIFO 0x80000024
156 #define IO_REPARSE_TAG_LX_CHR 0x80000025
157 #define IO_REPARSE_TAG_LX_BLK 0x80000026
158
159
160
161 #define SMB2_0_IOCTL_IS_FSCTL 0x00000001
162