VirtualBox

source: vbox/trunk/src/VBox/RDP/client/disk.h@ 33656

最後變更 在這個檔案從33656是 33656,由 vboxsync 提交於 14 年 前

*: rebrand Sun (L)GPL disclaimers

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 5.0 KB
 
1/*
2 rdesktop: A Remote Desktop Protocol client.
3 Disk Redirection definitions
4 Copyright (C) Jeroen Meijer 2003-2007
5 Copyright (C) Peter Astrand 2004-2007
6
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
11
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20*/
21
22/*
23 * Oracle GPL Disclaimer: For the avoidance of doubt, except that if any license choice
24 * other than GPL or LGPL is available it will apply instead, Oracle elects to use only
25 * the General Public License version 2 (GPLv2) at this time for any software where
26 * a choice of GPL license versions is made available with the language indicating
27 * that GPLv2 or any later version may be used, or where a choice of which version
28 * of the GPL is applied is otherwise unspecified.
29 */
30
31#define FILE_ATTRIBUTE_READONLY 0x00000001
32#define FILE_ATTRIBUTE_HIDDEN 0x00000002
33#define FILE_ATTRIBUTE_SYSTEM 0x00000004
34#define FILE_ATTRIBUTE_DIRECTORY 0x00000010
35#define FILE_ATTRIBUTE_ARCHIVE 0x00000020
36#define FILE_ATTRIBUTE_DEVICE 0x00000040
37#define FILE_ATTRIBUTE_UNKNOWNXXX0 0x00000060 /* ??? ACTION i.e. 0x860 == compress this file ? */
38#define FILE_ATTRIBUTE_NORMAL 0x00000080
39#define FILE_ATTRIBUTE_TEMPORARY 0x00000100
40#define FILE_ATTRIBUTE_SPARSE_FILE 0x00000200
41#define FILE_ATTRIBUTE_REPARSE_POINT 0x00000400
42#define FILE_ATTRIBUTE_COMPRESSED 0x00000800
43#define FILE_ATTRIBUTE_OFFLINE 0x00001000
44#define FILE_ATTRIBUTE_NOT_CONTENT_INDEXED 0x00002000
45#define FILE_ATTRIBUTE_ENCRYPTED 0x00004000
46
47#define FILE_FLAG_OPEN_NO_RECALL 0x00100000
48#define FILE_FLAG_OPEN_REPARSE_POINT 0x00200000
49#define FILE_FLAG_POSIX_SEMANTICS 0x01000000
50#define FILE_FLAG_BACKUP_SEMANTICS 0x02000000 /* sometimes used to create a directory */
51#define FILE_FLAG_DELETE_ON_CLOSE 0x04000000
52#define FILE_FLAG_SEQUENTIAL_SCAN 0x08000000
53#define FILE_FLAG_RANDOM_ACCESS 0x10000000
54#define FILE_FLAG_NO_BUFFERING 0x20000000
55#define FILE_FLAG_OVERLAPPED 0x40000000
56#define FILE_FLAG_WRITE_THROUGH 0x80000000
57
58#define FILE_SHARE_READ 0x01
59#define FILE_SHARE_WRITE 0x02
60#define FILE_SHARE_DELETE 0x04
61
62#define FILE_BASIC_INFORMATION 0x04
63#define FILE_STANDARD_INFORMATION 0x05
64
65#define FS_CASE_SENSITIVE 0x00000001
66#define FS_CASE_IS_PRESERVED 0x00000002
67#define FS_UNICODE_STORED_ON_DISK 0x00000004
68#define FS_PERSISTENT_ACLS 0x00000008
69#define FS_FILE_COMPRESSION 0x00000010
70#define FS_VOLUME_QUOTAS 0x00000020
71#define FS_SUPPORTS_SPARSE_FILES 0x00000040
72#define FS_SUPPORTS_REPARSE_POINTS 0x00000080
73#define FS_SUPPORTS_REMOTE_STORAGE 0X00000100
74#define FS_VOL_IS_COMPRESSED 0x00008000
75#define FILE_READ_ONLY_VOLUME 0x00080000
76
77#define OPEN_EXISTING 1
78#define CREATE_NEW 2
79#define OPEN_ALWAYS 3
80#define TRUNCATE_EXISTING 4
81#define CREATE_ALWAYS 5
82
83#define GENERIC_READ 0x80000000
84#define GENERIC_WRITE 0x40000000
85#define GENERIC_EXECUTE 0x20000000
86#define GENERIC_ALL 0x10000000
87
88#define ERROR_FILE_NOT_FOUND 2L
89#define ERROR_ALREADY_EXISTS 183L
90
91#define MAX_OPEN_FILES 0x100
92
93typedef enum _FILE_INFORMATION_CLASS
94{
95 FileDirectoryInformation = 1,
96 FileFullDirectoryInformation,
97 FileBothDirectoryInformation,
98 FileBasicInformation,
99 FileStandardInformation,
100 FileInternalInformation,
101 FileEaInformation,
102 FileAccessInformation,
103 FileNameInformation,
104 FileRenameInformation,
105 FileLinkInformation,
106 FileNamesInformation,
107 FileDispositionInformation,
108 FilePositionInformation,
109 FileFullEaInformation,
110 FileModeInformation,
111 FileAlignmentInformation,
112 FileAllInformation,
113 FileAllocationInformation,
114 FileEndOfFileInformation,
115 FileAlternateNameInformation,
116 FileStreamInformation,
117 FilePipeInformation,
118 FilePipeLocalInformation,
119 FilePipeRemoteInformation,
120 FileMailslotQueryInformation,
121 FileMailslotSetInformation,
122 FileCompressionInformation,
123 FileCopyOnWriteInformation,
124 FileCompletionInformation,
125 FileMoveClusterInformation,
126 FileOleClassIdInformation,
127 FileOleStateBitsInformation,
128 FileNetworkOpenInformation,
129 FileObjectIdInformation,
130 FileOleAllInformation,
131 FileOleDirectoryInformation,
132 FileContentIndexInformation,
133 FileInheritContentIndexInformation,
134 FileOleInformation,
135 FileMaximumInformation
136} FILE_INFORMATION_CLASS, *PFILE_INFORMATION_CLASS;
137
138typedef enum _FSINFOCLASS
139{
140 FileFsVolumeInformation = 1,
141 FileFsLabelInformation,
142 FileFsSizeInformation,
143 FileFsDeviceInformation,
144 FileFsAttributeInformation,
145 FileFsControlInformation,
146 FileFsFullSizeInformation,
147 FileFsObjectIdInformation,
148 FileFsDriverPathInformation,
149 FileFsMaximumInformation
150} FS_INFORMATION_CLASS, *PFS_INFORMATION_CLASS;
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette