include/ntioctl.h

説明を見る。
00001 /* 
00002    Unix SMB/CIFS implementation.
00003    NT ioctl code constants
00004    Copyright (C) Andrew Tridgell              2002
00005    
00006    This program is free software; you can redistribute it and/or modify
00007    it under the terms of the GNU General Public License as published by
00008    the Free Software Foundation; either version 2 of the License, or
00009    (at your option) any later version.
00010    
00011    This program is distributed in the hope that it will be useful,
00012    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014    GNU General Public License for more details.
00015    
00016    You should have received a copy of the GNU General Public License
00017    along with this program; if not, write to the Free Software
00018    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00019 */
00020 
00021 /*
00022   I'm guessing we will need to support a bunch of these eventually. For now
00023   we only need the sparse flag
00024 */
00025 
00026 #ifndef _NTIOCTL_H
00027 #define _NTIOCTL_H
00028 
00029 /* IOCTL information */
00030 /* List of ioctl function codes that look to be of interest to remote clients like this. */
00031 /* Need to do some experimentation to make sure they all work remotely.                  */
00032 /* Some of the following such as the encryption/compression ones would be                */
00033 /* invoked from tools via a specialized hook into the VFS rather than via the            */
00034 /* standard vfs entry points */
00035 #define FSCTL_REQUEST_OPLOCK_LEVEL_1 0x00090000
00036 #define FSCTL_REQUEST_OPLOCK_LEVEL_2 0x00090004
00037 #define FSCTL_REQUEST_BATCH_OPLOCK   0x00090008
00038 #define FSCTL_LOCK_VOLUME            0x00090018
00039 #define FSCTL_UNLOCK_VOLUME          0x0009001C
00040 #define FSCTL_GET_COMPRESSION        0x0009003C
00041 #define FSCTL_SET_COMPRESSION        0x0009C040
00042 #define FSCTL_REQUEST_FILTER_OPLOCK  0x0009008C
00043 #define FSCTL_FIND_FILES_BY_SID      0x0009008F
00044 #define FSCTL_FILESYS_GET_STATISTICS 0x00090090
00045 #define FSCTL_SET_OBJECT_ID          0x00090098
00046 #define FSCTL_GET_OBJECT_ID          0x0009009C
00047 #define FSCTL_SET_REPARSE_POINT      0x000900A4
00048 #define FSCTL_GET_REPARSE_POINT      0x000900A8
00049 #define FSCTL_DELETE_REPARSE_POINT   0x000900AC
00050 #define FSCTL_0x000900C0             0x000900C0
00051 #define FSCTL_SET_SPARSE             0x000900C4
00052 #define FSCTL_SET_ZERO_DATA          0x000900C8
00053 #define FSCTL_SET_ENCRYPTION         0x000900D7
00054 #define FSCTL_ENCRYPTION_FSCTL_IO    0x000900DB
00055 #define FSCTL_WRITE_RAW_ENCRYPTED    0x000900DF
00056 #define FSCTL_READ_RAW_ENCRYPTED     0x000900E3
00057 #define FSCTL_SIS_COPYFILE           0x00090100
00058 #define FSCTL_QUERY_ALLOCATED_RANGES 0x000940CF
00059 #define FSCTL_SIS_LINK_FILES         0x0009C104
00060 
00061 #define FSCTL_GET_SHADOW_COPY_DATA   0x00144064   /* KJC -- Shadow Copy information */
00062 
00063 #if 0
00064 #define FSCTL_SECURITY_ID_CHECK
00065 #define FSCTL_DISMOUNT_VOLUME
00066 #define FSCTL_GET_NTFS_FILE_RECORD
00067 #define FSCTL_ALLOW_EXTENDED_DASD_IO
00068 #define FSCTL_RECALL_FILE
00069 
00070 #endif
00071 
00072 #define IO_REPARSE_TAG_MOUNT_POINT   0xA0000003
00073 #define IO_REPARSE_TAG_HSM           0xC0000004
00074 #define IO_REPARSE_TAG_SIS           0x80000007
00075 
00076 
00077 /* For FSCTL_GET_SHADOW_COPY_DATA ...*/
00078 typedef char SHADOW_COPY_LABEL[25];
00079 
00080 typedef struct shadow_copy_data {
00081         TALLOC_CTX *mem_ctx;
00082         /* Total number of shadow volumes currently mounted */
00083         uint32 num_volumes;
00084         /* Concatenated list of labels */
00085         SHADOW_COPY_LABEL *labels;
00086 } SHADOW_COPY_DATA;
00087 
00088 
00089 #endif /* _NTIOCTL_H */

Sambaに対してSat Aug 29 21:22:54 2009に生成されました。  doxygen 1.4.7