s3-utils/net_rpc_printer.c: print more info on write error
[Samba/gebeck_regimport.git] / source3 / include / ntioctl.h
blob706cc16267c0c3b8c08617baaa42aca6ff19360e
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_IS_VOLUME_DIRTY 0x00090078
42 #define FSCTL_REQUEST_FILTER_OPLOCK 0x0009008C
43 #define FSCTL_FIND_FILES_BY_SID 0x0009008F
44 #define FSCTL_FILESYS_GET_STATISTICS 0x00090090
45 #define FSCTL_SET_OBJECT_ID 0x00090098
46 #define FSCTL_GET_OBJECT_ID 0x0009009C
47 #define FSCTL_SET_REPARSE_POINT 0x000900A4
48 #define FSCTL_GET_REPARSE_POINT 0x000900A8
49 #define FSCTL_DELETE_REPARSE_POINT 0x000900AC
50 #define FSCTL_CREATE_OR_GET_OBJECT_ID 0x000900C0
51 #define FSCTL_SET_SPARSE 0x000900C4
52 #define FSCTL_SET_ZERO_DATA 0x000900C8
53 #define FSCTL_SET_ENCRYPTION 0x000900D7
54 #define FSCTL_ENCRYPTION_FSCTL_IO 0x000900DB
55 #define FSCTL_WRITE_RAW_ENCRYPTED 0x000900DF
56 #define FSCTL_READ_RAW_ENCRYPTED 0x000900E3
57 #define FSCTL_SIS_COPYFILE 0x00090100
58 #define FSCTL_QUERY_ALLOCATED_RANGES 0x000940CF
59 #define FSCTL_SIS_LINK_FILES 0x0009C104
61 #define FSCTL_GET_SHADOW_COPY_DATA 0x00144064 /* KJC -- Shadow Copy information */
63 #if 0
64 #define FSCTL_SECURITY_ID_CHECK
65 #define FSCTL_DISMOUNT_VOLUME
66 #define FSCTL_GET_NTFS_FILE_RECORD
67 #define FSCTL_ALLOW_EXTENDED_DASD_IO
68 #define FSCTL_RECALL_FILE
70 #endif
72 #define IO_REPARSE_TAG_SYMLINK 0xA000000C
73 #define SYMLINK_FLAG_RELATIVE 0x00000001
75 #define IO_REPARSE_TAG_MOUNT_POINT 0xA0000003
76 #define IO_REPARSE_TAG_HSM 0xC0000004
77 #define IO_REPARSE_TAG_SIS 0x80000007
80 /* For FSCTL_GET_SHADOW_COPY_DATA ...*/
81 typedef char SHADOW_COPY_LABEL[25];
83 struct shadow_copy_data {
84 /* Total number of shadow volumes currently mounted */
85 uint32 num_volumes;
86 /* Concatenated list of labels */
87 SHADOW_COPY_LABEL *labels;
91 #endif /* _NTIOCTL_H */