/[Sims3RigEditor]/trunk/ViewDDS/NativeConstants.cs
ViewVC logotype

Contents of /trunk/ViewDDS/NativeConstants.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 39 - (show annotations) (download)
Thu Aug 5 21:38:32 2010 UTC (9 years, 11 months ago) by william
File size: 55022 byte(s)
update Paint.NET DDS plugin, again...

1 /////////////////////////////////////////////////////////////////////////////////
2 // Paint.NET //
3 // Copyright (C) dotPDN LLC, Rick Brewster, Tom Jackson, and contributors. //
4 // Portions Copyright (C) Microsoft Corporation. All Rights Reserved. //
5 // See src/Resources/Files/License.txt for full licensing and attribution //
6 // details. //
7 // . //
8 /////////////////////////////////////////////////////////////////////////////////
9
10 using Microsoft.Win32.SafeHandles;
11 using System;
12
13 namespace PaintDotNet.SystemLayer
14 {
15 internal static class NativeConstants
16 {
17 public const int MAX_PATH = 260;
18
19 public const int CSIDL_DESKTOP_DIRECTORY = 0x0010; // C:\Users\[user]\Desktop\
20 public const int CSIDL_MYPICTURES = 0x0027;
21 public const int CSIDL_PERSONAL = 0x0005;
22
23 public const int CSIDL_PROGRAM_FILES = 0x0026; // C:\Program Files\
24 public const int CSIDL_APPDATA = 0x001a; // C:\Users\[user]\AppData\Roaming\
25 public const int CSIDL_LOCAL_APPDATA = 0x001c; // C:\Users\[user]\AppData\Local\
26 public const int CSIDL_COMMON_DESKTOPDIRECTORY = 0x0019; // C:\Users\All Users\Desktop
27
28 public const int CSIDL_FLAG_CREATE = 0x8000; // new for Win2K, or this in to force creation of folder
29
30 public const uint SHGFP_TYPE_CURRENT = 0;
31 public const uint SHGFP_TYPE_DEFAULT = 1;
32
33 public const int BP_COMMANDLINK = 6;
34
35 public const int CMDLS_NORMAL = 1;
36 public const int CMDLS_HOT = 2;
37 public const int CMDLS_PRESSED = 3;
38 public const int CMDLS_DISABLED = 4;
39 public const int CMDLS_DEFAULTED = 5;
40 public const int CMDLS_DEFAULTED_ANIMATING = 6;
41
42 public enum SECURITY_IMPERSONATION_LEVEL
43 {
44 SecurityAnonymous = 0,
45 SecurityIdentification = 1,
46 SecurityImpersonation = 2,
47 SecurityDelegation = 3
48 }
49
50 public enum TOKEN_TYPE
51 {
52 TokenPrimary = 1,
53 TokenImpersonation = 2
54 }
55
56 public const uint TOKEN_ASSIGN_PRIMARY = 0x0001;
57 public const uint TOKEN_DUPLICATE = 0x0002;
58 public const uint TOKEN_IMPERSONATE = 0x0004;
59 public const uint TOKEN_QUERY = 0x0008;
60 public const uint TOKEN_QUERY_SOURCE = 0x0010;
61 public const uint TOKEN_ADJUST_PRIVILEGES = 0x0020;
62 public const uint TOKEN_ADJUST_GROUPS = 0x0040;
63 public const uint TOKEN_ADJUST_DEFAULT = 0x0080;
64 public const uint TOKEN_ADJUST_SESSIONID = 0x0100;
65
66 public const uint TOKEN_ALL_ACCESS_P =
67 STANDARD_RIGHTS_REQUIRED |
68 TOKEN_ASSIGN_PRIMARY |
69 TOKEN_DUPLICATE |
70 TOKEN_IMPERSONATE |
71 TOKEN_QUERY |
72 TOKEN_QUERY_SOURCE |
73 TOKEN_ADJUST_PRIVILEGES |
74 TOKEN_ADJUST_GROUPS |
75 TOKEN_ADJUST_DEFAULT;
76
77 public const uint TOKEN_ALL_ACCESS = TOKEN_ALL_ACCESS_P | TOKEN_ADJUST_SESSIONID;
78 public const uint TOKEN_READ = STANDARD_RIGHTS_READ | TOKEN_QUERY;
79 public const uint TOKEN_WRITE = STANDARD_RIGHTS_WRITE | TOKEN_ADJUST_PRIVILEGES | TOKEN_ADJUST_GROUPS | TOKEN_ADJUST_DEFAULT;
80 public const uint TOKEN_EXECUTE = STANDARD_RIGHTS_EXECUTE;
81
82 public const uint MAXIMUM_ALLOWED = 0x02000000;
83
84 public const uint PROCESS_TERMINATE = 0x0001;
85 public const uint PROCESS_CREATE_THREAD = 0x0002;
86 public const uint PROCESS_SET_SESSIONID = 0x0004;
87 public const uint PROCESS_VM_OPERATION = 0x0008;
88 public const uint PROCESS_VM_READ = 0x0010;
89 public const uint PROCESS_VM_WRITE = 0x0020;
90 public const uint PROCESS_DUP_HANDLE = 0x0040;
91 public const uint PROCESS_CREATE_PROCESS = 0x0080;
92 public const uint PROCESS_SET_QUOTA = 0x0100;
93 public const uint PROCESS_SET_INFORMATION = 0x0200;
94 public const uint PROCESS_QUERY_INFORMATION = 0x0400;
95 public const uint PROCESS_SUSPEND_RESUME = 0x0800;
96 public const uint PROCESS_QUERY_LIMITED_INFORMATION = 0x1000;
97 public const uint PROCESS_ALL_ACCESS = STANDARD_RIGHTS_REQUIRED | SYNCHRONIZE | 0xFFFF;
98
99 public const uint PF_NX_ENABLED = 12;
100 public const uint PF_XMMI_INSTRUCTIONS_AVAILABLE = 6;
101 public const uint PF_XMMI64_INSTRUCTIONS_AVAILABLE = 10;
102 public const uint PF_SSE3_INSTRUCTIONS_AVAILABLE = 13;
103
104 public const uint CF_ENHMETAFILE = 14;
105
106 public static Guid BHID_Stream
107 {
108 get
109 {
110 return new Guid(0x1cebb3ab, 0x7c10, 0x499a, 0xa4, 0x17, 0x92, 0xca, 0x16, 0xc4, 0xcb, 0x83);
111 }
112 }
113
114 public const string IID_IOleWindow = "00000114-0000-0000-C000-000000000046";
115 public const string IID_IModalWindow = "b4db1657-70d7-485e-8e3e-6fcb5a5c1802";
116 public const string IID_IFileDialog = "42f85136-db7e-439c-85f1-e4075d135fc8";
117 public const string IID_IFileOpenDialog = "d57c7288-d4ad-4768-be02-9d969532d960";
118 public const string IID_IFileSaveDialog = "84bccd23-5fde-4cdb-aea4-af64b83d78ab";
119 public const string IID_IFileDialogEvents = "973510DB-7D7F-452B-8975-74A85828D354";
120 public const string IID_IFileDialogControlEvents = "36116642-D713-4b97-9B83-7484A9D00433";
121 public const string IID_IFileDialogCustomize = "8016b7b3-3d49-4504-a0aa-2a37494e606f";
122 public const string IID_IShellItem = "43826D1E-E718-42EE-BC55-A1E261C37BFE";
123 public const string IID_IShellItemArray = "B63EA76D-1F85-456F-A19C-48159EFA858B";
124 public const string IID_IKnownFolder = "38521333-6A87-46A7-AE10-0F16706816C3";
125 public const string IID_IKnownFolderManager = "44BEAAEC-24F4-4E90-B3F0-23D258FBB146";
126 public const string IID_IPropertyStore = "886D8EEB-8CF2-4446-8D02-CDBA1DBDCF99";
127
128 public const string IID_ISequentialStream = "0c733a30-2a1c-11ce-ade5-00aa0044773d";
129 public const string IID_IStream = "0000000C-0000-0000-C000-000000000046";
130
131 public const string IID_IFileOperation = "947aab5f-0a5c-4c13-b4d6-4bf7836fc9f8";
132 public const string IID_IFileOperationProgressSink = "04b0f1a7-9490-44bc-96e1-4296a31252e2";
133
134 public const string CLSID_FileOpenDialog = "DC1C5A9C-E88A-4dde-A5A1-60F82A20AEF7";
135 public const string CLSID_FileSaveDialog = "C0B4E2F3-BA21-4773-8DBA-335EC946EB8B";
136 public const string CLSID_KnownFolderManager = "4df0c730-df9d-4ae3-9153-aa6b82e9795a";
137 public const string CLSID_FileOperation = "3ad05575-8857-4850-9277-11b85bdb8e09";
138
139 public enum FOF
140 : uint
141 {
142 FOF_MULTIDESTFILES = 0x0001,
143 FOF_CONFIRMMOUSE = 0x0002,
144 FOF_SILENT = 0x0004, // don't display progress UI (confirm prompts may be displayed still)
145 FOF_RENAMEONCOLLISION = 0x0008, // automatically rename the source files to avoid the collisions
146 FOF_NOCONFIRMATION = 0x0010, // don't display confirmation UI, assume "yes" for cases that can be bypassed, "no" for those that can not
147 FOF_WANTMAPPINGHANDLE = 0x0020, // Fill in SHFILEOPSTRUCT.hNameMappings
148 // Must be freed using SHFreeNameMappings
149 FOF_ALLOWUNDO = 0x0040, // enable undo including Recycle behavior for IFileOperation::Delete()
150 FOF_FILESONLY = 0x0080, // only operate on the files (non folders), both files and folders are assumed without this
151 FOF_SIMPLEPROGRESS = 0x0100, // means don't show names of files
152 FOF_NOCONFIRMMKDIR = 0x0200, // don't dispplay confirmatino UI before making any needed directories, assume "Yes" in these cases
153 FOF_NOERRORUI = 0x0400, // don't put up error UI, other UI may be displayed, progress, confirmations
154 FOF_NOCOPYSECURITYATTRIBS = 0x0800, // dont copy file security attributes (ACLs)
155 FOF_NORECURSION = 0x1000, // don't recurse into directories for operations that would recurse
156 FOF_NO_CONNECTED_ELEMENTS = 0x2000, // don't operate on connected elements ("xxx_files" folders that go with .htm files)
157 FOF_WANTNUKEWARNING = 0x4000, // during delete operation, warn if nuking instead of recycling (partially overrides FOF_NOCONFIRMATION)
158 FOF_NORECURSEREPARSE = 0x8000, // deprecated; the operations engine always does the right thing on FolderLink objects (symlinks, reparse points, folder shortcuts)
159
160 FOF_NO_UI = (FOF_SILENT | FOF_NOCONFIRMATION | FOF_NOERRORUI | FOF_NOCONFIRMMKDIR), // don't display any UI at all
161
162 FOFX_NOSKIPJUNCTIONS = 0x00010000, // Don't avoid binding to junctions (like Task folder, Recycle-Bin)
163 FOFX_PREFERHARDLINK = 0x00020000, // Create hard link if possible
164 FOFX_SHOWELEVATIONPROMPT = 0x00040000, // Show elevation prompts when error UI is disabled (use with FOF_NOERRORUI)
165 FOFX_EARLYFAILURE = 0x00100000, // Fail operation as soon as a single error occurs rather than trying to process other items (applies only when using FOF_NOERRORUI)
166 FOFX_PRESERVEFILEEXTENSIONS = 0x00200000, // Rename collisions preserve file extns (use with FOF_RENAMEONCOLLISION)
167 FOFX_KEEPNEWERFILE = 0x00400000, // Keep newer file on naming conflicts
168 FOFX_NOCOPYHOOKS = 0x00800000, // Don't use copy hooks
169 FOFX_NOMINIMIZEBOX = 0x01000000, // Don't allow minimizing the progress dialog
170 FOFX_MOVEACLSACROSSVOLUMES = 0x02000000, // Copy security information when performing a cross-volume move operation
171 FOFX_DONTDISPLAYSOURCEPATH = 0x04000000, // Don't display the path of source file in progress dialog
172 FOFX_DONTDISPLAYDESTPATH = 0x08000000, // Don't display the path of destination file in progress dialog
173 }
174
175 public enum STATFLAG
176 : uint
177 {
178 STATFLAG_DEFAULT = 0,
179 STATFLAG_NONAME = 1,
180 STATFLAG_NOOPEN = 2
181 }
182
183 public enum STGTY
184 : uint
185 {
186 STGTY_STORAGE = 1,
187 STGTY_STREAM = 2,
188 STGTY_LOCKBYTES = 3,
189 STGTY_PROPERTY = 4
190 }
191
192 [Flags]
193 public enum STGC
194 : uint
195 {
196 STGC_DEFAULT = 0,
197 STGC_OVERWRITE = 1,
198 STGC_ONLYIFCURRENT = 2,
199 STGC_DANGEROUSLYCOMMITMERELYTODISKCACHE = 4,
200 STGC_CONSOLIDATE = 8
201 }
202
203 public enum CDCONTROLSTATE
204 {
205 CDCS_INACTIVE = 0x00000000,
206 CDCS_ENABLED = 0x00000001,
207 CDCS_VISIBLE = 0x00000002
208 }
209
210 public enum FFFP_MODE
211 {
212 FFFP_EXACTMATCH,
213 FFFP_NEARESTPARENTMATCH
214 }
215
216 public enum SIATTRIBFLAGS
217 {
218 SIATTRIBFLAGS_AND = 0x00000001, // if multiple items and the attirbutes together.
219 SIATTRIBFLAGS_OR = 0x00000002, // if multiple items or the attributes together.
220 SIATTRIBFLAGS_APPCOMPAT = 0x00000003, // Call GetAttributes directly on the ShellFolder for multiple attributes
221 }
222
223 public enum SIGDN : uint
224 {
225 SIGDN_NORMALDISPLAY = 0x00000000, // SHGDN_NORMAL
226 SIGDN_PARENTRELATIVEPARSING = 0x80018001, // SHGDN_INFOLDER | SHGDN_FORPARSING
227 SIGDN_DESKTOPABSOLUTEPARSING = 0x80028000, // SHGDN_FORPARSING
228 SIGDN_PARENTRELATIVEEDITING = 0x80031001, // SHGDN_INFOLDER | SHGDN_FOREDITING
229 SIGDN_DESKTOPABSOLUTEEDITING = 0x8004c000, // SHGDN_FORPARSING | SHGDN_FORADDRESSBAR
230 SIGDN_FILESYSPATH = 0x80058000, // SHGDN_FORPARSING
231 SIGDN_URL = 0x80068000, // SHGDN_FORPARSING
232 SIGDN_PARENTRELATIVEFORADDRESSBAR = 0x8007c001, // SHGDN_INFOLDER | SHGDN_FORPARSING | SHGDN_FORADDRESSBAR
233 SIGDN_PARENTRELATIVE = 0x80080001 // SHGDN_INFOLDER
234 }
235
236 public const uint DROPEFFECT_COPY = 1;
237 public const uint DROPEFFECT_MOVE = 2;
238 public const uint DROPEFFECT_LINK = 4;
239
240 [Flags]
241 public enum SFGAO : uint
242 {
243 SFGAO_CANCOPY = DROPEFFECT_COPY, // Objects can be copied (0x1)
244 SFGAO_CANMOVE = DROPEFFECT_MOVE, // Objects can be moved (0x2)
245 SFGAO_CANLINK = DROPEFFECT_LINK, // Objects can be linked (0x4)
246 SFGAO_STORAGE = 0x00000008, // supports BindToObject(IID_IStorage)
247 SFGAO_CANRENAME = 0x00000010, // Objects can be renamed
248 SFGAO_CANDELETE = 0x00000020, // Objects can be deleted
249 SFGAO_HASPROPSHEET = 0x00000040, // Objects have property sheets
250 SFGAO_DROPTARGET = 0x00000100, // Objects are drop target
251 SFGAO_CAPABILITYMASK = 0x00000177,
252 SFGAO_ENCRYPTED = 0x00002000, // Object is encrypted (use alt color)
253 SFGAO_ISSLOW = 0x00004000, // 'Slow' object
254 SFGAO_GHOSTED = 0x00008000, // Ghosted icon
255 SFGAO_LINK = 0x00010000, // Shortcut (link)
256 SFGAO_SHARE = 0x00020000, // Shared
257 SFGAO_READONLY = 0x00040000, // Read-only
258 SFGAO_HIDDEN = 0x00080000, // Hidden object
259 SFGAO_DISPLAYATTRMASK = 0x000FC000,
260 SFGAO_FILESYSANCESTOR = 0x10000000, // May contain children with SFGAO_FILESYSTEM
261 SFGAO_FOLDER = 0x20000000, // Support BindToObject(IID_IShellFolder)
262 SFGAO_FILESYSTEM = 0x40000000, // Is a win32 file system object (file/folder/root)
263 SFGAO_HASSUBFOLDER = 0x80000000, // May contain children with SFGAO_FOLDER (may be slow)
264 SFGAO_CONTENTSMASK = 0x80000000,
265 SFGAO_VALIDATE = 0x01000000, // Invalidate cached information (may be slow)
266 SFGAO_REMOVABLE = 0x02000000, // Is this removeable media?
267 SFGAO_COMPRESSED = 0x04000000, // Object is compressed (use alt color)
268 SFGAO_BROWSABLE = 0x08000000, // Supports IShellFolder, but only implements CreateViewObject() (non-folder view)
269 SFGAO_NONENUMERATED = 0x00100000, // Is a non-enumerated object (should be hidden)
270 SFGAO_NEWCONTENT = 0x00200000, // Should show bold in explorer tree
271 SFGAO_STREAM = 0x00400000, // Supports BindToObject(IID_IStream)
272 SFGAO_CANMONIKER = 0x00400000, // Obsolete
273 SFGAO_HASSTORAGE = 0x00400000, // Obsolete
274 SFGAO_STORAGEANCESTOR = 0x00800000, // May contain children with SFGAO_STORAGE or SFGAO_STREAM
275 SFGAO_STORAGECAPMASK = 0x70C50008, // For determining storage capabilities, ie for open/save semantics
276 SFGAO_PKEYSFGAOMASK = 0x81044010 // Attributes that are masked out for PKEY_SFGAOFlags because they are considered to cause slow calculations or lack context (SFGAO_VALIDATE | SFGAO_ISSLOW | SFGAO_HASSUBFOLDER and others)
277 }
278
279 public enum FDE_OVERWRITE_RESPONSE
280 {
281 FDEOR_DEFAULT = 0x00000000,
282 FDEOR_ACCEPT = 0x00000001,
283 FDEOR_REFUSE = 0x00000002
284 }
285
286 public enum FDE_SHAREVIOLATION_RESPONSE
287 {
288 FDESVR_DEFAULT = 0x00000000,
289 FDESVR_ACCEPT = 0x00000001,
290 FDESVR_REFUSE = 0x00000002
291 }
292
293 public enum FDAP
294 {
295 FDAP_BOTTOM = 0x00000000,
296 FDAP_TOP = 0x00000001,
297 }
298
299 [Flags]
300 public enum FOS : uint
301 {
302 FOS_OVERWRITEPROMPT = 0x00000002,
303 FOS_STRICTFILETYPES = 0x00000004,
304 FOS_NOCHANGEDIR = 0x00000008,
305 FOS_PICKFOLDERS = 0x00000020,
306 FOS_FORCEFILESYSTEM = 0x00000040, // Ensure that items returned are filesystem items.
307 FOS_ALLNONSTORAGEITEMS = 0x00000080, // Allow choosing items that have no storage.
308 FOS_NOVALIDATE = 0x00000100,
309 FOS_ALLOWMULTISELECT = 0x00000200,
310 FOS_PATHMUSTEXIST = 0x00000800,
311 FOS_FILEMUSTEXIST = 0x00001000,
312 FOS_CREATEPROMPT = 0x00002000,
313 FOS_SHAREAWARE = 0x00004000,
314 FOS_NOREADONLYRETURN = 0x00008000,
315 FOS_NOTESTFILECREATE = 0x00010000,
316 FOS_HIDEMRUPLACES = 0x00020000,
317 FOS_HIDEPINNEDPLACES = 0x00040000,
318 FOS_NODEREFERENCELINKS = 0x00100000,
319 FOS_DONTADDTORECENT = 0x02000000,
320 FOS_FORCESHOWHIDDEN = 0x10000000,
321 FOS_DEFAULTNOMINIMODE = 0x20000000
322 }
323
324 public enum KF_CATEGORY
325 {
326 KF_CATEGORY_VIRTUAL = 0x00000001,
327 KF_CATEGORY_FIXED = 0x00000002,
328 KF_CATEGORY_COMMON = 0x00000003,
329 KF_CATEGORY_PERUSER = 0x00000004
330 }
331
332 [Flags]
333 public enum KF_DEFINITION_FLAGS
334 {
335 KFDF_PERSONALIZE = 0x00000001,
336 KFDF_LOCAL_REDIRECT_ONLY = 0x00000002,
337 KFDF_ROAMABLE = 0x00000004,
338 }
339
340 public const uint DWMWA_NCRENDERING_ENABLED = 1; // [get] Is non-client rendering enabled/disabled
341 public const uint DWMWA_NCRENDERING_POLICY = 2; // [set] Non-client rendering policy
342 public const uint DWMWA_TRANSITIONS_FORCEDISABLED = 3; // [set] Potentially enable/forcibly disable transitions
343 public const uint DWMWA_ALLOW_NCPAINT = 4; // [set] Allow contents rendered in the non-client area to be visible on the DWM-drawn frame.
344 public const uint DWMWA_CAPTION_BUTTON_BOUNDS = 5; // [get] Bounds of the caption button area in window-relative space.
345 public const uint DWMWA_NONCLIENT_RTL_LAYOUT = 6; // [set] Is non-client content RTL mirrored
346 public const uint DWMWA_FORCE_ICONIC_REPRESENTATION = 7; // [set] Force this window to display iconic thumbnails.
347 public const uint DWMWA_FLIP3D_POLICY = 8; // [set] Designates how Flip3D will treat the window.
348 public const uint DWMWA_EXTENDED_FRAME_BOUNDS = 9; // [get] Gets the extended frame bounds rectangle in screen space
349 public const uint DWMWA_LAST = 10;
350
351 public const uint DWMNCRP_USEWINDOWSTYLE = 0;
352 public const uint DWMNCRP_DISABLED = 1;
353 public const uint DWMNCRP_ENABLED = 2;
354 public const uint DWMNCRP_LAST = 3;
355
356 public const byte VER_EQUAL = 1;
357 public const byte VER_GREATER = 2;
358 public const byte VER_GREATER_EQUAL = 3;
359 public const byte VER_LESS = 4;
360 public const byte VER_LESS_EQUAL = 5;
361 public const byte VER_AND = 6;
362 public const byte VER_OR = 7;
363
364 public const uint VER_CONDITION_MASK = 7;
365 public const uint VER_NUM_BITS_PER_CONDITION_MASK = 3;
366
367 public const uint VER_MINORVERSION = 0x0000001;
368 public const uint VER_MAJORVERSION = 0x0000002;
369 public const uint VER_BUILDNUMBER = 0x0000004;
370 public const uint VER_PLATFORMID = 0x0000008;
371 public const uint VER_SERVICEPACKMINOR = 0x0000010;
372 public const uint VER_SERVICEPACKMAJOR = 0x0000020;
373 public const uint VER_SUITENAME = 0x0000040;
374 public const uint VER_PRODUCT_TYPE = 0x0000080;
375
376 public const uint VER_PLATFORM_WIN32s = 0;
377 public const uint VER_PLATFORM_WIN32_WINDOWS = 1;
378 public const uint VER_PLATFORM_WIN32_NT = 2;
379
380 public const int THREAD_MODE_BACKGROUND_BEGIN = 0x10000;
381 public const int THREAD_MODE_BACKGROUND_END = 0x20000;
382
383 private static uint CTL_CODE(uint deviceType, uint function, uint method, uint access)
384 {
385 return (deviceType << 16) | (access << 14) | (function << 2) | method;
386 }
387
388 public const uint FILE_DEVICE_FILE_SYSTEM = 0x00000009;
389 public const uint METHOD_BUFFERED = 0;
390
391 public static readonly uint FSCTL_SET_COMPRESSION =
392 CTL_CODE(FILE_DEVICE_FILE_SYSTEM, 16, METHOD_BUFFERED, FILE_READ_DATA | FILE_WRITE_DATA);
393
394 public static ushort COMPRESSION_FORMAT_DEFAULT = 1;
395
396 public const int SW_HIDE = 0;
397 public const int SW_SHOWNORMAL = 1;
398 public const int SW_NORMAL = 1;
399 public const int SW_SHOWMINIMIZED = 2;
400 public const int SW_SHOWMAXIMIZED = 3;
401 public const int SW_MAXIMIZE = 3;
402 public const int SW_SHOWNOACTIVATE = 4;
403 public const int SW_SHOW = 5;
404 public const int SW_MINIMIZE = 6;
405 public const int SW_SHOWMINNOACTIVE = 7;
406 public const int SW_SHOWNA = 8;
407 public const int SW_RESTORE = 9;
408 public const int SW_SHOWDEFAULT = 10;
409 public const int SW_FORCEMINIMIZE = 11;
410 public const int SW_MAX = 11;
411
412 public const uint MF_BYCOMMAND = 0;
413 public const uint MF_GRAYED = 1;
414 public const uint MF_DISABLED = 2;
415 public const uint SC_CLOSE = 0xf060;
416
417 public const uint SEE_MASK_CLASSNAME = 0x00000001;
418 public const uint SEE_MASK_CLASSKEY = 0x00000003;
419 public const uint SEE_MASK_IDLIST = 0x00000004;
420 public const uint SEE_MASK_INVOKEIDLIST = 0x0000000c;
421 public const uint SEE_MASK_ICON = 0x00000010;
422 public const uint SEE_MASK_HOTKEY = 0x00000020;
423 public const uint SEE_MASK_NOCLOSEPROCESS = 0x00000040;
424 public const uint SEE_MASK_CONNECTNETDRV = 0x00000080;
425 public const uint SEE_MASK_FLAG_DDEWAIT = 0x00000100;
426 public const uint SEE_MASK_DOENVSUBST = 0x00000200;
427 public const uint SEE_MASK_FLAG_NO_UI = 0x00000400;
428 public const uint SEE_MASK_UNICODE = 0x00004000;
429 public const uint SEE_MASK_NO_CONSOLE = 0x00008000;
430 public const uint SEE_MASK_ASYNCOK = 0x00100000;
431 public const uint SEE_MASK_HMONITOR = 0x00200000;
432 public const uint SEE_MASK_NOZONECHECKS = 0x00800000;
433 public const uint SEE_MASK_NOQUERYCLASSSTORE = 0x01000000;
434 public const uint SEE_MASK_WAITFORINPUTIDLE = 0x02000000;
435 public const uint SEE_MASK_FLAG_LOG_USAGE = 0x04000000;
436
437 public const uint SHARD_PIDL = 0x00000001;
438 public const uint SHARD_PATHA = 0x00000002;
439 public const uint SHARD_PATHW = 0x00000003;
440
441 public const uint VER_NT_WORKSTATION = 0x0000001;
442 public const uint VER_NT_DOMAIN_CONTROLLER = 0x0000002;
443 public const uint VER_NT_SERVER = 0x0000003;
444
445 public const uint LWA_COLORKEY = 0x00000001;
446 public const uint LWA_ALPHA = 0x00000002;
447 public const uint WS_EX_LAYERED = 0x00080000;
448
449 public const ushort PROCESSOR_ARCHITECTURE_INTEL = 0;
450 public const ushort PROCESSOR_ARCHITECTURE_IA64 = 6;
451 public const ushort PROCESSOR_ARCHITECTURE_AMD64 = 9;
452 public const ushort PROCESSOR_ARCHITECTURE_UNKNOWN = 0xFFFF;
453
454 public const uint SHVIEW_THUMBNAIL = 0x702d;
455
456 public const uint MA_ACTIVATE = 1;
457 public const uint MA_ACTIVATEANDEAT = 2;
458 public const uint MA_NOACTIVATE = 3;
459 public const uint MA_NOACTIVATEANDEAT = 4;
460
461 public const uint IDI_APPLICATION = 32512;
462
463 public const int ERROR_SUCCESS = 0;
464 public const int ERROR_ALREADY_EXISTS = 183;
465 public const int ERROR_CANCELLED = 1223;
466 public const int ERROR_IO_PENDING = 0x3e5;
467 public const int ERROR_NO_MORE_ITEMS = 259;
468 public const int ERROR_TIMEOUT = 1460;
469
470 public const uint DIGCF_PRESENT = 2;
471
472 public const int GWL_STYLE = -16;
473 public const int GWL_EXSTYLE = -20;
474
475 public const int GWLP_WNDPROC = -4;
476 public const int GWLP_HINSTANCE = -6;
477 public const int GWLP_HWNDPARENT = -8;
478 public const int GWLP_USERDATA = -21;
479 public const int GWLP_ID = -12;
480
481 public const uint PBS_SMOOTH = 0x01;
482 public const uint PBS_MARQUEE = 0x08;
483 public const int PBM_SETMARQUEE = WM_USER + 10;
484
485 public const int SBM_SETPOS = 0x00E0;
486 public const int SBM_SETRANGE = 0x00E2;
487 public const int SBM_SETRANGEREDRAW = 0x00E6;
488 public const int SBM_SETSCROLLINFO = 0x00E9;
489
490 public const int BCM_FIRST = 0x1600;
491 public const int BCM_SETSHIELD = BCM_FIRST + 0x000C;
492
493 public const int CB_SHOWDROPDOWN = 0x014f;
494
495 public const uint WM_COMMAND = 0x111;
496 public const uint WM_MOUSEACTIVATE = 0x21;
497 public const uint WM_COPYDATA = 0x004a;
498
499 public const uint SMTO_NORMAL = 0x0000;
500 public const uint SMTO_BLOCK = 0x0001;
501 public const uint SMTO_ABORTIFHUNG = 0x0002;
502 public const uint SMTO_NOTIMEOUTIFNOTHUNG = 0x0008;
503
504 public const int WM_USER = 0x400;
505 public const int WM_HSCROLL = 0x114;
506 public const int WM_VSCROLL = 0x115;
507 public const int WM_SETFOCUS = 7;
508 public const int WM_QUERYENDSESSION = 0x0011;
509 public const int WM_ACTIVATE = 0x006;
510 public const int WM_ACTIVATEAPP = 0x01C;
511 public const int WM_PAINT = 0x000f;
512 public const int WM_NCPAINT = 0x0085;
513 public const int WM_NCACTIVATE = 0x086;
514 public const int WM_SETREDRAW = 0x000B;
515
516 public const uint WS_VSCROLL = 0x00200000;
517 public const uint WS_HSCROLL = 0x00100000;
518
519 public const uint BS_MULTILINE = 0x00002000;
520
521 public const uint ANSI_CHARSET = 0;
522 public const uint DEFAULT_CHARSET = 1;
523 public const uint SYMBOL_CHARSET = 2;
524 public const uint SHIFTJIS_CHARSET = 128;
525 public const uint HANGEUL_CHARSET = 129;
526 public const uint HANGUL_CHARSET = 129;
527 public const uint GB2312_CHARSET = 134;
528 public const uint CHINESEBIG5_CHARSET = 136;
529 public const uint OEM_CHARSET = 255;
530 public const uint JOHAB_CHARSET = 130;
531 public const uint HEBREW_CHARSET = 177;
532 public const uint ARABIC_CHARSET = 178;
533 public const uint GREEK_CHARSET = 161;
534 public const uint TURKISH_CHARSET = 162;
535 public const uint VIETNAMESE_CHARSET = 163;
536 public const uint THAI_CHARSET = 222;
537 public const uint EASTEUROPE_CHARSET = 238;
538 public const uint RUSSIAN_CHARSET = 204;
539 public const uint MAC_CHARSET = 77;
540 public const uint BALTIC_CHARSET = 186;
541
542 public const uint SPI_GETBEEP = 0x0001;
543 public const uint SPI_SETBEEP = 0x0002;
544 public const uint SPI_GETMOUSE = 0x0003;
545 public const uint SPI_SETMOUSE = 0x0004;
546 public const uint SPI_GETBORDER = 0x0005;
547 public const uint SPI_SETBORDER = 0x0006;
548 public const uint SPI_GETKEYBOARDSPEED = 0x000A;
549 public const uint SPI_SETKEYBOARDSPEED = 0x000B;
550 public const uint SPI_LANGDRIVER = 0x000C;
551 public const uint SPI_ICONHORIZONTALSPACING = 0x000D;
552 public const uint SPI_GETSCREENSAVETIMEOUT = 0x000E;
553 public const uint SPI_SETSCREENSAVETIMEOUT = 0x000F;
554 public const uint SPI_GETSCREENSAVEACTIVE = 0x0010;
555 public const uint SPI_SETSCREENSAVEACTIVE = 0x0011;
556 public const uint SPI_GETGRIDGRANULARITY = 0x0012;
557 public const uint SPI_SETGRIDGRANULARITY = 0x0013;
558 public const uint SPI_SETDESKWALLPAPER = 0x0014;
559 public const uint SPI_SETDESKPATTERN = 0x0015;
560 public const uint SPI_GETKEYBOARDDELAY = 0x0016;
561 public const uint SPI_SETKEYBOARDDELAY = 0x0017;
562 public const uint SPI_ICONVERTICALSPACING = 0x0018;
563 public const uint SPI_GETICONTITLEWRAP = 0x0019;
564 public const uint SPI_SETICONTITLEWRAP = 0x001A;
565 public const uint SPI_GETMENUDROPALIGNMENT = 0x001B;
566 public const uint SPI_SETMENUDROPALIGNMENT = 0x001C;
567 public const uint SPI_SETDOUBLECLKWIDTH = 0x001D;
568 public const uint SPI_SETDOUBLECLKHEIGHT = 0x001E;
569 public const uint SPI_GETICONTITLELOGFONT = 0x001F;
570 public const uint SPI_SETDOUBLECLICKTIME = 0x0020;
571 public const uint SPI_SETMOUSEBUTTONSWAP = 0x0021;
572 public const uint SPI_SETICONTITLELOGFONT = 0x0022;
573 public const uint SPI_GETFASTTASKSWITCH = 0x0023;
574 public const uint SPI_SETFASTTASKSWITCH = 0x0024;
575 public const uint SPI_SETDRAGFULLWINDOWS = 0x0025;
576 public const uint SPI_GETDRAGFULLWINDOWS = 0x0026;
577 public const uint SPI_GETNONCLIENTMETRICS = 0x0029;
578 public const uint SPI_SETNONCLIENTMETRICS = 0x002A;
579 public const uint SPI_GETMINIMIZEDMETRICS = 0x002B;
580 public const uint SPI_SETMINIMIZEDMETRICS = 0x002C;
581 public const uint SPI_GETICONMETRICS = 0x002D;
582 public const uint SPI_SETICONMETRICS = 0x002E;
583 public const uint SPI_SETWORKAREA = 0x002F;
584 public const uint SPI_GETWORKAREA = 0x0030;
585 public const uint SPI_SETPENWINDOWS = 0x0031;
586 public const uint SPI_GETHIGHCONTRAST = 0x0042;
587 public const uint SPI_SETHIGHCONTRAST = 0x0043;
588 public const uint SPI_GETKEYBOARDPREF = 0x0044;
589 public const uint SPI_SETKEYBOARDPREF = 0x0045;
590 public const uint SPI_GETSCREENREADER = 0x0046;
591 public const uint SPI_SETSCREENREADER = 0x0047;
592 public const uint SPI_GETANIMATION = 0x0048;
593 public const uint SPI_SETANIMATION = 0x0049;
594 public const uint SPI_GETFONTSMOOTHING = 0x004A;
595 public const uint SPI_SETFONTSMOOTHING = 0x004B;
596 public const uint SPI_SETDRAGWIDTH = 0x004C;
597 public const uint SPI_SETDRAGHEIGHT = 0x004D;
598 public const uint SPI_SETHANDHELD = 0x004E;
599 public const uint SPI_GETLOWPOWERTIMEOUT = 0x004F;
600 public const uint SPI_GETPOWEROFFTIMEOUT = 0x0050;
601 public const uint SPI_SETLOWPOWERTIMEOUT = 0x0051;
602 public const uint SPI_SETPOWEROFFTIMEOUT = 0x0052;
603 public const uint SPI_GETLOWPOWERACTIVE = 0x0053;
604 public const uint SPI_GETPOWEROFFACTIVE = 0x0054;
605 public const uint SPI_SETLOWPOWERACTIVE = 0x0055;
606 public const uint SPI_SETPOWEROFFACTIVE = 0x0056;
607 public const uint SPI_SETCURSORS = 0x0057;
608 public const uint SPI_SETICONS = 0x0058;
609 public const uint SPI_GETDEFAULTINPUTLANG = 0x0059;
610 public const uint SPI_SETDEFAULTINPUTLANG = 0x005A;
611 public const uint SPI_SETLANGTOGGLE = 0x005B;
612 public const uint SPI_GETWINDOWSEXTENSION = 0x005C;
613 public const uint SPI_SETMOUSETRAILS = 0x005D;
614 public const uint SPI_GETMOUSETRAILS = 0x005E;
615 public const uint SPI_SETSCREENSAVERRUNNING = 0x0061;
616 public const uint SPI_SCREENSAVERRUNNING = SPI_SETSCREENSAVERRUNNING;
617 public const uint SPI_GETFILTERKEYS = 0x0032;
618 public const uint SPI_SETFILTERKEYS = 0x0033;
619 public const uint SPI_GETTOGGLEKEYS = 0x0034;
620 public const uint SPI_SETTOGGLEKEYS = 0x0035;
621 public const uint SPI_GETMOUSEKEYS = 0x0036;
622 public const uint SPI_SETMOUSEKEYS = 0x0037;
623 public const uint SPI_GETSHOWSOUNDS = 0x0038;
624 public const uint SPI_SETSHOWSOUNDS = 0x0039;
625 public const uint SPI_GETSTICKYKEYS = 0x003A;
626 public const uint SPI_SETSTICKYKEYS = 0x003B;
627 public const uint SPI_GETACCESSTIMEOUT = 0x003C;
628 public const uint SPI_SETACCESSTIMEOUT = 0x003D;
629 public const uint SPI_GETSERIALKEYS = 0x003E;
630 public const uint SPI_SETSERIALKEYS = 0x003F;
631 public const uint SPI_GETSOUNDSENTRY = 0x0040;
632 public const uint SPI_SETSOUNDSENTRY = 0x0041;
633 public const uint SPI_GETSNAPTODEFBUTTON = 0x005F;
634 public const uint SPI_SETSNAPTODEFBUTTON = 0x0060;
635 public const uint SPI_GETMOUSEHOVERWIDTH = 0x0062;
636 public const uint SPI_SETMOUSEHOVERWIDTH = 0x0063;
637 public const uint SPI_GETMOUSEHOVERHEIGHT = 0x0064;
638 public const uint SPI_SETMOUSEHOVERHEIGHT = 0x0065;
639 public const uint SPI_GETMOUSEHOVERTIME = 0x0066;
640 public const uint SPI_SETMOUSEHOVERTIME = 0x0067;
641 public const uint SPI_GETWHEELSCROLLLINES = 0x0068;
642 public const uint SPI_SETWHEELSCROLLLINES = 0x0069;
643 public const uint SPI_GETMENUSHOWDELAY = 0x006A;
644 public const uint SPI_SETMENUSHOWDELAY = 0x006B;
645 public const uint SPI_GETSHOWIMEUI = 0x006E;
646 public const uint SPI_SETSHOWIMEUI = 0x006F;
647 public const uint SPI_GETMOUSESPEED = 0x0070;
648 public const uint SPI_SETMOUSESPEED = 0x0071;
649 public const uint SPI_GETSCREENSAVERRUNNING = 0x0072;
650 public const uint SPI_GETDESKWALLPAPER = 0x0073;
651 public const uint SPI_GETACTIVEWINDOWTRACKING = 0x1000;
652 public const uint SPI_SETACTIVEWINDOWTRACKING = 0x1001;
653 public const uint SPI_GETMENUANIMATION = 0x1002;
654 public const uint SPI_SETMENUANIMATION = 0x1003;
655 public const uint SPI_GETCOMBOBOXANIMATION = 0x1004;
656 public const uint SPI_SETCOMBOBOXANIMATION = 0x1005;
657 public const uint SPI_GETLISTBOXSMOOTHSCROLLING = 0x1006;
658 public const uint SPI_SETLISTBOXSMOOTHSCROLLING = 0x1007;
659 public const uint SPI_GETGRADIENTCAPTIONS = 0x1008;
660 public const uint SPI_SETGRADIENTCAPTIONS = 0x1009;
661 public const uint SPI_GETKEYBOARDCUES = 0x100A;
662 public const uint SPI_SETKEYBOARDCUES = 0x100B;
663 public const uint SPI_GETMENUUNDERLINES = SPI_GETKEYBOARDCUES;
664 public const uint SPI_SETMENUUNDERLINES = SPI_SETKEYBOARDCUES;
665 public const uint SPI_GETACTIVEWNDTRKZORDER = 0x100C;
666 public const uint SPI_SETACTIVEWNDTRKZORDER = 0x100D;
667 public const uint SPI_GETHOTTRACKING = 0x100E;
668 public const uint SPI_SETHOTTRACKING = 0x100F;
669 public const uint SPI_GETMENUFADE = 0x1012;
670 public const uint SPI_SETMENUFADE = 0x1013;
671 public const uint SPI_GETSELECTIONFADE = 0x1014;
672 public const uint SPI_SETSELECTIONFADE = 0x1015;
673 public const uint SPI_GETTOOLTIPANIMATION = 0x1016;
674 public const uint SPI_SETTOOLTIPANIMATION = 0x1017;
675 public const uint SPI_GETTOOLTIPFADE = 0x1018;
676 public const uint SPI_SETTOOLTIPFADE = 0x1019;
677 public const uint SPI_GETCURSORSHADOW = 0x101A;
678 public const uint SPI_SETCURSORSHADOW = 0x101B;
679 public const uint SPI_GETMOUSESONAR = 0x101C;
680 public const uint SPI_SETMOUSESONAR = 0x101D;
681 public const uint SPI_GETMOUSECLICKLOCK = 0x101E;
682 public const uint SPI_SETMOUSECLICKLOCK = 0x101F;
683 public const uint SPI_GETMOUSEVANISH = 0x1020;
684 public const uint SPI_SETMOUSEVANISH = 0x1021;
685 public const uint SPI_GETFLATMENU = 0x1022;
686 public const uint SPI_SETFLATMENU = 0x1023;
687 public const uint SPI_GETDROPSHADOW = 0x1024;
688 public const uint SPI_SETDROPSHADOW = 0x1025;
689 public const uint SPI_GETBLOCKSENDINPUTRESETS = 0x1026;
690 public const uint SPI_SETBLOCKSENDINPUTRESETS = 0x1027;
691 public const uint SPI_GETUIEFFECTS = 0x103E;
692 public const uint SPI_SETUIEFFECTS = 0x103F;
693 public const uint SPI_GETFOREGROUNDLOCKTIMEOUT = 0x2000;
694 public const uint SPI_SETFOREGROUNDLOCKTIMEOUT = 0x2001;
695 public const uint SPI_GETACTIVEWNDTRKTIMEOUT = 0x2002;
696 public const uint SPI_SETACTIVEWNDTRKTIMEOUT = 0x2003;
697 public const uint SPI_GETFOREGROUNDFLASHCOUNT = 0x2004;
698 public const uint SPI_SETFOREGROUNDFLASHCOUNT = 0x2005;
699 public const uint SPI_GETCARETWIDTH = 0x2006;
700 public const uint SPI_SETCARETWIDTH = 0x2007;
701 public const uint SPI_GETMOUSECLICKLOCKTIME = 0x2008;
702 public const uint SPI_SETMOUSECLICKLOCKTIME = 0x2009;
703 public const uint SPI_GETFONTSMOOTHINGTYPE = 0x200A;
704 public const uint SPI_SETFONTSMOOTHINGTYPE = 0x200B;
705 public const uint SPI_GETFONTSMOOTHINGCONTRAST = 0x200C;
706 public const uint SPI_SETFONTSMOOTHINGCONTRAST = 0x200D;
707 public const uint SPI_GETFOCUSBORDERWIDTH = 0x200E;
708 public const uint SPI_SETFOCUSBORDERWIDTH = 0x200F;
709 public const uint SPI_GETFOCUSBORDERHEIGHT = 0x2010;
710 public const uint SPI_SETFOCUSBORDERHEIGHT = 0x2011;
711 public const uint SPI_GETFONTSMOOTHINGORIENTATION = 0x2012;
712 public const uint SPI_SETFONTSMOOTHINGORIENTATION = 0x2013;
713
714 public const uint INFINITE = 0xffffffff;
715 public const uint STATUS_WAIT_0 = 0;
716 public const uint STATUS_ABANDONED_WAIT_0 = 0x80;
717 public const uint WAIT_FAILED = 0xffffffff;
718 public const uint WAIT_TIMEOUT = 258;
719 public const uint WAIT_ABANDONED = STATUS_ABANDONED_WAIT_0 + 0;
720 public const uint WAIT_OBJECT_0 = STATUS_WAIT_0 + 0;
721 public const uint WAIT_ABANDONED_0 = STATUS_ABANDONED_WAIT_0 + 0;
722 public const uint STATUS_USER_APC = 0x000000C0;
723 public const uint WAIT_IO_COMPLETION = STATUS_USER_APC;
724
725 public const int SM_REMOTESESSION = 0x1000;
726 public const int WM_WTSSESSION_CHANGE = 0x2b1;
727 public const int WM_MOVING = 0x0216;
728 public const uint NOTIFY_FOR_ALL_SESSIONS = 1;
729 public const uint NOTIFY_FOR_THIS_SESSION = 0;
730
731 public const int BP_PUSHBUTTON = 1;
732 public const int PBS_NORMAL = 1;
733 public const int PBS_HOT = 2;
734 public const int PBS_PRESSED = 3;
735 public const int PBS_DISABLED = 4;
736 public const int PBS_DEFAULTED = 5;
737
738 public const int PS_SOLID = 0;
739 public const int PS_DASH = 1; /* ------- */
740 public const int PS_DOT = 2; /* ....... */
741 public const int PS_DASHDOT = 3; /* _._._._ */
742 public const int PS_DASHDOTDOT = 4; /* _.._.._ */
743 public const int PS_NULL = 5;
744 public const int PS_INSIDEFRAME = 6;
745 public const int PS_USERSTYLE = 7;
746 public const int PS_ALTERNATE = 8;
747
748 public const int PS_ENDCAP_ROUND = 0x00000000;
749 public const int PS_ENDCAP_SQUARE = 0x00000100;
750 public const int PS_ENDCAP_FLAT = 0x00000200;
751 public const int PS_ENDCAP_MASK = 0x00000F00;
752
753 public const int PS_JOIN_ROUND = 0x00000000;
754 public const int PS_JOIN_BEVEL = 0x00001000;
755 public const int PS_JOIN_MITER = 0x00002000;
756 public const int PS_JOIN_MASK = 0x0000F000;
757
758 public const int PS_COSMETIC = 0x00000000;
759 public const int PS_GEOMETRIC = 0x00010000;
760 public const int PS_TYPE_MASK = 0x000F0000;
761
762 public const int BS_SOLID = 0;
763 public const int BS_NULL = 1;
764 public const int BS_HOLLOW = BS_NULL;
765 public const int BS_HATCHED = 2;
766 public const int BS_PATTERN = 3;
767 public const int BS_INDEXED = 4;
768 public const int BS_DIBPATTERN = 5;
769 public const int BS_DIBPATTERNPT = 6;
770 public const int BS_PATTERN8X8 = 7;
771 public const int BS_DIBPATTERN8X8 = 8;
772 public const int BS_MONOPATTERN = 9;
773
774 public const uint SRCCOPY = 0x00CC0020; /* dest = source */
775 public const uint SRCPAINT = 0x00EE0086; /* dest = source OR dest */
776 public const uint SRCAND = 0x008800C6; /* dest = source AND dest */
777 public const uint SRCINVERT = 0x00660046; /* dest = source XOR dest */
778 public const uint SRCERASE = 0x00440328; /* dest = source AND (NOT dest ) */
779 public const uint NOTSRCCOPY = 0x00330008; /* dest = (NOT source) */
780 public const uint NOTSRCERASE = 0x001100A6; /* dest = (NOT src) AND (NOT dest) */
781 public const uint MERGECOPY = 0x00C000CA; /* dest = (source AND pattern) */
782 public const uint MERGEPAINT = 0x00BB0226; /* dest = (NOT source) OR dest */
783 public const uint PATCOPY = 0x00F00021; /* dest = pattern */
784 public const uint PATPAINT = 0x00FB0A09; /* dest = DPSnoo */
785 public const uint PATINVERT = 0x005A0049; /* dest = pattern XOR dest */
786 public const uint DSTINVERT = 0x00550009; /* dest = (NOT dest) */
787 public const uint BLACKNESS = 0x00000042; /* dest = BLACK */
788 public const uint WHITENESS = 0x00FF0062; /* dest = WHITE */
789
790 public const uint NOMIRRORBITMAP = 0x80000000; /* Do not Mirror the bitmap in this call */
791 public const uint CAPTUREBLT = 0x40000000; /* Include layered windows */
792
793 // StretchBlt() Modes
794 public const int BLACKONWHITE = 1;
795 public const int WHITEONBLACK = 2;
796 public const int COLORONCOLOR = 3;
797 public const int HALFTONE = 4;
798 public const int MAXSTRETCHBLTMODE = 4;
799
800 public const int HeapCompatibilityInformation = 0;
801 public const uint HEAP_NO_SERIALIZE = 0x00000001;
802 public const uint HEAP_GROWABLE = 0x00000002;
803 public const uint HEAP_GENERATE_EXCEPTIONS = 0x00000004;
804 public const uint HEAP_ZERO_MEMORY = 0x00000008;
805 public const uint HEAP_REALLOC_IN_PLACE_ONLY = 0x00000010;
806 public const uint HEAP_TAIL_CHECKING_ENABLED = 0x00000020;
807 public const uint HEAP_FREE_CHECKING_ENABLED = 0x00000040;
808 public const uint HEAP_DISABLE_COALESCE_ON_FREE = 0x00000080;
809 public const uint HEAP_CREATE_ALIGN_16 = 0x00010000;
810 public const uint HEAP_CREATE_ENABLE_TRACING = 0x00020000;
811 public const uint HEAP_MAXIMUM_TAG = 0x0FFF;
812 public const uint HEAP_PSEUDO_TAG_FLAG = 0x8000;
813 public const uint HEAP_TAG_SHIFT = 18;
814
815 public const int SM_TABLETPC = 86;
816
817 public const uint MONITOR_DEFAULTTONULL = 0x00000000;
818 public const uint MONITOR_DEFAULTTOPRIMARY = 0x00000001;
819 public const uint MONITOR_DEFAULTTONEAREST = 0x00000002;
820
821 public const uint WTD_UI_ALL = 1;
822 public const uint WTD_UI_NONE = 2;
823 public const uint WTD_UI_NOBAD = 3;
824 public const uint WTD_UI_NOGOOD = 4;
825
826 public const uint WTD_REVOKE_NONE = 0;
827 public const uint WTD_REVOKE_WHOLECHAIN = 1;
828
829 public const uint WTD_CHOICE_FILE = 1;
830 public const uint WTD_CHOICE_CATALOG = 2;
831 public const uint WTD_CHOICE_BLOB = 3;
832 public const uint WTD_CHOICE_SIGNER = 4;
833 public const uint WTD_CHOICE_CERT = 5;
834
835 public const uint WTD_STATEACTION_IGNORE = 0;
836 public const uint WTD_STATEACTION_VERIFY = 1;
837 public const uint WTD_STATEACTION_CLOSE = 2;
838 public const uint WTD_STATEACTION_AUTO_CACHE = 3;
839 public const uint WTD_STATEACTION_AUTO_CACHE_FLUSH = 4;
840
841 public const uint WTD_PROV_FLAGS_MASK = 0x0000FFFF;
842 public const uint WTD_USE_IE4_TRUST_FLAG = 0x00000001;
843 public const uint WTD_NO_IE4_CHAIN_FLAG = 0x00000002;
844 public const uint WTD_NO_POLICY_USAGE_FLAG = 0x00000004;
845 public const uint WTD_REVOCATION_CHECK_NONE = 0x00000010;
846 public const uint WTD_REVOCATION_CHECK_END_CERT = 0x00000020;
847 public const uint WTD_REVOCATION_CHECK_CHAIN = 0x00000040;
848 public const uint WTD_REVOCATION_CHECK_CHAIN_EXCLUDE_ROOT = 0x00000080;
849 public const uint WTD_SAFER_FLAG = 0x00000100;
850 public const uint WTD_HASH_ONLY_FLAG = 0x00000200;
851 public const uint WTD_USE_DEFAULT_OSVER_CHECK = 0x00000400;
852 public const uint WTD_LIFETIME_SIGNING_FLAG = 0x00000800;
853 public const uint WTD_CACHE_ONLY_URL_RETRIEVAL = 0x00001000;
854
855 public static Guid WINTRUST_ACTION_GENERIC_VERIFY_V2
856 {
857 get
858 {
859 return new Guid(0xaac56b, 0xcd44, 0x11d0, 0x8c, 0xc2, 0x0, 0xc0, 0x4f, 0xc2, 0x95, 0xee);
860 }
861 }
862
863 public const uint FILE_SHARE_READ = 0x00000001;
864 public const uint FILE_SHARE_WRITE = 0x00000002;
865 public const uint FILE_SHARE_DELETE = 0x00000004;
866
867 public const uint FILE_READ_DATA = 0x0001;
868 public const uint FILE_LIST_DIRECTORY = 0x0001;
869 public const uint FILE_WRITE_DATA = 0x0002;
870 public const uint FILE_ADD_FILE = 0x0002;
871 public const uint FILE_APPEND_DATA = 0x0004;
872 public const uint FILE_ADD_SUBDIRECTORY = 0x0004;
873 public const uint FILE_CREATE_PIPE_INSTANCE = 0x0004;
874
875 public const uint FILE_READ_EA = 0x0008;
876 public const uint FILE_WRITE_EA = 0x0010;
877 public const uint FILE_EXECUTE = 0x0020;
878 public const uint FILE_TRAVERSE = 0x0020;
879 public const uint FILE_DELETE_CHILD = 0x0040;
880 public const uint FILE_READ_ATTRIBUTES = 0x0080;
881 public const uint FILE_WRITE_ATTRIBUTES = 0x0100;
882 public const uint FILE_ALL_ACCESS = (STANDARD_RIGHTS_REQUIRED | SYNCHRONIZE | 0x1FF);
883 public const uint FILE_GENERIC_READ = (STANDARD_RIGHTS_READ | FILE_READ_DATA | FILE_READ_ATTRIBUTES | FILE_READ_EA | SYNCHRONIZE);
884 public const uint FILE_GENERIC_WRITE = (STANDARD_RIGHTS_WRITE | FILE_WRITE_DATA | FILE_WRITE_ATTRIBUTES | FILE_WRITE_EA | FILE_APPEND_DATA | SYNCHRONIZE);
885 public const uint FILE_GENERIC_EXECUTE = (STANDARD_RIGHTS_EXECUTE | FILE_READ_ATTRIBUTES | FILE_EXECUTE | SYNCHRONIZE);
886
887 public const uint READ_CONTROL = 0x00020000;
888 public const uint SYNCHRONIZE = 0x00100000;
889 public const uint STANDARD_RIGHTS_READ = READ_CONTROL;
890 public const uint STANDARD_RIGHTS_WRITE = READ_CONTROL;
891 public const uint STANDARD_RIGHTS_EXECUTE = READ_CONTROL;
892 public const uint STANDARD_RIGHTS_REQUIRED = 0x000F0000;
893
894 public const uint GENERIC_READ = 0x80000000;
895 public const uint GENERIC_WRITE = 0x40000000;
896 public const uint GENERIC_EXECUTE = 0x20000000;
897
898 public const uint CREATE_NEW = 1;
899 public const uint CREATE_ALWAYS = 2;
900 public const uint OPEN_EXISTING = 3;
901 public const uint OPEN_ALWAYS = 4;
902 public const uint TRUNCATE_EXISTING = 5;
903
904 public const uint FILE_ATTRIBUTE_READONLY = 0x00000001;
905 public const uint FILE_ATTRIBUTE_HIDDEN = 0x00000002;
906 public const uint FILE_ATTRIBUTE_SYSTEM = 0x00000004;
907 public const uint FILE_ATTRIBUTE_DIRECTORY = 0x00000010;
908 public const uint FILE_ATTRIBUTE_ARCHIVE = 0x00000020;
909 public const uint FILE_ATTRIBUTE_DEVICE = 0x00000040;
910 public const uint FILE_ATTRIBUTE_NORMAL = 0x00000080;
911 public const uint FILE_ATTRIBUTE_TEMPORARY = 0x00000100;
912 public const uint FILE_ATTRIBUTE_SPARSE_FILE = 0x00000200;
913 public const uint FILE_ATTRIBUTE_REPARSE_POINT = 0x00000400;
914 public const uint FILE_ATTRIBUTE_COMPRESSED = 0x00000800;
915 public const uint FILE_ATTRIBUTE_OFFLINE = 0x00001000;
916 public const uint FILE_ATTRIBUTE_NOT_CONTENT_INDEXED = 0x00002000;
917 public const uint FILE_ATTRIBUTE_ENCRYPTED = 0x00004000;
918
919 public const uint FILE_FLAG_WRITE_THROUGH = 0x80000000;
920 public const uint FILE_FLAG_OVERLAPPED = 0x40000000;
921 public const uint FILE_FLAG_NO_BUFFERING = 0x20000000;
922 public const uint FILE_FLAG_RANDOM_ACCESS = 0x10000000;
923 public const uint FILE_FLAG_SEQUENTIAL_SCAN = 0x08000000;
924 public const uint FILE_FLAG_DELETE_ON_CLOSE = 0x04000000;
925 public const uint FILE_FLAG_BACKUP_SEMANTICS = 0x02000000;
926 public const uint FILE_FLAG_POSIX_SEMANTICS = 0x01000000;
927 public const uint FILE_FLAG_OPEN_REPARSE_POINT = 0x00200000;
928 public const uint FILE_FLAG_OPEN_NO_RECALL = 0x00100000;
929 public const uint FILE_FLAG_FIRST_PIPE_INSTANCE = 0x00080000;
930
931 public const uint FILE_BEGIN = 0;
932 public const uint FILE_CURRENT = 1;
933 public const uint FILE_END = 2;
934
935 public static readonly IntPtr INVALID_HANDLE_VALUE = new IntPtr(-1);
936
937 public const uint HANDLE_FLAG_INHERIT = 0x1;
938 public const uint HANDLE_FLAG_PROTECT_FROM_CLOSE = 0x2;
939
940 public const uint MEM_COMMIT = 0x1000;
941 public const uint MEM_RESERVE = 0x2000;
942 public const uint MEM_DECOMMIT = 0x4000;
943 public const uint MEM_RELEASE = 0x8000;
944 public const uint MEM_RESET = 0x80000;
945 public const uint MEM_TOP_DOWN = 0x100000;
946 public const uint MEM_PHYSICAL = 0x400000;
947
948 public const uint PAGE_NOACCESS = 0x01;
949 public const uint PAGE_READONLY = 0x02;
950 public const uint PAGE_READWRITE = 0x04;
951 public const uint PAGE_WRITECOPY = 0x08;
952 public const uint PAGE_EXECUTE = 0x10;
953 public const uint PAGE_EXECUTE_READ = 0x20;
954 public const uint PAGE_EXECUTE_READWRITE = 0x40;
955 public const uint PAGE_EXECUTE_WRITECOPY = 0x80;
956 public const uint PAGE_GUARD = 0x100;
957 public const uint PAGE_NOCACHE = 0x200;
958 public const uint PAGE_WRITECOMBINE = 0x400;
959
960 public const uint SEC_IMAGE = 0x1000000;
961 public const uint SEC_RESERVE = 0x4000000;
962 public const uint SEC_COMMIT = 0x8000000;
963 public const uint SEC_NOCACHE = 0x10000000;
964
965 public const uint SECTION_QUERY = 0x0001;
966 public const uint SECTION_MAP_WRITE = 0x0002;
967 public const uint SECTION_MAP_READ = 0x0004;
968 public const uint SECTION_MAP_EXECUTE_EXPLICIT = 0x0020;
969
970 public const uint FILE_MAP_COPY = SECTION_QUERY;
971 public const uint FILE_MAP_WRITE = SECTION_MAP_WRITE;
972 public const uint FILE_MAP_READ = SECTION_MAP_READ;
973 public const uint FILE_MAP_EXECUTE = SECTION_MAP_EXECUTE_EXPLICIT;
974
975 public const uint GMEM_FIXED = 0x0000;
976 public const uint GMEM_MOVEABLE = 0x0002;
977 public const uint GMEM_ZEROINIT = 0x0040;
978 public const uint GHND = 0x0042;
979 public const uint GPTR = 0x0040;
980
981 public const uint DIB_RGB_COLORS = 0; /* color table in RGBs */
982 public const uint DIB_PAL_COLORS = 1; /* color table in palette indices */
983
984 public const uint BI_RGB = 0;
985 public const uint BI_RLE8 = 1;
986 public const uint BI_RLE4 = 2;
987 public const uint BI_BITFIELDS = 3;
988 public const uint BI_JPEG = 4;
989 public const uint BI_PNG = 5;
990
991 public const uint DT_TOP = 0x00000000;
992 public const uint DT_LEFT = 0x00000000;
993 public const uint DT_CENTER = 0x00000001;
994 public const uint DT_RIGHT = 0x00000002;
995 public const uint DT_VCENTER = 0x00000004;
996 public const uint DT_BOTTOM = 0x00000008;
997 public const uint DT_WORDBREAK = 0x00000010;
998 public const uint DT_SINGLELINE = 0x00000020;
999 public const uint DT_EXPANDTABS = 0x00000040;
1000 public const uint DT_TABSTOP = 0x00000080;
1001 public const uint DT_NOCLIP = 0x00000100;
1002 public const uint DT_EXTERNALLEADING = 0x00000200;
1003 public const uint DT_CALCRECT = 0x00000400;
1004 public const uint DT_NOPREFIX = 0x00000800;
1005 public const uint DT_public = 0x00001000;
1006
1007 public const uint DT_EDITCONTROL = 0x00002000;
1008 public const uint DT_PATH_ELLIPSIS = 0x00004000;
1009 public const uint DT_END_ELLIPSIS = 0x00008000;
1010 public const uint DT_MODIFYSTRING = 0x00010000;
1011 public const uint DT_RTLREADING = 0x00020000;
1012 public const uint DT_WORD_ELLIPSIS = 0x00040000;
1013 public const uint DT_NOFULLWIDTHCHARBREAK = 0x00080000;
1014 public const uint DT_HIDEPREFIX = 0x00100000;
1015 public const uint DT_PREFIXONLY = 0x00200000;
1016
1017 public const uint FW_DONTCARE = 0;
1018 public const uint FW_THIN = 100;
1019 public const uint FW_EXTRALIGHT = 200;
1020 public const uint FW_LIGHT = 300;
1021 public const uint FW_NORMAL = 400;
1022 public const uint FW_MEDIUM = 500;
1023 public const uint FW_SEMIBOLD = 600;
1024 public const uint FW_BOLD = 700;
1025 public const uint FW_EXTRABOLD = 800;
1026 public const uint FW_HEAVY = 900;
1027
1028 public const uint OUT_DEFAULT_PRECIS = 0;
1029 public const uint OUT_STRING_PRECIS = 1;
1030 public const uint OUT_CHARACTER_PRECIS = 2;
1031 public const uint OUT_STROKE_PRECIS = 3;
1032 public const uint OUT_TT_PRECIS = 4;
1033 public const uint OUT_DEVICE_PRECIS = 5;
1034 public const uint OUT_RASTER_PRECIS = 6;
1035 public const uint OUT_TT_ONLY_PRECIS = 7;
1036 public const uint OUT_OUTLINE_PRECIS = 8;
1037 public const uint OUT_SCREEN_OUTLINE_PRECIS = 9;
1038 public const uint OUT_PS_ONLY_PRECIS = 10;
1039
1040 public const uint CLIP_DEFAULT_PRECIS = 0;
1041 public const uint CLIP_CHARACTER_PRECIS = 1;
1042 public const uint CLIP_STROKE_PRECIS = 2;
1043 public const uint CLIP_MASK = 0xf;
1044 public const uint CLIP_LH_ANGLES = (1 << 4);
1045 public const uint CLIP_TT_ALWAYS = (2 << 4);
1046 public const uint CLIP_EMBEDDED = (8 << 4);
1047
1048 public const uint DEFAULT_QUALITY = 0;
1049 public const uint DRAFT_QUALITY = 1;
1050 public const uint PROOF_QUALITY = 2;
1051 public const uint NONANTIALIASED_QUALITY = 3;
1052 public const uint ANTIALIASED_QUALITY = 4;
1053
1054 public const uint CLEARTYPE_QUALITY = 5;
1055
1056 public const uint CLEARTYPE_NATURAL_QUALITY = 6;
1057
1058 public const uint DEFAULT_PITCH = 0;
1059 public const uint FIXED_PITCH = 1;
1060 public const uint VARIABLE_PITCH = 2;
1061 public const uint MONO_FONT = 8;
1062
1063 public const uint FF_DONTCARE = (0 << 4);
1064 public const uint FF_ROMAN = (1 << 4);
1065 public const uint FF_SWISS = (2 << 4);
1066 public const uint FF_MODERN = (3 << 4);
1067 public const uint FF_SCRIPT = (4 << 4);
1068 public const uint FF_DECORATIVE = (5 << 4);
1069
1070 public const int SB_HORZ = 0;
1071
1072 public const int S_OK = 0;
1073 public const int S_FALSE = 1;
1074 public const int E_NOTIMPL = unchecked((int)0x80004001);
1075 }
1076 }

  ViewVC Help
Powered by ViewVC 1.1.22