s4:dsdb Rework dsdb_write_prefixes_to_ldb() to take a schema
[Samba.git] / source3 / include / ntioctl.h
blobc565b8f9a42c0d53f34e84a404afa01fc6fa5c53
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 3 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, see <http://www.gnu.org/licenses/>.
21 I'm guessing we will need to support a bunch of these eventually. For now
22 we only need the sparse flag
25 #ifndef _NTIOCTL_H
26 #define _NTIOCTL_H
28 /* IOCTL information */
29 /* List of ioctl function codes that look to be of interest to remote clients like this. */
30 /* Need to do some experimentation to make sure they all work remotely. */
31 /* Some of the following such as the encryption/compression ones would be */
32 /* invoked from tools via a specialized hook into the VFS rather than via the */
33 /* standard vfs entry points */
34 #define FSCTL_REQUEST_OPLOCK_LEVEL_1 0x00090000
35 #define FSCTL_REQUEST_OPLOCK_LEVEL_2 0x00090004
36 #define FSCTL_REQUEST_BATCH_OPLOCK 0x00090008
37 #define FSCTL_LOCK_VOLUME 0x00090018
38 #define FSCTL_UNLOCK_VOLUME 0x0009001C
39 #define FSCTL_GET_COMPRESSION 0x0009003C
40 #define FSCTL_SET_COMPRESSION 0x0009C040
41 #define FSCTL_REQUEST_FILTER_OPLOCK 0x0009008C
42 #define FSCTL_FIND_FILES_BY_SID 0x0009008F
43 #define FSCTL_FILESYS_GET_STATISTICS 0x00090090
44 #define FSCTL_SET_OBJECT_ID 0x00090098
45 #define FSCTL_GET_OBJECT_ID 0x0009009C
46 #define FSCTL_SET_REPARSE_POINT 0x000900A4
47 #define FSCTL_GET_REPARSE_POINT 0x000900A8
48 #define FSCTL_DELETE_REPARSE_POINT 0x000900AC
49 #define FSCTL_CREATE_OR_GET_OBJECT_ID 0x000900C0
50 #define FSCTL_SET_SPARSE 0x000900C4
51 #define FSCTL_SET_ZERO_DATA 0x000900C8
52 #define FSCTL_SET_ENCRYPTION 0x000900D7
53 #define FSCTL_ENCRYPTION_FSCTL_IO 0x000900DB
54 #define FSCTL_WRITE_RAW_ENCRYPTED 0x000900DF
55 #define FSCTL_READ_RAW_ENCRYPTED 0x000900E3
56 #define FSCTL_SIS_COPYFILE 0x00090100
57 #define FSCTL_QUERY_ALLOCATED_RANGES 0x000940CF
58 #define FSCTL_SIS_LINK_FILES 0x0009C104
60 #define FSCTL_GET_SHADOW_COPY_DATA 0x00144064 /* KJC -- Shadow Copy information */
62 #if 0
63 #define FSCTL_SECURITY_ID_CHECK
64 #define FSCTL_DISMOUNT_VOLUME
65 #define FSCTL_GET_NTFS_FILE_RECORD
66 #define FSCTL_ALLOW_EXTENDED_DASD_IO
67 #define FSCTL_RECALL_FILE
69 #endif
71 #define IO_REPARSE_TAG_MOUNT_POINT 0xA0000003
72 #define IO_REPARSE_TAG_HSM 0xC0000004
73 #define IO_REPARSE_TAG_SIS 0x80000007
76 /* For FSCTL_GET_SHADOW_COPY_DATA ...*/
77 typedef char SHADOW_COPY_LABEL[25];
79 typedef struct shadow_copy_data {
80 TALLOC_CTX *mem_ctx;
81 /* Total number of shadow volumes currently mounted */
82 uint32 num_volumes;
83 /* Concatenated list of labels */
84 SHADOW_COPY_LABEL *labels;
85 } SHADOW_COPY_DATA;
88 #endif /* _NTIOCTL_H */