example: Remove outdated config files from tridge
[Samba.git] / source3 / include / trans2.h
blob3ed42a3f0b96c7a620ef9e5c27fb43664ebf41a0
1 /*
2 Unix SMB/CIFS implementation.
3 SMB transaction2 handling
5 Copyright (C) James Peach 2007
6 Copyright (C) Jeremy Allison 1994-2002.
8 Extensively modified by Andrew Tridgell, 1995
10 This program is free software; you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation; either version 3 of the License, or
13 (at your option) any later version.
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
20 You should have received a copy of the GNU General Public License
21 along with this program. If not, see <http://www.gnu.org/licenses/>.
24 #ifndef _TRANS2_H_
25 #define _TRANS2_H_
27 /* Define the structures needed for the trans2 calls. */
29 /*******************************************************
30 For DosFindFirst/DosFindNext - level 1
32 MAXFILENAMELEN = 255;
33 FDATE == uint16
34 FTIME == uint16
35 ULONG == uint32
36 USHORT == uint16
38 typedef struct _FILEFINDBUF {
39 Byte offset Type name description
40 -------------+-------+-------------------+--------------
41 0 FDATE fdateCreation;
42 2 FTIME ftimeCreation;
43 4 FDATE fdateLastAccess;
44 6 FTIME ftimeLastAccess;
45 8 FDATE fdateLastWrite;
46 10 FTIME ftimeLastWrite;
47 12 ULONG cbFile file length in bytes
48 16 ULONG cbFileAlloc size of file allocation unit
49 20 USHORT attrFile
50 22 UCHAR cchName length of name to follow (not including zero)
51 23 UCHAR achName[MAXFILENAMELEN]; Null terminated name
52 } FILEFINDBUF;
53 *********************************************************/
55 #define l1_fdateCreation 0
56 #define l1_fdateLastAccess 4
57 #define l1_fdateLastWrite 8
58 #define l1_cbFile 12
59 #define l1_cbFileAlloc 16
60 #define l1_attrFile 20
61 #define l1_cchName 22
62 #define l1_achName 23
64 /**********************************************************
65 For DosFindFirst/DosFindNext - level 2
67 typedef struct _FILEFINDBUF2 {
68 Byte offset Type name description
69 -------------+-------+-------------------+--------------
70 0 FDATE fdateCreation;
71 2 FTIME ftimeCreation;
72 4 FDATE fdateLastAccess;
73 6 FTIME ftimeLastAccess;
74 8 FDATE fdateLastWrite;
75 10 FTIME ftimeLastWrite;
76 12 ULONG cbFile file length in bytes
77 16 ULONG cbFileAlloc size of file allocation unit
78 20 USHORT attrFile
79 22 ULONG cbList Extended attribute list (always 0)
80 26 UCHAR cchName length of name to follow (not including zero)
81 27 UCHAR achName[MAXFILENAMELEN]; Null terminated name
82 } FILEFINDBUF2;
83 *************************************************************/
85 #define l2_fdateCreation 0
86 #define l2_fdateLastAccess 4
87 #define l2_fdateLastWrite 8
88 #define l2_cbFile 12
89 #define l2_cbFileAlloc 16
90 #define l2_attrFile 20
91 #define l2_cbList 22
92 #define l2_cchName 26
93 #define l2_achName 27
96 /**********************************************************
97 For DosFindFirst/DosFindNext - level 260
99 typedef struct _FILEFINDBUF260 {
100 Byte offset Type name description
101 -------------+-------+-------------------+--------------
102 0 ULONG NextEntryOffset;
103 4 ULONG FileIndex;
104 8 LARGE_INTEGER CreationTime;
105 16 LARGE_INTEGER LastAccessTime;
106 24 LARGE_INTEGER LastWriteTime;
107 32 LARGE_INTEGER ChangeTime;
108 40 LARGE_INTEGER EndOfFile;
109 48 LARGE_INTEGER AllocationSize;
110 56 ULONG FileAttributes;
111 60 ULONG FileNameLength;
112 64 ULONG EaSize;
113 68 CHAR ShortNameLength;
114 70 UNICODE ShortName[12];
115 94 UNICODE FileName[];
116 *************************************************************/
118 #define l260_achName 94
121 /**********************************************************
122 For DosQueryPathInfo/DosQueryFileInfo/DosSetPathInfo/
123 DosSetFileInfo - level 1
125 typedef struct _FILESTATUS {
126 Byte offset Type name description
127 -------------+-------+-------------------+--------------
128 0 FDATE fdateCreation;
129 2 FTIME ftimeCreation;
130 4 FDATE fdateLastAccess;
131 6 FTIME ftimeLastAccess;
132 8 FDATE fdateLastWrite;
133 10 FTIME ftimeLastWrite;
134 12 ULONG cbFile file length in bytes
135 16 ULONG cbFileAlloc size of file allocation unit
136 20 USHORT attrFile
137 } FILESTATUS;
138 *************************************************************/
140 /* Use the l1_ defines from DosFindFirst */
142 /**********************************************************
143 For DosQueryPathInfo/DosQueryFileInfo/DosSetPathInfo/
144 DosSetFileInfo - level 2
146 typedef struct _FILESTATUS2 {
147 Byte offset Type name description
148 -------------+-------+-------------------+--------------
149 0 FDATE fdateCreation;
150 2 FTIME ftimeCreation;
151 4 FDATE fdateLastAccess;
152 6 FTIME ftimeLastAccess;
153 8 FDATE fdateLastWrite;
154 10 FTIME ftimeLastWrite;
155 12 ULONG cbFile file length in bytes
156 16 ULONG cbFileAlloc size of file allocation unit
157 20 USHORT attrFile
158 22 ULONG cbList Length of EA's (0)
159 } FILESTATUS2;
160 *************************************************************/
162 /* Use the l2_ #defines from DosFindFirst */
164 /**********************************************************
165 For DosQFSInfo/DosSetFSInfo - level 1
167 typedef struct _FSALLOCATE {
168 Byte offset Type name description
169 -------------+-------+-------------------+--------------
170 0 ULONG idFileSystem id of file system
171 4 ULONG cSectorUnit number of sectors per allocation unit
172 8 ULONG cUnit number of allocation units
173 12 ULONG cUnitAvail Available allocation units
174 16 USHORT cbSector bytes per sector
175 } FSALLOCATE;
176 *************************************************************/
178 #define l1_idFileSystem 0
179 #define l1_cSectorUnit 4
180 #define l1_cUnit 8
181 #define l1_cUnitAvail 12
182 #define l1_cbSector 16
184 /**********************************************************
185 For DosQFSInfo/DosSetFSInfo - level 2
187 typedef struct _FSINFO {
188 Byte offset Type name description
189 -------------+-------+-------------------+--------------
190 0 FDATE vol_fdateCreation
191 2 FTIME vol_ftimeCreation
192 4 UCHAR vol_cch length of volume name (excluding NULL)
193 5 UCHAR vol_szVolLabel[12] volume name
194 } FSINFO;
195 *************************************************************/
197 #define SMB_INFO_STANDARD 1 /* FILESTATUS3 struct */
198 #define SMB_INFO_SET_EA 2 /* EAOP2 struct, only valid on set not query */
199 #define SMB_INFO_QUERY_EA_SIZE 2 /* FILESTATUS4 struct, only valid on query not set */
200 #define SMB_INFO_QUERY_EAS_FROM_LIST 3 /* only valid on query not set */
201 #define SMB_INFO_QUERY_ALL_EAS 4 /* only valid on query not set */
202 #define SMB_INFO_IS_NAME_VALID 6
203 #define SMB_INFO_STANDARD_LONG 11 /* similar to level 1, ie struct FileStatus3 */
204 #define SMB_QUERY_EA_SIZE_LONG 12 /* similar to level 2, ie struct FileStatus4 */
205 #define SMB_QUERY_FS_LABEL_INFO 0x101
206 #define SMB_QUERY_FS_VOLUME_INFO 0x102
207 #define SMB_QUERY_FS_SIZE_INFO 0x103
208 #define SMB_QUERY_FS_DEVICE_INFO 0x104
209 #define SMB_QUERY_FS_ATTRIBUTE_INFO 0x105
210 #if 0
211 #define SMB_QUERY_FS_QUOTA_INFO
212 #endif
214 #define l2_vol_fdateCreation 0
215 #define l2_vol_cch 4
216 #define l2_vol_szVolLabel 5
219 #define SMB_QUERY_FILE_BASIC_INFO 0x101
220 #define SMB_QUERY_FILE_STANDARD_INFO 0x102
221 #define SMB_QUERY_FILE_EA_INFO 0x103
222 #define SMB_QUERY_FILE_NAME_INFO 0x104
223 #define SMB_QUERY_FILE_ALLOCATION_INFO 0x105
224 #define SMB_QUERY_FILE_END_OF_FILEINFO 0x106
225 #define SMB_QUERY_FILE_ALL_INFO 0x107
226 #define SMB_QUERY_FILE_ALT_NAME_INFO 0x108
227 #define SMB_QUERY_FILE_STREAM_INFO 0x109
228 #define SMB_QUERY_COMPRESSION_INFO 0x10b
230 #define SMB_FIND_INFO_STANDARD 1
231 #define SMB_FIND_EA_SIZE 2
232 #define SMB_FIND_EA_LIST 3
233 #define SMB_FIND_FILE_DIRECTORY_INFO 0x101
234 #define SMB_FIND_FILE_FULL_DIRECTORY_INFO 0x102
235 #define SMB_FIND_FILE_NAMES_INFO 0x103
236 #define SMB_FIND_FILE_BOTH_DIRECTORY_INFO 0x104
237 #define SMB_FIND_ID_FULL_DIRECTORY_INFO 0x105
238 #define SMB_FIND_ID_BOTH_DIRECTORY_INFO 0x106
240 #define SMB_SET_FILE_BASIC_INFO 0x101
241 #define SMB_SET_FILE_DISPOSITION_INFO 0x102
242 #define SMB_SET_FILE_ALLOCATION_INFO 0x103
243 #define SMB_SET_FILE_END_OF_FILE_INFO 0x104
245 /* Query FS info. */
246 #define SMB_INFO_ALLOCATION 1
247 #define SMB_INFO_VOLUME 2
250 * Thursby MAC extensions....
254 * MAC CIFS Extensions have the range 0x300 - 0x2FF reserved.
255 * Supposedly Microsoft have agreed to this.
258 #define MIN_MAC_INFO_LEVEL 0x300
259 #define MAX_MAC_INFO_LEVEL 0x3FF
261 #define SMB_MAC_QUERY_FS_INFO 0x301
263 #define DIRLEN_GUESS (45+MAX(l1_achName,l2_achName))
266 * DeviceType and Characteristics returned in a
267 * SMB_QUERY_FS_DEVICE_INFO call.
270 #define DEVICETYPE_CD_ROM 0x2
271 #define DEVICETYPE_CD_ROM_FILE_SYSTEM 0x3
272 #define DEVICETYPE_DISK 0x7
273 #define DEVICETYPE_DISK_FILE_SYSTEM 0x8
274 #define DEVICETYPE_FILE_SYSTEM 0x9
276 /* Characteristics. */
277 #define TYPE_REMOVABLE_MEDIA 0x1
278 #define TYPE_READ_ONLY_DEVICE 0x2
279 #define TYPE_FLOPPY 0x4
280 #define TYPE_WORM 0x8
281 #define TYPE_REMOTE 0x10
282 #define TYPE_MOUNTED 0x20
283 #define TYPE_VIRTUAL 0x40
285 /* SMB_FS_SECTOR_SIZE_INFORMATION values */
286 #define SSINFO_FLAGS_ALIGNED_DEVICE 0x00000001
287 #define SSINFO_FLAGS_PARTITION_ALIGNED_ON_DEVICE 0x00000002
288 #define SSINFO_FLAGS_NO_SEEK_PENALTY 0x00000004
289 #define SSINFO_FLAGS_TRIM_ENABLED 0x00000008
291 #define SSINFO_OFFSET_UNKNOWN 0xffffffff
293 /* MS-FSCC 2.4 File Information Classes */
295 #define FSCC_FILE_DIRECTORY_INFORMATION 1
296 #define FSCC_FILE_FULL_DIRECTORY_INFORMATION 2
297 #define FSCC_FILE_BOTH_DIRECTORY_INFORMATION 3
298 #define FSCC_FILE_BASIC_INFORMATION 4
299 #define FSCC_FILE_STANDARD_INFORMATION 5
300 #define FSCC_FILE_INTERNAL_INFORMATION 6
301 #define FSCC_FILE_EA_INFORMATION 7
302 #define FSCC_FILE_ACCESS_INFORMATION 8
303 #define FSCC_FILE_NAME_INFORMATION 9
304 #define FSCC_FILE_RENAME_INFORMATION 10
305 #define FSCC_FILE_LINK_INFORMATION 11
306 #define FSCC_FILE_NAMES_INFORMATION 12
307 #define FSCC_FILE_DISPOSITION_INFORMATION 13
308 #define FSCC_FILE_POSITION_INFORMATION 14
309 #define FSCC_FILE_FULL_EA_INFORMATION 15
310 #define FSCC_FILE_MODE_INFORMATION 16
311 #define FSCC_FILE_ALIGNMENT_INFORMATION 17
312 #define FSCC_FILE_ALL_INFORMATION 18
313 #define FSCC_FILE_ALLOCATION_INFORMATION 19
314 #define FSCC_FILE_END_OF_FILE_INFORMATION 20
315 #define FSCC_FILE_ALTERNATE_NAME_INFORMATION 21
316 #define FSCC_FILE_STREAM_INFORMATION 22
317 #define FSCC_FILE_PIPE_INFORMATION 23
318 #define FSCC_FILE_PIPE_LOCAL_INFORMATION 24
319 #define FSCC_FILE_PIPE_REMOTE_INFORMATION 25
320 #define FSCC_FILE_MAILSLOT_QUERY_INFORMATION 26
321 #define FSCC_FILE_MAILSLOT_SET_INFORMATION 27
322 #define FSCC_FILE_COMPRESSION_INFORMATION 28
323 #define FSCC_FILE_OBJECTID_INFORMATION 29
324 #define FSCC_FILE_COMPLETION_INFORMATION 30
325 #define FSCC_FILE_MOVE_CLUSTER_INFORMATION 31
326 #define FSCC_FILE_QUOTA_INFORMATION 32
327 #define FSCC_FILE_REPARSEPOINT_INFORMATION 33
328 #define FSCC_FILE_NETWORK_OPEN_INFORMATION 34
329 #define FSCC_FILE_ATTRIBUTE_TAG_INFORMATION 35
330 #define FSCC_FILE_TRACKING_INFORMATION 36
331 #define FSCC_FILE_ID_BOTH_DIRECTORY_INFORMATION 37
332 #define FSCC_FILE_ID_FULL_DIRECTORY_INFORMATION 38
333 #define FSCC_FILE_VALID_DATA_LENGTH_INFORMATION 39
334 #define FSCC_FILE_SHORT_NAME_INFORMATION 40
335 #define FSCC_FILE_SFIO_RESERVE_INFORMATION 44
336 #define FSCC_FILE_SFIO_VOLUME_INFORMATION 45
337 #define FSCC_FILE_HARD_LINK_INFORMATION 46
338 #define FSCC_FILE_NORMALIZED_NAME_INFORMATION 48
339 #define FSCC_FILE_ID_GLOBAL_TX_DIRECTORY_INFORMATION 50
340 #define FSCC_FILE_STANDARD_LINK_INFORMATION 54
341 #define FSCC_FILE_MAXIMUM_INFORMATION 55
343 /* As yet undefined FSCC_ code for POSIX info level. */
344 #define SMB2_FILE_POSIX_INFORMATION 100
346 /* MS-FSCC 2.4 File System Information Classes */
348 #define FSCC_FS_VOLUME_INFORMATION 1
349 #define FSCC_FS_LABEL_INFORMATION 2
350 #define FSCC_FS_SIZE_INFORMATION 3
351 #define FSCC_FS_DEVICE_INFORMATION 4
352 #define FSCC_FS_ATTRIBUTE_INFORMATION 5
353 #define FSCC_FS_QUOTA_INFORMATION 6
354 #define FSCC_FS_FULL_SIZE_INFORMATION 7
355 #define FSCC_FS_OBJECTID_INFORMATION 8
356 #define FSCC_FS_SECTOR_SIZE_INFORMATION 11
358 /* NT passthrough levels... */
360 #define NT_PASSTHROUGH_OFFSET 1000
361 #define SMB2_INFO_SPECIAL 0xFF00
363 #define SMB_FILE_DIRECTORY_INFORMATION (FSCC_FILE_DIRECTORY_INFORMATION + NT_PASSTHROUGH_OFFSET)
364 #define SMB_FILE_FULL_DIRECTORY_INFORMATION (FSCC_FILE_FULL_DIRECTORY_INFORMATION + NT_PASSTHROUGH_OFFSET)
365 #define SMB_FILE_BOTH_DIRECTORY_INFORMATION (FSCC_FILE_BOTH_DIRECTORY_INFORMATION + NT_PASSTHROUGH_OFFSET)
366 #define SMB_FILE_BASIC_INFORMATION (FSCC_FILE_BASIC_INFORMATION + NT_PASSTHROUGH_OFFSET)
367 #define SMB_FILE_STANDARD_INFORMATION (FSCC_FILE_STANDARD_INFORMATION + NT_PASSTHROUGH_OFFSET)
368 #define SMB_FILE_INTERNAL_INFORMATION (FSCC_FILE_INTERNAL_INFORMATION + NT_PASSTHROUGH_OFFSET)
369 #define SMB_FILE_EA_INFORMATION (FSCC_FILE_EA_INFORMATION + NT_PASSTHROUGH_OFFSET)
370 #define SMB_FILE_ACCESS_INFORMATION (FSCC_FILE_ACCESS_INFORMATION + NT_PASSTHROUGH_OFFSET)
371 #define SMB_FILE_NAME_INFORMATION (FSCC_FILE_NAME_INFORMATION + NT_PASSTHROUGH_OFFSET)
372 #define SMB_FILE_RENAME_INFORMATION (FSCC_FILE_RENAME_INFORMATION + NT_PASSTHROUGH_OFFSET)
373 #define SMB_FILE_LINK_INFORMATION (FSCC_FILE_LINK_INFORMATION + NT_PASSTHROUGH_OFFSET)
374 #define SMB_FILE_NAMES_INFORMATION (FSCC_FILE_NAMES_INFORMATION + NT_PASSTHROUGH_OFFSET)
375 #define SMB_FILE_DISPOSITION_INFORMATION (FSCC_FILE_DISPOSITION_INFORMATION + NT_PASSTHROUGH_OFFSET)
376 #define SMB_FILE_POSITION_INFORMATION (FSCC_FILE_POSITION_INFORMATION + NT_PASSTHROUGH_OFFSET)
377 #define SMB_FILE_FULL_EA_INFORMATION (FSCC_FILE_FULL_EA_INFORMATION + NT_PASSTHROUGH_OFFSET)
378 #define SMB_FILE_MODE_INFORMATION (FSCC_FILE_MODE_INFORMATION + NT_PASSTHROUGH_OFFSET)
379 #define SMB_FILE_ALIGNMENT_INFORMATION (FSCC_FILE_ALIGNMENT_INFORMATION + NT_PASSTHROUGH_OFFSET)
380 #define SMB_FILE_ALL_INFORMATION (FSCC_FILE_ALL_INFORMATION + NT_PASSTHROUGH_OFFSET)
381 #define SMB_FILE_ALLOCATION_INFORMATION (FSCC_FILE_ALLOCATION_INFORMATION + NT_PASSTHROUGH_OFFSET)
382 #define SMB_FILE_END_OF_FILE_INFORMATION (FSCC_FILE_END_OF_FILE_INFORMATION + NT_PASSTHROUGH_OFFSET)
383 #define SMB_FILE_ALTERNATE_NAME_INFORMATION (FSCC_FILE_ALTERNATE_NAME_INFORMATION + NT_PASSTHROUGH_OFFSET)
384 #define SMB_FILE_STREAM_INFORMATION (FSCC_FILE_STREAM_INFORMATION + NT_PASSTHROUGH_OFFSET)
385 #define SMB_FILE_PIPE_INFORMATION (FSCC_FILE_PIPE_INFORMATION + NT_PASSTHROUGH_OFFSET)
386 #define SMB_FILE_PIPE_LOCAL_INFORMATION (FSCC_FILE_PIPE_LOCAL_INFORMATION + NT_PASSTHROUGH_OFFSET)
387 #define SMB_FILE_PIPE_REMOTE_INFORMATION (FSCC_FILE_PIPE_REMOTE_INFORMATION + NT_PASSTHROUGH_OFFSET)
388 #define SMB_FILE_MAILSLOT_QUERY_INFORMATION (FSCC_FILE_MAILSLOT_QUERY_INFORMATION + NT_PASSTHROUGH_OFFSET)
389 #define SMB_FILE_MAILSLOT_SET_INFORMATION (FSCC_FILE_MAILSLOT_SET_INFORMATION + NT_PASSTHROUGH_OFFSET)
390 #define SMB_FILE_COMPRESSION_INFORMATION (FSCC_FILE_COMPRESSION_INFORMATION + NT_PASSTHROUGH_OFFSET)
391 #define SMB_FILE_OBJECTID_INFORMATION (FSCC_FILE_OBJECTID_INFORMATION + NT_PASSTHROUGH_OFFSET)
392 #define SMB_FILE_COMPLETION_INFORMATION (FSCC_FILE_COMPLETION_INFORMATION + NT_PASSTHROUGH_OFFSET)
393 #define SMB_FILE_MOVE_CLUSTER_INFORMATION (FSCC_FILE_MOVE_CLUSTER_INFORMATION + NT_PASSTHROUGH_OFFSET)
394 #define SMB_FILE_QUOTA_INFORMATION (FSCC_FILE_QUOTA_INFORMATION + NT_PASSTHROUGH_OFFSET)
395 #define SMB_FILE_REPARSEPOINT_INFORMATION (FSCC_FILE_REPARSEPOINT_INFORMATION + NT_PASSTHROUGH_OFFSET)
396 #define SMB_FILE_NETWORK_OPEN_INFORMATION (FSCC_FILE_NETWORK_OPEN_INFORMATION + NT_PASSTHROUGH_OFFSET)
397 #define SMB_FILE_ATTRIBUTE_TAG_INFORMATION (FSCC_FILE_ATTRIBUTE_TAG_INFORMATION + NT_PASSTHROUGH_OFFSET)
398 #define SMB_FILE_TRACKING_INFORMATION (FSCC_FILE_TRACKING_INFORMATION + NT_PASSTHROUGH_OFFSET)
399 #define SMB_FILE_ID_BOTH_DIRECTORY_INFORMATION (FSCC_FILE_ID_BOTH_DIRECTORY_INFORMATION + NT_PASSTHROUGH_OFFSET)
400 #define SMB_FILE_ID_FULL_DIRECTORY_INFORMATION (FSCC_FILE_ID_FULL_DIRECTORY_INFORMATION + NT_PASSTHROUGH_OFFSET)
401 #define SMB_FILE_VALID_DATA_LENGTH_INFORMATION (FSCC_FILE_VALID_DATA_LENGTH_INFORMATION + NT_PASSTHROUGH_OFFSET)
402 #define SMB_FILE_SHORT_NAME_INFORMATION (FSCC_FILE_SHORT_NAME_INFORMATION + NT_PASSTHROUGH_OFFSET)
403 #define SMB_FILE_SFIO_RESERVE_INFORMATION (FSCC_FILE_SFIO_RESERVE_INFORMATION + NT_PASSTHROUGH_OFFSET)
404 #define SMB_FILE_SFIO_VOLUME_INFORMATION (FSCC_FILE_SFIO_VOLUME_INFORMATION + NT_PASSTHROUGH_OFFSET)
405 #define SMB_FILE_HARD_LINK_INFORMATION (FSCC_FILE_HARD_LINK_INFORMATION + NT_PASSTHROUGH_OFFSET)
406 #define SMB_FILE_NORMALIZED_NAME_INFORMATION (FSCC_FILE_NORMALIZED_NAME_INFORMATION + NT_PASSTHROUGH_OFFSET)
407 #define SMB_FILE_ID_GLOBAL_TX_DIRECTORY_INFORMATION (FSCC_FILE_ID_GLOBAL_TX_DIRECTORY_INFORMATION + NT_PASSTHROUGH_OFFSET)
408 #define SMB_FILE_STANDARD_LINK_INFORMATION (FSCC_FILE_STANDARD_LINK_INFORMATION + NT_PASSTHROUGH_OFFSET)
409 #define SMB_FILE_MAXIMUM_INFORMATION (FSCC_FILE_MAXIMUM_INFORMATION + NT_PASSTHROUGH_OFFSET)
410 /* Internal mapped versions. */
411 #define SMB2_FILE_RENAME_INFORMATION_INTERNAL (FSCC_FILE_RENAME_INFORMATION + SMB2_INFO_SPECIAL)
412 #define SMB2_FILE_FULL_EA_INFORMATION (FSCC_FILE_FULL_EA_INFORMATION + SMB2_INFO_SPECIAL)
413 #define SMB2_FILE_ALL_INFORMATION (FSCC_FILE_ALL_INFORMATION + SMB2_INFO_SPECIAL)
414 #define SMB2_FILE_POSIX_INFORMATION_INTERNAL (SMB2_FILE_POSIX_INFORMATION + SMB2_INFO_SPECIAL)
415 #define SMB2_FS_POSIX_INFORMATION_INTERNAL 1100
417 /* NT passthrough levels for qfsinfo. */
419 #define SMB_FS_VOLUME_INFORMATION (FSCC_FS_VOLUME_INFORMATION + NT_PASSTHROUGH_OFFSET)
420 #define SMB_FS_LABEL_INFORMATION (FSCC_FS_LABEL_INFORMATION + NT_PASSTHROUGH_OFFSET)
421 #define SMB_FS_SIZE_INFORMATION (FSCC_FS_SIZE_INFORMATION + NT_PASSTHROUGH_OFFSET)
422 #define SMB_FS_DEVICE_INFORMATION (FSCC_FS_DEVICE_INFORMATION + NT_PASSTHROUGH_OFFSET)
423 #define SMB_FS_ATTRIBUTE_INFORMATION (FSCC_FS_ATTRIBUTE_INFORMATION + NT_PASSTHROUGH_OFFSET)
424 #define SMB_FS_QUOTA_INFORMATION (FSCC_FS_QUOTA_INFORMATION + NT_PASSTHROUGH_OFFSET)
425 #define SMB_FS_FULL_SIZE_INFORMATION (FSCC_FS_FULL_SIZE_INFORMATION + NT_PASSTHROUGH_OFFSET)
426 #define SMB_FS_OBJECTID_INFORMATION (FSCC_FS_OBJECTID_INFORMATION + NT_PASSTHROUGH_OFFSET)
427 #define SMB_FS_SECTOR_SIZE_INFORMATION (FSCC_FS_SECTOR_SIZE_INFORMATION + NT_PASSTHROUGH_OFFSET)
429 /* SMB_FS_DEVICE_INFORMATION device types. */
430 #define FILE_DEVICE_CD_ROM 0x2
431 #define FILE_DEVICE_DISK 0x7
433 /* SMB_FS_DEVICE_INFORMATION characteristics. */
434 #define FILE_REMOVABLE_MEDIA 0x001
435 #define FILE_READ_ONLY_DEVICE 0x002
436 #define FILE_FLOPPY_DISKETTE 0x004
437 #define FILE_WRITE_ONCE_MEDIA 0x008
438 #define FILE_REMOTE_DEVICE 0x010
439 #define FILE_DEVICE_IS_MOUNTED 0x020
440 #define FILE_VIRTUAL_VOLUME 0x040
441 #define FILE_DEVICE_SECURE_OPEN 0x100
443 /* flags on trans2 findfirst/findnext that control search */
444 #define FLAG_TRANS2_FIND_CLOSE 0x1
445 #define FLAG_TRANS2_FIND_CLOSE_IF_END 0x2
446 #define FLAG_TRANS2_FIND_REQUIRE_RESUME 0x4
447 #define FLAG_TRANS2_FIND_CONTINUE 0x8
448 #define FLAG_TRANS2_FIND_BACKUP_INTENT 0x10
450 #endif