Fix a small typo in a comment and pretty it up a bit.
[Samba/gebeck_regimport.git] / source3 / include / ntioctl.h
blob17791fde18f13b8ba2353106bf7783dad73ce462
1 /*
2 Unix SMB/CIFS implementation.
3 NT ioctl code constants
4 Copyright (C) Andrew Tridgell 2002
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22 I'm guessing we will need to support a bunch of these eventually. For now
23 we only need the sparse flag
27 /* IOCTL information */
28 /* List of ioctl function codes that look to be of interest to remote clients like this. */
29 /* Need to do some experimentation to make sure they all work remotely. */
30 /* Some of the following such as the encryption/compression ones would be */
31 /* invoked from tools via a specialized hook into the VFS rather than via the */
32 /* standard vfs entry points */
33 #define FSCTL_REQUEST_OPLOCK_LEVEL_1 0x00090000
34 #define FSCTL_REQUEST_OPLOCK_LEVEL_2 0x00090004
35 #define FSCTL_REQUEST_BATCH_OPLOCK 0x00090008
36 #define FSCTL_LOCK_VOLUME 0x00090018
37 #define FSCTL_UNLOCK_VOLUME 0x0009001C
38 #define FSCTL_GET_COMPRESSION 0x0009003C
39 #define FSCTL_SET_COMPRESSION 0x0009C040
40 #define FSCTL_REQUEST_FILTER_OPLOCK 0x0009008C
41 #define FSCTL_FIND_FILES_BY_SID 0x0009008F
42 #define FSCTL_FILESYS_GET_STATISTICS 0x00090090
43 #define FSCTL_SET_REPARSE_POINT 0x000900A4
44 #define FSCTL_GET_REPARSE_POINT 0x000900A8
45 #define FSCTL_DELETE_REPARSE_POINT 0x000900AC
46 #define FSCTL_0x000900C0 0x000900C0
47 #define FSCTL_SET_SPARSE 0x000900C4
48 #define FSCTL_SET_ZERO_DATA 0x000900C8
49 #define FSCTL_SET_ENCRYPTION 0x000900D7
50 #define FSCTL_ENCRYPTION_FSCTL_IO 0x000900DB
51 #define FSCTL_WRITE_RAW_ENCRYPTED 0x000900DF
52 #define FSCTL_READ_RAW_ENCRYPTED 0x000900E3
53 #define FSCTL_SIS_COPYFILE 0x00090100
54 #define FSCTL_SIS_LINK_FILES 0x0009C104
56 #if 0
57 #define FSCTL_SECURITY_ID_CHECK
58 #define FSCTL_DISMOUNT_VOLUME
59 #define FSCTL_GET_NTFS_FILE_RECORD
60 #define FSCTL_ALLOW_EXTENDED_DASD_IO
61 #define FSCTL_RECALL_FILE
62 #define FSCTL_QUERY_ALLOCATED_RANGES
64 #endif
66 #define IO_REPARSE_TAG_MOUNT_POINT 0xA0000003
67 #define IO_REPARSE_TAG_HSM 0xC0000004
68 #define IO_REPARSE_TAG_SIS 0x80000007