RtlImpersonateSelf(): Set impersonation level in call to NtDuplicateToken().
[reactos.git] / reactos / include / defines.h
1 /*
2 Defines.h
3
4 Windows32 API definitions
5
6 Copyright (C) 1996, 1997 Free Software Foundation, Inc.
7
8 Author: Scott Christley <scottc@net-community.com>
9
10 This file is part of the Windows32 API Library.
11
12 This library is free software; you can redistribute it and/or
13 modify it under the terms of the GNU Library General Public
14 License as published by the Free Software Foundation; either
15 version 2 of the License, or (at your option) any later version.
16
17 This library is distributed in the hope that it will be useful,
18 but WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 Library General Public License for more details.
21
22 If you are interested in a warranty or support for this source code,
23 contact Scott Christley <scottc@net-community.com> for more information.
24
25 You should have received a copy of the GNU Library General Public
26 License along with this library; see the file COPYING.LIB.
27 If not, write to the Free Software Foundation,
28 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
29 */
30 /* WARNING: This file is automatically generated. */
31
32 #ifndef _GNU_H_WINDOWS32_DEFINES
33 #define _GNU_H_WINDOWS32_DEFINES
34
35 #ifndef RC_INVOKED
36 #include <ntos/ntdef.h>
37 #include <ntos/registry.h>
38 #endif
39
40 #define WINBASEAPI
41
42
43
44 #ifndef WIN32_NO_STATUS
45 /*
46 #define STATUS_WAIT_0 (0x00000000L)
47 #define STATUS_ABANDONED_WAIT_0 (0x00000080L)
48 #define STATUS_USER_APC (0x000000C0L)
49 #define STATUS_TIMEOUT (0x00000102L)
50 #define STATUS_PENDING (0x00000103L)
51 */
52 #endif /* WIN32_NO_STATUS */
53
54 #define GA_PARENT (1)
55 #define GA_ROOT (2)
56 #define GA_ROOTOWNER (3)
57
58 /* CreateFile, GetFileAttributes, SetFileAttributes */
59
60 #define SECURITY_ANONYMOUS (0)
61 #define SECURITY_IDENTIFICATION (65536)
62 #define SECURITY_IMPERSONATION (131072)
63 #define SECURITY_DELEGATION (196608)
64 #define SECURITY_CONTEXT_TRACKING (262144)
65 #define SECURITY_EFFECTIVE_ONLY (524288)
66 #define SECURITY_SQOS_PRESENT (1048576)
67
68
69
70
71 #ifndef WIN32_LEAN_AND_MEAN
72
73 #ifdef __cplusplus
74 extern "C" {
75 #endif /* __cplusplus */
76
77 #define MAX_PATH (260)
78 #define UNICODE_NULL ((WCHAR)0)
79 #define LF_FACESIZE (32)
80 #define LF_FULLFACESIZE (64)
81 #define ELF_VENDOR_SIZE (4)
82 #define MAX_DEFAULTCHAR (2)
83 #define MAX_LEADBYTES (12)
84 #define MENU_TEXT_LEN (40)
85 #define MAX_LANA (254)
86 #define NCBNAMSZ (16)
87 #define NETBIOS_NAME_LEN (16)
88 #define OFS_MAXPATHNAME (128)
89 #define MAX_TAB_STOPS (32)
90 #define RAS_MaxCallbackNumber (128)
91 #define RAS_MaxDeviceName (128)
92 #define RAS_MaxDeviceType (16)
93 #define RAS_MaxEntryName (256)
94 #define RAS_MaxIpAddress (15)
95 #define RAS_MaxIpxAddress (21)
96 #define RAS_MaxPhoneNumber (128)
97 #define UNLEN (256)
98 #define PWLEN (256)
99 #define CNLEN (15)
100 #define DNLEN (15)
101 /* Unsigned types max */
102 #define MAXDWORD (0xFFFFFFFF)
103 #define MAXWORD (0xFFFF)
104 #define MAXBYTE (0xFF)
105 /* Signed types max/min */
106 #define MINCHAR (0x80)
107 #define MAXCHAR (0x7F)
108 #define MINSHORT (0x8000)
109 #define MAXSHORT (0x7FFF)
110 #define MINLONG (0x80000000)
111 #define MAXLONG (0x7FFFFFFF)
112
113 /* _llseek */
114 #define FILE_BEGIN (0)
115 #define FILE_CURRENT (1)
116 #define FILE_END (2)
117
118 /* _lopen, LZOpenFile, OpenFile */
119 #define OF_READ (0)
120 #define OF_READWRITE (2)
121 #define OF_WRITE (1)
122 #define OF_SHARE_COMPAT (0)
123 #define OF_SHARE_DENY_NONE (64)
124 #define OF_SHARE_DENY_READ (48)
125 #define OF_SHARE_DENY_WRITE (32)
126 #define OF_SHARE_EXCLUSIVE (16)
127 #define OF_CANCEL (2048)
128 #define OF_CREATE (4096)
129 #define OF_DELETE (512)
130 #define OF_EXIST (16384)
131 #define OF_PARSE (256)
132 #define OF_PROMPT (8192)
133 #define OF_REOPEN (32768)
134 #define OF_VERIFY (1024)
135
136 /* ActivateKeyboardLayout, LoadKeyboardLayout */
137 #define HKL_NEXT (1)
138 #define HKL_PREV (0)
139 #define KLF_REORDER (8)
140 #define KLF_UNLOADPREVIOUS (4)
141 #define KLF_ACTIVATE (1)
142 #define KLF_NOTELLSHELL (128)
143 #define KLF_REPLACELANG (16)
144 #define KLF_SUBSTITUTE_OK (2)
145
146 /* AddFontResourceEx */
147 #define FR_PRIVATE (0x10)
148 #define FR_NOT_ENUM (0x20)
149
150
151 /* AppendMenu */
152 #define MF_BITMAP (0x4L)
153 #define MF_DISABLED (0x2L)
154 #define MF_ENABLED (0L)
155 #define MF_GRAYED (0x1L)
156 #define MF_HELP (0x4000L)
157 #define MF_MENUBARBREAK (0x20L)
158 #define MF_MENUBREAK (0x40L)
159 #define MF_MOUSESELECT (0x8000L)
160 #define MF_OWNERDRAW (0x100L)
161 #define MF_POPUP (0x10L)
162 #define MF_SEPARATOR (0x800L)
163 #define MF_STRING (0L)
164 #define MF_SYSMENU (0x2000L)
165 #define MF_USECHECKBITMAPS (0x200L)
166 #define MF_RIGHTJUSTIFY MF_HELP
167
168
169 /* Ternary Raster Operations - BitBlt */
170 #define BLACKNESS 0x00000042
171 #define NOTSRCERASE 0x001100A6
172 #define NOTSRCCOPY 0x00330008
173 #define SRCERASE 0x00440328
174 #define DSTINVERT 0x00550009
175 #define PATINVERT 0x005A0049
176 #define SRCINVERT 0x00660046
177 #define SRCAND 0x008800C6
178 #define MERGEPAINT 0x00BB0226
179 #define MERGECOPY 0x00C000CA
180 #define SRCCOPY 0x00CC0020
181 #define SRCPAINT 0x00EE0086
182 #define PATCOPY 0x00F00021
183 #define PATPAINT 0x00FB0A09
184 #define WHITENESS 0x00FF0062
185
186 /* Binary Raster Operations */
187 #define R2_BLACK (1)
188 #define R2_COPYPEN (13)
189 #define R2_MASKNOTPEN (3)
190 #define R2_MASKPEN (9)
191 #define R2_MASKPENNOT (5)
192 #define R2_MERGENOTPEN (12)
193 #define R2_MERGEPEN (15)
194 #define R2_MERGEPENNOT (14)
195 #define R2_NOP (11)
196 #define R2_NOT (6)
197 #define R2_NOTCOPYPEN (4)
198 #define R2_NOTMASKPEN (8)
199 #define R2_NOTMERGEPEN (2)
200 #define R2_NOTXORPEN (10)
201 #define R2_WHITE (16)
202 #define R2_XORPEN (7)
203
204 /* BroadcastSystemMessage */
205 #define BSF_FLUSHDISK (4)
206 #define BSF_FORCEIFHUNG (32)
207 #define BSF_IGNORECURRENTTASK (2)
208 #define BSF_NOHANG (8)
209 #define BSF_POSTMESSAGE (16)
210 #define BSF_QUERY (1)
211 #define BSM_ALLCOMPONENTS (0)
212 #define BSM_APPLICATIONS (8)
213 #define BSM_INSTALLABLEDRIVERS (4)
214 #define BSM_NETDRIVER (2)
215 #define BSM_VXDS (1)
216 #define BROADCAST_QUERY_DENY (1112363332)
217
218 /* BrowseCallbackProc */
219
220 /* CallNamedPipe */
221 #define NMPWAIT_NOWAIT (1)
222 #define NMPWAIT_WAIT_FOREVER (-1)
223 #define NMPWAIT_USE_DEFAULT_WAIT (0)
224
225 /* CascadeWindows, TileWindows */
226 #define MDITILE_SKIPDISABLED (2)
227 #define MDITILE_HORIZONTAL (1)
228 #define MDITILE_VERTICAL (0)
229
230 /* CBTProc */
231 #define HCBT_ACTIVATE (5)
232 #define HCBT_CLICKSKIPPED (6)
233 #define HCBT_CREATEWND (3)
234 #define HCBT_DESTROYWND (4)
235 #define HCBT_KEYSKIPPED (7)
236 #define HCBT_MINMAX (1)
237 #define HCBT_MOVESIZE (0)
238 #define HCBT_QS (2)
239 #define HCBT_SETFOCUS (9)
240 #define HCBT_SYSCOMMAND (8)
241
242 /* ChangeDisplaySettings */
243 #define DM_BITSPERPEL (0x40000L)
244 #define DM_PELSWIDTH (0x80000L)
245 #define DM_PELSHEIGHT (0x100000L)
246 #define DM_DISPLAYFLAGS (0x200000L)
247 #define DM_DISPLAYFREQUENCY (0x400000L)
248 #define CDS_UPDATEREGISTRY (1)
249 #define CDS_TEST (2)
250 #define DISP_CHANGE_SUCCESSFUL (0)
251 #define DISP_CHANGE_RESTART (1)
252 #define DISP_CHANGE_BADFLAGS (-4)
253 #define DISP_CHANGE_FAILED (-1)
254 #define DISP_CHANGE_BADMODE (-2)
255 #define DISP_CHANGE_NOTUPDATED (-3)
256 #define DISP_CHANGE_BADPARAM (-5)
257
258 /* ChangeMenu */
259 #define MF_INSERT 0
260 #define MF_CHANGE 128
261 #define MF_APPEND 256
262 #define MF_DELETE 512
263 #define MF_REMOVE 4096
264
265 /* ChangeServiceConfig */
266 #define SERVICE_NO_CHANGE (-1)
267 #define SERVICE_KERNEL_DRIVER (1)
268 #define SERVICE_FILE_SYSTEM_DRIVER (2)
269 #define SERVICE_RECOGNIZER_DRIVER (8)
270 #define SERVICE_WIN32_OWN_PROCESS (16)
271 #define SERVICE_WIN32_SHARE_PROCESS (32)
272 #define SERVICE_INTERACTIVE_PROCESS (256)
273 #define SERVICE_BOOT_START (0)
274 #define SERVICE_SYSTEM_START (1)
275 #define SERVICE_AUTO_START (2)
276 #define SERVICE_DEMAND_START (3)
277 #define SERVICE_DISABLED (4)
278 #define SERVICE_CONFIG_DESCRIPTION (1)
279 #define SERVICE_CONFIG_FAILURE_ACTIONS (2)
280
281 /* SERVICE_STATUS structure */
282 #define SERVICE_STOPPED (1)
283 #define SERVICE_START_PENDING (2)
284 #define SERVICE_STOP_PENDING (3)
285 #define SERVICE_RUNNING (4)
286 #define SERVICE_CONTINUE_PENDING (5)
287 #define SERVICE_PAUSE_PENDING (6)
288 #define SERVICE_PAUSED (7)
289 #define SERVICE_ACCEPT_STOP (1)
290 #define SERVICE_ACCEPT_PAUSE_CONTINUE (2)
291 #define SERVICE_ACCEPT_SHUTDOWN (4)
292 #define SERVICE_ACCEPT_PARAMCHANGE (8)
293 #define SERVICE_ACCEPT_NETBINDCHANGE (16)
294 #define SERVICE_ACCEPT_HARDWAREPROFILECHANGE (32)
295 #define SERVICE_ACCEPT_POWEREVENT (64)
296 #define SERVICE_ACCEPT_SESSIONCHANGE (128)
297
298 /* CheckDlgButton */
299 #define BST_CHECKED (1)
300 #define BST_INDETERMINATE (2)
301 #define BST_UNCHECKED (0)
302 #define BST_FOCUS (8)
303 #define BST_PUSHED (4)
304
305 /* CheckMenuItem, HiliteMenuItem */
306 #define MF_BYCOMMAND (0L)
307 #define MF_BYPOSITION (0x400L)
308 #define MF_CHECKED (0x8L)
309 #define MF_UNCHECKED (0L)
310 #define MF_HILITE (0x80L)
311 #define MF_UNHILITE (0L)
312
313 /* ChildWindowFromPointEx */
314 #define CWP_ALL (0)
315 #define CWP_SKIPINVISIBLE (1)
316 #define CWP_SKIPDISABLED (2)
317 #define CWP_SKIPTRANSPARENT (4)
318
319 /* ClearCommError */
320 #define CE_BREAK (16)
321 #define CE_DNS (2048)
322 #define CE_FRAME (8)
323 #define CE_IOE (1024)
324 #define CE_MODE (32768)
325 #define CE_OOP (4096)
326 #define CE_OVERRUN (2)
327 #define CE_PTO (512)
328 #define CE_RXOVER (1)
329 #define CE_RXPARITY (4)
330 #define CE_TXFULL (256)
331
332 /* ChooseMatchToTarget */
333
334 /* CombineRgn */
335 #define RGN_AND (1)
336 #define RGN_COPY (5)
337 #define RGN_DIFF (4)
338 #define RGN_OR (2)
339 #define RGN_XOR (3)
340 #define NULLREGION (1)
341 #define SIMPLEREGION (2)
342 #define COMPLEXREGION (3)
343 #define ERROR (0)
344
345 #define HW_PROFILE_GUIDLEN 39
346 #define MAX_PROFILE_LEN 80
347 /* CommonDlgExtendedError */
348 #define CDERR_DIALOGFAILURE (0xffff)
349 #define CDERR_FINDRESFAILURE (6)
350 #define CDERR_INITIALIZATION (2)
351 #define CDERR_LOADRESFAILURE (7)
352 #define CDERR_LOADSTRFAILURE (5)
353 #define CDERR_LOCKRESFAILURE (8)
354 #define CDERR_MEMALLOCFAILURE (9)
355 #define CDERR_MEMLOCKFAILURE (10)
356 #define CDERR_NOHINSTANCE (4)
357 #define CDERR_NOHOOK (11)
358 #define CDERR_NOTEMPLATE (3)
359 #define CDERR_REGISTERMSGFAIL (12)
360 #define CDERR_STRUCTSIZE (1)
361 #define PDERR_CREATEICFAILURE (0x1000 + 10)
362 #define PDERR_DEFAULTDIFFERENT (0x1000 + 12)
363 #define PDERR_DNDMMISMATCH (0x1000 + 9)
364 #define PDERR_GETDEVMODEFAIL (0x1000 + 5)
365 #define PDERR_INITFAILURE (0x1000 + 6)
366 #define PDERR_LOADDRVFAILURE (0x1000 + 4)
367 #define PDERR_NODEFAULTPRN (0x1000 + 8)
368 #define PDERR_NODEVICES (0x1000 + 7)
369 #define PDERR_PARSEFAILURE (0x1000 + 2)
370 #define PDERR_PRINTERNOTFOUND (0x1000 + 11)
371 #define PDERR_RETDEFFAILURE (0x1000 + 3)
372 #define PDERR_SETUPFAILURE (0x1000 + 1)
373 #define CFERR_MAXLESSTHANMIN (0x2000 + 2)
374 #define CFERR_NOFONTS (0x2000 + 1)
375 #define FNERR_BUFFERTOOSMALL (0x3000 + 3)
376 #define FNERR_INVALIDFILENAME (0x3000 + 2)
377 #define FNERR_SUBCLASSFAILURE (0x3000 + 1)
378 #define FRERR_BUFFERLENGTHZERO (0x4000 + 1)
379
380 /* CompareString, LCMapString */
381 #define LOCALE_SYSTEM_DEFAULT (0x800L)
382 #define LOCALE_USER_DEFAULT (0x400L)
383 #define NORM_IGNORECASE (1)
384 #define NORM_IGNOREKANATYPE (65536)
385 #define NORM_IGNORENONSPACE (2)
386 #define NORM_IGNORESYMBOLS (4)
387 #define NORM_IGNOREWIDTH (131072)
388 #define SORT_STRINGSORT (4096)
389 #define LCMAP_BYTEREV (2048)
390 #define LCMAP_FULLWIDTH (8388608)
391 #define LCMAP_HALFWIDTH (4194304)
392 #define LCMAP_HIRAGANA (1048576)
393 #define LCMAP_KATAKANA (2097152)
394 #define LCMAP_LOWERCASE (256)
395 #define LCMAP_SORTKEY (1024)
396 #define LCMAP_UPPERCASE (512)
397
398 /* ContinueDebugEvent */
399 #define DBG_CONTINUE (0x10002L)
400 #define DBG_CONTROL_BREAK (0x40010008L)
401 #define DBG_CONTROL_C (0x40010005L)
402 #define DBG_EXCEPTION_NOT_HANDLED (0x80010001L)
403 #define DBG_TERMINATE_THREAD (0x40010003L)
404 #define DBG_TERMINATE_PROCESS (0x40010004L)
405
406 /* ControlService */
407 #define SERVICE_CONTROL_STOP (1)
408 #define SERVICE_CONTROL_PAUSE (2)
409 #define SERVICE_CONTROL_CONTINUE (3)
410 #define SERVICE_CONTROL_INTERROGATE (4)
411 #define SERVICE_CONTROL_SHUTDOWN (5)
412 #define SERVICE_CONTROL_PARAMCHANGE (6)
413 #define SERVICE_CONTROL_NETBINDADD (7)
414 #define SERVICE_CONTROL_NETBINDREMOVE (8)
415 #define SERVICE_CONTROL_NETBINDENABLE (9)
416 #define SERVICE_CONTROL_NETBINDDISABLE (10)
417 #define SERVICE_CONTROL_DEVICEEVENT (11)
418 #define SERVICE_CONTROL_HARDWAREPROFILECHANGE (12)
419 #define SERVICE_CONTROL_POWEREVENT (13)
420 #define SERVICE_CONTROL_SESSIONCHANGE (14)
421
422 /* CopyImage, LoadImage */
423 #define IMAGE_BITMAP (0)
424 #define IMAGE_CURSOR (2)
425 #define IMAGE_ENHMETAFILE (1)
426 #define IMAGE_ICON (1)
427 #define LR_COPYDELETEORG (8)
428 #define LR_COPYRETURNORG (4)
429 #define LR_MONOCHROME (1)
430 #define LR_CREATEDIBSECTION (8192)
431 #define LR_DEFAULTSIZE (64)
432 #define LR_SHARED (32768)
433
434 /* CreateDesktop */
435 #define DF_ALLOWOTHERACCOUNTHOOK (0x1L)
436 #define DESKTOP_CREATEMENU (0x4L)
437 #define DESKTOP_CREATEWINDOW (0x2L)
438 #define DESKTOP_ENUMERATE (0x40L)
439 #define DESKTOP_HOOKCONTROL (0x8L)
440 #define DESKTOP_JOURNALPLAYBACK (0x20L)
441 #define DESKTOP_JOURNALRECORD (0x10L)
442 #define DESKTOP_READOBJECTS (0x1L)
443 #define DESKTOP_SWITCHDESKTOP (0x100L)
444 #define DESKTOP_WRITEOBJECTS (0x80L)
445 #define WSF_VISIBLE (0x1L)
446
447 /* CreateDIBitmap */
448 #define CBM_INIT (0x4L)
449 #define DIB_PAL_COLORS (1)
450 #define DIB_RGB_COLORS (0)
451
452 /* CreateFileMapping, VirtualAlloc, VirtualFree, VirtualProtect */
453
454 /* CreateFont */
455 #define FW_DONTCARE (0)
456 #define FW_THIN (100)
457 #define FW_EXTRALIGHT (200)
458 #define FW_LIGHT (300)
459 #define FW_NORMAL (400)
460 #define FW_REGULAR FW_NORMAL
461 #define FW_MEDIUM (500)
462 #define FW_SEMIBOLD (600)
463 #define FW_BOLD (700)
464 #define FW_EXTRABOLD (800)
465 #define FW_HEAVY (900)
466 #define ANSI_CHARSET (0)
467 #define DEFAULT_CHARSET (1)
468 #define SYMBOL_CHARSET (2)
469 #define SHIFTJIS_CHARSET (128)
470 #define HANGEUL_CHARSET (129)
471 #define JOHAB_CHARSET (130)
472 #define GB2312_CHARSET (134)
473 #define CHINESEBIG5_CHARSET (136)
474 #define GREEK_CHARSET (161)
475 #define TURKISH_CHARSET (162)
476 #define VIETNAMESE_CHARSET (163)
477 #define HEBREW_CHARSET (177)
478 #define ARABIC_CHARSET (178)
479 #define BALTIC_CHARSET (186)
480 #define RUSSIAN_CHARSET (204)
481 #define THAI_CHARSET (222)
482 #define EASTEUROPE_CHARSET (238)
483 #define OEM_CHARSET (255)
484 #define OUT_DEFAULT_PRECIS (0)
485 #define OUT_STRING_PRECIS (1)
486 #define OUT_CHARACTER_PRECIS (2)
487 #define OUT_STROKE_PRECIS (3)
488 #define OUT_TT_PRECIS (4)
489 #define OUT_DEVICE_PRECIS (5)
490 #define OUT_RASTER_PRECIS (6)
491 #define OUT_TT_ONLY_PRECIS (7)
492 #define OUT_OUTLINE_PRECIS (8)
493 #define CLIP_DEFAULT_PRECIS (0)
494 #define CLIP_CHARACTER_PRECIS (1)
495 #define CLIP_STROKE_PRECIS (2)
496 #define CLIP_MASK (15)
497 #define CLIP_LH_ANGLES (16)
498 #define CLIP_TT_ALWAYS (32)
499 #define CLIP_EMBEDDED (128)
500 #define DEFAULT_QUALITY (0)
501 #define DRAFT_QUALITY (1)
502 #define PROOF_QUALITY (2)
503 #define DEFAULT_PITCH (0)
504 #define FIXED_PITCH (1)
505 #define VARIABLE_PITCH (2)
506 #define FF_DECORATIVE (80)
507 #define FF_DONTCARE (0)
508 #define FF_MODERN (48)
509 #define FF_ROMAN (16)
510 #define FF_SCRIPT (64)
511 #define FF_SWISS (32)
512
513 /* CreateHatchBrush */
514 #define HS_BDIAGONAL (3)
515 #define HS_CROSS (4)
516 #define HS_DIAGCROSS (5)
517 #define HS_FDIAGONAL (2)
518 #define HS_HORIZONTAL (0)
519 #define HS_VERTICAL (1)
520
521 /* CreateIconFromResourceEx */
522 #define LR_DEFAULTCOLOR (0)
523 #define LR_LOADREALSIZE (128)
524 #define LR_MONOCHROME (1)
525
526 /* CreateMailslot, GetMailslotInfo */
527 #define MAILSLOT_WAIT_FOREVER (0xffffffffL)
528 #define MAILSLOT_NO_MESSAGE (0xffffffffL)
529
530 /* CreateMappedBitmap */
531 #define CMB_MASKED (2)
532
533 /* CreateNamedPipe */
534 #define PIPE_ACCESS_DUPLEX (3)
535 #define PIPE_ACCESS_INBOUND (1)
536 #define PIPE_ACCESS_OUTBOUND (2)
537 #define WRITE_DAC (0x40000L)
538 #define WRITE_OWNER (0x80000L)
539 #define ACCESS_SYSTEM_SECURITY (0x1000000L)
540 #define PIPE_TYPE_BYTE (0)
541 #define PIPE_TYPE_MESSAGE (4)
542 #define PIPE_READMODE_BYTE (0)
543 #define PIPE_READMODE_MESSAGE (2)
544 #define PIPE_WAIT (0)
545 #define PIPE_NOWAIT (1)
546 #define PIPE_UNLIMITED_INSTANCES (255)
547
548 /* CreatePen, ExtCreatePen */
549 #define PS_GEOMETRIC (65536)
550 #define PS_COSMETIC (0)
551 #define PS_ALTERNATE (8)
552 #define PS_SOLID (0)
553 #define PS_DASH (1)
554 #define PS_DOT (2)
555 #define PS_DASHDOT (3)
556 #define PS_DASHDOTDOT (4)
557 #define PS_NULL (5)
558 #define PS_USERSTYLE (7)
559 #define PS_INSIDEFRAME (6)
560 #define PS_ENDCAP_ROUND (0)
561 #define PS_ENDCAP_SQUARE (256)
562 #define PS_ENDCAP_FLAT (512)
563 #define PS_JOIN_BEVEL (4096)
564 #define PS_JOIN_MITER (8192)
565 #define PS_JOIN_ROUND (0)
566 #define PS_STYLE_MASK (15)
567 #define PS_ENDCAP_MASK (3840)
568 #define PS_TYPE_MASK (983040)
569
570 /* CreatePolygonRgn */
571 #define ALTERNATE (1)
572 #define WINDING (2)
573
574
575 /* CreateService */
576 #define SERVICE_CHANGE_CONFIG (2)
577 #define SERVICE_ENUMERATE_DEPENDENTS (8)
578 #define SERVICE_INTERROGATE (128)
579 #define SERVICE_PAUSE_CONTINUE (64)
580 #define SERVICE_QUERY_CONFIG (1)
581 #define SERVICE_QUERY_STATUS (4)
582 #define SERVICE_START (16)
583 #define SERVICE_STOP (32)
584 #define SERVICE_USER_DEFINED_CONTROL (256)
585 #define SERVICE_WIN32_OWN_PROCESS (16)
586 #define SERVICE_WIN32_SHARE_PROCESS (32)
587 #define SERVICE_KERNEL_DRIVER (1)
588 #define SERVICE_FILE_SYSTEM_DRIVER (2)
589 #define SERVICE_INTERACTIVE_PROCESS (256)
590 #define SERVICE_BOOT_START (0)
591 #define SERVICE_SYSTEM_START (1)
592 #define SERVICE_AUTO_START (2)
593 #define SERVICE_DEMAND_START (3)
594 #define SERVICE_DISABLED (4)
595 #define SERVICE_ERROR_IGNORE (0)
596 #define SERVICE_ERROR_NORMAL (1)
597 #define SERVICE_ERROR_SEVERE (2)
598 #define SERVICE_ERROR_CRITICAL (3)
599 #define SERVICE_RUNS_IN_SYSTEM_PROCESS (1)
600 #define SERVICE_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED | \
601 SERVICE_QUERY_CONFIG | \
602 SERVICE_CHANGE_CONFIG | \
603 SERVICE_QUERY_STATUS | \
604 SERVICE_ENUMERATE_DEPENDENTS | \
605 SERVICE_START | \
606 SERVICE_STOP | \
607 SERVICE_PAUSE_CONTINUE | \
608 SERVICE_INTERROGATE | \
609 SERVICE_USER_DEFINED_CONTROL)
610
611 /* CreateTapePartition, WriteTapemark */
612 #define TAPE_FIXED_PARTITIONS (0L)
613 #define TAPE_INITIATOR_PARTITIONS (0x2L)
614 #define TAPE_SELECT_PARTITIONS (0x1L)
615 #define TAPE_FILEMARKS (0x1L)
616 #define TAPE_LONG_FILEMARKS (0x3L)
617 #define TAPE_SETMARKS (0L)
618 #define TAPE_SHORT_FILEMARKS (0x2L)
619
620 /* Mouse Wheel */
621 #define WHEEL_DELTA (120)
622 #define GET_WHEEL_DELTA_WPARAM(wParam) ((short)HIWORD(wParam))
623
624 /* CreateWindow */
625 #define CW_USEDEFAULT (0x80000000L)
626 #define WS_BORDER (0x800000L)
627 #define WS_CAPTION (0xc00000L)
628 #define WS_CHILD (0x40000000L)
629 #define WS_CHILDWINDOW (0x40000000L)
630 #define WS_CLIPCHILDREN (0x2000000L)
631 #define WS_CLIPSIBLINGS (0x4000000L)
632 #define WS_DISABLED (0x8000000L)
633 #define WS_DLGFRAME (0x400000L)
634 #define WS_GROUP (0x20000L)
635 #define WS_HSCROLL (0x100000L)
636 #define WS_ICONIC (0x20000000L)
637 #define WS_MAXIMIZE (0x1000000L)
638 #define WS_MAXIMIZEBOX (0x10000L)
639 #define WS_MINIMIZE (0x20000000L)
640 #define WS_MINIMIZEBOX (0x20000L)
641 #define WS_OVERLAPPED (0L)
642 #define WS_OVERLAPPEDWINDOW (0xcf0000L)
643 #define WS_POPUP (0x80000000L)
644 #define WS_POPUPWINDOW (0x80880000L)
645 #define WS_SIZEBOX (0x40000L)
646 #define WS_SYSMENU (0x80000L)
647 #define WS_TABSTOP (0x10000L)
648 #define WS_THICKFRAME (0x40000L)
649 #define WS_TILED (0L)
650 #define WS_TILEDWINDOW (0xcf0000L)
651 #define WS_VISIBLE (0x10000000L)
652 #define WS_VSCROLL (0x200000L)
653 #define MDIS_ALLCHILDSTYLES (0x1)
654 #define BS_3STATE (0x5L)
655 #define BS_AUTO3STATE (0x6L)
656 #define BS_AUTOCHECKBOX (0x3L)
657 #define BS_AUTORADIOBUTTON (0x9L)
658 #define BS_BITMAP (0x80L)
659 #define BS_BOTTOM (0x800L)
660 #define BS_CENTER (0x300L)
661 #define BS_CHECKBOX (0x2L)
662 #define BS_DEFPUSHBUTTON (0x1L)
663 #define BS_GROUPBOX (0x7L)
664 #define BS_ICON (0x40L)
665 #define BS_LEFT (0x100L)
666 #define BS_LEFTTEXT (0x20L)
667 #define BS_MULTILINE (0x2000L)
668 #define BS_NOTIFY (0x4000L)
669 #define BS_OWNERDRAW (0xbL)
670 #define BS_PUSHBUTTON (0L)
671 #define BS_PUSHLIKE (0x1000L)
672 #define BS_RADIOBUTTON (0x4L)
673 #define BS_RIGHT (0x200L)
674 #define BS_RIGHTBUTTON (0x20L)
675 #define BS_TEXT (0L)
676 #define BS_TOP (0x400L)
677 #define BS_USERBUTTON (0x8L)
678 #define BS_VCENTER (0xc00L)
679 #define BS_FLAT (0x8000L)
680 #define CBS_AUTOHSCROLL (0x40L)
681 #define CBS_DISABLENOSCROLL (0x800L)
682 #define CBS_DROPDOWN (0x2L)
683 #define CBS_DROPDOWNLIST (0x3L)
684 #define CBS_HASSTRINGS (0x200L)
685 #define CBS_LOWERCASE (0x4000L)
686 #define CBS_NOINTEGRALHEIGHT (0x400L)
687 #define CBS_OEMCONVERT (0x80L)
688 #define CBS_OWNERDRAWFIXED (0x10L)
689 #define CBS_OWNERDRAWVARIABLE (0x20L)
690 #define CBS_SIMPLE (0x1L)
691 #define CBS_SORT (0x100L)
692 #define CBS_UPPERCASE (0x2000L)
693 #define ES_AUTOHSCROLL (0x80L)
694 #define ES_AUTOVSCROLL (0x40L)
695 #define ES_CENTER (0x1L)
696 #define ES_LEFT (0L)
697 #define ES_LOWERCASE (0x10L)
698 #define ES_MULTILINE (0x4L)
699 #define ES_NOHIDESEL (0x100L)
700 #define ES_NUMBER (0x2000L)
701 #define ES_OEMCONVERT (0x400L)
702 #define ES_PASSWORD (0x20L)
703 #define ES_READONLY (0x800L)
704 #define ES_RIGHT (0x2L)
705 #define ES_UPPERCASE (0x8L)
706 #define ES_WANTRETURN (0x1000L)
707 #define LBS_DISABLENOSCROLL (0x1000L)
708 #define LBS_EXTENDEDSEL (0x800L)
709 #define LBS_HASSTRINGS (0x40L)
710 #define LBS_MULTICOLUMN (0x200L)
711 #define LBS_MULTIPLESEL (0x8L)
712 #define LBS_NODATA (0x2000L)
713 #define LBS_NOINTEGRALHEIGHT (0x100L)
714 #define LBS_NOREDRAW (0x4L)
715 #define LBS_NOSEL (0x4000L)
716 #define LBS_NOTIFY (0x1L)
717 #define LBS_OWNERDRAWFIXED (0x10L)
718 #define LBS_OWNERDRAWVARIABLE (0x20L)
719 #define LBS_SORT (0x2L)
720 #define LBS_STANDARD (0xa00003L)
721 #define LBS_USETABSTOPS (0x80L)
722 #define LBS_WANTKEYBOARDINPUT (0x400L)
723 #define SBS_BOTTOMALIGN (0x4L)
724 #define SBS_HORZ (0L)
725 #define SBS_LEFTALIGN (0x2L)
726 #define SBS_RIGHTALIGN (0x4L)
727 #define SBS_SIZEBOX (0x8L)
728 #define SBS_SIZEBOXBOTTOMRIGHTALIGN (0x4L)
729 #define SBS_SIZEBOXTOPLEFTALIGN (0x2L)
730 #define SBS_SIZEGRIP (0x10L)
731 #define SBS_TOPALIGN (0x2L)
732 #define SBS_VERT (0x1L)
733 #define SS_BITMAP (0xeL)
734 #define SS_BLACKFRAME (0x7L)
735 #define SS_BLACKRECT (0x4L)
736 #define SS_CENTER (0x1L)
737 #define SS_CENTERIMAGE (0x200L)
738 #define SS_ELLIPSISMASK (0xC000L)
739 #define SS_ENDELLIPSIS (0x4000L)
740 #define SS_ENHMETAFILE (0xfL)
741 #define SS_ETCHEDFRAME (0x12L)
742 #define SS_ETCHEDHORZ (0x10L)
743 #define SS_ETCHEDVERT (0x11L)
744 #define SS_GRAYFRAME (0x8L)
745 #define SS_GRAYRECT (0x5L)
746 #define SS_ICON (0x3L)
747 #define SS_LEFT (0L)
748 #define SS_LEFTNOWORDWRAP (0xcL)
749 #define SS_NOPREFIX (0x80L)
750 #define SS_NOTIFY (0x100L)
751 #define SS_OWNERDRAW (0xdL)
752 #define SS_PATHELLIPSIS (0x8000L)
753 #define SS_REALSIZEIMAGE (0x800L)
754 #define SS_RIGHT (0x2L)
755 #define SS_RIGHTJUST (0x400L)
756 #define SS_SIMPLE (0xbL)
757 #define SS_SUNKEN (0x1000L)
758 #define SS_TYPEMASK (0x1FL)
759 #define SS_USERITEM (0xaL)
760 #define SS_WHITEFRAME (0x9L)
761 #define SS_WHITERECT (0x6L)
762 #define SS_WORDELLIPSIS (0xC000L)
763 #define DS_3DLOOK (0x4L)
764 #define DS_ABSALIGN (0x1L)
765 #define DS_CENTER (0x800L)
766 #define DS_CENTERMOUSE (0x1000L)
767 #define DS_CONTEXTHELP (0x2000L)
768 #define DS_CONTROL (0x400L)
769 #define DS_FIXEDSYS (0x8L)
770 #define DS_LOCALEDIT (0x20L)
771 #define DS_MODALFRAME (0x80L)
772 #define DS_NOFAILCREATE (0x10L)
773 #define DS_NOIDLEMSG (0x100L)
774 #define DS_SETFONT (0x40L)
775 #define DS_SETFOREGROUND (0x200L)
776 #define DS_SYSMODAL (0x2L)
777
778 /* CreateWindowEx */
779 #define WS_EX_ACCEPTFILES (0x10L)
780 #define WS_EX_APPWINDOW (0x40000L)
781 #define WS_EX_CLIENTEDGE (0x200L)
782 #define WS_EX_CONTEXTHELP (0x400L)
783 #define WS_EX_CONTROLPARENT (0x10000L)
784 #define WS_EX_DLGMODALFRAME (0x1L)
785 #define WS_EX_LEFT (0L)
786 #define WS_EX_LEFTSCROLLBAR (0x4000L)
787 #define WS_EX_LTRREADING (0L)
788 #define WS_EX_MDICHILD (0x40L)
789 #define WS_EX_NOPARENTNOTIFY (0x4L)
790 #define WS_EX_OVERLAPPEDWINDOW (0x300L)
791 #define WS_EX_PALETTEWINDOW (0x188L)
792 #define WS_EX_RIGHT (0x1000L)
793 #define WS_EX_RIGHTSCROLLBAR (0L)
794 #define WS_EX_RTLREADING (0x2000L)
795 #define WS_EX_STATICEDGE (0x20000L)
796 #define WS_EX_TOOLWINDOW (0x80L)
797 #define WS_EX_TOPMOST (0x8L)
798 #define WS_EX_TRANSPARENT (0x20L)
799 #define WS_EX_WINDOWEDGE (0x100L)
800
801 /* CreateWindowStation */
802 #define WINSTA_ACCESSCLIPBOARD (0x4L)
803 #define WINSTA_ACCESSGLOBALATOMS (0x20L)
804 #define WINSTA_CREATEDESKTOP (0x8L)
805 #define WINSTA_ENUMDESKTOPS (0x1L)
806 #define WINSTA_ENUMERATE (0x100L)
807 #define WINSTA_EXITWINDOWS (0x40L)
808 #define WINSTA_READATTRIBUTES (0x2L)
809 #define WINSTA_READSCREEN (0x200L)
810 #define WINSTA_WRITEATTRIBUTES (0x10L)
811
812 /* DdeCallback */
813
814 /* DdeClientTransaction */
815
816 /* DdeEnableCallback */
817
818 /* DdeGetLastError */
819
820 /* DdeInitialize */
821
822 /* DdeNameService */
823
824 /* DebugProc */
825 #define WH_CALLWNDPROC (4)
826 #define WH_CALLWNDPROCRET (12)
827 #define WH_CBT (5)
828 #define WH_DEBUG (9)
829 #define WH_GETMESSAGE (3)
830 #define WH_JOURNALPLAYBACK (1)
831 #define WH_JOURNALRECORD (0)
832 #define WH_KEYBOARD (2)
833 #define WH_KEYBOARD_LL (13)
834 #define WH_MOUSE (7)
835 #define WH_MOUSE_LL (14)
836 #define WH_MSGFILTER (-1)
837 #define WH_SHELL (10)
838 #define WH_SYSMSGFILTER (6)
839 #define WH_MSGFILTER (-1)
840 #define WH_FOREGROUNDIDLE (11)
841
842 #define WH_MINHOOK (-1)
843 #define WH_MAXHOOK (14)
844
845 /* DefineDosDevice */
846 #define DDD_RAW_TARGET_PATH (1)
847 #define DDD_REMOVE_DEFINITION (2)
848 #define DDD_EXACT_MATCH_ON_REMOVE (4)
849
850 /* DeviceCapbilities */
851 #define DC_BINNAMES (12)
852 #define DC_BINS (6)
853 #define DC_COPIES (18)
854 #define DC_DRIVER (11)
855 #define DC_DATATYPE_PRODUCED (21)
856 #define DC_DUPLEX (7)
857 #define DC_EMF_COMPLIANT (20)
858 #define DC_ENUMRESOLUTIONS (13)
859 #define DC_EXTRA (9)
860 #define DC_FIELDS (1)
861 #define DC_FILEDEPENDENCIES (14)
862 #define DC_MAXEXTENT (5)
863 #define DC_MINEXTENT (4)
864 #define DC_ORIENTATION (17)
865 #define DC_PAPERNAMES (16)
866 #define DC_PAPERS (2)
867 #define DC_PAPERSIZE (3)
868 #define DC_SIZE (8)
869 #define DC_TRUETYPE (15)
870 #define DCTT_BITMAP (0x1L)
871 #define DCTT_DOWNLOAD (0x2L)
872 #define DCTT_SUBDEV (0x4L)
873 #define DC_VERSION (10)
874 #define DC_BINADJUST (19)
875 #define DC_DATATYPE_PRODUCED (21)
876
877 /* DeviceIoControl */
878
879 /* DlgDirList */
880 #define DDL_ARCHIVE (32)
881 #define DDL_DIRECTORY (16)
882 #define DDL_DRIVES (16384)
883 #define DDL_EXCLUSIVE (32768)
884 #define DDL_HIDDEN (2)
885 #define DDL_READONLY (1)
886 #define DDL_READWRITE (0)
887 #define DDL_SYSTEM (4)
888 #define DDL_POSTMSGS (8192)
889
890 /* DllEntryPoint */
891 #define DLL_PROCESS_ATTACH (1)
892 #define DLL_THREAD_ATTACH (2)
893 #define DLL_PROCESS_DETACH (0)
894 #define DLL_THREAD_DETACH (3)
895
896 /* DocumentProperties */
897 #define DM_IN_BUFFER (8)
898 #define DM_MODIFY (8)
899 #define DM_IN_PROMPT (4)
900 #define DM_PROMPT (4)
901 #define DM_OUT_BUFFER (2)
902 #define DM_COPY (2)
903 #define DM_UPDATE (1)
904
905 /* DrawAnimatedRects */
906 #define IDANI_OPEN (1)
907 #define IDANI_CLOSE (2)
908
909 /* DrawCaption */
910 #define DC_ACTIVE 1
911 #define DC_SMALLCAP 2
912 #define DC_ICON 4
913 #define DC_TEXT 8
914 #define DC_INBUTTON 16
915 #define DC_GRADIENT 32
916 #define DC_BUTTONS 0x1000
917 #define DC_CAPTION (DC_ICON|DC_TEXT|DC_BUTTONS|DC_GRADIENT)
918 #define DC_NC (DC_CAPTION|DC_FRAME)
919
920 /* DrawEdge */
921 #define BDR_OUTER (3)
922 #define BDR_INNER (12)
923 #define BDR_RAISED (5)
924 #define BDR_SUNKEN (10)
925 #define BDR_RAISEDINNER (4)
926 #define BDR_SUNKENINNER (8)
927 #define BDR_RAISEDOUTER (1)
928 #define BDR_SUNKENOUTER (1)
929 #define EDGE_BUMP (9)
930 #define EDGE_ETCHED (6)
931 #define EDGE_RAISED (5)
932 #define EDGE_SUNKEN (10)
933 #define BF_ADJUST (8192)
934 #define BF_BOTTOM (8)
935 #define BF_BOTTOMLEFT (9)
936 #define BF_BOTTOMRIGHT (12)
937 #define BF_DIAGONAL (16)
938 #define BF_DIAGONAL_ENDBOTTOMLEFT (25)
939 #define BF_DIAGONAL_ENDBOTTOMRIGHT (28)
940 #define BF_DIAGONAL_ENDTOPLEFT (19)
941 #define BF_DIAGONAL_ENDTOPRIGHT (22)
942 #define BF_FLAT (16384)
943 #define BF_LEFT (1)
944 #define BF_MIDDLE (2048)
945 #define BF_MONO (32768)
946 #define BF_RECT (15)
947 #define BF_RIGHT (4)
948 #define BF_SOFT (4096)
949 #define BF_TOP (2)
950 #define BF_TOPLEFT (3)
951 #define BF_TOPRIGHT (6)
952
953 /* DrawFrameControl */
954 #define DFC_BUTTON (4)
955 #define DFC_POPUPMENU (5)
956 #define DFC_CAPTION (1)
957 #define DFC_MENU (2)
958 #define DFC_SCROLL (3)
959 #define DFCS_BUTTON3STATE (8)
960 #define DFCS_BUTTONCHECK (0)
961 #define DFCS_BUTTONPUSH (16)
962 #define DFCS_BUTTONRADIO (4)
963 #define DFCS_BUTTONRADIOIMAGE (1)
964 #define DFCS_BUTTONRADIOMASK (2)
965 #define DFCS_CAPTIONCLOSE (0)
966 #define DFCS_CAPTIONHELP (4)
967 #define DFCS_CAPTIONMAX (2)
968 #define DFCS_CAPTIONMIN (1)
969 #define DFCS_CAPTIONRESTORE (3)
970 #define DFCS_MENUARROW (0)
971 #define DFCS_MENUBULLET (2)
972 #define DFCS_MENUCHECK (1)
973 #define DFCS_SCROLLCOMBOBOX (5)
974 #define DFCS_SCROLLDOWN (1)
975 #define DFCS_SCROLLLEFT (2)
976 #define DFCS_SCROLLRIGHT (3)
977 #define DFCS_SCROLLSIZEGRIP (8)
978 #define DFCS_SCROLLUP (0)
979 #define DFCS_ADJUSTRECT (8192)
980 #define DFCS_CHECKED (1024)
981 #define DFCS_FLAT (16384)
982 #define DFCS_INACTIVE (256)
983 #define DFCS_MONO (32768)
984 #define DFCS_PUSHED (512)
985
986 /* DrawIcon */
987 #define ICON_SMALL (0)
988 #define ICON_BIG (1)
989 #define ICON_SMALL2 (2)
990
991 /* DrawIconEx */
992 #define DI_COMPAT (4)
993 #define DI_DEFAULTSIZE (8)
994 #define DI_IMAGE (2)
995 #define DI_MASK (1)
996 #define DI_NORMAL (3)
997
998 /* DrawState */
999 #define DST_BITMAP (4)
1000 #define DST_COMPLEX (0)
1001 #define DST_ICON (3)
1002 #define DST_PREFIXTEXT (2)
1003 #define DST_TEXT (1)
1004 #define DSS_NORMAL (0)
1005 #define DSS_UNION (16)
1006 #define DSS_DISABLED (32)
1007 #define DSS_MONO (128)
1008 #define DSS_RIGHT (0x8000) /* Undocumented */
1009
1010 /* DrawStatusText */
1011 #define SBT_NOBORDERS (256)
1012 #define SBT_OWNERDRAW (4096)
1013 #define SBT_POPOUT (512)
1014 #define SBT_RTLREADING (1024)
1015
1016 /* DrawText, DrawTextEx */
1017 #define DT_BOTTOM (8)
1018 #define DT_CALCRECT (1024)
1019 #define DT_CENTER (1)
1020 #define DT_EDITCONTROL (8192)
1021 #define DT_END_ELLIPSIS (32768)
1022 #define DT_PATH_ELLIPSIS (16384)
1023 #define DT_EXPANDTABS (64)
1024 #define DT_EXTERNALLEADING (512)
1025 #define DT_LEFT (0)
1026 #define DT_MODIFYSTRING (65536)
1027 #define DT_NOCLIP (256)
1028 #define DT_NOPREFIX (2048)
1029 #define DT_RIGHT (2)
1030 #define DT_RTLREADING (131072)
1031 #define DT_SINGLELINE (32)
1032 #define DT_TABSTOP (128)
1033 #define DT_TOP (0)
1034 #define DT_VCENTER (4)
1035 #define DT_WORDBREAK (16)
1036 #define DT_WORD_ELLIPSIS (262144)
1037 #define DT_INTERNAL (4096)
1038
1039
1040 /* EditWordBreakProc */
1041 #define WB_ISDELIMITER (2)
1042 #define WB_LEFT (0)
1043 #define WB_RIGHT (1)
1044
1045 /* EnableScrollBar */
1046 #define SB_BOTH (3)
1047 #define SB_CTL (2)
1048 #define SB_HORZ (0)
1049 #define SB_VERT (1)
1050 #define ESB_DISABLE_BOTH (3)
1051 #define ESB_DISABLE_DOWN (2)
1052 #define ESB_DISABLE_LEFT (1)
1053 #define ESB_DISABLE_LTUP (1)
1054 #define ESB_DISABLE_RIGHT (2)
1055 #define ESB_DISABLE_RTDN (2)
1056 #define ESB_DISABLE_UP (1)
1057 #define ESB_ENABLE_BOTH (0)
1058
1059 /* Scroll Bar notifications*/
1060 #define SB_LINEUP (0)
1061 #define SB_LINEDOWN (1)
1062 #define SB_LINELEFT (0)
1063 #define SB_LINERIGHT (1)
1064 #define SB_PAGEUP (2)
1065 #define SB_PAGEDOWN (3)
1066 #define SB_PAGELEFT (2)
1067 #define SB_PAGERIGHT (3)
1068 #define SB_THUMBPOSITION (4)
1069 #define SB_THUMBTRACK (5)
1070 #define SB_ENDSCROLL (8)
1071 #define SB_LEFT (6)
1072 #define SB_RIGHT (7)
1073 #define SB_BOTTOM (7)
1074 #define SB_TOP (6)
1075
1076 /* EnumCalendarInfo */
1077 #define ENUM_ALL_CALENDARS (-1)
1078
1079 /* EnumDateFormats */
1080 #define DATE_SHORTDATE (1)
1081 #define DATE_LONGDATE (2)
1082
1083 /* EnumDependentServices */
1084 #define SERVICE_ACTIVE (1)
1085 #define SERVICE_INACTIVE (2)
1086 #define SERVICE_STATE_ALL (SERVICE_ACTIVE | \
1087 SERVICE_INACTIVE)
1088
1089 /* EnumFontFamExProc */
1090 #define DEVICE_FONTTYPE (2)
1091 #define RASTER_FONTTYPE (1)
1092 #define TRUETYPE_FONTTYPE (4)
1093
1094 /* EnumObjects, GetCurrentObject, GetObjectType */
1095 #define OBJ_PEN (1)
1096 #define OBJ_BRUSH (2)
1097 #define OBJ_DC (3)
1098 #define OBJ_METADC (4)
1099 #define OBJ_PAL (5)
1100 #define OBJ_FONT (6)
1101 #define OBJ_BITMAP (7)
1102 #define OBJ_REGION (8)
1103 #define OBJ_METAFILE (9)
1104 #define OBJ_MEMDC (10)
1105 #define OBJ_EXTPEN (11)
1106 #define OBJ_ENHMETADC (12)
1107 #define OBJ_ENHMETAFILE (13)
1108 #define OBJ_COLORSPACE (14)
1109
1110 /* EnumPrinters */
1111
1112 /* EnumProtocols */
1113
1114 /* EnumResLangProc */
1115 #define RT_ACCELERATORA (MAKEINTRESOURCEA(9))
1116 #define RT_BITMAPA (MAKEINTRESOURCEA(2))
1117 #define RT_DIALOGA (MAKEINTRESOURCEA(5))
1118 #define RT_FONTA (MAKEINTRESOURCEA(8))
1119 #define RT_FONTDIRA (MAKEINTRESOURCEA(7))
1120 #define RT_MENUA (MAKEINTRESOURCEA(4))
1121 #define RT_RCDATAA (MAKEINTRESOURCEA(10))
1122 #define RT_STRINGA (MAKEINTRESOURCEA(6))
1123 #define RT_MESSAGETABLEA (MAKEINTRESOURCEA(11))
1124 #define RT_CURSORA (MAKEINTRESOURCEA(1))
1125 #define RT_GROUP_CURSORA (MAKEINTRESOURCEA(12))
1126 #define RT_ICONA (MAKEINTRESOURCEA(3))
1127 #define RT_GROUP_ICONA (MAKEINTRESOURCEA(14))
1128 #define RT_VERSIONA (MAKEINTRESOURCEA(16))
1129
1130 #define RT_ACCELERATORW (MAKEINTRESOURCEW(9))
1131 #define RT_BITMAPW (MAKEINTRESOURCEW(2))
1132 #define RT_DIALOGW (MAKEINTRESOURCEW(5))
1133 #define RT_FONTW (MAKEINTRESOURCEW(8))
1134 #define RT_FONTDIRW (MAKEINTRESOURCEW(7))
1135 #define RT_MENUW (MAKEINTRESOURCEW(4))
1136 #define RT_RCDATAW (MAKEINTRESOURCEW(10))
1137 #define RT_STRINGW (MAKEINTRESOURCEW(6))
1138 #define RT_MESSAGETABLEW (MAKEINTRESOURCEW(11))
1139 #define RT_CURSORW (MAKEINTRESOURCEW(1))
1140 #define RT_GROUP_CURSORW (MAKEINTRESOURCEW(12))
1141 #define RT_ICONW (MAKEINTRESOURCEW(3))
1142 #define RT_GROUP_ICONW (MAKEINTRESOURCEW(14))
1143 #define RT_VERSIONW (MAKEINTRESOURCEW(16))
1144
1145 #ifndef _DISABLE_TIDENT
1146 #ifdef UNICODE
1147 #define RT_ACCELERATOR RT_ACCELERATORW
1148 #define RT_BITMAP RT_BITMAPW
1149 #define RT_DIALOG RT_DIALOGW
1150 #define RT_FONT RT_FONTW
1151 #define RT_FONTDIR RT_FONTDIRW
1152 #define RT_MENU RT_MENUW
1153 #define RT_RCDATA RT_RCDATAW
1154 #define RT_STRING RT_STRINGW
1155 #define RT_MESSAGETABLE RT_MESSAGETABLEW
1156 #define RT_CURSOR RT_CURSORW
1157 #define RT_GROUP_CURSOR RT_GROUP_CURSORW
1158 #define RT_ICON RT_ICONW
1159 #define RT_GROUP_ICON RT_GROUP_ICONW
1160 #define RT_VERSION RT_VERSIONW
1161 #else /* UNICODE */
1162 #define RT_ACCELERATOR RT_ACCELERATORA
1163 #define RT_BITMAP RT_BITMAPA
1164 #define RT_DIALOG RT_DIALOGA
1165 #define RT_FONT RT_FONTA
1166 #define RT_FONTDIR RT_FONTDIRA
1167 #define RT_MENU RT_MENUA
1168 #define RT_RCDATA RT_RCDATAA
1169 #define RT_STRING RT_STRINGA
1170 #define RT_MESSAGETABLE RT_MESSAGETABLEA
1171 #define RT_CURSOR RT_CURSORA
1172 #define RT_GROUP_CURSOR RT_GROUP_CURSORA
1173 #define RT_ICON RT_ICONA
1174 #define RT_GROUP_ICON RT_GROUP_ICONA
1175 #define RT_VERSION RT_VERSIONA
1176 #endif /* UNICODE */
1177 #endif /* _DISABLE_TIDENT */
1178
1179 /* EnumServicesStatus */
1180 #define SERVICE_WIN32 (48)
1181 #define SERVICE_DRIVER (11)
1182
1183 /* EnumSystemCodePages */
1184 #define CP_INSTALLED (1)
1185 #define CP_SUPPORTED (2)
1186
1187 /* EnumSystemLocales */
1188 #define LCID_INSTALLED (1)
1189 #define LCID_SUPPORTED (2)
1190
1191 /* EraseTape */
1192 #define TAPE_ERASE_LONG (0x1L)
1193 #define TAPE_ERASE_SHORT (0L)
1194
1195 /* Escape */
1196 #define SP_ERROR (-1)
1197 #define SP_OUTOFDISK (-4)
1198 #define SP_OUTOFMEMORY (-5)
1199 #define SP_USERABORT (-3)
1200 #define PHYSICALWIDTH (110)
1201 #define PHYSICALHEIGHT (111)
1202 #define PHYSICALOFFSETX (112)
1203 #define PHYSICALOFFSETY (113)
1204 #define SCALINGFACTORX (114)
1205 #define SCALINGFACTORY (115)
1206 #define QUERYESCSUPPORT (8)
1207 #define ABORTDOC (2)
1208 #define ENDDOC (11)
1209 #define GETPHYSPAGESIZE (12)
1210 #define GETPRINTINGOFFSET (13)
1211 #define GETSCALINGFACTOR (14)
1212 #define NEWFRAME (1)
1213 #define NEXTBAND (3)
1214 #define PASSTHROUGH (19)
1215 #define SETABORTPROC (9)
1216 #define STARTDOC (10)
1217
1218 /* EscapeCommFunction */
1219 #define CLRDTR (6)
1220 #define CLRRTS (4)
1221 #define SETDTR (5)
1222 #define SETRTS (3)
1223 #define SETXOFF (1)
1224 #define SETXON (2)
1225 #define SETBREAK (8)
1226 #define CLRBREAK (9)
1227
1228 /* ExitWindowsEx */
1229 #define EWX_FORCE (4)
1230 #define EWX_LOGOFF (0)
1231 #define EWX_POWEROFF (8)
1232 #define EWX_REBOOT (2)
1233 #define EWX_SHUTDOWN (1)
1234
1235 /* ExtFloodFill */
1236 #define FLOODFILLBORDER (0)
1237 #define FLOODFILLSURFACE (1)
1238
1239 /* ExtTextOut */
1240 #define ETO_CLIPPED (4)
1241 #define ETO_GLYPH_INDEX (16)
1242 #define ETO_OPAQUE (2)
1243 #define ETO_RTLREADING (128)
1244
1245 /* FillConsoleOutputAttribute */
1246 #define FOREGROUND_BLUE (1)
1247 #define FOREGROUND_GREEN (2)
1248 #define FOREGROUND_RED (4)
1249 #define FOREGROUND_INTENSITY (8)
1250 #define BACKGROUND_BLUE (16)
1251 #define BACKGROUND_GREEN (32)
1252 #define BACKGROUND_RED (64)
1253 #define BACKGROUND_INTENSITY (128)
1254
1255 /* FindFirstChangeNotification */
1256 #define FILE_NOTIFY_CHANGE_FILE_NAME (1)
1257 #define FILE_NOTIFY_CHANGE_DIR_NAME (2)
1258 #define FILE_NOTIFY_CHANGE_ATTRIBUTES (4)
1259 #define FILE_NOTIFY_CHANGE_SIZE (8)
1260 #define FILE_NOTIFY_CHANGE_LAST_WRITE (16)
1261 #define FILE_NOTIFY_CHANGE_SECURITY (256)
1262
1263 /* FindFirstPrinterChangeNotification */
1264
1265 /* FindNextPrinterNotification */
1266
1267 /* FlsAlloc */
1268 #define FLS_OUT_OF_INDEXES (0xFFFFFFFF)
1269
1270 /* FMExtensionProc */
1271
1272 /* FoldString */
1273 #define MAP_FOLDCZONE (16)
1274 #define MAP_FOLDDIGITS (128)
1275 #define MAP_PRECOMPOSED (32)
1276 #define MAP_COMPOSITE (64)
1277
1278 /* ForegroundIdleProc */
1279 #define HC_ACTION (0)
1280
1281 /* FormatMessage */
1282 #define FORMAT_MESSAGE_ALLOCATE_BUFFER (256)
1283 #define FORMAT_MESSAGE_IGNORE_INSERTS (512)
1284 #define FORMAT_MESSAGE_FROM_STRING (1024)
1285 #define FORMAT_MESSAGE_FROM_HMODULE (2048)
1286 #define FORMAT_MESSAGE_FROM_SYSTEM (4096)
1287 #define FORMAT_MESSAGE_ARGUMENT_ARRAY (8192)
1288 #define FORMAT_MESSAGE_MAX_WIDTH_MASK (255)
1289
1290 /* GdiComment */
1291 #define GDICOMMENT_WINDOWS_METAFILE (-2147483647)
1292 #define GDICOMMENT_BEGINGROUP (2)
1293 #define GDICOMMENT_ENDGROUP (3)
1294 #define GDICOMMENT_MULTIFORMATS (1073741828)
1295 #define GDICOMMENT_IDENTIFIER (1128875079)
1296
1297 /* GenerateConsoleCtrlEvent, HandlerRoutine */
1298 #define CTRL_C_EVENT (0)
1299 #define CTRL_BREAK_EVENT (1)
1300 #define CTRL_CLOSE_EVENT (2)
1301 #define CTRL_LOGOFF_EVENT (5)
1302 #define CTRL_SHUTDOWN_EVENT (6)
1303
1304 /* GetAddressByName */
1305
1306 /* GetArcDirection */
1307 #define AD_COUNTERCLOCKWISE (1)
1308 #define AD_CLOCKWISE (2)
1309
1310 /* GetBinaryTypes */
1311 #define SCS_32BIT_BINARY (0)
1312 #define SCS_DOS_BINARY (1)
1313 #define SCS_OS216_BINARY (5)
1314 #define SCS_PIF_BINARY (3)
1315 #define SCS_POSIX_BINARY (4)
1316 #define SCS_WOW_BINARY (2)
1317 #define SCS_64BIT_BINARY (6)
1318
1319 /* GetBoundsRect, SetBoundsRect */
1320 #define DCB_DISABLE (8)
1321 #define DCB_ENABLE (4)
1322 #define DCB_RESET (1)
1323 #define DCB_SET (3)
1324 #define DCB_ACCUMULATE (2)
1325
1326 /* GetCharacterPlacement, GetFontLanguageInfo */
1327 #define GCP_DBCS (1)
1328 #define GCP_ERROR (0x8000)
1329 #define GCP_CLASSIN (0x80000L)
1330 #define GCP_DIACRITIC (256)
1331 #define GCP_DISPLAYZWG (0x400000L)
1332 #define GCP_GLYPHSHAPE (16)
1333 #define GCP_JUSTIFY (0x10000L)
1334 #define GCP_JUSTIFYIN (0x200000L)
1335 #define GCP_KASHIDA (1024)
1336 #define GCP_LIGATE (32)
1337 #define GCP_MAXEXTENT (0x100000L)
1338 #define GCP_NEUTRALOVERRIDE (0x2000000L)
1339 #define GCP_NUMERICOVERRIDE (0x1000000L)
1340 #define GCP_NUMERICSLATIN (0x4000000L)
1341 #define GCP_NUMERICSLOCAL (0x8000000L)
1342 #define GCP_REORDER (2)
1343 #define GCP_SYMSWAPOFF (0x800000L)
1344 #define GCP_USEKERNING (8)
1345 #define FLI_GLYPHS (0x40000L)
1346 #define FLI_MASK (0x103b)
1347
1348 /* GetClassLong, GetClassWord */
1349 #define GCW_ATOM (-32)
1350 #define GCL_CBCLSEXTRA (-20)
1351 #define GCL_CBWNDEXTRA (-18)
1352 #define GCL_HBRBACKGROUND (-10)
1353 #define GCL_HCURSOR (-12)
1354 #define GCL_HICON (-14)
1355 #define GCL_HICONSM (-34)
1356 #define GCL_HMODULE (-16)
1357 #define GCL_MENUNAME (-8)
1358 #define GCL_STYLE (-26)
1359 #define GCL_WNDPROC (-24)
1360
1361 /* GetClipboardFormat, SetClipboardData */
1362 #define CF_BITMAP (2)
1363 #define CF_DIB (8)
1364 #define CF_PALETTE (9)
1365 #define CF_ENHMETAFILE (14)
1366 #define CF_METAFILEPICT (3)
1367 #define CF_OEMTEXT (7)
1368 #define CF_TEXT (1)
1369 #define CF_UNICODETEXT (13)
1370 #define CF_DIF (5)
1371 #define CF_DSPBITMAP (130)
1372 #define CF_DSPENHMETAFILE (142)
1373 #define CF_DSPMETAFILEPICT (131)
1374 #define CF_DSPTEXT (129)
1375 #define CF_GDIOBJFIRST (768)
1376 #define CF_GDIOBJLAST (1023)
1377 #define CF_HDROP (15)
1378 #define CF_LOCALE (16)
1379 #define CF_OWNERDISPLAY (128)
1380 #define CF_PENDATA (10)
1381 #define CF_PRIVATEFIRST (512)
1382 #define CF_PRIVATELAST (767)
1383 #define CF_RIFF (11)
1384 #define CF_SYLK (4)
1385 #define CF_WAVE (12)
1386 #define CF_TIFF (6)
1387
1388 /* GetCommMask */
1389 #define EV_BREAK (64)
1390 #define EV_CTS (8)
1391 #define EV_DSR (16)
1392 #define EV_ERR (128)
1393 #define EV_EVENT1 (2048)
1394 #define EV_EVENT2 (4096)
1395 #define EV_PERR (512)
1396 #define EV_RING (256)
1397 #define EV_RLSD (32)
1398 #define EV_RX80FULL (1024)
1399 #define EV_RXCHAR (1)
1400 #define EV_RXFLAG (2)
1401 #define EV_TXEMPTY (4)
1402
1403 /* GetCommModemStatus */
1404 #define MS_CTS_ON (0x10L)
1405 #define MS_DSR_ON (0x20L)
1406 #define MS_RING_ON (0x40L)
1407 #define MS_RLSD_ON (0x80L)
1408
1409 /* GetComputerName */
1410 #define MAX_COMPUTERNAME_LENGTH (15)
1411
1412 /* GetCursorInfo */
1413 #define CURSOR_SHOWING 0x00000001
1414
1415
1416 /* GetCPInfo */
1417 #define CP_ACP (0)
1418 #define CP_MACCP (2)
1419 #define CP_OEMCP (1)
1420 #define CP_THREAD_ACP 3 /* ACP Current thread's ANSI code page */
1421 #define CP_SYMBOL 42 /* Symbol code page (42) */
1422 #define CP_UTF7 65000 /* Translate using UTF-7 */
1423 #define CP_UTF8 65001 /* Translate using UTF-8 */
1424
1425 /* GetDateFormat */
1426 #define DATE_SHORTDATE (1)
1427 #define DATE_LONGDATE (2)
1428 #define DATE_USE_ALT_CALENDAR (4)
1429
1430 /* GetDCEx */
1431 #define DCX_WINDOW (0x1L)
1432 #define DCX_CACHE (0x2L)
1433 #define DCX_PARENTCLIP (0x20L)
1434 #define DCX_CLIPSIBLINGS (0x10L)
1435 #define DCX_CLIPCHILDREN (0x8L)
1436 #define DCX_NORESETATTRS (0x4L)
1437 #define DCX_LOCKWINDOWUPDATE (0x400L)
1438 #define DCX_EXCLUDERGN (0x40L)
1439 #define DCX_INTERSECTRGN (0x80L)
1440 #define DCX_VALIDATE (0x200000L)
1441 #define DCX_USESTYLE (0x00010000L)
1442 #define DCX_NORECOMPUTE (0x00100000L)
1443 #define DCX_EXCLUDEUPDATE (0x00000100L)
1444 #define DCX_INTERSECTUPDATE (0x00000200L)
1445
1446 /* GetDeviceCaps */
1447 #define DRIVERVERSION (0)
1448 #define TECHNOLOGY (2)
1449 #define DT_PLOTTER (0)
1450 #define DT_RASDISPLAY (1)
1451 #define DT_RASPRINTER (2)
1452 #define DT_RASCAMERA (3)
1453 #define DT_CHARSTREAM (4)
1454 #define DT_METAFILE (5)
1455 #define DT_DISPFILE (6)
1456 #define HORZSIZE (4)
1457 #define VERTSIZE (6)
1458 #define HORZRES (8)
1459 #define VERTRES (10)
1460 #define LOGPIXELSX (88)
1461 #define LOGPIXELSY (90)
1462 #define BITSPIXEL (12)
1463 #define PLANES (14)
1464 #define NUMBRUSHES (16)
1465 #define NUMPENS (18)
1466 #define NUMFONTS (22)
1467 #define NUMCOLORS (24)
1468 #define ASPECTX (40)
1469 #define ASPECTY (42)
1470 #define ASPECTXY (44)
1471 #define PDEVICESIZE (26)
1472 #define CLIPCAPS (36)
1473 #define SIZEPALETTE (104)
1474 #define NUMRESERVED (106)
1475 #define COLORRES (108)
1476 #define PHYSICALWIDTH (110)
1477 #define PHYSICALHEIGHT (111)
1478 #define PHYSICALOFFSETX (112)
1479 #define PHYSICALOFFSETY (113)
1480 #define SCALINGFACTORX (114)
1481 #define SCALINGFACTORY (115)
1482 #define VREFRESH (116)
1483 #define DESKTOPHORZRES (118)
1484 #define DESKTOPVERTRES (117)
1485 #define BLTALIGNMENT (119)
1486 #define RASTERCAPS (38)
1487 #define RC_BANDING (2)
1488 #define RC_BITBLT (1)
1489 #define RC_BITMAP64 (8)
1490 #define RC_DI_BITMAP (128)
1491 #define RC_DIBTODEV (512)
1492 #define RC_FLOODFILL (4096)
1493 #define RC_GDI20_OUTPUT (16)
1494 #define RC_PALETTE (256)
1495 #define RC_SCALING (4)
1496 #define RC_STRETCHBLT (2048)
1497 #define RC_STRETCHDIB (8192)
1498 #define CURVECAPS (28)
1499 #define CC_NONE (0)
1500 #define CC_CIRCLES (1)
1501 #define CC_PIE (2)
1502 #define CC_CHORD (4)
1503 #define CC_ELLIPSES (8)
1504 #define CC_WIDE (16)
1505 #define CC_STYLED (32)
1506 #define CC_WIDESTYLED (64)
1507 #define CC_INTERIORS (128)
1508 #define CC_ROUNDRECT (256)
1509 #define LINECAPS (30)
1510 #define LC_NONE (0)
1511 #define LC_POLYLINE (2)
1512 #define LC_MARKER (4)
1513 #define LC_POLYMARKER (8)
1514 #define LC_WIDE (16)
1515 #define LC_STYLED (32)
1516 #define LC_WIDESTYLED (64)
1517 #define LC_INTERIORS (128)
1518 #define POLYGONALCAPS (32)
1519 #define PC_NONE (0)
1520 #define PC_POLYGON (1)
1521 #define PC_RECTANGLE (2)
1522 #define PC_WINDPOLYGON (4)
1523 #define PC_SCANLINE (8)
1524 #define PC_WIDE (16)
1525 #define PC_STYLED (32)
1526 #define PC_WIDESTYLED (64)
1527 #define PC_INTERIORS (128)
1528 #define TEXTCAPS (34)
1529 #define TC_OP_CHARACTER (1)
1530 #define TC_OP_STROKE (2)
1531 #define TC_CP_STROKE (4)
1532 #define TC_CR_90 (8)
1533 #define TC_CR_ANY (16)
1534 #define TC_SF_X_YINDEP (32)
1535 #define TC_SA_DOUBLE (64)
1536 #define TC_SA_INTEGER (128)
1537 #define TC_SA_CONTIN (256)
1538 #define TC_EA_DOUBLE (512)
1539 #define TC_IA_ABLE (1024)
1540 #define TC_UA_ABLE (2048)
1541 #define TC_SO_ABLE (4096)
1542 #define TC_RA_ABLE (8192)
1543 #define TC_VA_ABLE (16384)
1544 #define TC_RESERVED (32768)
1545 #define TC_SCROLLBLT (65536)
1546 #define PC_PATHS (512)
1547
1548 /* GetDriveType */
1549 #define DRIVE_REMOVABLE (2)
1550 #define DRIVE_FIXED (3)
1551 #define DRIVE_REMOTE (4)
1552 #define DRIVE_CDROM (5)
1553 #define DRIVE_RAMDISK (6)
1554 #define DRIVE_UNKNOWN (0)
1555 #define DRIVE_NO_ROOT_DIR (1)
1556
1557 /* GetExceptionCode */
1558 #define EXCEPTION_ACCESS_VIOLATION (0xc0000005L)
1559 #define EXCEPTION_BREAKPOINT (0x80000003L)
1560 #define EXCEPTION_DATATYPE_MISALIGNMENT (0x80000002L)
1561 #define EXCEPTION_SINGLE_STEP (0x80000004L)
1562 #define EXCEPTION_ARRAY_BOUNDS_EXCEEDED (0xc000008cL)
1563 #define EXCEPTION_FLT_DENORMAL_OPERAND (0xc000008dL)
1564 #define EXCEPTION_FLT_DIVIDE_BY_ZERO (0xc000008eL)
1565 #define EXCEPTION_FLT_INEXACT_RESULT (0xc000008fL)
1566 #define EXCEPTION_FLT_INVALID_OPERATION (0xc0000090L)
1567 #define EXCEPTION_FLT_OVERFLOW (0xc0000091L)
1568 #define EXCEPTION_FLT_STACK_CHECK (0xc0000092L)
1569 #define EXCEPTION_FLT_UNDERFLOW (0xc0000093L)
1570 #define EXCEPTION_INT_DIVIDE_BY_ZERO (0xc0000094L)
1571 #define EXCEPTION_INT_OVERFLOW (0xc0000095L)
1572 #define EXCEPTION_INVALID_HANDLE (0xc0000008L)
1573 #define EXCEPTION_PRIV_INSTRUCTION (0xc0000096L)
1574 #define EXCEPTION_NONCONTINUABLE_EXCEPTION (0xc0000025L)
1575 #define EXCEPTION_STACK_OVERFLOW (0xc00000fdL)
1576 #define EXCEPTION_INVALID_DISPOSITION (0xc0000026L)
1577 #define EXCEPTION_CONTINUABLE (0x0)
1578 #define EXCEPTION_NONCONTINUABLE (0x1)
1579
1580 /* GetFileType */
1581 #define FILE_TYPE_UNKNOWN (0)
1582 #define FILE_TYPE_DISK (1)
1583 #define FILE_TYPE_CHAR (2)
1584 #define FILE_TYPE_PIPE (3)
1585
1586 /* GetGlyphOutline */
1587 #define GGO_BITMAP (1)
1588 #define GGO_NATIVE (2)
1589 #define GGO_METRICS (0)
1590 #define GGO_GRAY2_BITMAP (4)
1591 #define GGO_GRAY4_BITMAP (5)
1592 #define GGO_GRAY8_BITMAP (6)
1593 #define GDI_ERROR (0xffffffffL)
1594
1595 /* GetGraphicsMode */
1596 #define GM_COMPATIBLE (1)
1597 #define GM_ADVANCED (2)
1598
1599 /* GetGuiResources */
1600 #define GR_GDIOBJECTS (0)
1601 #define GR_USEROBJECTS (1)
1602
1603 /* GetGUIThreadInfo */
1604 #define GUI_CARETBLINKING (1)
1605 #define GUI_INMOVESIZE (2)
1606 #define GUI_INMENUMODE (4)
1607 #define GUI_SYSTEMMENUMODE (8)
1608 #define GUI_POPUPMENUMODE (16)
1609 #define GUI_16BITTASK (32)
1610
1611 /* GetHandleInformation */
1612 #define HANDLE_FLAG_INHERIT (1)
1613 #define HANDLE_FLAG_PROTECT_FROM_CLOSE (2)
1614
1615 /* GetIconInfo */
1616 #define IDC_ARROW (MAKEINTRESOURCEW(32512))
1617 #define IDC_IBEAM (MAKEINTRESOURCEW(32513))
1618 #define IDC_WAIT (MAKEINTRESOURCEW(32514))
1619 #define IDC_CROSS (MAKEINTRESOURCEW(32515))
1620 #define IDC_UPARROW (MAKEINTRESOURCEW(32516))
1621 #define IDC_SIZENWSE (MAKEINTRESOURCEW(32642))
1622 #define IDC_SIZENESW (MAKEINTRESOURCEW(32643))
1623 #define IDC_SIZEWE (MAKEINTRESOURCEW(32644))
1624 #define IDC_SIZENS (MAKEINTRESOURCEW(32645))
1625 #define IDC_SIZEALL (MAKEINTRESOURCEW(32646))
1626 #define IDC_NO (MAKEINTRESOURCEW(32648))
1627 #define IDC_APPSTARTING (MAKEINTRESOURCEW(32650))
1628 #define IDC_HELP (MAKEINTRESOURCEW(32651))
1629 #define IDI_APPLICATION (MAKEINTRESOURCEW(32512))
1630 #define IDI_HAND (MAKEINTRESOURCEW(32513))
1631 #define IDI_QUESTION (MAKEINTRESOURCEW(32514))
1632 #define IDI_EXCLAMATION (MAKEINTRESOURCEW(32515))
1633 #define IDI_ASTERISK (MAKEINTRESOURCEW(32516))
1634 #define IDI_WINLOGO (MAKEINTRESOURCEW(32517))
1635 #define IDC_SIZE (MAKEINTRESOURCEW(32640))
1636 #define IDC_ICON (MAKEINTRESOURCEW(32641))
1637 #define IDC_HAND (MAKEINTRESOURCEW(32649))
1638
1639 /* GetMapMode */
1640 #define MM_ANISOTROPIC (8)
1641 #define MM_HIENGLISH (5)
1642 #define MM_HIMETRIC (3)
1643 #define MM_ISOTROPIC (7)
1644 #define MM_LOENGLISH (4)
1645 #define MM_LOMETRIC (2)
1646 #define MM_TEXT (1)
1647 #define MM_TWIPS (6)
1648
1649 /* GetMenuDefaultItem */
1650 #define GMDI_GOINTOPOPUPS (0x2L)
1651 #define GMDI_USEDISABLED (0x1L)
1652
1653 /* PeekMessage */
1654 #define PM_NOREMOVE (0)
1655 #define PM_REMOVE (1)
1656 #define PM_NOYIELD (2)
1657
1658 /* GetNamedPipeHandleState */
1659 #define PIPE_NOWAIT (1)
1660 #define PIPE_READMODE_MESSAGE (2)
1661
1662 /* GetNamedPipeInfo */
1663 #define PIPE_CLIENT_END (0)
1664 #define PIPE_SERVER_END (1)
1665 #define PIPE_TYPE_MESSAGE (4)
1666
1667 /* GetNextWindow, GetWindow */
1668 #define GW_HWNDNEXT (2)
1669 #define GW_HWNDPREV (3)
1670 #define GW_CHILD (5)
1671 #define GW_HWNDFIRST (0)
1672 #define GW_HWNDLAST (1)
1673 #define GW_OWNER (4)
1674
1675 /* GetPath */
1676 #define PT_MOVETO (6)
1677 #define PT_LINETO (2)
1678 #define PT_BEZIERTO (4)
1679 #define PT_CLOSEFIGURE (1)
1680
1681 /* GetProcessShutdownParameters */
1682 #define SHUTDOWN_NORETRY (1)
1683
1684 /* GetQueueStatus */
1685 #define QS_ALLEVENTS (191)
1686 #define QS_ALLINPUT (255)
1687 #define QS_HOTKEY (128)
1688 #define QS_INPUT (7)
1689 #define QS_KEY (1)
1690 #define QS_MOUSE (6)
1691 #define QS_MOUSEBUTTON (4)
1692 #define QS_MOUSEMOVE (2)
1693 #define QS_PAINT (32)
1694 #define QS_POSTMESSAGE (8)
1695 #define QS_SENDMESSAGE (64)
1696 #define QS_TIMER (16)
1697
1698 /* GetScrollInfo, SetScrollInfo */
1699 #define SIF_ALL 23
1700 #define SIF_PAGE 2
1701 #define SIF_POS 4
1702 #define SIF_RANGE 1
1703 #define SIF_DISABLENOSCROLL 8
1704 #define SIF_TRACKPOS 16
1705
1706 /* GetStdHandle */
1707 #define STD_INPUT_HANDLE (DWORD)(-10)
1708 #define STD_OUTPUT_HANDLE (DWORD)(-11)
1709 #define STD_ERROR_HANDLE (DWORD)(-12)
1710
1711 /* GetStockObject */
1712 #define BLACK_BRUSH (4)
1713 #define DKGRAY_BRUSH (3)
1714 #define GRAY_BRUSH (2)
1715 #define HOLLOW_BRUSH (5)
1716 #define LTGRAY_BRUSH (1)
1717 #define NULL_BRUSH (5)
1718 #define WHITE_BRUSH (0)
1719 #define BLACK_PEN (7)
1720 #define NULL_PEN (8)
1721 #define WHITE_PEN (6)
1722 #define ANSI_FIXED_FONT (11)
1723 #define ANSI_VAR_FONT (12)
1724 #define DEVICE_DEFAULT_FONT (14)
1725 #define DEFAULT_GUI_FONT (17)
1726 #define OEM_FIXED_FONT (10)
1727 #define SYSTEM_FONT (13)
1728 #define SYSTEM_FIXED_FONT (16)
1729 #define DEFAULT_PALETTE (15)
1730
1731 /* GetStringTypeA */
1732 #define CT_CTYPE1 (1)
1733 #define CT_CTYPE2 (2)
1734 #define CT_CTYPE3 (4)
1735 #define C1_UPPER (1)
1736 #define C1_LOWER (2)
1737 #define C1_DIGIT (4)
1738 #define C1_SPACE (8)
1739 #define C1_PUNCT (16)
1740 #define C1_CNTRL (32)
1741 #define C1_BLANK (64)
1742 #define C1_XDIGIT (128)
1743 #define C1_ALPHA (256)
1744 #define C2_LEFTTORIGHT (1)
1745 #define C2_RIGHTTOLEFT (2)
1746 #define C2_EUROPENUMBER (3)
1747 #define C2_EUROPESEPARATOR (4)
1748 #define C2_EUROPETERMINATOR (5)
1749 #define C2_ARABICNUMBER (6)
1750 #define C2_COMMONSEPARATOR (7)
1751 #define C2_BLOCKSEPARATOR (8)
1752 #define C2_SEGMENTSEPARATOR (9)
1753 #define C2_WHITESPACE (10)
1754 #define C2_OTHERNEUTRAL (11)
1755 #define C2_NOTAPPLICABLE (0)
1756 #define C3_NONSPACING (1)
1757 #define C3_DIACRITIC (2)
1758 #define C3_VOWELMARK (4)
1759 #define C3_SYMBOL (8)
1760 #define C3_KATAKANA (16)
1761 #define C3_HIRAGANA (32)
1762 #define C3_HALFWIDTH (64)
1763 #define C3_FULLWIDTH (128)
1764 #define C3_IDEOGRAPH (256)
1765 #define C3_KASHIDA (512)
1766 #define C3_ALPHA (32768)
1767 #define C3_NOTAPPLICABLE (0)
1768
1769 /* GetSysColor */
1770 #define COLOR_3DDKSHADOW (21)
1771 #define COLOR_3DFACE (15)
1772 #define COLOR_3DHILIGHT (20)
1773 #define COLOR_3DHIGHLIGHT (20)
1774 #define COLOR_3DLIGHT (22)
1775 #define COLOR_BTNHILIGHT (20)
1776 #define COLOR_3DSHADOW (16)
1777 #define COLOR_ACTIVEBORDER (10)
1778 #define COLOR_ACTIVECAPTION (2)
1779 #define COLOR_APPWORKSPACE (12)
1780 #define COLOR_BACKGROUND (1)
1781 #define COLOR_DESKTOP (1)
1782 #define COLOR_BTNFACE (15)
1783 #define COLOR_BTNHIGHLIGHT (20)
1784 #define COLOR_BTNSHADOW (16)
1785 #define COLOR_BTNTEXT (18)
1786 #define COLOR_CAPTIONTEXT (9)
1787 #define COLOR_GRAYTEXT (17)
1788 #define COLOR_HIGHLIGHT (13)
1789 #define COLOR_HIGHLIGHTTEXT (14)
1790 #define COLOR_INACTIVEBORDER (11)
1791 #define COLOR_INACTIVECAPTION (3)
1792 #define COLOR_INACTIVECAPTIONTEXT (19)
1793 #define COLOR_INFOBK (24)
1794 #define COLOR_INFOTEXT (23)
1795 #define COLOR_MENU (4)
1796 #define COLOR_MENUTEXT (7)
1797 #define COLOR_SCROLLBAR (0)
1798 #define COLOR_WINDOW (5)
1799 #define COLOR_WINDOWFRAME (6)
1800 #define COLOR_WINDOWTEXT (8)
1801 #define COLOR_GRADIENTACTIVECAPTION (27)
1802 #define COLOR_GRADIENTINACTIVECAPTION (28)
1803 #define COLOR_MENUHILIGHT (29)
1804 #define COLOR_MENUBAR (30)
1805
1806 /* GetSystemMetrics */
1807 #define SM_CYMIN (29)
1808 #define SM_CXMIN (28)
1809 #define SM_ARRANGE (56)
1810 #define SM_CLEANBOOT (67)
1811 /* The right value for SM_CEMETRICS for NT 3.5 is 75. For Windows 95
1812 and NT 4.0, it is 76. The meaning is undocumented, anyhow. */
1813 #define SM_CMETRICS (76)
1814 #define SM_CMOUSEBUTTONS (43)
1815 #define SM_CXBORDER (5)
1816 #define SM_CYBORDER (6)
1817 #define SM_CXCURSOR (13)
1818 #define SM_CYCURSOR (14)
1819 #define SM_CXDLGFRAME (7)
1820 #define SM_CYDLGFRAME (8)
1821 #define SM_CXDOUBLECLK (36)
1822 #define SM_CYDOUBLECLK (37)
1823 #define SM_CXDRAG (68)
1824 #define SM_CYDRAG (69)
1825 #define SM_CXEDGE (45)
1826 #define SM_CYEDGE (46)
1827 #define SM_CXFIXEDFRAME (7)
1828 #define SM_CYFIXEDFRAME (8)
1829 #define SM_CXFRAME (32)
1830 #define SM_CYFRAME (33)
1831 #define SM_CXFULLSCREEN (16)
1832 #define SM_CYFULLSCREEN (17)
1833 #define SM_CXHSCROLL (21)
1834 #define SM_CYHSCROLL (3)
1835 #define SM_CXHTHUMB (10)
1836 #define SM_CXICON (11)
1837 #define SM_CYICON (12)
1838 #define SM_CXICONSPACING (38)
1839 #define SM_CYICONSPACING (39)
1840 #define SM_CXMAXIMIZED (61)
1841 #define SM_CYMAXIMIZED (62)
1842 #define SM_CXMAXTRACK (59)
1843 #define SM_CYMAXTRACK (60)
1844 #define SM_CXMENUCHECK (71)
1845 #define SM_CYMENUCHECK (72)
1846 #define SM_CXMENUSIZE (54)
1847 #define SM_CYMENUSIZE (55)
1848 #define SM_CXMINIMIZED (57)
1849 #define SM_CYMINIMIZED (58)
1850 #define SM_CXMINSPACING (47)
1851 #define SM_CYMINSPACING (48)
1852 #define SM_CXMINTRACK (34)
1853 #define SM_CYMINTRACK (35)
1854 #define SM_CXSCREEN (0)
1855 #define SM_CYSCREEN (1)
1856 #define SM_CXSIZE (30)
1857 #define SM_CYSIZE (31)
1858 #define SM_CXSIZEFRAME (32)
1859 #define SM_CYSIZEFRAME (33)
1860 #define SM_CXSMICON (49)
1861 #define SM_CYSMICON (50)
1862 #define SM_CXSMSIZE (52)
1863 #define SM_CYSMSIZE (53)
1864 #define SM_CXVSCROLL (2)
1865 #define SM_CYHSCROLL (3)
1866 #define SM_CXHSCROLL (21)
1867 #define SM_CYVSCROLL (20)
1868 #define SM_CYVTHUMB (9)
1869 #define SM_CYCAPTION (4)
1870 #define SM_CYKANJIWINDOW (18)
1871 #define SM_CYMENU (15)
1872 #define SM_CYSMCAPTION (51)
1873 #define SM_DBCSENABLED (42)
1874 #define SM_DEBUG (22)
1875 #define SM_MENUDROPALIGNMENT (40)
1876 #define SM_MIDEASTENABLED (74)
1877 #define SM_MOUSEPRESENT (19)
1878 #define SM_MOUSEWHEELPRESENT (75)
1879 #define SM_NETWORK (63)
1880 #define SM_PENWINDOWS (41)
1881 #define SM_SECURE (44)
1882 #define SM_SHOWSOUNDS (70)
1883 #define SM_SLOWMACHINE (73)
1884 #define SM_SWAPBUTTON (23)
1885 #define ARW_BOTTOMLEFT (0L)
1886 #define ARW_BOTTOMRIGHT (0x1L)
1887 #define ARW_HIDE (0x8L)
1888 #define ARW_TOPLEFT (0x2L)
1889 #define ARW_TOPRIGHT (0x3L)
1890 #define ARW_DOWN (0x4L)
1891 #define ARW_LEFT (0L)
1892 #define ARW_RIGHT (0L)
1893 #define ARW_UP (0x4L)
1894
1895 /* GetSystemPaletteUse */
1896 #define SYSPAL_NOSTATIC (2)
1897 #define SYSPAL_STATIC (1)
1898 #define SYSPAL_ERROR (0)
1899
1900 /* GetTapeParameters, SetTapeParameters */
1901 #define GET_TAPE_MEDIA_INFORMATION (0)
1902 #define GET_TAPE_DRIVE_INFORMATION (1)
1903 #define SET_TAPE_MEDIA_INFORMATION (0)
1904 #define SET_TAPE_DRIVE_INFORMATION (1)
1905
1906 /* GetTapePosition */
1907 #define TAPE_ABSOLUTE_POSITION (0L)
1908 #define TAPE_LOGICAL_POSITION (0x1L)
1909
1910 /* GetTextAlign */
1911 #define TA_BASELINE (24)
1912 #define TA_BOTTOM (8)
1913 #define TA_TOP (0)
1914 #define TA_CENTER (6)
1915 #define TA_LEFT (0)
1916 #define TA_RIGHT (2)
1917 #define TA_RTLREADING (256)
1918 #define TA_NOUPDATECP (0)
1919 #define TA_UPDATECP (1)
1920 #define VTA_BASELINE (24)
1921 #define VTA_CENTER (6)
1922
1923 /* GetThreadPriority */
1924 #define TLS_MINIMUM_AVAILABLE (64)
1925
1926 /* GetTimeFormat */
1927 #define TIME_NOMINUTESORSECONDS (1)
1928 #define TIME_NOSECONDS (2)
1929 #define TIME_NOTIMEMARKER (4)
1930 #define TIME_FORCE24HOURFORMAT (8)
1931
1932 /* GetTimeZoneInformation */
1933 #define TIME_ZONE_ID_INVALID ((DWORD) -1)
1934 #define TIME_ZONE_ID_UNKNOWN (0)
1935 #define TIME_ZONE_ID_STANDARD (1)
1936 #define TIME_ZONE_ID_DAYLIGHT (2)
1937
1938 /* GetUserObjectInformation */
1939 #define UOI_FLAGS (1)
1940 #define UOI_NAME (2)
1941 #define UOI_TYPE (3)
1942
1943 /* GetWindowLong */
1944 #define GWL_EXSTYLE (-20)
1945 #define GWL_STYLE (-16)
1946 #define GWL_WNDPROC (-4)
1947 #define GWL_HINSTANCE (-6)
1948 #define GWL_HWNDPARENT (-8)
1949 #define GWL_ID (-12)
1950 #define GWL_USERDATA (-21)
1951 #define DWL_DLGPROC (4)
1952 #define DWL_MSGRESULT (0)
1953 #define DWL_USER (8)
1954
1955 /* GlobalAlloc, GlobalFlags */
1956 #define GMEM_FIXED (0)
1957 #define GMEM_MOVEABLE (2)
1958 #define GPTR (64)
1959 #define GHND (66)
1960 #define GMEM_DDESHARE (8192)
1961 #define GMEM_DISCARDABLE (256)
1962 #define GMEM_LOWER (4096)
1963 #define GMEM_NOCOMPACT (16)
1964 #define GMEM_NODISCARD (32)
1965 #define GMEM_NOT_BANKED (4096)
1966 #define GMEM_NOTIFY (16384)
1967 #define GMEM_SHARE (8192)
1968 #define GMEM_ZEROINIT (64)
1969 #define GMEM_DISCARDED (16384)
1970 #define GMEM_INVALID_HANDLE (32768)
1971 #define GMEM_LOCKCOUNT (255)
1972 #define GMEM_MODIFY (128)
1973 #define GMEM_DISCARDED (16384)
1974 #define GMEM_LOCKCOUNT (255)
1975 #define GlobalDiscard(h) GlobalReAlloc(h, 0, GMEM_MOVEABLE)
1976
1977 /* GradientFill */
1978 #define GRADIENT_FILL_RECT_H (0)
1979 #define GRADIENT_FILL_RECT_V (1)
1980 #define GRADIENT_FILL_TRIANGLE (2)
1981
1982 /* ImageList_Create */
1983 #define ILC_COLOR (0)
1984 #define ILC_COLOR4 (4)
1985 #define ILC_COLOR8 (8)
1986 #define ILC_COLOR16 (16)
1987 #define ILC_COLOR24 (24)
1988 #define ILC_COLOR32 (32)
1989 #define ILC_COLORDDB (254)
1990 #define ILC_MASK (1)
1991 #define ILC_PALETTE (2048)
1992
1993 /* ImageList_Draw, ImageList_DrawEx */
1994 #define ILD_BLEND25 (2)
1995 #define ILD_BLEND50 (4)
1996 #define ILD_SELECTED (4)
1997 #define ILD_BLEND (4)
1998 #define ILD_FOCUS (2)
1999 #define ILD_MASK (16)
2000 #define ILD_NORMAL (0)
2001 #define ILD_TRANSPARENT (1)
2002 #define CLR_NONE (0xffffffffL)
2003 #define CLR_DEFAULT (0xff000000L)
2004
2005 /* ImageList_LoadImage */
2006 #define LR_DEFAULTCOLOR (0)
2007 #define LR_LOADFROMFILE (16)
2008 #define LR_LOADMAP3DCOLORS (4096)
2009 #define LR_LOADTRANSPARENT (32)
2010 #define LR_MONOCHROME (1)
2011
2012 /* ImmConfigureIME */
2013 #define IME_CONFIG_GENERAL (1)
2014 #define IME_CONFIG_REGISTERWORD (2)
2015 #define IME_CONFIG_SELECTDICTIONARY (3)
2016
2017 /* ImmGetConversionList */
2018 #define GCL_CONVERSION (1)
2019 #define GCL_REVERSECONVERSION (2)
2020 #define GCL_REVERSE_LENGTH (3)
2021
2022 /* ImmGetGuideLine */
2023 #define GGL_LEVEL (1)
2024 #define GGL_INDEX (2)
2025 #define GGL_STRING (3)
2026 #define GGL_PRIVATE (4)
2027 #define GL_LEVEL_ERROR (2)
2028 #define GL_LEVEL_FATAL (1)
2029 #define GL_LEVEL_INFORMATION (4)
2030 #define GL_LEVEL_NOGUIDELINE (0)
2031 #define GL_LEVEL_WARNING (3)
2032 #define GL_ID_CANNOTSAVE (17)
2033 #define GL_ID_NOCONVERT (32)
2034 #define GL_ID_NODICTIONARY (16)
2035 #define GL_ID_NOMODULE (1)
2036 #define GL_ID_READINGCONFLICT (35)
2037 #define GL_ID_TOOMANYSTROKE (34)
2038 #define GL_ID_TYPINGERROR (33)
2039 #define GL_ID_UNKNOWN (0)
2040 #define GL_ID_INPUTREADING (36)
2041 #define GL_ID_INPUTRADICAL (37)
2042 #define GL_ID_INPUTCODE (38)
2043 #define GL_ID_CHOOSECANDIDATE (40)
2044 #define GL_ID_REVERSECONVERSION (41)
2045
2046 /* ImmGetProperty */
2047 #define IGP_PROPERTY (4)
2048 #define IGP_CONVERSION (8)
2049 #define IGP_SENTENCE (12)
2050 #define IGP_UI (16)
2051 #define IGP_SETCOMPSTR (20)
2052 #define IGP_SELECT (24)
2053 #define IME_PROP_AT_CARET (65536)
2054 #define IME_PROP_SPECIAL_UI (131072)
2055 #define IME_PROP_CANDLIST_START_FROM_1 (262144)
2056 #define IME_PROP_UNICODE (524288)
2057 #define UI_CAP_2700 (1)
2058 #define UI_CAP_ROT90 (2)
2059 #define UI_CAP_ROTANY (4)
2060 #define SCS_CAP_COMPSTR (1)
2061 #define SCS_CAP_MAKEREAD (2)
2062 #define SELECT_CAP_CONVERSION (1)
2063 #define SELECT_CAP_SENTENCE (2)
2064
2065 /* ImmNotifyIME */
2066 #define NI_CHANGECANDIDATELIST (19)
2067 #define NI_CLOSECANDIDATE (17)
2068 #define NI_COMPOSITIONSTR (21)
2069 #define NI_OPENCANDIDATE (16)
2070 #define NI_SELECTCANDIDATESTR (18)
2071 #define NI_SETCANDIDATE_PAGESIZE (23)
2072 #define NI_SETCANDIDATE_PAGESTART (22)
2073 #define CPS_CANCEL (4)
2074 #define CPS_COMPLETE (1)
2075 #define CPS_CONVERT (2)
2076 #define CPS_REVERT (3)
2077
2078 /* ImmSetCompositionString */
2079 #define SCS_SETSTR (9)
2080 #define SCS_CHANGEATTR (18)
2081 #define SCS_CHANGECLAUSE (36)
2082
2083 /* ImmUnregisterWord */
2084 #define IME_REGWORD_STYLE_EUDC (1)
2085 #define IME_REGWORD_STYLE_USER_FIRST 0x80000000
2086 #define IME_REGWORD_STYLE_USER_LAST (-1)
2087
2088 /* InitializeSecurityDescriptor */
2089 #define SECURITY_DESCRIPTOR_REVISION (1)
2090
2091 /* InSendMessageEx */
2092 #define ISMEX_NOSEND (0)
2093 #define ISMEX_SEND (1)
2094 #define ISMEX_NOTIFY (2)
2095 #define ISMEX_CALLBACK (4)
2096 #define ISMEX_REPLIED (8)
2097
2098 /* JournalPlaybackProc, KeyboardProc */
2099 #define HC_GETNEXT (1)
2100 #define HC_SKIP (2)
2101 #define HC_SYSMODALOFF (5)
2102 #define HC_SYSMODALON (4)
2103 #define HC_NOREMOVE (3)
2104
2105 /* keybd_event */
2106 #define KEYEVENTF_EXTENDEDKEY (1)
2107 #define KEYEVENTF_KEYUP (2)
2108
2109 /* LoadBitmap */
2110 #define OBM_BTNCORNERS (32758)
2111 #define OBM_BTSIZE (32761)
2112 #define OBM_CHECK (32760)
2113 #define OBM_CHECKBOXES (32759)
2114 #define OBM_CLOSE (32754)
2115 #define OBM_COMBO (32738)
2116 #define OBM_DNARROW (32752)
2117 #define OBM_DNARROWD (32742)
2118 #define OBM_DNARROWI (32736)
2119 #define OBM_LFARROW (32750)
2120 #define OBM_LFARROWI (32734)
2121 #define OBM_LFARROWD (32740)
2122 #define OBM_MNARROW (32739)
2123 #define OBM_OLD_CLOSE (32767)
2124 #define OBM_OLD_DNARROW (32764)
2125 #define OBM_OLD_LFARROW (32762)
2126 #define OBM_OLD_REDUCE (32757)
2127 #define OBM_OLD_RESTORE (32755)
2128 #define OBM_OLD_RGARROW (32763)
2129 #define OBM_OLD_UPARROW (32765)
2130 #define OBM_OLD_ZOOM (32756)
2131 #define OBM_REDUCE (32749)
2132 #define OBM_REDUCED (32746)
2133 #define OBM_RESTORE (32747)
2134 #define OBM_RESTORED (32744)
2135 #define OBM_RGARROW (32751)
2136 #define OBM_RGARROWD (32741)
2137 #define OBM_RGARROWI (32735)
2138 #define OBM_SIZE (32766)
2139 #define OBM_UPARROW (32753)
2140 #define OBM_UPARROWD (32743)
2141 #define OBM_UPARROWI (32737)
2142 #define OBM_ZOOM (32748)
2143 #define OBM_ZOOMD (32745)
2144
2145 /* LoadLibraryEx */
2146 #define DONT_RESOLVE_DLL_REFERENCES (1)
2147 #define LOAD_LIBRARY_AS_DATAFILE (2)
2148 #define LOAD_WITH_ALTERED_SEARCH_PATH (8)
2149
2150 /* LocalAlloc, LocalFlags */
2151 #define LPTR (64)
2152 #define LHND (66)
2153 #define NONZEROLHND (2)
2154 #define NONZEROLPTR (0)
2155 #define LMEM_NONZEROLHND (2)
2156 #define LMEM_NONZEROLPTR (0)
2157 #define LMEM_FIXED (0)
2158 #define LMEM_MOVEABLE (2)
2159 #define LMEM_NOCOMPACT (16)
2160 #define LMEM_NODISCARD (32)
2161 #define LMEM_ZEROINIT (64)
2162 #define LMEM_MODIFY (128)
2163 #define LMEM_LOCKCOUNT (255)
2164 #define LMEM_DISCARDABLE (3840)
2165 #define LMEM_DISCARDED (16384)
2166 #define LMEM_INVALID_HANDLE (32768)
2167
2168 /* LockFileEx */
2169 #define LOCKFILE_FAIL_IMMEDIATELY (1)
2170 #define LOCKFILE_EXCLUSIVE_LOCK (2)
2171
2172 /* LogonUser */
2173
2174 /* LZCopy, LZInit, LZRead */
2175
2176 /* MessageBeep, MessageBox */
2177 #define MB_USERICON (0x80L)
2178 #define MB_ICONASTERISK (0x40L)
2179 #define MB_ICONEXCLAMATION (0x30L)
2180 #define MB_ICONWARNING (0x30L)
2181 #define MB_ICONERROR (0x10L)
2182 #define MB_ICONHAND (0x10L)
2183 #define MB_ICONQUESTION (0x20L)
2184 #define MB_OK (0L)
2185 #define MB_ABORTRETRYIGNORE (0x2L)
2186 #define MB_APPLMODAL (0L)
2187 #define MB_DEFAULT_DESKTOP_ONLY (0x20000L)
2188 #define MB_HELP (0x4000L)
2189 #define MB_RIGHT (0x80000L)
2190 #define MB_RTLREADING (0x100000L)
2191 #define MB_TOPMOST (0x40000L)
2192 #define MB_DEFBUTTON1 (0L)
2193 #define MB_DEFBUTTON2 (0x100L)
2194 #define MB_DEFBUTTON3 (0x200L)
2195 #define MB_DEFBUTTON4 (0x300L)
2196 #define MB_ICONINFORMATION (0x40L)
2197 #define MB_ICONSTOP (0x10L)
2198 #define MB_OKCANCEL (0x1L)
2199 #define MB_RETRYCANCEL (0x5L)
2200 #define MB_SERVICE_NOTIFICATION (0x40000L)
2201 #define MB_SETFOREGROUND (0x10000L)
2202 #define MB_SYSTEMMODAL (0x1000L)
2203 #define MB_TASKMODAL (0x2000L)
2204 #define MB_YESNO (0x4L)
2205 #define MB_YESNOCANCEL (0x3L)
2206 #define MB_CANCELTRYCONTINUE (0x6L)
2207 #define IDABORT (3)
2208 #define IDCANCEL (2)
2209 #define IDCLOSE (8)
2210 #define IDHELP (9)
2211 #define IDIGNORE (5)
2212 #define IDNO (7)
2213 #define IDOK (1)
2214 #define IDRETRY (4)
2215 #define IDYES (6)
2216 #define IDTRYAGAIN (10)
2217 #define IDCONTINUE (11)
2218
2219 /* MessageProc */
2220 #define MSGF_DIALOGBOX (0)
2221 #define MSGF_MENU (2)
2222 #define MSGF_NEXTWINDOW (6)
2223 #define MSGF_SCROLLBAR (5)
2224 #define MSGF_MAINLOOP (8)
2225 #define MSGF_USER (4096)
2226
2227 /* ModifyWorldTransform */
2228 #define MWT_IDENTITY (1)
2229 #define MWT_LEFTMULTIPLY (2)
2230 #define MWT_RIGHTMULTIPLY (3)
2231
2232 /* mouse_event */
2233 #define MOUSEEVENTF_ABSOLUTE (32768)
2234 #define MOUSEEVENTF_MOVE (1)
2235 #define MOUSEEVENTF_LEFTDOWN (2)
2236 #define MOUSEEVENTF_LEFTUP (4)
2237 #define MOUSEEVENTF_RIGHTDOWN (8)
2238 #define MOUSEEVENTF_RIGHTUP (16)
2239 #define MOUSEEVENTF_MIDDLEDOWN (32)
2240 #define MOUSEEVENTF_MIDDLEUP (64)
2241
2242 /* MoveFileEx */
2243 #define MOVEFILE_REPLACE_EXISTING (1)
2244 #define MOVEFILE_COPY_ALLOWED (2)
2245 #define MOVEFILE_DELAY_UNTIL_REBOOT (4)
2246
2247 /* MsgWaitForMultipleObjects, WaitForMultipleObjectsEx */
2248 #define WAIT_OBJECT_0 (0L)
2249 #define WAIT_ABANDONED_0 (0x80L)
2250 #define WAIT_TIMEOUT (0x102L)
2251 #define WAIT_IO_COMPLETION (0xc0L)
2252 #define WAIT_ABANDONED (0x80L)
2253 #define WAIT_FAILED (0xffffffffL)
2254 #define MAXIMUM_WAIT_OBJECTS (0x40)
2255 #define MAXIMUM_SUSPEND_COUNT (0x7f)
2256
2257 /* MultiByteToWideChar */
2258 #define MB_PRECOMPOSED (1)
2259 #define MB_COMPOSITE (2)
2260 #define MB_ERR_INVALID_CHARS (8)
2261 #define MB_USEGLYPHCHARS (4)
2262
2263 /* NDdeSetTrustedShare */
2264
2265 /* NetAccessCheck */
2266
2267 /* NetServerEnum */
2268
2269 /* NetServiceControl */
2270
2271 /* NetUserEnum */
2272
2273 /* OpenProcessToken */
2274
2275 /* OpenSCManager */
2276 #define SC_MANAGER_CONNECT (1)
2277 #define SC_MANAGER_CREATE_SERVICE (2)
2278 #define SC_MANAGER_ENUMERATE_SERVICE (4)
2279 #define SC_MANAGER_LOCK (8)
2280 #define SC_MANAGER_QUERY_LOCK_STATUS (16)
2281 #define SC_MANAGER_MODIFY_BOOT_CONFIG (32)
2282 #define SC_MANAGER_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED | \
2283 SC_MANAGER_CONNECT | \
2284 SC_MANAGER_CREATE_SERVICE | \
2285 SC_MANAGER_ENUMERATE_SERVICE | \
2286 SC_MANAGER_LOCK | \
2287 SC_MANAGER_QUERY_LOCK_STATUS | \
2288 SC_MANAGER_MODIFY_BOOT_CONFIG)
2289
2290 /* PostMessage */
2291 #define HWND_BROADCAST ((HWND)0xFFFF)
2292
2293 /* PrepareTape */
2294 #define TAPE_FORMAT (0x5L)
2295 #define TAPE_LOAD (0L)
2296 #define TAPE_LOCK (0x3L)
2297 #define TAPE_TENSION (0x2L)
2298 #define TAPE_UNLOAD (0x1L)
2299 #define TAPE_UNLOCK (0x4L)
2300
2301 /* PropertySheet */
2302 #define IS_PSREBOOTSYSTEM (3)
2303 #define IS_PSRESTARTWINDOWS (2)
2304
2305 /* PropSheetPageProc */
2306 #define PSPCB_CREATE (2)
2307 #define PSPCB_RELEASE (1)
2308
2309 /* PurgeComm */
2310 #define PURGE_TXABORT (1)
2311 #define PURGE_RXABORT (2)
2312 #define PURGE_TXCLEAR (4)
2313 #define PURGE_RXCLEAR (8)
2314
2315 /* QueryServiceObjectSecurity */
2316 #define OWNER_SECURITY_INFORMATION (0x1L)
2317 #define GROUP_SECURITY_INFORMATION (0x2L)
2318 #define DACL_SECURITY_INFORMATION (0x4L)
2319 #define SACL_SECURITY_INFORMATION (0x8L)
2320
2321 /* ReadEventLog, ReportEvent */
2322 #define EVENTLOG_FORWARDS_READ (4)
2323 #define EVENTLOG_BACKWARDS_READ (8)
2324 #define EVENTLOG_SEEK_READ (2)
2325 #define EVENTLOG_SEQUENTIAL_READ (1)
2326 #define EVENTLOG_SUCCESS (0)
2327 #define EVENTLOG_ERROR_TYPE (1)
2328 #define EVENTLOG_WARNING_TYPE (2)
2329 #define EVENTLOG_INFORMATION_TYPE (4)
2330 #define EVENTLOG_AUDIT_SUCCESS (8)
2331 #define EVENTLOG_AUDIT_FAILURE (16)
2332
2333 /* RedrawWindow */
2334 #define RDW_ERASE (4)
2335 #define RDW_FRAME (1024)
2336 #define RDW_INTERNALPAINT (2)
2337 #define RDW_INVALIDATE (1)
2338 #define RDW_NOERASE (32)
2339 #define RDW_NOFRAME (2048)
2340 #define RDW_NOINTERNALPAINT (16)
2341 #define RDW_VALIDATE (8)
2342 #define RDW_ERASENOW (512)
2343 #define RDW_UPDATENOW (256)
2344 #define RDW_ALLCHILDREN (128)
2345 #define RDW_NOCHILDREN (64)
2346
2347 /* RegCreateKey */
2348 #define HKEY_CLASSES_ROOT ((HKEY)0x80000000)
2349 #define HKEY_CURRENT_USER ((HKEY)0x80000001)
2350 #define HKEY_LOCAL_MACHINE ((HKEY)0x80000002)
2351 #define HKEY_USERS ((HKEY)0x80000003)
2352 #define HKEY_PERFORMANCE_DATA ((HKEY)0x80000004)
2353 #define HKEY_CURRENT_CONFIG ((HKEY)0x80000005)
2354 #define HKEY_DYN_DATA ((HKEY)0x00000006)
2355
2356 /* RegCreateKeyEx */
2357
2358 /* RegEnumValue */
2359
2360 /* RegisterHotKey */
2361 #define MOD_ALT (1)
2362 #define MOD_CONTROL (2)
2363 #define MOD_SHIFT (4)
2364 #define MOD_WIN (8)
2365 #define IDHOT_SNAPDESKTOP (-2)
2366 #define IDHOT_SNAPWINDOW (-1)
2367
2368 /* RegNotifyChangeKeyValue */
2369 #define REG_NOTIFY_CHANGE_NAME (0x1L)
2370 #define REG_NOTIFY_CHANGE_ATTRIBUTES (0x2L)
2371 #define REG_NOTIFY_CHANGE_LAST_SET (0x4L)
2372 #define REG_NOTIFY_CHANGE_SECURITY (0x8L)
2373
2374 /* ScrollWindowEx */
2375 #define SW_ERASE (4)
2376 #define SW_INVALIDATE (2)
2377 #define SW_SCROLLCHILDREN (1)
2378
2379 /* SendMessageTimeout */
2380 #define SMTO_ABORTIFHUNG (2)
2381 #define SMTO_BLOCK (1)
2382 #define SMTO_NORMAL (0)
2383
2384 /* SetBkMode */
2385 #define OPAQUE (2)
2386 #define TRANSPARENT (1)
2387
2388 /* SetDebugErrorLevel */
2389 #define SLE_ERROR (1)
2390 #define SLE_MINORERROR (2)
2391 #define SLE_WARNING (3)
2392
2393 /* SetErrorMode */
2394 #define SEM_FAILCRITICALERRORS (1)
2395 #define SEM_NOALIGNMENTFAULTEXCEPT (4)
2396 #define SEM_NOGPFAULTERRORBOX (2)
2397 #define SEM_NOOPENFILEERRORBOX (32768)
2398
2399 /* SetICMMode */
2400 #define ICM_ON (2)
2401 #define ICM_OFF (1)
2402 #define ICM_QUERY (3)
2403
2404 /* SetJob */
2405
2406 /* Locale Information */
2407 #define LOCALE_ILANGUAGE (1)
2408 #define LOCALE_SLANGUAGE (2)
2409 #define LOCALE_SENGLANGUAGE (4097)
2410 #define LOCALE_SABBREVLANGNAME (3)
2411 #define LOCALE_SNATIVELANGNAME (4)
2412 #define LOCALE_ICOUNTRY (5)
2413 #define LOCALE_SCOUNTRY (6)
2414 #define LOCALE_SENGCOUNTRY (4098)
2415 #define LOCALE_SABBREVCTRYNAME (7)
2416 #define LOCALE_SNATIVECTRYNAME (8)
2417 #define LOCALE_IDEFAULTLANGUAGE (9)
2418 #define LOCALE_IDEFAULTCOUNTRY (10)
2419 #define LOCALE_IDEFAULTANSICODEPAGE (4100)
2420 #define LOCALE_IDEFAULTCODEPAGE (11)
2421 #define LOCALE_SLIST (12)
2422 #define LOCALE_IMEASURE (13)
2423 #define LOCALE_SDECIMAL (14)
2424 #define LOCALE_STHOUSAND (15)
2425 #define LOCALE_SGROUPING (16)
2426 #define LOCALE_IDIGITS (17)
2427 #define LOCALE_ILZERO (18)
2428 #define LOCALE_INEGNUMBER (4112)
2429 #define LOCALE_SCURRENCY (20)
2430 #define LOCALE_SMONDECIMALSEP (22)
2431 #define LOCALE_SMONTHOUSANDSEP (23)
2432 #define LOCALE_SMONGROUPING (24)
2433 #define LOCALE_ICURRDIGITS (25)
2434 #define LOCALE_ICURRENCY (27)
2435 #define LOCALE_INEGCURR (28)
2436 #define LOCALE_SDATE (29)
2437 #define LOCALE_STIME (30)
2438 #define LOCALE_STIMEFORMAT (4099)
2439 #define LOCALE_SSHORTDATE (31)
2440 #define LOCALE_SLONGDATE (32)
2441 #define LOCALE_IDATE (33)
2442 #define LOCALE_ILDATE (34)
2443 #define LOCALE_ITIME (35)
2444 #define LOCALE_ITLZERO (37)
2445 #define LOCALE_IDAYLZERO (38)
2446 #define LOCALE_IMONLZERO (39)
2447 #define LOCALE_S1159 (40)
2448 #define LOCALE_S2359 (41)
2449 #define LOCALE_ICALENDARTYPE (4105)
2450 #define LOCALE_IOPTIONALCALENDAR (4107)
2451 #define LOCALE_IFIRSTDAYOFWEEK (4108)
2452 #define LOCALE_IFIRSTWEEKOFYEAR (4109)
2453 #define LOCALE_SDAYNAME1 (42)
2454 #define LOCALE_SDAYNAME2 (43)
2455 #define LOCALE_SDAYNAME3 (44)
2456 #define LOCALE_SDAYNAME4 (45)
2457 #define LOCALE_SDAYNAME5 (46)
2458 #define LOCALE_SDAYNAME6 (47)
2459 #define LOCALE_SDAYNAME7 (48)
2460 #define LOCALE_SABBREVDAYNAME1 (49)
2461 #define LOCALE_SABBREVDAYNAME2 (50)
2462 #define LOCALE_SABBREVDAYNAME3 (51)
2463 #define LOCALE_SABBREVDAYNAME4 (52)
2464 #define LOCALE_SABBREVDAYNAME5 (53)
2465 #define LOCALE_SABBREVDAYNAME6 (54)
2466 #define LOCALE_SABBREVDAYNAME7 (55)
2467 #define LOCALE_SMONTHNAME1 (56)
2468 #define LOCALE_SMONTHNAME2 (57)
2469 #define LOCALE_SMONTHNAME3 (58)
2470 #define LOCALE_SMONTHNAME4 (59)
2471 #define LOCALE_SMONTHNAME5 (60)
2472 #define LOCALE_SMONTHNAME6 (61)
2473 #define LOCALE_SMONTHNAME7 (62)
2474 #define LOCALE_SMONTHNAME8 (63)
2475 #define LOCALE_SMONTHNAME9 (64)
2476 #define LOCALE_SMONTHNAME10 (65)
2477 #define LOCALE_SMONTHNAME11 (66)
2478 #define LOCALE_SMONTHNAME12 (67)
2479 #define LOCALE_SMONTHNAME13 (4110)
2480 #define LOCALE_SABBREVMONTHNAME1 (68)
2481 #define LOCALE_SABBREVMONTHNAME2 (69)
2482 #define LOCALE_SABBREVMONTHNAME3 (70)
2483 #define LOCALE_SABBREVMONTHNAME4 (71)
2484 #define LOCALE_SABBREVMONTHNAME5 (72)
2485 #define LOCALE_SABBREVMONTHNAME6 (73)
2486 #define LOCALE_SABBREVMONTHNAME7 (74)
2487 #define LOCALE_SABBREVMONTHNAME8 (75)
2488 #define LOCALE_SABBREVMONTHNAME9 (76)
2489 #define LOCALE_SABBREVMONTHNAME10 (77)
2490 #define LOCALE_SABBREVMONTHNAME11 (78)
2491 #define LOCALE_SABBREVMONTHNAME12 (79)
2492 #define LOCALE_SABBREVMONTHNAME13 (4111)
2493 #define LOCALE_SPOSITIVESIGN (80)
2494 #define LOCALE_SNEGATIVESIGN (81)
2495 #define LOCALE_IPOSSIGNPOSN (82)
2496 #define LOCALE_INEGSIGNPOSN (83)
2497 #define LOCALE_IPOSSYMPRECEDES (84)
2498 #define LOCALE_IPOSSEPBYSPACE (85)
2499 #define LOCALE_INEGSYMPRECEDES (86)
2500 #define LOCALE_INEGSEPBYSPACE (87)
2501 #define LOCALE_NOUSEROVERRIDE (0x80000000)
2502
2503 /* Calendar Type Information */
2504 #define CAL_ICALINTVALUE (1)
2505 #define CAL_IYEAROFFSETRANGE (3)
2506 #define CAL_SABBREVDAYNAME1 (14)
2507 #define CAL_SABBREVDAYNAME2 (15)
2508 #define CAL_SABBREVDAYNAME3 (16)
2509 #define CAL_SABBREVDAYNAME4 (17)
2510 #define CAL_SABBREVDAYNAME5 (18)
2511 #define CAL_SABBREVDAYNAME6 (19)
2512 #define CAL_SABBREVDAYNAME7 (20)
2513 #define CAL_SABBREVMONTHNAME1 (34)
2514 #define CAL_SABBREVMONTHNAME2 (35)
2515 #define CAL_SABBREVMONTHNAME3 (36)
2516 #define CAL_SABBREVMONTHNAME4 (37)
2517 #define CAL_SABBREVMONTHNAME5 (38)
2518 #define CAL_SABBREVMONTHNAME6 (39)
2519 #define CAL_SABBREVMONTHNAME7 (40)
2520 #define CAL_SABBREVMONTHNAME8 (41)
2521 #define CAL_SABBREVMONTHNAME9 (42)
2522 #define CAL_SABBREVMONTHNAME10 (43)
2523 #define CAL_SABBREVMONTHNAME11 (44)
2524 #define CAL_SABBREVMONTHNAME12 (45)
2525 #define CAL_SABBREVMONTHNAME13 (46)
2526 #define CAL_SCALNAME (2)
2527 #define CAL_SDAYNAME1 (7)
2528 #define CAL_SDAYNAME2 (8)
2529 #define CAL_SDAYNAME3 (9)
2530 #define CAL_SDAYNAME4 (10)
2531 #define CAL_SDAYNAME5 (11)
2532 #define CAL_SDAYNAME6 (12)
2533 #define CAL_SDAYNAME7 (13)
2534 #define CAL_SERASTRING (4)
2535 #define CAL_SLONGDATE (6)
2536 #define CAL_SMONTHNAME1 (21)
2537 #define CAL_SMONTHNAME2 (22)
2538 #define CAL_SMONTHNAME3 (23)
2539 #define CAL_SMONTHNAME4 (24)
2540 #define CAL_SMONTHNAME5 (25)
2541 #define CAL_SMONTHNAME6 (26)
2542 #define CAL_SMONTHNAME7 (27)
2543 #define CAL_SMONTHNAME8 (28)
2544 #define CAL_SMONTHNAME9 (29)
2545 #define CAL_SMONTHNAME10 (30)
2546 #define CAL_SMONTHNAME11 (31)
2547 #define CAL_SMONTHNAME12 (32)
2548 #define CAL_SMONTHNAME13 (33)
2549 #define CAL_SSHORTDATE (5)
2550
2551 /* SetProcessWorkingSetSize */
2552
2553 /* SetPrinter */
2554
2555 /* SetService */
2556
2557 /* SetStretchBltMode */
2558 #define BLACKONWHITE (1)
2559 #define COLORONCOLOR (3)
2560 #define HALFTONE (4)
2561 #define STRETCH_ANDSCANS (1)
2562 #define STRETCH_DELETESCANS (3)
2563 #define STRETCH_HALFTONE (4)
2564 #define STRETCH_ORSCANS (2)
2565 #define WHITEONBLACK (2)
2566
2567 /* SetSystemCursor */
2568 #define OCR_NORMAL (32512)
2569 #define OCR_IBEAM (32513)
2570 #define OCR_WAIT (32514)
2571 #define OCR_CROSS (32515)
2572 #define OCR_UP (32516)
2573 #define OCR_SIZE (32640)
2574 #define OCR_ICON (32641)
2575 #define OCR_SIZENWSE (32642)
2576 #define OCR_SIZENESW (32643)
2577 #define OCR_SIZEWE (32644)
2578 #define OCR_SIZENS (32645)
2579 #define OCR_SIZEALL (32646)
2580 #define OCR_NO (32648)
2581 #define OCR_APPSTARTING (32650)
2582
2583 /* SetTapePosition */
2584 #define TAPE_ABSOLUTE_BLOCK (0x1L)
2585 #define TAPE_LOGICAL_BLOCK (0x2L)
2586 #define TAPE_REWIND (0L)
2587 #define TAPE_SPACE_END_OF_DATA (0x4L)
2588 #define TAPE_SPACE_FILEMARKS (0x6L)
2589 #define TAPE_SPACE_RELATIVE_BLOCKS (0x5L)
2590 #define TAPE_SPACE_SEQUENTIAL_FMKS (0x7L)
2591 #define TAPE_SPACE_SEQUENTIAL_SMKS (0x9L)
2592 #define TAPE_SPACE_SETMARKS (0x8L)
2593
2594 /* SetUnhandledExceptionFilter */
2595 #define EXCEPTION_EXECUTE_HANDLER (1)
2596 #define EXCEPTION_CONTINUE_EXECUTION (-1)
2597 #define EXCEPTION_CONTINUE_SEARCH (0)
2598
2599 /* SetWindowPos, DeferWindowPos */
2600 #define HWND_BOTTOM ((HWND)1)
2601 #define HWND_NOTOPMOST ((HWND)-2)
2602 #define HWND_TOP ((HWND)0)
2603 #define HWND_TOPMOST ((HWND)-1)
2604 #define HWND_MESSAGE ((HWND)-3)
2605 #define SWP_DRAWFRAME (32)
2606 #define SWP_FRAMECHANGED (32)
2607 #define SWP_HIDEWINDOW (128)
2608 #define SWP_NOACTIVATE (16)
2609 #define SWP_NOCOPYBITS (256)
2610 #define SWP_NOMOVE (2)
2611 #define SWP_NOSIZE (1)
2612 #define SWP_NOREDRAW (8)
2613 #define SWP_NOZORDER (4)
2614 #define SWP_SHOWWINDOW (64)
2615 #define SWP_NOOWNERZORDER (512)
2616 #define SWP_NOREPOSITION (512)
2617 #define SWP_NOSENDCHANGING (1024)
2618
2619 /* SHAddToRecentDocs */
2620
2621 /* SHAppBarMessage */
2622
2623 /* SHChangeNotify */
2624
2625 /* ShellProc */
2626 #define HSHELL_ACTIVATESHELLWINDOW (3)
2627 #define HSHELL_GETMINRECT (5)
2628 #define HSHELL_LANGUAGE (8)
2629 #define HSHELL_REDRAW (6)
2630 #define HSHELL_TASKMAN (7)
2631 #define HSHELL_WINDOWACTIVATED (4)
2632 #define HSHELL_WINDOWCREATED (1)
2633 #define HSHELL_WINDOWDESTROYED (2)
2634
2635 /* SHGetFileInfo */
2636
2637 /* SHGetSpecialFolderLocation */
2638
2639 /* ShowWindow */
2640 #define SW_HIDE (0)
2641 #define SW_MAXIMIZE (3)
2642 #define SW_MINIMIZE (6)
2643 #define SW_NORMAL (1)
2644 #define SW_RESTORE (9)
2645 #define SW_SHOW (5)
2646 #define SW_SHOWDEFAULT (10)
2647 #define SW_SHOWMAXIMIZED (3)
2648 #define SW_SHOWMINIMIZED (2)
2649 #define SW_SHOWMINNOACTIVE (7)
2650 #define SW_SHOWNA (8)
2651 #define SW_SHOWNOACTIVATE (4)
2652 #define SW_SHOWNORMAL (1)
2653 #define WPF_RESTORETOMAXIMIZED (2)
2654 #define WPF_SETMINPOSITION (1)
2655
2656 /* AnimageWindow */
2657 #define AW_SLIDE (0x00040000)
2658 #define AW_ACTIVATE (0x00020000)
2659 #define AW_BLEND (0x00080000)
2660 #define AW_HIDE (0x00010000)
2661 #define AW_CENTER (0x00000010)
2662 #define AW_HOR_POSITIVE (0x00000001)
2663 #define AW_HOR_NEGATIVE (0x00000002)
2664 #define AW_VER_POSITIVE (0x00000004)
2665 #define AW_VER_NEGATIVE (0x00000008)
2666
2667 /* Sleep */
2668 #define INFINITE 0xFFFFFFFF
2669
2670 /* SystemParametersInfo */
2671 #define SPI_GETACCESSTIMEOUT (60)
2672 #define SPI_GETANIMATION (72)
2673 #define SPI_GETBEEP (1)
2674 #define SPI_GETBORDER (5)
2675 #define SPI_GETDEFAULTINPUTLANG (89)
2676 #define SPI_GETDRAGFULLWINDOWS (38)
2677 #define SPI_GETFASTTASKSWITCH (35)
2678 #define SPI_GETFILTERKEYS (50)
2679 #define SPI_GETFONTSMOOTHING (74)
2680 #define SPI_GETGRIDGRANULARITY (18)
2681 #define SPI_GETHIGHCONTRAST (66)
2682 #define SPI_GETICONMETRICS (45)
2683 #define SPI_GETICONTITLELOGFONT (31)
2684 #define SPI_GETICONTITLEWRAP (25)
2685 #define SPI_GETKEYBOARDDELAY (22)
2686 #define SPI_GETKEYBOARDPREF (68)
2687 #define SPI_GETKEYBOARDSPEED (10)
2688 #define SPI_GETLOWPOWERACTIVE (83)
2689 #define SPI_GETLOWPOWERTIMEOUT (79)
2690 #define SPI_GETMENUDROPALIGNMENT (27)
2691 #define SPI_GETMINIMIZEDMETRICS (43)
2692 #define SPI_GETMOUSE (3)
2693 #define SPI_GETMOUSEKEYS (54)
2694 #define SPI_GETMOUSETRAILS (94)
2695 #define SPI_GETNONCLIENTMETRICS (41)
2696 #define SPI_GETPOWEROFFACTIVE (84)
2697 #define SPI_GETPOWEROFFTIMEOUT (80)
2698 #define SPI_GETSCREENREADER (70)
2699 #define SPI_GETSCREENSAVEACTIVE (16)
2700 #define SPI_GETSCREENSAVETIMEOUT (14)
2701 #define SPI_GETSERIALKEYS (62)
2702 #define SPI_GETSHOWSOUNDS (56)
2703 #define SPI_GETSOUNDSENTRY (64)
2704 #define SPI_GETSTICKYKEYS (58)
2705 #define SPI_GETTOGGLEKEYS (52)
2706 #define SPI_GETWINDOWSEXTENSION (92)
2707 #define SPI_GETWHEELSCROLLLINES (104)
2708 #define SPI_GETWORKAREA (48)
2709 #define SPI_ICONHORIZONTALSPACING (13)
2710 #define SPI_ICONVERTICALSPACING (24)
2711 #define SPI_LANGDRIVER (12)
2712 #define SPI_SCREENSAVERRUNNING (97)
2713 #define SPI_SETACCESSTIMEOUT (61)
2714 #define SPI_SETANIMATION (73)
2715 #define SPI_SETBEEP (2)
2716 #define SPI_SETBORDER (6)
2717 #define SPI_SETDEFAULTINPUTLANG (90)
2718 #define SPI_SETDESKPATTERN (21)
2719 #define SPI_SETDESKWALLPAPER (20)
2720 #define SPI_SETDOUBLECLICKTIME (32)
2721 #define SPI_SETDOUBLECLKHEIGHT (30)
2722 #define SPI_SETDOUBLECLKWIDTH (29)
2723 #define SPI_SETDRAGFULLWINDOWS (37)
2724 #define SPI_SETDRAGHEIGHT (77)
2725 #define SPI_SETDRAGWIDTH (76)
2726 #define SPI_SETFASTTASKSWITCH (36)
2727 #define SPI_SETFILTERKEYS (51)
2728 #define SPI_SETFONTSMOOTHING (75)
2729 #define SPI_SETGRIDGRANULARITY (19)
2730 #define SPI_SETHANDHELD (78)
2731 #define SPI_SETHIGHCONTRAST (67)
2732 #define SPI_SETICONMETRICS (46)
2733 #define SPI_SETICONTITLELOGFONT (34)
2734 #define SPI_SETICONTITLEWRAP (26)
2735 #define SPI_SETKEYBOARDDELAY (23)
2736 #define SPI_SETKEYBOARDPREF (69)
2737 #define SPI_SETKEYBOARDSPEED (11)
2738 #define SPI_SETLANGTOGGLE (91)
2739 #define SPI_SETLOWPOWERACTIVE (85)
2740 #define SPI_SETLOWPOWERTIMEOUT (81)
2741 #define SPI_SETMENUDROPALIGNMENT (28)
2742 #define SPI_SETMINIMIZEDMETRICS (44)
2743 #define SPI_SETMOUSE (4)
2744 #define SPI_SETMOUSEBUTTONSWAP (33)
2745 #define SPI_SETMOUSEKEYS (55)
2746 #define SPI_SETMOUSETRAILS (93)
2747 #define SPI_SETNONCLIENTMETRICS (42)
2748 #define SPI_SETPENWINDOWS (49)
2749 #define SPI_SETPOWEROFFACTIVE (86)
2750 #define SPI_SETPOWEROFFTIMEOUT (82)
2751 #define SPI_SETSCREENREADER (71)
2752 #define SPI_SETSCREENSAVEACTIVE (17)
2753 #define SPI_SETSCREENSAVETIMEOUT (15)
2754 #define SPI_SETSERIALKEYS (63)
2755 #define SPI_SETSHOWSOUNDS (57)
2756 #define SPI_SETSOUNDSENTRY (65)
2757 #define SPI_SETSTICKYKEYS (59)
2758 #define SPI_SETTOGGLEKEYS (53)
2759 #define SPI_SETWORKAREA (47)
2760 #define SPI_GETACTIVEWINDOWTRACKING (4096)
2761 #define SPI_SETACTIVEWINDOWTRACKING (4097)
2762 #define SPI_GETMENUANIMATION (4098)
2763 #define SPI_SETMENUANIMATION (4099)
2764 #define SPI_GETCOMBOBOXANIMATION (4100)
2765 #define SPI_SETCOMBOBOXANIMATION (4101)
2766 #define SPI_GETLISTBOXSMOOTHSCROLLING (4102)
2767 #define SPI_SETLISTBOXSMOOTHSCROLLING (4103)
2768 #define SPI_GETGRADIENTCAPTIONS (4104)
2769 #define SPI_SETGRADIENTCAPTIONS (4105)
2770 #define SPI_GETKEYBOARDCUES (4106)
2771 #define SPI_SETKEYBOARDCUES (4107)
2772 #define SPI_GETMENUUNDERLINES (SPI_GETKEYBOARDCUES)
2773 #define SPI_SETMENUUNDERLINES (SPI_SETKEYBOARDCUES)
2774 #define SPI_GETACTIVEWNDTRKZORDER (4108)
2775 #define SPI_SETACTIVEWNDTRKZORDER (4109)
2776 #define SPI_GETHOTTRACKING (4110)
2777 #define SPI_SETHOTTRACKING (4111)
2778 #define SPI_GETMENUFADE (4114)
2779 #define SPI_SETMENUFADE (4115)
2780 #define SPI_GETSELECTIONFADE (4116)
2781 #define SPI_SETSELECTIONFADE (4117)
2782 #define SPI_GETTOOLTIPANIMATION (4118)
2783 #define SPI_SETTOOLTIPANIMATION (4119)
2784 #define SPI_GETTOOLTIPFADE (4120)
2785 #define SPI_SETTOOLTIPFADE (4121)
2786 #define SPI_GETCURSORSHADOW (4122)
2787 #define SPI_SETCURSORSHADOW (4123)
2788 #define SPI_GETMOUSESONAR (4124)
2789 #define SPI_SETMOUSESONAR (4125)
2790 #define SPI_GETMOUSECLICKLOCK (4126)
2791 #define SPI_SETMOUSECLICKLOCK (4127)
2792 #define SPI_GETMOUSEVANISH (4128)
2793 #define SPI_SETMOUSEVANISH (4129)
2794 #define SPI_GETFLATMENU (4130)
2795 #define SPI_SETFLATMENU (4131)
2796 #define SPI_GETDROPSHADOW (4132)
2797 #define SPI_SETDROPSHADOW (4133)
2798 #define SPI_GETBLOCKSENDINPUTRESETS (4134)
2799 #define SPI_SETBLOCKSENDINPUTRESETS (4135)
2800 #define SPI_GETUIEFFECTS (4158)
2801 #define SPI_SETUIEFFECTS (4159)
2802 #define SPI_GETFOREGROUNDLOCKTIMEOUT (8192)
2803 #define SPI_SETFOREGROUNDLOCKTIMEOUT (8192)
2804 #define SPI_GETACTIVEWNDTRKTIMEOUT (8193)
2805 #define SPI_SETACTIVEWNDTRKTIMEOUT (8194)
2806 #define SPI_GETFOREGROUNDFLASHCOUNT (8195)
2807 #define SPI_SETFOREGROUNDFLASHCOUNT (8196)
2808 #define SPI_GETCARETWIDTH (8197)
2809 #define SPI_SETCARETWIDTH (8198)
2810 #define SPI_GETMOUSECLICKLOCKTIME (8199)
2811 #define SPI_SETMOUSECLICKLOCKTIME (8200)
2812 #define SPI_GETFONTSMOOTHINGTYPE (8201)
2813 #define SPI_SETFONTSMOOTHINGTYPE (8202)
2814 #define FE_FONTSMOOTHINGSTANDARD (1) /* for SPI_GETFONTSMOOTHINGTYPE and SPI_SETFONTSMOOTHINGTYPE */
2815 #define FE_FONTSMOOTHINGCLEARTYPE (2) /* for SPI_GETFONTSMOOTHINGTYPE and SPI_SETFONTSMOOTHINGTYPE */
2816 #define FE_FONTSMOOTHINGDOCKING (32768) /* for SPI_GETFONTSMOOTHINGTYPE and SPI_SETFONTSMOOTHINGTYPE */
2817 #define SPI_GETFONTSMOOTHINGCONTRAST (8204)
2818 #define SPI_SETFONTSMOOTHINGCONTRAST (8205)
2819 #define SPI_GETFOCUSBORDERWIDTH (8206)
2820 #define SPI_SETFOCUSBORDERWIDTH (8207)
2821 #define SPI_GETFOCUSBORDERHEIGHT (8208)
2822 #define SPI_SETFOCUSBORDERHEIGHT (8209)
2823 #define SPI_GETFONTSMOOTHINGORIENTATION (8210)
2824 #define SPI_SETFONTSMOOTHINGORIENTATION (8211)
2825 #define FE_FONTSMOOTHINGORIENTATIONBGR (0) /* for SPI_GETFONTSMOOTHINGORIENTATION and SPI_SETFONTSMOOTHINGORIENTATION */
2826 #define FE_FONTSMOOTHINGORIENTATIONRGB (1) /* for SPI_GETFONTSMOOTHINGORIENTATION and SPI_SETFONTSMOOTHINGORIENTATION */
2827
2828 #define SPIF_UPDATEINIFILE (1)
2829 #define SPIF_SENDWININICHANGE (2)
2830 #define SPIF_SENDCHANGE (2)
2831
2832 /* TrackPopupMenu, TrackPopMenuEx */
2833 #define TPM_LEFTBUTTON (0)
2834 #define TPM_RIGHTBUTTON (2)
2835 #define TPM_LEFTALIGN (0)
2836 #define TPM_CENTERALIGN (4)
2837 #define TPM_RIGHTALIGN (8)
2838 #define TPM_TOPALIGN (0)
2839 #define TPM_VCENTERALIGN (16)
2840 #define TPM_BOTTOMALIGN (32)
2841 #define TPM_HORIZONTAL (0)
2842 #define TPM_VERTICAL (64)
2843 #define TPM_NONOTIFY (128)
2844 #define TPM_RETURNCMD (256)
2845 #define TPM_RECURSE (1)
2846 #define TPM_HORPOSANIMATION (1024)
2847 #define TPM_HORNEGANIMATION (2048)
2848 #define TPM_VERPOSANIMATION (4096)
2849 #define TPM_VERNEGANIMATION (8192)
2850 #define TPM_NOANIMATION (16384)
2851 #define TPM_LAYOUTRTL (32768)
2852
2853 /* TranslateCharsetInfo */
2854 #define TCI_SRCCHARSET (1)
2855 #define TCI_SRCCODEPAGE (2)
2856 #define TCI_SRCFONTSIG (3)
2857
2858 /* VerFindFile */
2859 #define VFFF_ISSHAREDFILE (1)
2860 #define VFF_CURNEDEST (1)
2861 #define VFF_FILEINUSE (2)
2862 #define VFF_BUFFTOOSMALL (4)
2863
2864 /* VerInstallFile */
2865 #define VIFF_FORCEINSTALL (1)
2866 #define VIFF_DONTDELETEOLD (2)
2867 #define VIF_TEMPFILE (0x1L)
2868 #define VIF_MISMATCH (0x2L)
2869 #define VIF_SRCOLD (0x4L)
2870 #define VIF_DIFFLANG (0x8L)
2871 #define VIF_DIFFCODEPG (0x10L)
2872 #define VIF_DIFFTYPE (0x20L)
2873 #define VIF_WRITEPROT (0x40L)
2874 #define VIF_FILEINUSE (0x80L)
2875 #define VIF_OUTOFSPACE (0x100L)
2876 #define VIF_ACCESSVIOLATION (0x200L)
2877 #define VIF_SHARINGVIOLATION (0x400L)
2878 #define VIF_CANNOTCREATE (0x800L)
2879 #define VIF_CANNOTDELETE (0x1000L)
2880 #define VIF_CANNOTDELETECUR (0x4000L)
2881 #define VIF_CANNOTRENAME (0x2000L)
2882 #define VIF_OUTOFMEMORY (0x8000L)
2883 #define VIF_CANNOTREADSRC (0x10000L)
2884 #define VIF_CANNOTREADDST (0x20000L)
2885 #define VIF_BUFFTOOSMALL (0x40000L)
2886
2887 /* WideCharToMultiByte */
2888 #define WC_COMPOSITECHECK (512)
2889 #define WC_DISCARDNS (16)
2890 #define WC_SEPCHARS (32)
2891 #define WC_DEFAULTCHAR (64)
2892
2893 /* WinHelp */
2894 #define HELP_COMMAND (0x102L)
2895 #define HELP_CONTENTS (0x3L)
2896 #define HELP_CONTEXT (0x1L)
2897 #define HELP_CONTEXTPOPUP (0x8L)
2898 #define HELP_FORCEFILE (0x9L)
2899 #define HELP_HELPONHELP (0x4L)
2900 #define HELP_INDEX (0x3L)
2901 #define HELP_KEY (0x101L)
2902 #define HELP_MULTIKEY (0x201L)
2903 #define HELP_SETWINPOS (0x0203L)
2904 #define HELP_PARTIALKEY (0x105L)
2905 #define HELP_QUIT (0x2L)
2906 #define HELP_SETCONTENTS (0x5L)
2907 #define HELP_SETINDEX (0x5L)
2908 #define HELP_CONTEXTMENU (0xa)
2909 #define HELP_FINDER (0xb)
2910 #define HELP_WM_HELP (0xc)
2911 #define HELP_TCARD (0x8000)
2912 #define HELP_TCARD_DATA (0x10)
2913 #define HELP_TCARD_OTHER_CALLER (0x11)
2914
2915 /* WNetAddConnectino2 */
2916 #define CONNECT_UPDATE_PROFILE (1)
2917
2918 /* WNetConnectionDialog, WNetDisconnectDialog, WNetOpenEnum */
2919 #define RESOURCETYPE_DISK (1)
2920 #define RESOURCETYPE_PRINT (2)
2921 #define RESOURCETYPE_ANY (0)
2922 #define RESOURCE_CONNECTED (1)
2923 #define RESOURCE_GLOBALNET (2)
2924 #define RESOURCE_REMEMBERED (3)
2925 #define RESOURCEUSAGE_CONNECTABLE (1)
2926 #define RESOURCEUSAGE_CONTAINER (2)
2927
2928 /* WNetGetResourceInformation, WNetGetResourceParent */
2929 #define WN_BAD_NETNAME (0x43L)
2930 #define WN_EXTENDED_ERROR (0x4b8L)
2931 #define WN_MORE_DATA (0xeaL)
2932 #define WN_NO_NETWORK (0x4c6L)
2933 #define WN_SUCCESS (0L)
2934 #define WN_ACCESS_DENIED (0x5L)
2935 #define WN_BAD_PROVIDER (0x4b4L)
2936 #define WN_NOT_AUTHENTICATED (0x4dcL)
2937
2938 /* WNetGetUniversalName */
2939 #define UNIVERSAL_NAME_INFO_LEVEL (1)
2940 #define REMOTE_NAME_INFO_LEVEL (2)
2941
2942 /* GetExitCodeThread */
2943 #define STILL_ACTIVE (0x103L)
2944
2945 /* COMMPROP structure */
2946 #define SP_SERIALCOMM (0x1L)
2947 #define BAUD_075 (0x1L)
2948 #define BAUD_110 (0x2L)
2949 #define BAUD_134_5 (0x4L)
2950 #define BAUD_150 (0x8L)
2951 #define BAUD_300 (0x10L)
2952 #define BAUD_600 (0x20L)
2953 #define BAUD_1200 (0x40L)
2954 #define BAUD_1800 (0x80L)
2955 #define BAUD_2400 (0x100L)
2956 #define BAUD_4800 (0x200L)
2957 #define BAUD_7200 (0x400L)
2958 #define BAUD_9600 (0x800L)
2959 #define BAUD_14400 (0x1000L)
2960 #define BAUD_19200 (0x2000L)
2961 #define BAUD_38400 (0x4000L)
2962 #define BAUD_56K (0x8000L)
2963 #define BAUD_57600 (0x40000L)
2964 #define BAUD_115200 (0x20000L)
2965 #define BAUD_128K (0x10000L)
2966 #define BAUD_USER (0x10000000L)
2967 #define PST_FAX (0x21L)
2968 #define PST_LAT (0x101L)
2969 #define PST_MODEM (0x6L)
2970 #define PST_NETWORK_BRIDGE (0x100L)
2971 #define PST_PARALLELPORT (0x2L)
2972 #define PST_RS232 (0x1L)
2973 #define PST_RS422 (0x3L)
2974 #define PST_RS423 (0x4L)
2975 #define PST_RS449 (0x5L)
2976 #define PST_SCANNER (0x22L)
2977 #define PST_TCPIP_TELNET (0x102L)
2978 #define PST_UNSPECIFIED (0L)
2979 #define PST_X25 (0x103L)
2980 #define PCF_16BITMODE (0x200L)
2981 #define PCF_DTRDSR (0x1L)
2982 #define PCF_INTTIMEOUTS (0x80L)
2983 #define PCF_PARITY_CHECK (0x8L)
2984 #define PCF_RLSD (0x4L)
2985 #define PCF_RTSCTS (0x2L)
2986 #define PCF_SETXCHAR (0x20L)
2987 #define PCF_SPECIALCHARS (0x100L)
2988 #define PCF_TOTALTIMEOUTS (0x40L)
2989 #define PCF_XONXOFF (0x10L)
2990 #define SP_BAUD (0x2L)
2991 #define SP_DATABITS (0x4L)
2992 #define SP_HANDSHAKING (0x10L)
2993 #define SP_PARITY (0x1L)
2994 #define SP_PARITY_CHECK (0x20L)
2995 #define SP_RLSD (0x40L)
2996 #define SP_STOPBITS (0x8L)
2997 #define DATABITS_5 (1)
2998 #define DATABITS_6 (2)
2999 #define DATABITS_7 (4)
3000 #define DATABITS_8 (8)
3001 #define DATABITS_16 (16)
3002 #define DATABITS_16X (32)
3003 #define STOPBITS_10 (1)
3004 #define STOPBITS_15 (2)
3005 #define STOPBITS_20 (4)
3006 #define PARITY_NONE (256)
3007 #define PARITY_ODD (512)
3008 #define PARITY_EVEN (1024)
3009 #define PARITY_MARK (2048)
3010 #define PARITY_SPACE (4096)
3011 #define COMMPROP_INITIALIZED (0xe73cf52eL)
3012
3013 /* DCB structure */
3014 #define CBR_110 (110)
3015 #define CBR_300 (300)
3016 #define CBR_600 (600)
3017 #define CBR_1200 (1200)
3018 #define CBR_2400 (2400)
3019 #define CBR_4800 (4800)
3020 #define CBR_9600 (9600)
3021 #define CBR_14400 (14400)
3022 #define CBR_19200 (19200)
3023 #define CBR_38400 (38400)
3024 #define CBR_56000 (56000)
3025 #define CBR_57600 (57600)
3026 #define CBR_115200 (115200)
3027 #define CBR_128000 (128000)
3028 #define CBR_256000 (256000)
3029 #define DTR_CONTROL_DISABLE (0)
3030 #define DTR_CONTROL_ENABLE (1)
3031 #define DTR_CONTROL_HANDSHAKE (2)
3032 #define RTS_CONTROL_DISABLE (0)
3033 #define RTS_CONTROL_ENABLE (1)
3034 #define RTS_CONTROL_HANDSHAKE (2)
3035 #define RTS_CONTROL_TOGGLE (3)
3036 #define EVENPARITY (2)
3037 #define MARKPARITY (3)
3038 #define NOPARITY (0)
3039 #define ODDPARITY (1)
3040 #define SPACEPARITY (4)
3041 #define ONESTOPBIT (0)
3042 #define ONE5STOPBITS (1)
3043 #define TWOSTOPBITS (2)
3044
3045 /* Debugging events */
3046 #define CREATE_PROCESS_DEBUG_EVENT (3)
3047 #define CREATE_THREAD_DEBUG_EVENT (2)
3048 #define EXCEPTION_DEBUG_EVENT (1)
3049 #define EXIT_PROCESS_DEBUG_EVENT (5)
3050 #define EXIT_THREAD_DEBUG_EVENT (4)
3051 #define LOAD_DLL_DEBUG_EVENT (6)
3052 #define OUTPUT_DEBUG_STRING_EVENT (8)
3053 #define UNLOAD_DLL_DEBUG_EVENT (7)
3054 #define RIP_EVENT (9)
3055
3056 /* PROCESS_HEAP_ENTRY structure */
3057 #define PROCESS_HEAP_REGION (1)
3058 #define PROCESS_HEAP_UNCOMMITTED_RANGE (2)
3059 #define PROCESS_HEAP_ENTRY_BUSY (4)
3060 #define PROCESS_HEAP_ENTRY_MOVEABLE (16)
3061 #define PROCESS_HEAP_ENTRY_DDESHARE (32)
3062
3063 /* Win32s */
3064 #define HINSTANCE_ERROR (32)
3065
3066 /* WIN32_STREAM_ID structure */
3067 #define BACKUP_DATA (1)
3068 #define BACKUP_EA_DATA (2)
3069 #define BACKUP_SECURITY_DATA (3)
3070 #define BACKUP_ALTERNATE_DATA (4)
3071 #define BACKUP_LINK (5)
3072 #define STREAM_MODIFIED_WHEN_READ (1)
3073 #define STREAM_CONTAINS_SECURITY (2)
3074
3075 /* STARTUPINFO structure */
3076 #define STARTF_USESHOWWINDOW (1)
3077 #define STARTF_USEPOSITION (4)
3078 #define STARTF_USESIZE (2)
3079 #define STARTF_USECOUNTCHARS (8)
3080 #define STARTF_USEFILLATTRIBUTE (16)
3081 #define STARTF_RUNFULLSCREEN (32)
3082 #define STARTF_FORCEONFEEDBACK (64)
3083 #define STARTF_FORCEOFFFEEDBACK (128)
3084 #define STARTF_USESTDHANDLES (256)
3085 #define STARTF_USEHOTKEY (512)
3086
3087 /* OSVERSIONINFO structure */
3088 #define VER_PLATFORM_WIN32s (0)
3089 #define VER_PLATFORM_WIN32_WINDOWS (1)
3090 #define VER_PLATFORM_WIN32_NT (2)
3091
3092 /* PROPSHEETPAGE structure */
3093 #define MAXPROPPAGES (100)
3094 #define PSP_DEFAULT (0)
3095 #define PSP_DLGINDIRECT (1)
3096 #define PSP_HASHELP (32)
3097 #define PSP_USECALLBACK (128)
3098 #define PSP_USEHICON (2)
3099 #define PSP_USEICONID (4)
3100 #define PSP_USEREFPARENT (64)
3101 #define PSP_USETITLE (8)
3102 #define PSP_RTLREADING (16)
3103
3104 /* PROPSHEETHEADER structure */
3105 #define PSH_DEFAULT (0)
3106 #define PSH_HASHELP (512)
3107 #define PSH_MODELESS (1024)
3108 #define PSH_NOAPPLYNOW (128)
3109 #define PSH_PROPSHEETPAGE (8)
3110 #define PSH_PROPTITLE (1)
3111 #define PSH_USECALLBACK (256)
3112 #define PSH_USEHICON (2)
3113 #define PSH_USEICONID (4)
3114 #define PSH_USEPSTARTPAGE (64)
3115 #define PSH_WIZARD (32)
3116 #define PSH_RTLREADING (2048)
3117 #define PSCB_INITIALIZED (1)
3118 #define PSCB_PRECREATE (2)
3119 #define PSCB_BUTTONPRESSED (3)
3120
3121 /* PSN_APPLY message */
3122 #define PSNRET_NOERROR (0)
3123 #define PSNRET_INVALID_NOCHANGEPAGE (2)
3124
3125 /* Property Sheet */
3126 #define PSBTN_APPLYNOW (4)
3127 #define PSBTN_BACK (0)
3128 #define PSBTN_CANCEL (5)
3129 #define PSBTN_FINISH (2)
3130 #define PSBTN_HELP (6)
3131 #define PSBTN_NEXT (1)
3132 #define PSBTN_OK (3)
3133 #define PSWIZB_BACK (1)
3134 #define PSWIZB_NEXT (2)
3135 #define PSWIZB_FINISH (4)
3136 #define PSWIZB_DISABLEDFINISH (8)
3137 #define ID_PSREBOOTSYSTEM (3)
3138 #define ID_PSRESTARTWINDOWS (2)
3139 #define WIZ_BODYCX (184)
3140 #define WIZ_BODYX (92)
3141 #define WIZ_CXBMP (80)
3142 #define WIZ_CXDLG (276)
3143 #define WIZ_CYDLG (140)
3144
3145 /* VX_FIXEDFILEINFO structure */
3146 #define VS_FILE_INFO (MAKEINTRESOURCE(16))
3147 #define VS_VERSION_INFO (1)
3148 #define VS_FF_DEBUG (0x1L)
3149 #define VS_FF_INFOINFERRED (0x10L)
3150 #define VS_FF_PATCHED (0x4L)
3151 #define VS_FF_PRERELEASE (0x2L)
3152 #define VS_FF_PRIVATEBUILD (0x8L)
3153 #define VS_FF_SPECIALBUILD (0x20L)
3154 #define VS_FFI_SIGNATURE (0xfeef04bd)
3155 #define VS_FFI_STRUCVERSION (0x00010000)
3156 #define VOS_UNKNOWN (0L)
3157 #define VOS_DOS (0x10000L)
3158 #define VOS_OS216 (0x20000L)
3159 #define VOS_OS232 (0x30000L)
3160 #define VOS_NT (0x40000L)
3161 #define VOS_DOS_WINDOWS16 (0x10001L)
3162 #define VOS_DOS_WINDOWS32 (0x10004L)
3163 #define VOS_OS216_PM16 (0x20002L)
3164 #define VOS_OS232_PM32 (0x30003L)
3165 #define VOS_NT_WINDOWS32 (0x40004L)
3166 #define VFT_UNKNOWN (0L)
3167 #define VFT_APP (0x1L)
3168 #define VFT_DLL (0x2L)
3169 #define VFT_DRV (0x3L)
3170 #define VFT_FONT (0x4L)
3171 #define VFT_VXD (0x5L)
3172 #define VFT_STATIC_LIB (0x7L)
3173 #define VFT2_UNKNOWN (0L)
3174 #define VFT2_DRV_PRINTER (0x1L)
3175 #define VFT2_DRV_KEYBOARD (0x2L)
3176 #define VFT2_DRV_LANGUAGE (0x3L)
3177 #define VFT2_DRV_DISPLAY (0x4L)
3178 #define VFT2_DRV_MOUSE (0x5L)
3179 #define VFT2_DRV_NETWORK (0x6L)
3180 #define VFT2_DRV_SYSTEM (0x7L)
3181 #define VFT2_DRV_INSTALLABLE (0x8L)
3182 #define VFT2_DRV_SOUND (0x9L)
3183 #define VFT2_FONT_RASTER (0x1L)
3184 #define VFT2_FONT_VECTOR (0x2L)
3185 #define VFT2_FONT_TRUETYPE (0x3L)
3186
3187 /* PANOSE structure */
3188 #define PAN_ANY (0)
3189 #define PAN_NO_FIT (1)
3190 #define PAN_FAMILY_TEXT_DISPLAY (2)
3191 #define PAN_FAMILY_SCRIPT (3)
3192 #define PAN_FAMILY_DECORATIVE (4)
3193 #define PAN_FAMILY_PICTORIAL (5)
3194 #define PAN_SERIF_COVE (2)
3195 #define PAN_SERIF_OBTUSE_COVE (3)
3196 #define PAN_SERIF_SQUARE_COVE (4)
3197 #define PAN_SERIF_OBTUSE_SQUARE_COVE (5)
3198 #define PAN_SERIF_SQUARE (6)
3199 #define PAN_SERIF_THIN (7)
3200 #define PAN_SERIF_BONE (8)
3201 #define PAN_SERIF_EXAGGERATED (9)
3202 #define PAN_SERIF_TRIANGLE (10)
3203 #define PAN_SERIF_NORMAL_SANS (11)
3204 #define PAN_SERIF_OBTUSE_SANS (12)
3205 #define PAN_SERIF_PERP_SANS (13)
3206 #define PAN_SERIF_FLARED (14)
3207 #define PAN_SERIF_ROUNDED (15)
3208 #define PAN_WEIGHT_VERY_LIGHT (2)
3209 #define PAN_WEIGHT_LIGHT (3)
3210 #define PAN_WEIGHT_THIN (4)
3211 #define PAN_WEIGHT_BOOK (5)
3212 #define PAN_WEIGHT_MEDIUM (6)
3213 #define PAN_WEIGHT_DEMI (7)
3214 #define PAN_WEIGHT_BOLD (8)
3215 #define PAN_WEIGHT_HEAVY (9)
3216 #define PAN_WEIGHT_BLACK (10)
3217 #define PAN_WEIGHT_NORD (11)
3218 #define PAN_PROP_OLD_STYLE (2)
3219 #define PAN_PROP_MODERN (3)
3220 #define PAN_PROP_EVEN_WIDTH (4)
3221 #define PAN_PROP_EXPANDED (5)
3222 #define PAN_PROP_CONDENSED (6)
3223 #define PAN_PROP_VERY_EXPANDED (7)
3224 #define PAN_PROP_VERY_CONDENSED (8)
3225 #define PAN_PROP_MONOSPACED (9)
3226 #define PAN_CONTRAST_NONE (2)
3227 #define PAN_CONTRAST_VERY_LOW (3)
3228 #define PAN_CONTRAST_LOW (4)
3229 #define PAN_CONTRAST_MEDIUM_LOW (5)
3230 #define PAN_CONTRAST_MEDIUM (6)
3231 #define PAN_CONTRAST_MEDIUM_HIGH (7)
3232 #define PAN_CONTRAST_HIGH (8)
3233 #define PAN_CONTRAST_VERY_HIGH (9)
3234 #define PAN_STROKE_GRADUAL_DIAG (2)
3235 #define PAN_STROKE_GRADUAL_TRAN (3)
3236 #define PAN_STROKE_GRADUAL_VERT (4)
3237 #define PAN_STROKE_GRADUAL_HORZ (5)
3238 #define PAN_STROKE_RAPID_VERT (6)
3239 #define PAN_STROKE_RAPID_HORZ (7)
3240 #define PAN_STROKE_INSTANT_VERT (8)
3241 #define PAN_STRAIGHT_ARMS_HORZ (2)
3242 #define PAN_STRAIGHT_ARMS_WEDGE (3)
3243 #define PAN_STRAIGHT_ARMS_VERT (4)
3244 #define PAN_STRAIGHT_ARMS_SINGLE_SERIF (5)
3245 #define PAN_STRAIGHT_ARMS_DOUBLE_SERIF (6)
3246 #define PAN_BENT_ARMS_HORZ (7)
3247 #define PAN_BENT_ARMS_VERT (9)
3248 #define PAN_BENT_ARMS_WEDGE (8)
3249 #define PAN_BENT_ARMS_SINGLE_SERIF (10)
3250 #define PAN_BENT_ARMS_DOUBLE_SERIF (11)
3251 #define PAN_LETT_NORMAL_CONTACT (2)
3252 #define PAN_LETT_NORMAL_WEIGHTED (3)
3253 #define PAN_LETT_NORMAL_BOXED (4)
3254 #define PAN_LETT_NORMAL_FLATTENED (5)
3255 #define PAN_LETT_NORMAL_ROUNDED (6)
3256 #define PAN_LETT_NORMAL_OFF_CENTER (7)
3257 #define PAN_LETT_NORMAL_SQUARE (8)
3258 #define PAN_LETT_OBLIQUE_CONTACT (9)
3259 #define PAN_LETT_OBLIQUE_WEIGHTED (10)
3260 #define PAN_LETT_OBLIQUE_BOXED (11)
3261 #define PAN_LETT_OBLIQUE_FLATTENED (12)
3262 #define PAN_LETT_OBLIQUE_ROUNDED (13)
3263 #define PAN_LETT_OBLIQUE_OFF_CENTER (14)
3264 #define PAN_LETT_OBLIQUE_SQUARE (15)
3265 #define PAN_MIDLINE_STANDARD_TRIMMED (2)
3266 #define PAN_MIDLINE_STANDARD_POINTED (3)
3267 #define PAN_MIDLINE_STANDARD_SERIFED (4)
3268 #define PAN_MIDLINE_HIGH_TRIMMED (5)
3269 #define PAN_MIDLINE_HIGH_POINTED (6)
3270 #define PAN_MIDLINE_HIGH_SERIFED (7)
3271 #define PAN_MIDLINE_CONSTANT_TRIMMED (8)
3272 #define PAN_MIDLINE_CONSTANT_POINTED (9)
3273 #define PAN_MIDLINE_CONSTANT_SERIFED (10)
3274 #define PAN_MIDLINE_LOW_TRIMMED (11)
3275 #define PAN_MIDLINE_LOW_POINTED (12)
3276 #define PAN_MIDLINE_LOW_SERIFED (13)
3277 #define PAN_XHEIGHT_CONSTANT_SMALL (2)
3278 #define PAN_XHEIGHT_CONSTANT_STD (3)
3279 #define PAN_XHEIGHT_CONSTANT_LARGE (4)
3280 #define PAN_XHEIGHT_DUCKING_SMALL (5)
3281 #define PAN_XHEIGHT_DUCKING_STD (6)
3282 #define PAN_XHEIGHT_DUCKING_LARGE (7)
3283 #define PANOSE_COUNT (10)
3284 #define PAN_FAMILYTYPE_INDEX (0)
3285 #define PAN_SERIFSTYLE_INDEX (1)
3286 #define PAN_WEIGTH_INDEX (2)
3287 #define PAN_PROPORTION_INDEX (3)
3288 #define PAN_CONTRAST_INDEX (4)
3289 #define PAN_STROKEVARIATION_INDEX (5)
3290 #define PAN_ARMSTYLE_INDEX (6)
3291 #define PAN_LETTERFORM_INDEX (7)
3292 #define PAN_MIDLINE_INDEX (8)
3293 #define PAN_XHEIGHT_INDEX (9)
3294 #define PAN_CULTURE_LATIN (0)
3295
3296 /* PALETTENTRY structure */
3297 #define PC_EXPLICIT (2)
3298 #define PC_NOCOLLAPSE (4)
3299 #define PC_RESERVED (1)
3300
3301 /* LOGBRUSH structure */
3302 #define BS_DIBPATTERN (5)
3303 #define BS_DIBPATTERN8X8 (8)
3304 #define BS_DIBPATTERNPT (6)
3305 #define BS_HATCHED (2)
3306 #define BS_HOLLOW (1)
3307 #define BS_NULL (1)
3308 #define BS_PATTERN (3)
3309 #define BS_PATTERN8X8 (7)
3310 #define BS_SOLID (0)
3311
3312 /* DEVMODE structure */
3313 #define DM_ORIENTATION (0x1L)
3314 #define DM_PAPERSIZE (0x2L)
3315 #define DM_PAPERLENGTH (0x4L)
3316 #define DM_PAPERWIDTH (0x8L)
3317 #define DM_SCALE (0x10L)
3318 #define DM_COPIES (0x100L)
3319 #define DM_DEFAULTSOURCE (0x200L)
3320 #define DM_PRINTQUALITY (0x400L)
3321 #define DM_COLOR (0x800L)
3322 #define DM_DUPLEX (0x1000L)
3323 #define DM_YRESOLUTION (0x2000L)
3324 #define DM_TTOPTION (0x4000L)
3325 #define DM_COLLATE (0x8000L)
3326 #define DM_FORMNAME (0x10000L)
3327 #define DM_LOGPIXELS (0x20000L)
3328 #define DM_BITSPERPEL (0x40000L)
3329 #define DM_PELSWIDTH (0x80000L)
3330 #define DM_PELSHEIGHT (0x100000L)
3331 #define DM_DISPLAYFLAGS (0x200000L)
3332 #define DM_DISPLAYFREQUENCY (0x400000L)
3333 #define DM_ICMMETHOD (0x800000L)
3334 #define DM_ICMINTENT (0x1000000L)
3335 #define DM_MEDIATYPE (0x2000000L)
3336 #define DM_DITHERTYPE (0x4000000L)
3337 #define DMORIENT_LANDSCAPE (2)
3338 #define DMORIENT_PORTRAIT (1)
3339 #define DMPAPER_LETTER (1)
3340 #define DMPAPER_LEGAL (5)
3341 #define DMPAPER_A4 (9)
3342 #define DMPAPER_CSHEET (24)
3343 #define DMPAPER_DSHEET (25)
3344 #define DMPAPER_ESHEET (26)
3345 #define DMPAPER_LETTERSMALL (2)
3346 #define DMPAPER_TABLOID (3)
3347 #define DMPAPER_LEDGER (4)
3348 #define DMPAPER_STATEMENT (6)
3349 #define DMPAPER_EXECUTIVE (7)
3350 #define DMPAPER_A3 (8)
3351 #define DMPAPER_A4SMALL (10)
3352 #define DMPAPER_A5 (11)
3353 #define DMPAPER_B4 (12)
3354 #define DMPAPER_B5 (13)
3355 #define DMPAPER_FOLIO (14)
3356 #define DMPAPER_QUARTO (15)
3357 #define DMPAPER_10X14 (16)
3358 #define DMPAPER_11X17 (17)
3359 #define DMPAPER_NOTE (18)
3360 #define DMPAPER_ENV_9 (19)
3361 #define DMPAPER_ENV_10 (20)
3362 #define DMPAPER_ENV_11 (21)
3363 #define DMPAPER_ENV_12 (22)
3364 #define DMPAPER_ENV_14 (23)
3365 #define DMPAPER_ENV_DL (27)
3366 #define DMPAPER_ENV_C5 (28)
3367 #define DMPAPER_ENV_C3 (29)
3368 #define DMPAPER_ENV_C4 (30)
3369 #define DMPAPER_ENV_C6 (31)
3370 #define DMPAPER_ENV_C65 (32)
3371 #define DMPAPER_ENV_B4 (33)
3372 #define DMPAPER_ENV_B5 (34)
3373 #define DMPAPER_ENV_B6 (35)
3374 #define DMPAPER_ENV_ITALY (36)
3375 #define DMPAPER_ENV_MONARCH (37)
3376 #define DMPAPER_ENV_PERSONAL (38)
3377 #define DMPAPER_FANFOLD_US (39)
3378 #define DMPAPER_FANFOLD_STD_GERMAN (40)
3379 #define DMPAPER_FANFOLD_LGL_GERMAN (41)
3380 #define DMRES_HIGH (-4)
3381 #define DMRES_MEDIUM (-3)
3382 #define DMRES_LOW (-2)
3383 #define DMRES_DRAFT (-1)
3384 #define DMCOLOR_COLOR (2)
3385 #define DMCOLOR_MONOCHROME (1)
3386 #define DMDUP_SIMPLEX (1)
3387 #define DMDUP_HORIZONTAL (3)
3388 #define DMDUP_VERTICAL (2)
3389 #define DMTT_BITMAP (1)
3390 #define DMTT_DOWNLOAD (2)
3391 #define DMTT_SUBDEV (3)
3392 #define DMCOLLATE_TRUE (1)
3393 #define DMCOLLATE_FALSE (0)
3394 #define DM_GRAYSCALE (1)
3395 #define DM_INTERLACED (2)
3396 #define DMICMMETHOD_NONE (1)
3397 #define DMICMMETHOD_SYSTEM (2)
3398 #define DMICMMETHOD_DRIVER (3)
3399 #define DMICMMETHOD_DEVICE (4)
3400 #define DMICMMETHOD_USER (256)
3401 #define DMICM_SATURATE (1)
3402 #define DMICM_CONTRAST (2)
3403 #define DMICM_COLORMETRIC (3)
3404 #define DMICM_USER (256)
3405 #define DMMEDIA_STANDARD (1)
3406 #define DMMEDIA_GLOSSY (3)
3407 #define DMMEDIA_TRANSPARENCY (2)
3408 #define DMMEDIA_USER (256)
3409 #define DMDITHER_NONE (1)
3410 #define DMDITHER_COARSE (2)
3411 #define DMDITHER_FINE (3)
3412 #define DMDITHER_LINEART (4)
3413 #define DMDITHER_GRAYSCALE (10)
3414 #define DMDITHER_USER (256)
3415
3416 /* RGNDATAHEADER structure */
3417 #define RDH_RECTANGLES (1)
3418
3419 /* TTPOLYGONHEADER structure */
3420 #define TT_POLYGON_TYPE (24)
3421
3422 /* TTPOLYCURVE structure */
3423 #define TT_PRIM_LINE (1)
3424 #define TT_PRIM_QSPLINE (2)
3425
3426 /* GCP_RESULTS structure */
3427 #define GCPCLASS_ARABIC (2)
3428 #define GCPCLASS_HEBREW (2)
3429 #define GCPCLASS_LATIN (1)
3430 #define GCPCLASS_LATINNUMBER (5)
3431 #define GCPCLASS_LOCALNUMBER (4)
3432 #define GCPCLASS_LATINNUMERICSEPARATOR (7)
3433 #define GCPCLASS_LATINNUMERICTERMINATOR (6)
3434 #define GCPCLASS_NEUTRAL (3)
3435 #define GCPCLASS_NUMERICSEPARATOR (8)
3436 #define GCPCLASS_PREBOUNDLTR (128)
3437 #define GCPCLASS_PREBOUNDRTL (64)
3438 #define GCPCLASS_POSTBOUNDLTR (32)
3439 #define GCPCLASS_POSTBOUNDRTL (16)
3440 #define GCPGLYPH_LINKBEFORE (32768)
3441 #define GCPGLYPH_LINKAFTER (16384)
3442
3443 /* RASTERIZER_STATUS structure */
3444 #define TT_AVAILABLE (1)
3445 #define TT_ENABLED (2)
3446
3447 /* COLORADJUSTMENT structure */
3448 #define CA_NEGATIVE (1)
3449 #define CA_LOG_FILTER (2)
3450 #define ILLUMINANT_DEVICE_DEFAULT (0)
3451 #define ILLUMINANT_A (1)
3452 #define ILLUMINANT_B (2)
3453 #define ILLUMINANT_C (3)
3454 #define ILLUMINANT_D50 (4)
3455 #define ILLUMINANT_D55 (5)
3456 #define ILLUMINANT_D65 (6)
3457 #define ILLUMINANT_D75 (7)
3458 #define ILLUMINANT_F2 (8)
3459 #define ILLUMINANT_TUNGSTEN (1)
3460 #define ILLUMINANT_DAYLIGHT (3)
3461 #define ILLUMINANT_FLUORESCENT (8)
3462 #define ILLUMINANT_NTSC (3)
3463
3464 /* DOCINFO structure */
3465 #define DI_APPBANDING (1)
3466
3467 /* EMRMETAHEADER structure */
3468 #define EMR_HEADER (1)
3469 #define ENHMETA_SIGNATURE (1179469088)
3470
3471 /* RTF event masks */
3472 #define ENM_CHANGE (1)
3473 #define ENM_CORRECTTEXT (4194304)
3474 #define ENM_DROPFILES (1048576)
3475 #define ENM_KEYEVENTS (65536)
3476 #define ENM_MOUSEEVENTS (131072)
3477 #define ENM_PROTECTED (2097152)
3478 #define ENM_REQUESTRESIZE (262144)
3479 #define ENM_SCROLL (4)
3480 #define ENM_SELCHANGE (524288)
3481 #define ENM_UPDATE (2)
3482 #define ENM_NONE (0)
3483
3484 /* RTF styles */
3485 #define ES_DISABLENOSCROLL (8192)
3486 #define ES_EX_NOCALLOLEINIT (16777216)
3487 #define ES_NOIME (524288)
3488 #define ES_SAVESEL (32768)
3489 #define ES_SELFIME (262144)
3490 #define ES_SUNKEN (16384)
3491 #define ES_VERTICAL (4194304)
3492 #define ES_SELECTIONBAR (16777216)
3493
3494 /* EM_SETOPTIONS message */
3495 #define ECOOP_SET (1)
3496 #define ECOOP_OR (2)
3497 #define ECOOP_AND (3)
3498 #define ECOOP_XOR (4)
3499 #define ECO_AUTOWORDSELECTION (1)
3500 #define ECO_AUTOVSCROLL (64)
3501 #define ECO_AUTOHSCROLL (128)
3502 #define ECO_NOHIDESEL (256)
3503 #define ECO_READONLY (2048)
3504 #define ECO_WANTRETURN (4096)
3505 #define ECO_SAVESEL (32768)
3506 #define ECO_SELECTIONBAR (16777216)
3507 #define ECO_VERTICAL (4194304)
3508
3509 /* EM_SETCHARFORMAT message */
3510 #define SCF_WORD (2)
3511 #define SCF_SELECTION (1)
3512
3513 /* EM_STREAMOUT message */
3514 #define SF_TEXT (1)
3515 #define SF_RTF (2)
3516 #define SF_RTFNOOBJS (3)
3517 #define SF_TEXTIZED (4)
3518 #define SFF_SELECTION (32768)
3519 #define SFF_PLAINRTF (16384)
3520
3521 /* EM_FINDWORDBREAK message */
3522 #define WB_CLASSIFY (3)
3523 #define WB_ISDELIMITER (2)
3524 #define WB_LEFT (0)
3525 #define WB_LEFTBREAK (6)
3526 #define WB_PREVBREAK (6)
3527 #define WB_MOVEWORDLEFT (4)
3528 #define WB_MOVEWORDPREV (4)
3529 #define WB_MOVEWORDRIGHT (5)
3530 #define WB_MOVEWORDNEXT (5)
3531 #define WB_RIGHT (1)
3532 #define WB_RIGHTBREAK (7)
3533 #define WB_NEXTBREAK (7)
3534
3535 /* EM_GETPUNCTUATION message */
3536 #define PC_LEADING (2)
3537 #define PC_FOLLOWING (1)
3538 #define PC_DELIMITER (4)
3539 #define PC_OVERFLOW (3)
3540
3541 /* EM_SETWORDWRAPMODE message */
3542 #define WBF_WORDWRAP (16)
3543 #define WBF_WORDBREAK (32)
3544 #define WBF_OVERFLOW (64)
3545 #define WBF_LEVEL1 (128)
3546 #define WBF_LEVEL2 (256)
3547 #define WBF_CUSTOM (512)
3548 #define WBF_BREAKAFTER (64)
3549 #define WBF_BREAKLINE (32)
3550 #define WBF_ISWHITE (16)
3551
3552 /* CHARFORMAT structure */
3553 #define CFM_BOLD (1)
3554 #define CFM_COLOR (1073741824)
3555 #define CFM_FACE (536870912)
3556 #define CFM_ITALIC (2)
3557 #define CFM_OFFSET (268435456)
3558 #define CFM_PROTECTED (16)
3559 #define CFM_SIZE (0x80000000)
3560 #define CFM_STRIKEOUT (8)
3561 #define CFM_UNDERLINE (4)
3562 #define CFE_AUTOCOLOR (1073741824)
3563 #define CFE_BOLD (1)
3564 #define CFE_ITALIC (2)
3565 #define CFE_STRIKEOUT (8)
3566 #define CFE_UNDERLINE (4)
3567 #define CFE_PROTECTED (16)
3568
3569 /* PARAFORMAT structure */
3570 #define PFM_ALIGNMENT (8)
3571 #define PFM_NUMBERING (32)
3572 #define PFM_OFFSET (4)
3573 #define PFM_OFFSETINDENT (0x80000000)
3574 #define PFM_RIGHTINDENT (2)
3575 #define PFM_STARTINDENT (1)
3576 #define PFM_TABSTOPS (16)
3577 #define PFN_BULLET (1)
3578 #define PFA_LEFT (1)
3579 #define PFA_RIGHT (2)
3580 #define PFA_CENTER (3)
3581
3582 /* SELCHANGE structure */
3583 #define SEL_EMPTY (0)
3584 #define SEL_TEXT (1)
3585 #define SEL_OBJECT (2)
3586 #define SEL_MULTICHAR (4)
3587 #define SEL_MULTIOBJECT (8)
3588
3589 /* RTF clipboard formats */
3590 #define CF_RTF "Rich Text Format"
3591 #define CF_RETEXTOBJ "RichEdit Text and Objects"
3592
3593 /* DRAWITEMSTRUCT structure */
3594 #define ODT_BUTTON (4)
3595 #define ODT_COMBOBOX (3)
3596 #define ODT_LISTBOX (2)
3597 #define ODT_LISTVIEW (102)
3598 #define ODT_MENU (1)
3599 #define ODT_STATIC (5)
3600 #define ODT_TAB (101)
3601 #define ODT_HEADER (100)
3602 #define ODA_DRAWENTIRE (1)
3603 #define ODA_FOCUS (4)
3604 #define ODA_SELECT (2)
3605 #define ODS_CHECKED (8)
3606 #define ODS_COMBOBOXEDIT (4096)
3607 #define ODS_DEFAULT (32)
3608 #define ODS_DISABLED (4)
3609 #define ODS_FOCUS (16)
3610 #define ODS_GRAYED (2)
3611 #define ODS_SELECTED (1)
3612
3613 /* Common control window classes */
3614 #define ANIMATE_CLASSW L"SysAnimate32"
3615 #define HOTKEY_CLASSW L"msctls_hotkey32"
3616 #define PROGRESS_CLASSW L"msctls_progress32"
3617 #define STATUSCLASSNAMEW L"msctls_statusbar32"
3618 #define TOOLBARCLASSNAMEW L"ToolbarWindow32"
3619 #define TOOLTIPS_CLASSW L"tooltips_class32"
3620 #define TRACKBAR_CLASSW L"msctls_trackbar32"
3621 #define UPDOWN_CLASSW L"msctls_updown32"
3622 #define WC_HEADERW L"SysHeader32"
3623 #define WC_LISTVIEWW L"SysListView32"
3624 #define WC_TABCONTROLW L"SysTabControl32"
3625 #define WC_TREEVIEWW L"SysTreeView32"
3626
3627 /* Common control styles */
3628 #define CCS_ADJUSTABLE (0x20L)
3629 #define CCS_BOTTOM (0x3L)
3630 #define CCS_NODIVIDER (0x40L)
3631 #define CCS_NOMOVEY (0x2L)
3632 #define CCS_NOPARENTALIGN (0x8L)
3633 #define CCS_NORESIZE (0x4L)
3634 #define CCS_TOP (0x1L)
3635 #define ANIMATE_CLASSA "SysAnimate32"
3636 #define HOTKEY_CLASSA "msctls_hotkey32"
3637 #define PROGRESS_CLASSA "msctls_progress32"
3638 #define STATUSCLASSNAMEA "msctls_statusbar32"
3639 #define TOOLBARCLASSNAMEA "ToolbarWindow32"
3640 #define TOOLTIPS_CLASSA "tooltips_class32"
3641 #define TRACKBAR_CLASSA "msctls_trackbar32"
3642 #define UPDOWN_CLASSA "msctls_updown32"
3643 #define WC_HEADERA "SysHeader32"
3644 #define WC_LISTVIEWA "SysListView32"
3645 #define WC_TABCONTROLA "SysTabControl32"
3646 #define WC_TREEVIEWA "SysTreeView32"
3647 #ifndef _DISABLE_TIDENTS
3648 #ifdef UNICODE
3649 #define ANIMATE_CLASS ANIMATE_CLASSW
3650 #define HOTKEY_CLASS HOTKEY_CLASSW
3651 #define PROGRESS_CLASS PROGRESS_CLASSW
3652 #define STATUSCLASSNAME STATUSCLASSNAMEW
3653 #define TOOLBARCLASSNAME TOOLBARCLASSNAMEW
3654 #define TOOLTIPS_CLASS TOOLTIPS_CLASSW
3655 #define TRACKBAR_CLASS TRACKBAR_CLASSW
3656 #define UPDOWN_CLASS UPDOWN_CLASSW
3657 #define WC_HEADER WC_HEADERW
3658 #define WC_LISTVIEW WC_LISTVIEWW
3659 #define WC_TABCONTROL WC_TABCONTROLW
3660 #define WC_TREEVIEW WC_TREEVIEWW
3661 #else
3662 #define ANIMATE_CLASS ANIMATE_CLASSA
3663 #define HOTKEY_CLASS HOTKEY_CLASSA
3664 #define PROGRESS_CLASS PROGRESS_CLASSA
3665 #define STATUSCLASSNAME STATUSCLASSNAMEA
3666 #define TOOLBARCLASSNAME TOOLBARCLASSNAMEA
3667 #define TOOLTIPS_CLASS TOOLTIPS_CLASSA
3668 #define TRACKBAR_CLASS TRACKBAR_CLASSA
3669 #define UPDOWN_CLASS UPDOWN_CLASSA
3670 #define WC_HEADER WC_HEADERA
3671 #define WC_LISTVIEW WC_LISTVIEWA
3672 #define WC_TABCONTROL WC_TABCONTROLA
3673 #define WC_TREEVIEW WC_TREEVIEWA
3674 #endif /* UNICODE */
3675 #endif /* _DISABLE_TIDENTS */
3676
3677 /* Header control styles */
3678 #define HDS_BUTTONS (2)
3679 #define HDS_HIDDEN (8)
3680 #define HDS_HORZ (0)
3681
3682 /* HD_ITEM structure */
3683 #define HDI_BITMAP (16)
3684 #define HDI_FORMAT (4)
3685 #define HDI_HEIGHT (1)
3686 #define HDI_LPARAM (8)
3687 #define HDI_TEXT (2)
3688 #define HDI_WIDTH (1)
3689 #define HDF_CENTER (2)
3690 #define HDF_LEFT (0)
3691 #define HDF_RIGHT (1)
3692 #define HDF_RTLREADING (4)
3693 #define HDF_BITMAP (8192)
3694 #define HDF_OWNERDRAW (32768)
3695 #define HDF_STRING (16384)
3696 #define HDF_JUSTIFYMASK (3)
3697
3698 /* HD_HITTESTINFO structure */
3699 #define HHT_NOWHERE (1)
3700 #define HHT_ONDIVIDER (4)
3701 #define HHT_ONDIVOPEN (8)
3702 #define HHT_ONHEADER (2)
3703 #define HHT_TOLEFT (2048)
3704 #define HHT_TORIGHT (1024)
3705
3706 /* TBADDBITMAP structure */
3707 #define HINST_COMMCTRL ((HINSTANCE)-1)
3708 #define IDB_STD_LARGE_COLOR (1)
3709 #define IDB_STD_SMALL_COLOR (0)
3710 #define IDB_VIEW_LARGE_COLOR (5)
3711 #define IDB_VIEW_SMALL_COLOR (4)
3712 #define STD_COPY (1)
3713 #define STD_CUT (0)
3714 #define STD_DELETE (5)
3715 #define STD_FILENEW (6)
3716 #define STD_FILEOPEN (7)
3717 #define STD_FILESAVE (8)
3718 #define STD_FIND (12)
3719 #define STD_HELP (11)
3720 #define STD_PASTE (2)
3721 #define STD_PRINT (14)
3722 #define STD_PRINTPRE (9)
3723 #define STD_PROPERTIES (10)
3724 #define STD_REDOW (4)
3725 #define STD_REPLACE (13)
3726 #define STD_UNDO (3)
3727 #define VIEW_LARGEICONS (0)
3728 #define VIEW_SMALLICONS (1)
3729 #define VIEW_LIST (2)
3730 #define VIEW_DETAILS (3)
3731 #define VIEW_SORTNAME (4)
3732 #define VIEW_SORTSIZE (5)
3733 #define VIEW_SORTDATE (6)
3734 #define VIEW_SORTTYPE (7)
3735
3736 /* Toolbar styles */
3737 #define TBSTYLE_ALTDRAG (1024)
3738 #define TBSTYLE_TOOLTIPS (256)
3739 #define TBSTYLE_WRAPABLE (512)
3740 #define TBSTYLE_BUTTON (0)
3741 #define TBSTYLE_CHECK (2)
3742 #define TBSTYLE_CHECKGROUP (6)
3743 #define TBSTYLE_GROUP (4)
3744 #define TBSTYLE_SEP (1)
3745
3746 /* Toolbar states */
3747 #define TBSTATE_CHECKED (1)
3748 #define TBSTATE_ENABLED (4)
3749 #define TBSTATE_HIDDEN (8)
3750 #define TBSTATE_INDETERMINATE (16)
3751 #define TBSTATE_PRESSED (2)
3752 #define TBSTATE_WRAP (32)
3753
3754 /* Tooltip styles */
3755 #define TTS_ALWAYSTIP (1)
3756 #define TTS_NOPREFIX (2)
3757
3758 /* TOOLINFO structure */
3759 #define TTF_IDISHWND (1)
3760 #define TTF_CENTERTIP (2)
3761 #define TTF_RTLREADING (4)
3762 #define TTF_SUBCLASS (16)
3763
3764 /* TTM_SETDELAYTIME message */
3765 #define TTDT_AUTOMATIC (0)
3766 #define TTDT_AUTOPOP (2)
3767 #define TTDT_INITIAL (3)
3768 #define TTDT_RESHOW (1)
3769
3770 /* Status window */
3771 #define SBARS_SIZEGRIP (256)
3772 #define SBARS_SIZEGRIP (256)
3773
3774 /* DL_DRAGGING message */
3775 #define DL_MOVECURSOR (3)
3776 #define DL_COPYCURSOR (2)
3777 #define DL_STOPCURSOR (1)
3778
3779 /* Up-down control styles */
3780 #define UDS_ALIGNLEFT (8)
3781 #define UDS_ALIGNRIGHT (4)
3782 #define UDS_ARROWKEYS (32)
3783 #define UDS_AUTOBUDDY (16)
3784 #define UDS_HORZ (64)
3785 #define UDS_NOTHOUSANDS (128)
3786 #define UDS_SETBUDDYINT (2)
3787 #define UDS_WRAP (1)
3788
3789 /* UDM_SETRANGE message */
3790 #define UD_MAXVAL (32767)
3791 #define UD_MINVAL (-32767)
3792
3793 /* HKM_GETHOTKEY message */
3794 #define HOTKEYF_ALT (4)
3795 #define HOTKEYF_CONTROL (2)
3796 #define HOTKEYF_EXT (8)
3797 #define HOTKEYF_SHIFT (1)
3798
3799 /* HKM_SETRULES message */
3800 #define HKCOMB_A (8)
3801 #define HKCOMB_C (4)
3802 #define HKCOMB_CA (64)
3803 #define HKCOMB_NONE (1)
3804 #define HKCOMB_S (2)
3805 #define HKCOMB_SA (32)
3806 #define HKCOMB_SC (16)
3807 #define HKCOMB_SCA (128)
3808
3809 /* Trackbar styles */
3810 #define TBS_HORZ (0)
3811 #define TBS_VERT (2)
3812 #define TBS_AUTOTICKS (1)
3813 #define TBS_NOTICKS (16)
3814 #define TBS_TOP (4)
3815 #define TBS_BOTTOM (0)
3816 #define TBS_LEFT (4)
3817 #define TBS_RIGHT (0)
3818 #define TBS_BOTH (8)
3819 #define TBS_ENABLESELRANGE (32)
3820 #define TBS_FIXEDLENGTH (64)
3821 #define TBS_NOTHUMB (128)
3822 #define TB_BOTTOM (7)
3823 #define TB_ENDTRACK (8)
3824 #define TB_LINEDOWN (1)
3825 #define TB_LINEUP (0)
3826 #define TB_PAGEDOWN (3)
3827 #define TB_PAGEUP (2)
3828 #define TB_THUMBPOSITION (4)
3829 #define TB_THUMBTRACK (5)
3830 #define TB_TOP (6)
3831
3832 /* List view styles */
3833 #define LVS_ALIGNLEFT (2048)
3834 #define LVS_ALIGNTOP (0)
3835 #define LVS_AUTOARRANGE (256)
3836 #define LVS_EDITLABELS (512)
3837 #define LVS_ICON (0)
3838 #define LVS_LIST (3)
3839 #define LVS_NOCOLUMNHEADER (16384)
3840 #define LVS_NOLABELWRAP (128)
3841 #define LVS_NOSCROLL (8192)
3842 #define LVS_NOSORTHEADER (32768)
3843 #define LVS_OWNERDRAWFIXED (1024)
3844 #define LVS_REPORT (1)
3845 #define LVS_SHAREIMAGELISTS (64)
3846 #define LVS_SHOWSELALWAYS (8)
3847 #define LVS_SINGLESEL (4)
3848 #define LVS_SMALLICON (2)
3849 #define LVS_SORTASCENDING (16)
3850 #define LVS_SORTDESCENDING (32)
3851 #define LVS_OWNERDATA 0x1000
3852 #define LVS_TYPESTYLEMASK (64512)
3853 #define LVSIL_NORMAL (0)
3854 #define LVSIL_SMALL (1)
3855 #define LVSIL_STATE (2)
3856 #define LVIS_CUT (4)
3857 #define LVIS_DROPHILITED (8)
3858 #define LVIS_FOCUSED (1)
3859 #define LVIS_SELECTED (2)
3860 #define LVIS_OVERLAYMASK (3840)
3861 #define LVIS_STATEIMAGEMASK (61440)
3862 #define LPSTR_TEXTCALLBACKW ((LPWSTR)-1L)
3863 #define LPSTR_TEXTCALLBACKA ((LPSTR)-1L)
3864 #ifndef _DISABLE_TIDENTS
3865 #ifdef UNICODE
3866 #define LPSTR_TEXTCALLBACK LPSTR_TEXTCALLBACKW
3867 #else
3868 #define LPSTR_TEXTCALLBACK LPSTR_TEXTCALLBACKA
3869 #endif /* UNICODE */
3870 #endif /* _DISABLE_TIDENTS */
3871
3872 /* LV_ITEM structure */
3873 #define LVIF_TEXT (1)
3874 #define LVIF_IMAGE (2)
3875 #define LVIF_PARAM (4)
3876 #define LVIF_STATE (8)
3877 #define LVIF_DI_SETITEM (4096)
3878
3879 /* LVM_GETNEXTITEM structure */
3880 #define LVNI_ABOVE (256)
3881 #define LVNI_ALL (0)
3882 #define LVNI_BELOW (512)
3883 #define LVNI_TOLEFT (1024)
3884 #define LVNI_TORIGHT (2048)
3885 #define LVNI_CUT (4)
3886 #define LVNI_DROPHILITED (8)
3887 #define LVNI_FOCUSED (1)
3888 #define LVNI_SELECTED (2)
3889
3890 /* LV_FINDINFO structure */
3891 #define LVFI_PARAM (1)
3892 #define LVFI_PARTIAL (8)
3893 #define LVFI_STRING (2)