ReactOS  0.4.15-dev-4610-g11e0ed3
winuser.h
Go to the documentation of this file.
1 #ifndef _WINUSER_H
2 #define _WINUSER_H
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 
8 #ifdef _MSC_VER
9 #pragma warning(push)
10 #pragma warning(disable:4201)
11 #pragma warning(disable:4820)
12 #endif
13 
14 #if !defined(_USER32_)
15 #define WINUSERAPI DECLSPEC_IMPORT
16 #else
17 #define WINUSERAPI
18 #endif
19 
20 #define FALT 16
21 #define FCONTROL 8
22 #define FNOINVERT 2
23 #define FSHIFT 4
24 #define FVIRTKEY 1
25 #define ATF_TIMEOUTON 1
26 #define ATF_ONOFFFEEDBACK 2
27 #define ATF_AVAILABLE 4 /* May be obsolete. Not in recent MS docs. */
28 #define WH_MIN (-1)
29 #define WH_MSGFILTER (-1)
30 #define WH_JOURNALRECORD 0
31 #define WH_JOURNALPLAYBACK 1
32 #define WH_KEYBOARD 2
33 #define WH_GETMESSAGE 3
34 #define WH_CALLWNDPROC 4
35 #define WH_CBT 5
36 #define WH_SYSMSGFILTER 6
37 #define WH_MOUSE 7
38 #define WH_HARDWARE 8
39 #define WH_DEBUG 9
40 #define WH_SHELL 10
41 #define WH_FOREGROUNDIDLE 11
42 #define WH_CALLWNDPROCRET 12
43 #define WH_KEYBOARD_LL 13
44 #define WH_MOUSE_LL 14
45 #define WH_MAX 14
46 #define WH_MINHOOK WH_MIN
47 #define WH_MAXHOOK WH_MAX
48 #define HC_ACTION 0
49 #define HC_GETNEXT 1
50 #define HC_SKIP 2
51 #define HC_NOREMOVE 3
52 #define HC_NOREM 3
53 #define HC_SYSMODALON 4
54 #define HC_SYSMODALOFF 5
55 #define HCBT_MOVESIZE 0
56 #define HCBT_MINMAX 1
57 #define HCBT_QS 2
58 #define HCBT_CREATEWND 3
59 #define HCBT_DESTROYWND 4
60 #define HCBT_ACTIVATE 5
61 #define HCBT_CLICKSKIPPED 6
62 #define HCBT_KEYSKIPPED 7
63 #define HCBT_SYSCOMMAND 8
64 #define HCBT_SETFOCUS 9
65 
66 /* Predefined Clipboard Formats */
67 #define CF_TEXT 1
68 #define CF_BITMAP 2
69 #define CF_METAFILEPICT 3
70 #define CF_SYLK 4
71 #define CF_DIF 5
72 #define CF_TIFF 6
73 #define CF_OEMTEXT 7
74 #define CF_DIB 8
75 #define CF_PALETTE 9
76 #define CF_PENDATA 10
77 #define CF_RIFF 11
78 #define CF_WAVE 12
79 #define CF_UNICODETEXT 13
80 #define CF_ENHMETAFILE 14
81 
82 #if(WINVER >= 0x0400)
83 #define CF_HDROP 15
84 #define CF_LOCALE 16
85 #endif
86 
87 #if(WINVER >= 0x0500)
88 #define CF_DIBV5 17
89 #endif
90 
91 #if(WINVER >= 0x0500)
92 #define CF_MAX 18
93 #elif(WINVER >= 0x0400)
94 #define CF_MAX 17
95 #else
96 #define CF_MAX 15
97 #endif
98 
99 #define CF_OWNERDISPLAY 128
100 #define CF_DSPTEXT 129
101 #define CF_DSPBITMAP 130
102 #define CF_DSPMETAFILEPICT 131
103 #define CF_DSPENHMETAFILE 142
104 #define CF_PRIVATEFIRST 512
105 #define CF_PRIVATELAST 767
106 #define CF_GDIOBJFIRST 768
107 #define CF_GDIOBJLAST 1023
108 
109 #define HKL_NEXT 1
110 #define HKL_PREV 0
111 #define KLF_ACTIVATE 1
112 #define KLF_SUBSTITUTE_OK 2
113 #define KLF_UNLOADPREVIOUS 4
114 #define KLF_REORDER 8
115 #define KLF_REPLACELANG 16
116 #define KLF_NOTELLSHELL 128
117 #define KLF_SETFORPROCESS 256
118 #if (_WIN32_WINNT >= 0x0500)
119 #define KLF_SHIFTLOCK 0x00010000
120 #define KLF_RESET 0x40000000
121 #endif /*(_WIN32_WINNT >= 0x0500) */
122 #define KL_NAMELENGTH 9
123 #if (WINVER >= 0x0500)
124 #define INPUTLANGCHANGE_BACKWARD 4
125 #define INPUTLANGCHANGE_FORWARD 2
126 #define INPUTLANGCHANGE_SYSCHARSET 1
127 #endif /* (WINVER >= 0x0500) */
128 #define MF_ENABLED 0
129 #define MF_GRAYED 1
130 #define MF_DISABLED 2
131 #define MF_BITMAP 4
132 #define MF_CHECKED 8
133 #define MF_MENUBARBREAK 32
134 #define MF_MENUBREAK 64
135 #define MF_OWNERDRAW 256
136 #define MF_POPUP 16
137 #define MF_SEPARATOR 0x800
138 #define MF_STRING 0
139 #define MF_UNCHECKED 0
140 #define MF_DEFAULT 4096
141 #define MF_SYSMENU 0x2000
142 #define MF_HELP 0x4000
143 #define MF_END 128
144 #define MF_RIGHTJUSTIFY 0x4000
145 #define MF_MOUSESELECT 0x8000
146 #define MF_INSERT 0
147 #define MF_CHANGE 128
148 #define MF_APPEND 256
149 #define MF_DELETE 512
150 #define MF_REMOVE 4096
151 #define MF_USECHECKBITMAPS 512
152 #define MF_UNHILITE 0
153 #define MF_HILITE 128
154 
155 /* Also defined in dbt.h */
156 #define BSM_ALLCOMPONENTS 0
157 #define BSM_APPLICATIONS 8
158 #define BSM_ALLDESKTOPS 16
159 #define BSM_INSTALLABLEDRIVERS 4
160 #define BSM_NETDRIVER 2
161 #define BSM_VXDS 1
162 #define BSF_FLUSHDISK 0x00000004
163 #define BSF_FORCEIFHUNG 0x00000020
164 #define BSF_IGNORECURRENTTASK 0x00000002
165 #define BSF_NOHANG 0x00000008
166 #define BSF_NOTIMEOUTIFNOTHUNG 0x00000040
167 #define BSF_POSTMESSAGE 0x00000010
168 #define BSF_QUERY 0x00000001
169 #if (_WIN32_WINNT >= 0x0500)
170 #define BSF_ALLOWSFW 0x00000080
171 #define BSF_SENDNOTIFYMESSAGE 0x00000100
172 #endif /* (_WIN32_WINNT >= 0x0500) */
173 #if (_WIN32_WINNT >= 0x0501)
174 #define BSF_LUID 0x00000400
175 #define BSF_RETURNHDESK 0x00000200
176 #endif /* (_WIN32_WINNT >= 0x0501) */
177 
178 #define BROADCAST_QUERY_DENY 1112363332
179 #define ENUM_CURRENT_SETTINGS ((DWORD)-1)
180 #define ENUM_REGISTRY_SETTINGS ((DWORD)-2)
181 #define CDS_UPDATEREGISTRY 1
182 #define CDS_TEST 2
183 #define CDS_FULLSCREEN 4
184 #define CDS_GLOBAL 8
185 #define CDS_SET_PRIMARY 16
186 #define CDS_VIDEOPARAMETERS 20
187 #define CDS_RESET 0x40000000
188 #define CDS_SETRECT 0x20000000
189 #define CDS_NORESET 0x10000000
190 #define DISP_CHANGE_SUCCESSFUL 0
191 #define DISP_CHANGE_RESTART 1
192 #define DISP_CHANGE_BADFLAGS (-4)
193 #define DISP_CHANGE_BADPARAM (-5)
194 #define DISP_CHANGE_FAILED (-1)
195 #define DISP_CHANGE_BADMODE (-2)
196 #define DISP_CHANGE_NOTUPDATED (-3)
197 #define BST_CHECKED 1
198 #define BST_INDETERMINATE 2
199 #define BST_UNCHECKED 0
200 #define BST_FOCUS 8
201 #define BST_PUSHED 4
202 #define MF_BYCOMMAND 0
203 #define MF_BYPOSITION 1024
204 #define MF_UNCHECKED 0
205 #define MF_HILITE 128
206 #define MF_UNHILITE 0
207 #define CWP_ALL 0
208 #define CWP_SKIPINVISIBLE 1
209 #define CWP_SKIPDISABLED 2
210 #define CWP_SKIPTRANSPARENT 4
211 #define IMAGE_BITMAP 0
212 #define IMAGE_ICON 1
213 #define IMAGE_CURSOR 2
214 #define IMAGE_ENHMETAFILE 3
215 #define DF_ALLOWOTHERACCOUNTHOOK 1
216 #define DESKTOP_CREATEMENU 4
217 #define DESKTOP_CREATEWINDOW 2
218 #define DESKTOP_ENUMERATE 64
219 #define DESKTOP_HOOKCONTROL 8
220 #define DESKTOP_JOURNALPLAYBACK 32
221 #define DESKTOP_JOURNALRECORD 16
222 #define DESKTOP_READOBJECTS 1
223 #define DESKTOP_SWITCHDESKTOP 256
224 #define DESKTOP_WRITEOBJECTS 128
225 #define CW_USEDEFAULT ((int)0x80000000)
226 #define WS_BORDER 0x800000
227 #define WS_CAPTION 0xc00000
228 #define WS_CHILD 0x40000000
229 #define WS_CHILDWINDOW 0x40000000
230 #define WS_CLIPCHILDREN 0x2000000
231 #define WS_CLIPSIBLINGS 0x4000000
232 #define WS_DISABLED 0x8000000
233 #define WS_DLGFRAME 0x400000
234 #define WS_GROUP 0x20000
235 #define WS_HSCROLL 0x100000
236 #define WS_ICONIC 0x20000000
237 #define WS_MAXIMIZE 0x1000000
238 #define WS_MAXIMIZEBOX 0x10000
239 #define WS_MINIMIZE 0x20000000
240 #define WS_MINIMIZEBOX 0x20000
241 #define WS_OVERLAPPED 0
242 #define WS_OVERLAPPEDWINDOW 0xcf0000
243 #define WS_POPUP 0x80000000
244 #define WS_POPUPWINDOW 0x80880000
245 #define WS_SIZEBOX 0x40000
246 #define WS_SYSMENU 0x80000
247 #define WS_TABSTOP 0x10000
248 #define WS_THICKFRAME 0x40000
249 #define WS_TILED 0
250 #define WS_TILEDWINDOW 0xcf0000
251 #define WS_VISIBLE 0x10000000
252 #define WS_VSCROLL 0x200000
253 #define MDIS_ALLCHILDSTYLES 1
254 #define BS_3STATE 5
255 #define BS_AUTO3STATE 6
256 #define BS_AUTOCHECKBOX 3
257 #define BS_AUTORADIOBUTTON 9
258 #define BS_BITMAP 128
259 #define BS_BOTTOM 0x800
260 #define BS_CENTER 0x300
261 #define BS_CHECKBOX 2
262 #define BS_DEFPUSHBUTTON 1
263 #define BS_GROUPBOX 7
264 #define BS_ICON 64
265 #define BS_LEFT 256
266 #define BS_LEFTTEXT 32
267 #define BS_MULTILINE 0x2000
268 #define BS_NOTIFY 0x4000
269 #define BS_OWNERDRAW 0xb
270 #define BS_TYPEMASK 0xFL
271 #define BS_PUSHBUTTON 0
272 #define BS_PUSHLIKE 4096
273 #define BS_RADIOBUTTON 4
274 #define BS_RIGHT 512
275 #define BS_RIGHTBUTTON 32
276 #define BS_TEXT 0
277 #define BS_TOP 0x400
278 #define BS_USERBUTTON 8
279 #define BS_VCENTER 0xc00
280 #define BS_FLAT 0x8000
281 #define CBS_AUTOHSCROLL 64
282 #define CBS_DISABLENOSCROLL 0x800
283 #define CBS_DROPDOWN 2
284 #define CBS_DROPDOWNLIST 3
285 #define CBS_HASSTRINGS 512
286 #define CBS_LOWERCASE 0x4000
287 #define CBS_NOINTEGRALHEIGHT 0x400
288 #define CBS_OEMCONVERT 128
289 #define CBS_OWNERDRAWFIXED 16
290 #define CBS_OWNERDRAWVARIABLE 32
291 #define CBS_SIMPLE 1
292 #define CBS_SORT 256
293 #define CBS_UPPERCASE 0x2000
294 #define ES_AUTOHSCROLL 128
295 #define ES_AUTOVSCROLL 64
296 #define ES_CENTER 1
297 #define ES_LEFT 0
298 #define ES_LOWERCASE 16
299 #define ES_MULTILINE 4
300 #define ES_NOHIDESEL 256
301 #define ES_NUMBER 0x2000
302 #define ES_OEMCONVERT 0x400
303 #define ES_PASSWORD 32
304 #define ES_READONLY 0x800
305 #define ES_RIGHT 2
306 #define ES_UPPERCASE 8
307 #define ES_WANTRETURN 4096
308 #define LBS_DISABLENOSCROLL 4096
309 #define LBS_EXTENDEDSEL 0x800
310 #define LBS_HASSTRINGS 64
311 #define LBS_MULTICOLUMN 512
312 #define LBS_MULTIPLESEL 8
313 #define LBS_NODATA 0x2000
314 #define LBS_NOINTEGRALHEIGHT 256
315 #define LBS_NOREDRAW 4
316 #define LBS_NOSEL 0x4000
317 #define LBS_NOTIFY 1
318 #define LBS_OWNERDRAWFIXED 16
319 #define LBS_OWNERDRAWVARIABLE 32
320 #define LBS_SORT 2
321 #define LBS_STANDARD 0xa00003
322 #define LBS_USETABSTOPS 128
323 #define LBS_WANTKEYBOARDINPUT 0x400
324 #define LBS_COMBOBOX 0x8000
325 #define SBS_BOTTOMALIGN 4
326 #define SBS_HORZ 0
327 #define SBS_LEFTALIGN 2
328 #define SBS_RIGHTALIGN 4
329 #define SBS_SIZEBOX 8
330 #define SBS_SIZEBOXBOTTOMRIGHTALIGN 4
331 #define SBS_SIZEBOXTOPLEFTALIGN 2
332 #define SBS_SIZEGRIP 16
333 #define SBS_TOPALIGN 2
334 #define SBS_VERT 1
335 #define SS_BITMAP 14
336 #define SS_BLACKFRAME 7
337 #define SS_BLACKRECT 4
338 #define SS_CENTER 1
339 #define SS_CENTERIMAGE 512
340 #define SS_EDITCONTROL 0x2000
341 #define SS_ENHMETAFILE 15
342 #define SS_ETCHEDFRAME 18
343 #define SS_ETCHEDHORZ 16
344 #define SS_ETCHEDVERT 17
345 #define SS_GRAYFRAME 8
346 #define SS_GRAYRECT 5
347 #define SS_ICON 3
348 #define SS_LEFT 0
349 #define SS_LEFTNOWORDWRAP 0xc
350 #define SS_NOPREFIX 128
351 #define SS_NOTIFY 256
352 #define SS_OWNERDRAW 0xd
353 #define SS_REALSIZECONTROL 0x040
354 #define SS_REALSIZEIMAGE 0x800
355 #define SS_RIGHT 2
356 #define SS_RIGHTJUST 0x400
357 #define SS_SIMPLE 11
358 #define SS_SUNKEN 4096
359 #define SS_WHITEFRAME 9
360 #define SS_WHITERECT 6
361 #define SS_USERITEM 10
362 #define SS_TYPEMASK 0x0000001FL
363 #define SS_ENDELLIPSIS 0x00004000L
364 #define SS_PATHELLIPSIS 0x00008000L
365 #define SS_WORDELLIPSIS 0x0000C000L
366 #define SS_ELLIPSISMASK 0x0000C000L
367 #define DS_3DLOOK 4
368 #define DS_ABSALIGN 1
369 #define DS_CENTER 0x800
370 #define DS_CENTERMOUSE 4096
371 #define DS_CONTEXTHELP 0x2000
372 #define DS_CONTROL 0x400
373 #define DS_FIXEDSYS 8
374 #define DS_LOCALEDIT 32
375 #define DS_MODALFRAME 128
376 #define DS_NOFAILCREATE 16
377 #define DS_NOIDLEMSG 256
378 #define DS_SETFONT 64
379 #define DS_SETFOREGROUND 512
380 #define DS_SYSMODAL 2
381 #define DS_SHELLFONT (DS_SETFONT | DS_FIXEDSYS)
382 #define WS_EX_ACCEPTFILES 16
383 #define WS_EX_APPWINDOW 0x40000
384 #define WS_EX_CLIENTEDGE 512
385 #define WS_EX_COMPOSITED 0x2000000 /* XP */
386 #define WS_EX_CONTEXTHELP 0x400
387 #define WS_EX_CONTROLPARENT 0x10000
388 #define WS_EX_DLGMODALFRAME 1
389 #define WS_EX_LAYERED 0x80000 /* w2k */
390 #define WS_EX_LAYOUTRTL 0x400000 /* w98, w2k */
391 #define WS_EX_LEFT 0
392 #define WS_EX_LEFTSCROLLBAR 0x4000
393 #define WS_EX_LTRREADING 0
394 #define WS_EX_MDICHILD 64
395 #define WS_EX_NOACTIVATE 0x8000000 /* w2k */
396 #define WS_EX_NOINHERITLAYOUT 0x100000 /* w2k */
397 #define WS_EX_NOPARENTNOTIFY 4
398 #define WS_EX_OVERLAPPEDWINDOW 0x300
399 #define WS_EX_PALETTEWINDOW 0x188
400 #define WS_EX_RIGHT 0x1000
401 #define WS_EX_RIGHTSCROLLBAR 0
402 #define WS_EX_RTLREADING 0x2000
403 #define WS_EX_STATICEDGE 0x20000
404 #define WS_EX_TOOLWINDOW 128
405 #define WS_EX_TOPMOST 8
406 #define WS_EX_TRANSPARENT 32
407 #define WS_EX_WINDOWEDGE 256
408 #define WINSTA_ACCESSCLIPBOARD 4
409 #define WINSTA_ACCESSGLOBALATOMS 32
410 #define WINSTA_CREATEDESKTOP 8
411 #define WINSTA_ENUMDESKTOPS 1
412 #define WINSTA_ENUMERATE 256
413 #define WINSTA_EXITWINDOWS 64
414 #define WINSTA_READATTRIBUTES 2
415 #define WINSTA_READSCREEN 512
416 #define WINSTA_WRITEATTRIBUTES 16
417 #define WINSTA_ALL_ACCESS 895
418 #define DDL_READWRITE 0
419 #define DDL_READONLY 1
420 #define DDL_HIDDEN 2
421 #define DDL_SYSTEM 4
422 #define DDL_DIRECTORY 16
423 #define DDL_ARCHIVE 32
424 #define DDL_POSTMSGS 8192
425 #define DDL_DRIVES 16384
426 #define DDL_EXCLUSIVE 32768
427 #define DC_ACTIVE 0x00000001
428 #define DC_SMALLCAP 0x00000002
429 #define DC_ICON 0x00000004
430 #define DC_TEXT 0x00000008
431 #define DC_INBUTTON 0x00000010
432 #if (_WIN32_WINDOWS >= 0x0410 || _WIN32_WINNT >= 0x0500)
433 #define DC_GRADIENT 0x00000020
434 #endif
435 #if (_WIN32_WINNT >= 0x0501)
436 #define DC_BUTTONS 0x00001000
437 #endif
438 /* Where are these documented? */
439 #define DC_CAPTION (DC_ICON|DC_TEXT|DC_BUTTONS)
440 #define DC_NC (DC_CAPTION|DC_FRAME)
441 
442 #define BDR_RAISEDOUTER 1
443 #define BDR_SUNKENOUTER 2
444 #define BDR_RAISEDINNER 4
445 #define BDR_SUNKENINNER 8
446 #define BDR_OUTER 3
447 #define BDR_INNER 0xc
448 #define BDR_RAISED 5
449 #define BDR_SUNKEN 10
450 #define EDGE_RAISED (BDR_RAISEDOUTER|BDR_RAISEDINNER)
451 #define EDGE_SUNKEN (BDR_SUNKENOUTER|BDR_SUNKENINNER)
452 #define EDGE_ETCHED (BDR_SUNKENOUTER|BDR_RAISEDINNER)
453 #define EDGE_BUMP (BDR_RAISEDOUTER|BDR_SUNKENINNER)
454 #define BF_LEFT 1
455 #define BF_TOP 2
456 #define BF_RIGHT 4
457 #define BF_BOTTOM 8
458 #define BF_TOPLEFT (BF_TOP|BF_LEFT)
459 #define BF_TOPRIGHT (BF_TOP|BF_RIGHT)
460 #define BF_BOTTOMLEFT (BF_BOTTOM|BF_LEFT)
461 #define BF_BOTTOMRIGHT (BF_BOTTOM|BF_RIGHT)
462 #define BF_RECT (BF_LEFT|BF_TOP|BF_RIGHT|BF_BOTTOM)
463 #define BF_DIAGONAL 16
464 #define BF_DIAGONAL_ENDTOPRIGHT (BF_DIAGONAL|BF_TOP|BF_RIGHT)
465 #define BF_DIAGONAL_ENDTOPLEFT (BF_DIAGONAL|BF_TOP|BF_LEFT)
466 #define BF_DIAGONAL_ENDBOTTOMLEFT (BF_DIAGONAL|BF_BOTTOM|BF_LEFT)
467 #define BF_DIAGONAL_ENDBOTTOMRIGHT (BF_DIAGONAL|BF_BOTTOM|BF_RIGHT)
468 #define BF_MIDDLE 0x800
469 #define BF_SOFT 0x1000
470 #define BF_ADJUST 0x2000
471 #define BF_FLAT 0x4000
472 #define BF_MONO 0x8000
473 #define DFC_CAPTION 1
474 #define DFC_MENU 2
475 #define DFC_SCROLL 3
476 #define DFC_BUTTON 4
477 #if (WINVER >= 0x0500)
478 #define DFC_POPUPMENU 5
479 #endif /* WINVER >= 0x0500 */
480 #define DFCS_CAPTIONCLOSE 0
481 #define DFCS_CAPTIONMIN 1
482 #define DFCS_CAPTIONMAX 2
483 #define DFCS_CAPTIONRESTORE 3
484 #define DFCS_CAPTIONHELP 4
485 #define DFCS_MENUARROW 0
486 #define DFCS_MENUCHECK 1
487 #define DFCS_MENUBULLET 2
488 #define DFCS_MENUARROWRIGHT 4
489 #define DFCS_SCROLLUP 0
490 #define DFCS_SCROLLDOWN 1
491 #define DFCS_SCROLLLEFT 2
492 #define DFCS_SCROLLRIGHT 3
493 #define DFCS_SCROLLCOMBOBOX 5
494 #define DFCS_SCROLLSIZEGRIP 8
495 #define DFCS_SCROLLSIZEGRIPRIGHT 16
496 #define DFCS_BUTTONCHECK 0
497 #define DFCS_BUTTONRADIOIMAGE 1
498 #define DFCS_BUTTONRADIOMASK 2
499 #define DFCS_BUTTONRADIO 4
500 #define DFCS_BUTTON3STATE 8
501 #define DFCS_BUTTONPUSH 16
502 #define DFCS_INACTIVE 256
503 #define DFCS_PUSHED 512
504 #define DFCS_CHECKED 1024
505 #if (WINVER >= 0x0500)
506 #define DFCS_TRANSPARENT 0x800
507 #define DFCS_HOT 0x1000
508 #endif
509 #define DFCS_ADJUSTRECT 0x2000
510 #define DFCS_FLAT 0x4000
511 #define DFCS_MONO 0x8000
512 #define DST_COMPLEX 0
513 #define DST_TEXT 1
514 #define DST_PREFIXTEXT 2
515 #define DST_ICON 3
516 #define DST_BITMAP 4
517 #define DSS_NORMAL 0
518 #define DSS_UNION 16
519 #define DSS_DISABLED 32
520 #define DSS_DEFAULT 64
521 #define DSS_MONO 128
522 #define DSS_HIDEPREFIX 0x0200
523 #define DSS_PREFIXONLY 0x0400
524 #define DSS_RIGHT 0x8000
525 #define DT_BOTTOM 8
526 #define DT_CALCRECT 1024
527 #define DT_CENTER 1
528 #define DT_EDITCONTROL 8192
529 #define DT_END_ELLIPSIS 32768
530 #define DT_PATH_ELLIPSIS 16384
531 #define DT_WORD_ELLIPSIS 0x40000
532 #define DT_EXPANDTABS 64
533 #define DT_EXTERNALLEADING 512
534 #define DT_LEFT 0
535 #define DT_MODIFYSTRING 65536
536 #define DT_NOCLIP 256
537 #define DT_NOPREFIX 2048
538 #define DT_RIGHT 2
539 #define DT_RTLREADING 131072
540 #define DT_SINGLELINE 32
541 #define DT_TABSTOP 128
542 #define DT_TOP 0
543 #define DT_VCENTER 4
544 #define DT_WORDBREAK 16
545 #define DT_INTERNAL 4096
546 #define DT_NOFULLWIDTHCHARBREAK 524288
547 #define DT_HIDEPREFIX 1048576
548 #define DT_PREFIXONLY 2097152
549 #define WB_ISDELIMITER 2
550 #define WB_LEFT 0
551 #define WB_RIGHT 1
552 #define SB_HORZ 0
553 #define SB_VERT 1
554 #define SB_CTL 2
555 #define SB_BOTH 3
556 #define ESB_DISABLE_BOTH 3
557 #define ESB_DISABLE_DOWN 2
558 #define ESB_DISABLE_LEFT 1
559 #define ESB_DISABLE_LTUP 1
560 #define ESB_DISABLE_RIGHT 2
561 #define ESB_DISABLE_RTDN 2
562 #define ESB_DISABLE_UP 1
563 #define ESB_ENABLE_BOTH 0
564 #define SB_LINEUP 0
565 #define SB_LINEDOWN 1
566 #define SB_LINELEFT 0
567 #define SB_LINERIGHT 1
568 #define SB_PAGEUP 2
569 #define SB_PAGEDOWN 3
570 #define SB_PAGELEFT 2
571 #define SB_PAGERIGHT 3
572 #define SB_THUMBPOSITION 4
573 #define SB_THUMBTRACK 5
574 #define SB_ENDSCROLL 8
575 #define SB_LEFT 6
576 #define SB_RIGHT 7
577 #define SB_BOTTOM 7
578 #define SB_TOP 6
579 
580 #define IS_INTRESOURCE(i) (((ULONG_PTR)(i) >> 16) == 0)
581 #define MAKEINTRESOURCEA(i) ((LPSTR)(ULONG_PTR)LOWORD(i))
582 #define MAKEINTRESOURCEW(i) ((LPWSTR)(ULONG_PTR)LOWORD(i))
583 
584 #ifndef RC_INVOKED
585 #ifdef WINE_NO_UNICODE_MACROS /* force using a cast */
586 #define MAKEINTRESOURCE(i) ((ULONG_PTR)((WORD)(i)))
587 #else
588 #ifdef UNICODE
589 #define MAKEINTRESOURCE MAKEINTRESOURCEW
590 #else
591 #define MAKEINTRESOURCE MAKEINTRESOURCEA
592 #endif /* UNICODE */
593 #endif /* WINE_NO_UNICODE_MACROS */
594 #endif /* !RC_INVOKED */
595 
596 #ifndef XFree86Server
597 # define RT_CURSOR MAKEINTRESOURCE(1)
598 # define RT_FONT MAKEINTRESOURCE(8)
599 #endif /* ndef XFree86Server */
600 #define RT_BITMAP MAKEINTRESOURCE(2)
601 #define RT_ICON MAKEINTRESOURCE(3)
602 #define RT_MENU MAKEINTRESOURCE(4)
603 #define RT_DIALOG MAKEINTRESOURCE(5)
604 #define RT_STRING MAKEINTRESOURCE(6)
605 #define RT_FONTDIR MAKEINTRESOURCE(7)
606 #define RT_ACCELERATOR MAKEINTRESOURCE(9)
607 #define RT_RCDATA MAKEINTRESOURCE(10)
608 #define RT_MESSAGETABLE MAKEINTRESOURCE(11)
609 #define DIFFERENCE 11
610 #define RT_GROUP_CURSOR MAKEINTRESOURCE((ULONG_PTR)RT_CURSOR+DIFFERENCE)
611 #define RT_GROUP_ICON MAKEINTRESOURCE((ULONG_PTR)RT_ICON+DIFFERENCE)
612 #define RT_VERSION MAKEINTRESOURCE(16)
613 #define RT_DLGINCLUDE MAKEINTRESOURCE(17)
614 #define RT_PLUGPLAY MAKEINTRESOURCE(19)
615 #define RT_VXD MAKEINTRESOURCE(20)
616 #define RT_ANICURSOR MAKEINTRESOURCE(21)
617 #define RT_ANIICON MAKEINTRESOURCE(22)
618 #define RT_HTML MAKEINTRESOURCE(23)
619 #ifndef RC_INVOKED
620 #define RT_MANIFEST MAKEINTRESOURCE(24)
621 #define CREATEPROCESS_MANIFEST_RESOURCE_ID MAKEINTRESOURCE(1)
622 #define ISOLATIONAWARE_MANIFEST_RESOURCE_ID MAKEINTRESOURCE(2)
623 #define ISOLATIONAWARE_NOSTATICIMPORT_MANIFEST_RESOURCE_ID MAKEINTRESOURCE(3)
624 #else
625 #define RT_MANIFEST 24
626 #define CREATEPROCESS_MANIFEST_RESOURCE_ID 1
627 #define ISOLATIONAWARE_MANIFEST_RESOURCE_ID 2
628 #define ISOLATIONAWARE_NOSTATICIMPORT_MANIFEST_RESOURCE_ID 3
629 #endif
630 #define EWX_FORCE 0x00000004
631 #define EWX_LOGOFF 0
632 #define EWX_POWEROFF 0x00000008
633 #define EWX_REBOOT 0x00000002
634 #define EWX_SHUTDOWN 0x00000001
635 #if (_WIN32_WINNT >= 0x0500)
636 #define EWX_FORCEIFHUNG 0x00000010
637 #endif
638 #if (_WIN32_WINNT > 0x06010000)
639 #define EWX_HYBRID_SHUTDOWN 0x00400000
640 #endif
641 #define CS_BYTEALIGNCLIENT 4096
642 #define CS_BYTEALIGNWINDOW 8192
643 #define CS_KEYCVTWINDOW 4
644 #define CS_NOKEYCVT 256 // Class Name to Version
645 #define CS_CLASSDC 64
646 #define CS_DBLCLKS 8
647 #define CS_GLOBALCLASS 16384
648 #define CS_HREDRAW 2
649 #define CS_NOCLOSE 512
650 #define CS_OWNDC 32
651 #define CS_PARENTDC 128
652 #define CS_SAVEBITS 2048
653 #define CS_VREDRAW 1
654 #define CS_IME 0x10000
655 #define CS_DROPSHADOW 0x20000
656 #define GCW_ATOM (-32)
657 #define GCL_CBCLSEXTRA (-20)
658 #define GCL_CBWNDEXTRA (-18)
659 #define GCL_HBRBACKGROUND (-10)
660 #define GCL_HCURSOR (-12)
661 #define GCL_HICON (-14)
662 #define GCL_HICONSM (-34)
663 #define GCL_HMODULE (-16)
664 #define GCL_MENUNAME (-8)
665 #define GCL_STYLE (-26)
666 #define GCL_WNDPROC (-24)
667 #define GCLP_HBRBACKGROUND (-10)
668 #define GCLP_HCURSOR (-12)
669 #define GCLP_HICON (-14)
670 #define GCLP_HICONSM (-34)
671 #define GCLP_HMODULE (-16)
672 #define GCLP_MENUNAME (-8)
673 #define GCLP_WNDPROC (-24)
674 #if 0
675  /* This is supposed to be defined by the program using it not defined
676  in the w32api headers. I've left it here for documentation purposes.
677  */
678 #ifndef IDC_STATIC /* May be predefined by resource compiler. */
679 #define IDC_STATIC (-1)
680 #endif
681 #endif
682 #define IDC_ARROW MAKEINTRESOURCE(32512)
683 #define IDC_IBEAM MAKEINTRESOURCE(32513)
684 #define IDC_WAIT MAKEINTRESOURCE(32514)
685 #define IDC_CROSS MAKEINTRESOURCE(32515)
686 #define IDC_UPARROW MAKEINTRESOURCE(32516)
687 #define IDC_SIZENWSE MAKEINTRESOURCE(32642)
688 #define IDC_SIZENESW MAKEINTRESOURCE(32643)
689 #define IDC_SIZEWE MAKEINTRESOURCE(32644)
690 #define IDC_SIZENS MAKEINTRESOURCE(32645)
691 #define IDC_SIZEALL MAKEINTRESOURCE(32646)
692 #define IDC_NO MAKEINTRESOURCE(32648)
693 #define IDC_HAND MAKEINTRESOURCE(32649)
694 #define IDC_APPSTARTING MAKEINTRESOURCE(32650)
695 #define IDC_HELP MAKEINTRESOURCE(32651)
696 #define IDC_ICON MAKEINTRESOURCE(32641)
697 #define IDC_SIZE MAKEINTRESOURCE(32640)
698 #ifndef RC_INVOKED
699 #define IDI_APPLICATION MAKEINTRESOURCE(32512)
700 #define IDI_HAND MAKEINTRESOURCE(32513)
701 #define IDI_QUESTION MAKEINTRESOURCE(32514)
702 #define IDI_EXCLAMATION MAKEINTRESOURCE(32515)
703 #define IDI_ASTERISK MAKEINTRESOURCE(32516)
704 #define IDI_WINLOGO MAKEINTRESOURCE(32517)
705 #else
706 #define IDI_APPLICATION 32512
707 #define IDI_HAND 32513
708 #define IDI_QUESTION 32514
709 #define IDI_EXCLAMATION 32515
710 #define IDI_ASTERISK 32516
711 #define IDI_WINLOGO 32517
712 #endif
713 #define IDI_WARNING IDI_EXCLAMATION
714 #define IDI_ERROR IDI_HAND
715 #define IDI_INFORMATION IDI_ASTERISK
716 #define MIIM_STATE 1
717 #define MIIM_ID 2
718 #define MIIM_SUBMENU 4
719 #define MIIM_CHECKMARKS 8
720 #define MIIM_TYPE 16
721 #define MIIM_DATA 32
722 #define MIIM_STRING 64
723 #define MIIM_BITMAP 128
724 #define MIIM_FTYPE 256
725 #if (WINVER >= 0x0500)
726 #define MIM_MAXHEIGHT 1
727 #define MIM_BACKGROUND 2
728 #define MIM_HELPID 4
729 #define MIM_MENUDATA 8
730 #define MIM_STYLE 16
731 #define MIM_APPLYTOSUBMENUS 0x80000000L
732 #endif
733 #define MFT_BITMAP 4
734 #define MFT_MENUBARBREAK 32
735 #define MFT_MENUBREAK 64
736 #define MFT_OWNERDRAW 256
737 #define MFT_RADIOCHECK 512
738 #define MFT_RIGHTJUSTIFY 0x4000
739 #define MFT_SEPARATOR 0x800
740 #define MFT_RIGHTORDER 0x2000L
741 #define MFT_STRING 0
742 #define MFS_CHECKED 8
743 #define MFS_DEFAULT 4096
744 #define MFS_DISABLED 3
745 #define MFS_ENABLED 0
746 #define MFS_GRAYED 3
747 #define MFS_HILITE 128
748 #define MFS_UNCHECKED 0
749 #define MFS_UNHILITE 0
750 #define MNS_NOCHECK 0x80000000
751 #define MNS_MODELESS 0x40000000
752 #define MNS_DRAGDROP 0x20000000
753 #define MNS_AUTODISMISS 0x10000000
754 #define MNS_NOTIFYBYPOS 0x08000000
755 #define MNS_CHECKORBMP 0x04000000
756 #define GW_HWNDNEXT 2
757 #define GW_HWNDPREV 3
758 #define GW_CHILD 5
759 #define GW_HWNDFIRST 0
760 #define GW_HWNDLAST 1
761 #define GW_OWNER 4
762 #define SW_HIDE 0
763 #define SW_NORMAL 1
764 #define SW_SHOWNORMAL 1
765 #define SW_SHOWMINIMIZED 2
766 #define SW_MAXIMIZE 3
767 #define SW_SHOWMAXIMIZED 3
768 #define SW_SHOWNOACTIVATE 4
769 #define SW_SHOW 5
770 #define SW_MINIMIZE 6
771 #define SW_SHOWMINNOACTIVE 7
772 #define SW_SHOWNA 8
773 #define SW_RESTORE 9
774 #define SW_SHOWDEFAULT 10
775 #define SW_FORCEMINIMIZE 11
776 #define SW_MAX 11
777 #define MB_USERICON 128
778 #define MB_ICONASTERISK 64
779 #define MB_ICONEXCLAMATION 0x30
780 #define MB_ICONWARNING 0x30
781 #define MB_ICONERROR 16
782 #define MB_ICONHAND 16
783 #define MB_ICONQUESTION 32
784 #define MB_OK 0
785 #define MB_ABORTRETRYIGNORE 2
786 #define MB_APPLMODAL 0
787 #define MB_DEFAULT_DESKTOP_ONLY 0x20000
788 #define MB_HELP 0x4000
789 #define MB_RIGHT 0x80000
790 #define MB_RTLREADING 0x100000
791 #define MB_TOPMOST 0x40000
792 #define MB_DEFBUTTON1 0
793 #define MB_DEFBUTTON2 256
794 #define MB_DEFBUTTON3 512
795 #define MB_DEFBUTTON4 0x300
796 #define MB_ICONINFORMATION 64
797 #define MB_ICONSTOP 16
798 #define MB_OKCANCEL 1
799 #define MB_RETRYCANCEL 5
800 #ifdef _WIN32_WINNT
801 #if (_WIN32_WINNT >= 0x0400)
802 #define MB_SERVICE_NOTIFICATION 0x00200000
803 #else
804 #define MB_SERVICE_NOTIFICATION 0x00040000
805 #endif
806 #define MB_SERVICE_NOTIFICATION_NT3X 0x00040000
807 #endif
808 #define MB_SETFOREGROUND 0x10000
809 #define MB_SYSTEMMODAL 4096
810 #define MB_TASKMODAL 0x2000
811 #define MB_YESNO 4
812 #define MB_YESNOCANCEL 3
813 #define MB_ICONMASK 240
814 #define MB_DEFMASK 3840
815 #define MB_MODEMASK 0x00003000
816 #define MB_MISCMASK 0x0000C000
817 #define MB_NOFOCUS 0x00008000
818 #define MB_TYPEMASK 15
819 #define MB_TOPMOST 0x40000
820 #if (WINVER >= 0x0500)
821 #define MB_CANCELTRYCONTINUE 6
822 #endif
823 
824 #define IDOK 1
825 #define IDCANCEL 2
826 #define IDABORT 3
827 #define IDRETRY 4
828 #define IDIGNORE 5
829 #define IDYES 6
830 #define IDNO 7
831 #if (WINVER >= 0x0400)
832 #define IDCLOSE 8
833 #define IDHELP 9
834 #endif
835 #if (WINVER >= 0x0500)
836 #define IDTRYAGAIN 10
837 #define IDCONTINUE 11
838 #endif
839 #if (WINVER >= 0x0501)
840 #ifndef IDTIMEOUT
841 #define IDTIMEOUT 32000
842 #endif
843 #endif
844 
845 #define GWL_EXSTYLE (-20)
846 #define GWL_STYLE (-16)
847 #define GWL_WNDPROC (-4)
848 #define GWLP_WNDPROC (-4)
849 #define GWL_HINSTANCE (-6)
850 #define GWLP_HINSTANCE (-6)
851 #define GWL_HWNDPARENT (-8)
852 #define GWLP_HWNDPARENT (-8)
853 #define GWL_ID (-12)
854 #define GWLP_ID (-12)
855 #define GWL_USERDATA (-21)
856 #define GWLP_USERDATA (-21)
857 
858 #ifndef __REACTOS__ // NEVER USE THESE!
859 #define DWL_MSGRESULT 0
860 #define DWL_DLGPROC 4
861 #define DWL_USER 8
862 #endif
863 
864 #define DWLP_MSGRESULT 0
865 #define DWLP_DLGPROC (DWLP_MSGRESULT + sizeof(LRESULT))
866 #define DWLP_USER (DWLP_DLGPROC + sizeof(DLGPROC))
867 
868 #define QS_KEY 1
869 #define QS_MOUSEMOVE 2
870 #define QS_MOUSEBUTTON 4
871 #define QS_POSTMESSAGE 8
872 #define QS_TIMER 16
873 #define QS_PAINT 32
874 #define QS_SENDMESSAGE 64
875 #define QS_HOTKEY 128
876 #define QS_ALLPOSTMESSAGE 256
877 
878 #if (_WIN32_WINNT >= 0x0501)
879 #define QS_RAWINPUT 1024
880 #endif
881 #if (_WIN32_WINNT >= 0x0602)
882 #define QS_TOUCH 2048
883 #define QS_POINTER 4096
884 #endif
885 
886 #define QS_MOUSE (QS_MOUSEMOVE | QS_MOUSEBUTTON)
887 
888 #if (_WIN32_WINNT >= 0x0602)
889 #define QS_INPUT (QS_KEY | QS_MOUSE | QS_RAWINPUT | QS_TOUCH | QS_POINTER)
890 #elif (_WIN32_WINNT >= 0x0501)
891 #define QS_INPUT (QS_KEY | QS_MOUSE | QS_RAWINPUT)
892 #else
893 #define QS_INPUT (QS_KEY | QS_MOUSE)
894 #endif
895 
896 #define QS_ALLEVENTS (QS_INPUT | QS_POSTMESSAGE | QS_TIMER | QS_PAINT | QS_HOTKEY)
897 #define QS_ALLINPUT (QS_ALLEVENTS | QS_SENDMESSAGE)
898 
899 #define USER_TIMER_MAXIMUM 2147483647
900 #define USER_TIMER_MINIMUM 10
901 
902 #define MWMO_WAITALL 1
903 #define MWMO_ALERTABLE 2
904 #define MWMO_INPUTAVAILABLE 4
905 
906 #define COLOR_SCROLLBAR 0
907 #define COLOR_BACKGROUND 1
908 #define COLOR_DESKTOP COLOR_BACKGROUND
909 #define COLOR_ACTIVECAPTION 2
910 #define COLOR_INACTIVECAPTION 3
911 #define COLOR_MENU 4
912 #define COLOR_WINDOW 5
913 #define COLOR_WINDOWFRAME 6
914 #define COLOR_MENUTEXT 7
915 #define COLOR_WINDOWTEXT 8
916 #define COLOR_CAPTIONTEXT 9
917 #define COLOR_ACTIVEBORDER 10
918 #define COLOR_INACTIVEBORDER 11
919 #define COLOR_APPWORKSPACE 12
920 #define COLOR_HIGHLIGHT 13
921 #define COLOR_HIGHLIGHTTEXT 14
922 #define COLOR_BTNFACE 15
923 #define COLOR_3DFACE COLOR_BTNFACE
924 #define COLOR_BTNSHADOW 16
925 #define COLOR_3DSHADOW COLOR_BTNSHADOW
926 #define COLOR_GRAYTEXT 17
927 #define COLOR_BTNTEXT 18
928 #define COLOR_INACTIVECAPTIONTEXT 19
929 #define COLOR_BTNHIGHLIGHT 20
930 #define COLOR_3DHIGHLIGHT COLOR_BTNHIGHLIGHT
931 #define COLOR_3DHILIGHT COLOR_BTNHIGHLIGHT
932 #define COLOR_BTNHILIGHT COLOR_BTNHIGHLIGHT
933 #define COLOR_3DDKSHADOW 21
934 #define COLOR_3DLIGHT 22
935 #define COLOR_INFOTEXT 23
936 #define COLOR_INFOBK 24
937 #define COLOR_HOTLIGHT 26
938 #define COLOR_GRADIENTACTIVECAPTION 27
939 #define COLOR_GRADIENTINACTIVECAPTION 28
940 #if WINVER >= 0x0501
941 #define COLOR_MENUHILIGHT 29
942 #define COLOR_MENUBAR 30
943 #endif
944 
945 #define CTLCOLOR_MSGBOX 0
946 #define CTLCOLOR_EDIT 1
947 #define CTLCOLOR_LISTBOX 2
948 #define CTLCOLOR_BTN 3
949 #define CTLCOLOR_DLG 4
950 #define CTLCOLOR_SCROLLBAR 5
951 #define CTLCOLOR_STATIC 6
952 #define CTLCOLOR_MAX 7
953 #define SM_CXSCREEN 0
954 #define SM_CYSCREEN 1
955 #define SM_CXVSCROLL 2
956 #define SM_CYHSCROLL 3
957 #define SM_CYCAPTION 4
958 #define SM_CXBORDER 5
959 #define SM_CYBORDER 6
960 #define SM_CXDLGFRAME 7
961 #define SM_CXFIXEDFRAME 7
962 #define SM_CYDLGFRAME 8
963 #define SM_CYFIXEDFRAME 8
964 #define SM_CYVTHUMB 9
965 #define SM_CXHTHUMB 10
966 #define SM_CXICON 11
967 #define SM_CYICON 12
968 #define SM_CXCURSOR 13
969 #define SM_CYCURSOR 14
970 #define SM_CYMENU 15
971 #define SM_CXFULLSCREEN 16
972 #define SM_CYFULLSCREEN 17
973 #define SM_CYKANJIWINDOW 18
974 #define SM_MOUSEPRESENT 19
975 #define SM_CYVSCROLL 20
976 #define SM_CXHSCROLL 21
977 #define SM_DEBUG 22
978 #define SM_SWAPBUTTON 23
979 #define SM_RESERVED1 24
980 #define SM_RESERVED2 25
981 #define SM_RESERVED3 26
982 #define SM_RESERVED4 27
983 #define SM_CXMIN 28
984 #define SM_CYMIN 29
985 #define SM_CXSIZE 30
986 #define SM_CYSIZE 31
987 #define SM_CXSIZEFRAME 32
988 #define SM_CXFRAME 32
989 #define SM_CYSIZEFRAME 33
990 #define SM_CYFRAME 33
991 #define SM_CXMINTRACK 34
992 #define SM_CYMINTRACK 35
993 #define SM_CXDOUBLECLK 36
994 #define SM_CYDOUBLECLK 37
995 #define SM_CXICONSPACING 38
996 #define SM_CYICONSPACING 39
997 #define SM_MENUDROPALIGNMENT 40
998 #define SM_PENWINDOWS 41
999 #define SM_DBCSENABLED 42
1000 #define SM_CMOUSEBUTTONS 43
1001 #define SM_SECURE 44
1002 #define SM_CXEDGE 45
1003 #define SM_CYEDGE 46
1004 #define SM_CXMINSPACING 47
1005 #define SM_CYMINSPACING 48
1006 #define SM_CXSMICON 49
1007 #define SM_CYSMICON 50
1008 #define SM_CYSMCAPTION 51
1009 #define SM_CXSMSIZE 52
1010 #define SM_CYSMSIZE 53
1011 #define SM_CXMENUSIZE 54
1012 #define SM_CYMENUSIZE 55
1013 #define SM_ARRANGE 56
1014 #define SM_CXMINIMIZED 57
1015 #define SM_CYMINIMIZED 58
1016 #define SM_CXMAXTRACK 59
1017 #define SM_CYMAXTRACK 60
1018 #define SM_CXMAXIMIZED 61
1019 #define SM_CYMAXIMIZED 62
1020 #define SM_NETWORK 63
1021 #define SM_CLEANBOOT 67
1022 #define SM_CXDRAG 68
1023 #define SM_CYDRAG 69
1024 #define SM_SHOWSOUNDS 70
1025 #define SM_CXMENUCHECK 71
1026 #define SM_CYMENUCHECK 72
1027 #define SM_SLOWMACHINE 73
1028 #define SM_MIDEASTENABLED 74
1029 #define SM_MOUSEWHEELPRESENT 75
1030 #define SM_XVIRTUALSCREEN 76
1031 #define SM_YVIRTUALSCREEN 77
1032 #define SM_CXVIRTUALSCREEN 78
1033 #define SM_CYVIRTUALSCREEN 79
1034 #define SM_CMONITORS 80
1035 #define SM_SAMEDISPLAYFORMAT 81
1036 #if(_WIN32_WINNT >= 0x0500)
1037 #define SM_IMMENABLED 82
1038 #endif /* _WIN32_WINNT >= 0x0500 */
1039 #if (_WIN32_WINNT >= 0x0501)
1040 #define SM_CXFOCUSBORDER 83
1041 #define SM_CYFOCUSBORDER 84
1042 #define SM_TABLETPC 86
1043 #define SM_MEDIACENTER 87
1044 #define SM_STARTER 88
1045 #define SM_SERVERR2 89
1046 #endif /* _WIN32_WINNT >= 0x0501 */
1047 #if (_WIN32_WINNT >= 0x0600)
1048 #define SM_MOUSEHORIZONTALWHEELPRESENT 91
1049 #define SM_CXPADDEDBORDER 92
1050 #endif /* _WIN32_WINNT >= 0x0600 */
1051 
1052 #define SM_REMOTESESSION 0x1000
1053 #if (_WIN32_WINNT >= 0x0501)
1054 #define SM_SHUTTINGDOWN 0x2000
1055 #define SM_REMOTECONTROL 0x2001
1056 #endif /* _WIN32_WINNT >= 0x0501 */
1057 
1058 #if (WINVER < 0x0500) && ((_WIN32_WINNT < 0x0400) || !defined(_WIN32_WINNT))
1059 #define SM_CMETRICS 76
1060 #elif (WINVER == 0x500)
1061 #define SM_CMETRICS 83
1062 #elif (WINVER == 0x501)
1063 #define SM_CMETRICS 90
1064 #else
1065 #define SM_CMETRICS 93
1066 #endif
1067 
1068 #define ARW_BOTTOMLEFT 0
1069 #define ARW_BOTTOMRIGHT 1
1070 #define ARW_HIDE 8
1071 #define ARW_TOPLEFT 2
1072 #define ARW_TOPRIGHT 3
1073 #define ARW_DOWN 4
1074 #define ARW_LEFT 0
1075 #define ARW_RIGHT 0
1076 #define ARW_UP 4
1077 #define UOI_FLAGS 1
1078 #define UOI_NAME 2
1079 #define UOI_TYPE 3
1080 #define UOI_USER_SID 4
1081 #define LR_DEFAULTCOLOR 0
1082 #define LR_MONOCHROME 1
1083 #define LR_COLOR 2
1084 #define LR_COPYRETURNORG 4
1085 #define LR_COPYDELETEORG 8
1086 #define LR_LOADFROMFILE 16
1087 #define LR_LOADTRANSPARENT 32
1088 #define LR_DEFAULTSIZE 64
1089 #define LR_LOADREALSIZE 128
1090 #define LR_VGACOLOR 128
1091 #define LR_LOADMAP3DCOLORS 4096
1092 #define LR_CREATEDIBSECTION 8192
1093 #define LR_COPYFROMRESOURCE 0x4000
1094 #define LR_SHARED 32768
1095 #define KEYEVENTF_EXTENDEDKEY 0x00000001
1096 #define KEYEVENTF_KEYUP 00000002
1097 #if (_WIN32_WINNT >= 0x0500)
1098 #define KEYEVENTF_UNICODE 0x00000004
1099 #define KEYEVENTF_SCANCODE 0x00000008
1100 #endif
1101 #define OBM_TRTYPE 32732
1102 #define OBM_LFARROWI 32734
1103 #define OBM_RGARROWI 32735
1104 #define OBM_DNARROWI 32736
1105 #define OBM_UPARROWI 32737
1106 #define OBM_COMBO 32738
1107 #define OBM_MNARROW 32739
1108 #define OBM_LFARROWD 32740
1109 #define OBM_RGARROWD 32741
1110 #define OBM_DNARROWD 32742
1111 #define OBM_UPARROWD 32743
1112 #define OBM_RESTORED 32744
1113 #define OBM_ZOOMD 32745
1114 #define OBM_REDUCED 32746
1115 #define OBM_RESTORE 32747
1116 #define OBM_ZOOM 32748
1117 #define OBM_REDUCE 32749
1118 #define OBM_LFARROW 32750
1119 #define OBM_RGARROW 32751
1120 #define OBM_DNARROW 32752
1121 #define OBM_UPARROW 32753
1122 #define OBM_CLOSE 32754
1123 #define OBM_OLD_RESTORE 32755
1124 #define OBM_OLD_ZOOM 32756
1125 #define OBM_OLD_REDUCE 32757
1126 #define OBM_BTNCORNERS 32758
1127 #define OBM_CHECKBOXES 32759
1128 #define OBM_CHECK 32760
1129 #define OBM_BTSIZE 32761
1130 #define OBM_OLD_LFARROW 32762
1131 #define OBM_OLD_RGARROW 32763
1132 #define OBM_OLD_DNARROW 32764
1133 #define OBM_OLD_UPARROW 32765
1134 #define OBM_SIZE 32766
1135 #define OBM_OLD_CLOSE 32767
1136 #define OCR_NORMAL 32512
1137 #define OCR_IBEAM 32513
1138 #define OCR_WAIT 32514
1139 #define OCR_CROSS 32515
1140 #define OCR_UP 32516
1141 #define OCR_SIZE 32640
1142 #define OCR_ICON 32641
1143 #define OCR_SIZENWSE 32642
1144 #define OCR_SIZENESW 32643
1145 #define OCR_SIZEWE 32644
1146 #define OCR_SIZENS 32645
1147 #define OCR_SIZEALL 32646
1148 #define OCR_NO 32648
1149 #define OCR_HAND 32649
1150 #define OCR_APPSTARTING 32650
1151 #define OCR_HELP 32651
1152 #define OIC_SAMPLE 32512
1153 #define OIC_HAND 32513
1154 #define OIC_QUES 32514
1155 #define OIC_BANG 32515
1156 #define OIC_NOTE 32516
1157 #define OIC_WINLOGO 32517
1158 #define OIC_WARNING OIC_BANG
1159 #define OIC_ERROR OIC_HAND
1160 #define OIC_INFORMATION OIC_NOTE
1161 #define HELPINFO_MENUITEM 2
1162 #define HELPINFO_WINDOW 1
1163 #define MSGF_DIALOGBOX 0
1164 #define MSGF_MESSAGEBOX 1
1165 #define MSGF_MENU 2
1166 #define MSGF_MOVE 3
1167 #define MSGF_SIZE 4
1168 #define MSGF_SCROLLBAR 5
1169 #define MSGF_NEXTWINDOW 6
1170 #define MSGF_MAINLOOP 8
1171 #define MSGF_USER 4096
1172 #define MSGF_MAX 8
1173 #define MOUSEEVENTF_MOVE 0x0001
1174 #define MOUSEEVENTF_LEFTDOWN 0x0002
1175 #define MOUSEEVENTF_LEFTUP 0x0004
1176 #define MOUSEEVENTF_RIGHTDOWN 0x0008
1177 #define MOUSEEVENTF_RIGHTUP 0x0010
1178 #define MOUSEEVENTF_MIDDLEDOWN 0x0020
1179 #define MOUSEEVENTF_MIDDLEUP 0x0040
1180 #define MOUSEEVENTF_XDOWN 0x0080
1181 #define MOUSEEVENTF_XUP 0x0100
1182 #define MOUSEEVENTF_WHEEL 0x0800
1183 #define MOUSEEVENTF_VIRTUALDESK 0x4000
1184 #define MOUSEEVENTF_ABSOLUTE 0x8000
1185 #define PM_NOREMOVE 0
1186 #define PM_REMOVE 1
1187 #define PM_NOYIELD 2
1188 #if (WINVER >= 0x0500)
1189 # define PM_QS_INPUT (QS_INPUT << 16)
1190 # define PM_QS_POSTMESSAGE ((QS_POSTMESSAGE|QS_HOTKEY|QS_TIMER) << 16)
1191 # define PM_QS_PAINT (QS_PAINT << 16)
1192 # define PM_QS_SENDMESSAGE (QS_SENDMESSAGE << 16)
1193 #endif
1194 #define HWND_BROADCAST ((HWND)0xffff)
1195 #define HWND_BOTTOM ((HWND)1)
1196 #define HWND_NOTOPMOST ((HWND)(-2))
1197 #define HWND_TOP ((HWND)0)
1198 #define HWND_TOPMOST ((HWND)(-1))
1199 #define HWND_DESKTOP (HWND)0
1200 #define HWND_MESSAGE ((HWND)(-3)) /* w2k */
1201 #define RDW_ERASE 4
1202 #define RDW_FRAME 1024
1203 #define RDW_INTERNALPAINT 2
1204 #define RDW_INVALIDATE 1
1205 #define RDW_NOERASE 32
1206 #define RDW_NOFRAME 2048
1207 #define RDW_NOINTERNALPAINT 16
1208 #define RDW_VALIDATE 8
1209 #define RDW_ERASENOW 512
1210 #define RDW_UPDATENOW 256
1211 #define RDW_ALLCHILDREN 128
1212 #define RDW_NOCHILDREN 64
1213 #define SMTO_ABORTIFHUNG 2
1214 #define SMTO_BLOCK 1
1215 #define SMTO_NORMAL 0
1216 #if (WINVER >= 0x0500)
1217 #define SMTO_NOTIMEOUTIFNOTHUNG 8
1218 #endif
1219 #if (WINVER >= 0x0600)
1220 #define SMTO_ERRORONEXIT 32
1221 #endif
1222 #define SIF_ALL 23
1223 #define SIF_PAGE 2
1224 #define SIF_POS 4
1225 #define SIF_RANGE 1
1226 #define SIF_DISABLENOSCROLL 8
1227 #define SIF_TRACKPOS 16
1228 #define SIF_THEMED 128 /* REACTOS Specific Only */
1229 #define SWP_DRAWFRAME 32
1230 #define SWP_FRAMECHANGED 32
1231 #define SWP_HIDEWINDOW 128
1232 #define SWP_NOACTIVATE 16
1233 #define SWP_NOCOPYBITS 256
1234 #define SWP_NOMOVE 2
1235 #define SWP_NOSIZE 1
1236 #define SWP_NOREDRAW 8
1237 #define SWP_NOZORDER 4
1238 #define SWP_SHOWWINDOW 64
1239 #define SWP_NOOWNERZORDER 512
1240 #define SWP_NOREPOSITION 512
1241 #define SWP_NOSENDCHANGING 1024
1242 #define SWP_DEFERERASE 8192
1243 #define SWP_ASYNCWINDOWPOS 16384
1244 
1245 #define HSHELL_WINDOWCREATED 1
1246 #define HSHELL_WINDOWDESTROYED 2
1247 #define HSHELL_ACTIVATESHELLWINDOW 3
1248 #if(WINVER >= 0x0400)
1249 #define HSHELL_WINDOWACTIVATED 4
1250 #define HSHELL_GETMINRECT 5
1251 #define HSHELL_REDRAW 6
1252 #define HSHELL_TASKMAN 7
1253 #define HSHELL_LANGUAGE 8
1254 #define HSHELL_SYSMENU 9
1255 #define HSHELL_ENDTASK 10
1256 #endif /* WINVER >= 0x0400 */
1257 #if(_WIN32_WINNT >= 0x0500)
1258 #define HSHELL_ACCESSIBILITYSTATE 11
1259 #define HSHELL_APPCOMMAND 12
1260 #endif /* _WIN32_WINNT >= 0x0500 */
1261 #if(_WIN32_WINNT >= 0x0501)
1262 #define HSHELL_WINDOWREPLACED 13
1263 #define HSHELL_WINDOWREPLACING 14
1264 #endif /* _WIN32_WINNT >= 0x0501 */
1265 
1266 #define HSHELL_HIGHBIT 0x8000
1267 #define HSHELL_FLASH (HSHELL_REDRAW|HSHELL_HIGHBIT)
1268 #define HSHELL_RUDEAPPACTIVATED (HSHELL_WINDOWACTIVATED|HSHELL_HIGHBIT)
1269 
1270 #if(_WIN32_WINNT >= 0x0500)
1271 #define APPCOMMAND_BROWSER_BACKWARD 1
1272 #define APPCOMMAND_BROWSER_FORWARD 2
1273 #define APPCOMMAND_BROWSER_REFRESH 3
1274 #define APPCOMMAND_BROWSER_STOP 4
1275 #define APPCOMMAND_BROWSER_SEARCH 5
1276 #define APPCOMMAND_BROWSER_FAVORITES 6
1277 #define APPCOMMAND_BROWSER_HOME 7
1278 #define APPCOMMAND_VOLUME_MUTE 8
1279 #define APPCOMMAND_VOLUME_DOWN 9
1280 #define APPCOMMAND_VOLUME_UP 10
1281 #define APPCOMMAND_MEDIA_NEXTTRACK 11
1282 #define APPCOMMAND_MEDIA_PREVIOUSTRACK 12
1283 #define APPCOMMAND_MEDIA_STOP 13
1284 #define APPCOMMAND_MEDIA_PLAY_PAUSE 14
1285 #define APPCOMMAND_LAUNCH_MAIL 15
1286 #define APPCOMMAND_LAUNCH_MEDIA_SELECT 16
1287 #define APPCOMMAND_LAUNCH_APP1 17
1288 #define APPCOMMAND_LAUNCH_APP2 18
1289 #define APPCOMMAND_BASS_DOWN 19
1290 #define APPCOMMAND_BASS_BOOST 20
1291 #define APPCOMMAND_BASS_UP 21
1292 #define APPCOMMAND_TREBLE_DOWN 22
1293 #define APPCOMMAND_TREBLE_UP 23
1294 #if( _WIN32_WINNT >= 0x0501 )
1295 #define APPCOMMAND_MICROPHONE_VOLUME_MUTE 24
1296 #define APPCOMMAND_MICROPHONE_VOLUME_DOWN 25
1297 #define APPCOMMAND_MICROPHONE_VOLUME_UP 26
1298 #define APPCOMMAND_HELP 27
1299 #define APPCOMMAND_FIND 28
1300 #define APPCOMMAND_NEW 29
1301 #define APPCOMMAND_OPEN 30
1302 #define APPCOMMAND_CLOSE 31
1303 #define APPCOMMAND_SAVE 32
1304 #define APPCOMMAND_PRINT 33
1305 #define APPCOMMAND_UNDO 34
1306 #define APPCOMMAND_REDO 35
1307 #define APPCOMMAND_COPY 36
1308 #define APPCOMMAND_CUT 37
1309 #define APPCOMMAND_PASTE 38
1310 #define APPCOMMAND_REPLY_TO_MAIL 39
1311 #define APPCOMMAND_FORWARD_MAIL 40
1312 #define APPCOMMAND_SEND_MAIL 41
1313 #define APPCOMMAND_SPELL_CHECK 42
1314 #define APPCOMMAND_DICTATE_OR_COMMAND_CONTROL_TOGGLE 43
1315 #define APPCOMMAND_MIC_ON_OFF_TOGGLE 44
1316 #define APPCOMMAND_CORRECTION_LIST 45
1317 #define APPCOMMAND_MEDIA_PLAY 46
1318 #define APPCOMMAND_MEDIA_PAUSE 47
1319 #define APPCOMMAND_MEDIA_RECORD 48
1320 #define APPCOMMAND_MEDIA_FAST_FORWARD 49
1321 #define APPCOMMAND_MEDIA_REWIND 50
1322 #define APPCOMMAND_MEDIA_CHANNEL_UP 51
1323 #define APPCOMMAND_MEDIA_CHANNEL_DOWN 52
1324 #endif /* _WIN32_WINNT >= 0x0501 */
1325 
1326 #define FAPPCOMMAND_MOUSE 0x8000
1327 #define FAPPCOMMAND_KEY 0
1328 #define FAPPCOMMAND_OEM 0x1000
1329 #define FAPPCOMMAND_MASK 0xf000
1330 
1331 #define GET_APPCOMMAND_LPARAM(lParam) ((SHORT)(HIWORD(lParam) & ~FAPPCOMMAND_MASK))
1332 #define GET_DEVICE_LPARAM(lParam) ((WORD)(HIWORD(lParam) & FAPPCOMMAND_MASK))
1333 #define GET_MOUSEORKEY_LPARAM GET_DEVICE_LPARAM
1334 #define GET_FLAGS_LPARAM(lParam) (LOWORD(lParam))
1335 #define GET_KEYSTATE_LPARAM(lParam) GET_FLAGS_LPARAM(lParam)
1336 #endif
1337 
1338 
1339 
1340 #define SPI_GETBEEP 0x0001
1341 #define SPI_SETBEEP 0x0002
1342 #define SPI_GETMOUSE 0x0003
1343 #define SPI_SETMOUSE 0x0004
1344 #define SPI_GETBORDER 0x0005
1345 #define SPI_SETBORDER 0x0006
1346 #define SPI_GETKEYBOARDSPEED 0x000A
1347 #define SPI_SETKEYBOARDSPEED 0x000B
1348 #define SPI_LANGDRIVER 0x000C
1349 #define SPI_ICONHORIZONTALSPACING 0x000D
1350 #define SPI_GETSCREENSAVETIMEOUT 0x000E
1351 #define SPI_SETSCREENSAVETIMEOUT 0x000F
1352 #define SPI_GETSCREENSAVEACTIVE 0x0010
1353 #define SPI_SETSCREENSAVEACTIVE 0x0011
1354 #define SPI_GETGRIDGRANULARITY 0x0012
1355 #define SPI_SETGRIDGRANULARITY 0x0013
1356 #define SPI_SETDESKWALLPAPER 0x0014
1357 #define SPI_SETDESKPATTERN 0x0015
1358 #define SPI_GETKEYBOARDDELAY 0x0016
1359 #define SPI_SETKEYBOARDDELAY 0x0017
1360 #define SPI_ICONVERTICALSPACING 0x0018
1361 #define SPI_GETICONTITLEWRAP 0x0019
1362 #define SPI_SETICONTITLEWRAP 0x001A
1363 #define SPI_GETMENUDROPALIGNMENT 0x001B
1364 #define SPI_SETMENUDROPALIGNMENT 0x001C
1365 #define SPI_SETDOUBLECLKWIDTH 0x001D
1366 #define SPI_SETDOUBLECLKHEIGHT 0x001E
1367 #define SPI_GETICONTITLELOGFONT 0x001F
1368 #define SPI_SETDOUBLECLICKTIME 0x0020
1369 #define SPI_SETMOUSEBUTTONSWAP 0x0021
1370 #define SPI_SETICONTITLELOGFONT 0x0022
1371 #define SPI_GETFASTTASKSWITCH 0x0023
1372 #define SPI_SETFASTTASKSWITCH 0x0024
1373 #if(WINVER >= 0x0400)
1374  #define SPI_SETDRAGFULLWINDOWS 0x0025
1375  #define SPI_GETDRAGFULLWINDOWS 0x0026
1376  #define SPI_GETNONCLIENTMETRICS 0x0029
1377  #define SPI_SETNONCLIENTMETRICS 0x002A
1378  #define SPI_GETMINIMIZEDMETRICS 0x002B
1379  #define SPI_SETMINIMIZEDMETRICS 0x002C
1380  #define SPI_GETICONMETRICS 0x002D
1381  #define SPI_SETICONMETRICS 0x002E
1382  #define SPI_SETWORKAREA 0x002F
1383  #define SPI_GETWORKAREA 0x0030
1384  #define SPI_SETPENWINDOWS 0x0031
1385 #endif
1386 #define SPI_GETFILTERKEYS 0x0032
1387 #define SPI_SETFILTERKEYS 0x0033
1388 #define SPI_GETTOGGLEKEYS 0x0034
1389 #define SPI_SETTOGGLEKEYS 0x0035
1390 #define SPI_GETMOUSEKEYS 0x0036
1391 #define SPI_SETMOUSEKEYS 0x0037
1392 #define SPI_GETSHOWSOUNDS 0x0038
1393 #define SPI_SETSHOWSOUNDS 0x0039
1394 #define SPI_GETSTICKYKEYS 0x003A
1395 #define SPI_SETSTICKYKEYS 0x003B
1396 #define SPI_GETACCESSTIMEOUT 0x003C
1397 #define SPI_SETACCESSTIMEOUT 0x003D
1398 #if(WINVER >= 0x0400)
1399  #define SPI_GETSERIALKEYS 0x003E
1400  #define SPI_SETSERIALKEYS 0x003F
1401 #endif
1402 #define SPI_GETSOUNDSENTRY 0x0040
1403 #define SPI_SETSOUNDSENTRY 0x0041
1404 #if(WINVER >= 0x0400)
1405  #define SPI_GETHIGHCONTRAST 0x0042
1406  #define SPI_SETHIGHCONTRAST 0x0043
1407  #define SPI_GETKEYBOARDPREF 0x0044
1408  #define SPI_SETKEYBOARDPREF 0x0045
1409  #define SPI_GETSCREENREADER 0x0046
1410  #define SPI_SETSCREENREADER 0x0047
1411  #define SPI_GETANIMATION 0x0048
1412  #define SPI_SETANIMATION 0x0049
1413  #define SPI_GETFONTSMOOTHING 0x004A
1414  #define SPI_SETFONTSMOOTHING 0x004B
1415  #define SPI_SETDRAGWIDTH 0x004C
1416  #define SPI_SETDRAGHEIGHT 0x004D
1417  #define SPI_SETHANDHELD 0x004E
1418  #define SPI_GETLOWPOWERTIMEOUT 0x004F
1419  #define SPI_GETPOWEROFFTIMEOUT 0x0050
1420  #define SPI_SETLOWPOWERTIMEOUT 0x0051
1421  #define SPI_SETPOWEROFFTIMEOUT 0x0052
1422  #define SPI_GETLOWPOWERACTIVE 0x0053
1423  #define SPI_GETPOWEROFFACTIVE 0x0054
1424  #define SPI_SETLOWPOWERACTIVE 0x0055
1425  #define SPI_SETPOWEROFFACTIVE 0x0056
1426  #define SPI_SETCURSORS 0x0057
1427  #define SPI_SETICONS 0x0058
1428  #define SPI_GETDEFAULTINPUTLANG 0x0059
1429  #define SPI_SETDEFAULTINPUTLANG 0x005A
1430  #define SPI_SETLANGTOGGLE 0x005B
1431  #define SPI_GETWINDOWSEXTENSION 0x005C
1432  #define SPI_SETMOUSETRAILS 0x005D
1433  #define SPI_GETMOUSETRAILS 0x005E
1434 #endif
1435 #if(_WIN32_WINNT >= 0x0400)
1436  #define SPI_GETSNAPTODEFBUTTON 0x005F
1437  #define SPI_SETSNAPTODEFBUTTON 0x0060
1438 #endif
1439 #if(WINVER >= 0x0400)
1440  #define SPI_SCREENSAVERRUNNING 0x0061
1441  #define SPI_SETSCREENSAVERRUNNING SPI_SCREENSAVERRUNNING
1442 #endif
1443 #if (_WIN32_WINNT >= 0x0400) || (_WIN32_WINDOWS > 0x0400)
1444  #define SPI_GETMOUSEHOVERWIDTH 0x0062
1445  #define SPI_SETMOUSEHOVERWIDTH 0x0063
1446  #define SPI_GETMOUSEHOVERHEIGHT 0x0064
1447  #define SPI_SETMOUSEHOVERHEIGHT 0x0065
1448  #define SPI_GETMOUSEHOVERTIME 0x0066
1449  #define SPI_SETMOUSEHOVERTIME 0x0067
1450  #define SPI_GETWHEELSCROLLLINES 0x0068
1451  #define SPI_SETWHEELSCROLLLINES 0x0069
1452  #define SPI_GETMENUSHOWDELAY 0x006A
1453  #define SPI_SETMENUSHOWDELAY 0x006B
1454  #if (_WIN32_WINNT >= 0x0600)
1455  #define SPI_GETWHEELSCROLLCHARS 0x006C
1456  #define SPI_SETWHEELSCROLLCHARS 0x006D
1457  #endif
1458  #define SPI_GETSHOWIMEUI 0x006E
1459  #define SPI_SETSHOWIMEUI 0x006F
1460 #endif
1461 #if(WINVER >= 0x0500)
1462  #define SPI_GETMOUSESPEED 0x0070
1463  #define SPI_SETMOUSESPEED 0x0071
1464  #define SPI_GETSCREENSAVERRUNNING 0x0072
1465  #define SPI_GETDESKWALLPAPER 0x0073
1466 #endif
1467 #if(WINVER >= 0x0600)
1468  #define SPI_GETAUDIODESCRIPTION 0x0074
1469  #define SPI_SETAUDIODESCRIPTION 0x0075
1470  #define SPI_GETSCREENSAVESECURE 0x0076
1471  #define SPI_SETSCREENSAVESECURE 0x0077
1472 #endif
1473 #if(WINVER >= 0x0500)
1474  #define SPI_GETACTIVEWINDOWTRACKING 0x1000
1475  #define SPI_SETACTIVEWINDOWTRACKING 0x1001
1476  #define SPI_GETMENUANIMATION 0x1002
1477  #define SPI_SETMENUANIMATION 0x1003
1478  #define SPI_GETCOMBOBOXANIMATION 0x1004
1479  #define SPI_SETCOMBOBOXANIMATION 0x1005
1480  #define SPI_GETLISTBOXSMOOTHSCROLLING 0x1006
1481  #define SPI_SETLISTBOXSMOOTHSCROLLING 0x1007
1482  #define SPI_GETGRADIENTCAPTIONS 0x1008
1483  #define SPI_SETGRADIENTCAPTIONS 0x1009
1484  #define SPI_GETKEYBOARDCUES 0x100A
1485  #define SPI_SETKEYBOARDCUES 0x100B
1486  #define SPI_GETMENUUNDERLINES SPI_GETKEYBOARDCUES
1487  #define SPI_SETMENUUNDERLINES SPI_SETKEYBOARDCUES
1488  #define SPI_GETACTIVEWNDTRKZORDER 0x100C
1489  #define SPI_SETACTIVEWNDTRKZORDER 0x100D
1490  #define SPI_GETHOTTRACKING 0x100E
1491  #define SPI_SETHOTTRACKING 0x100F
1492  #define SPI_GETMENUFADE 0x1012
1493  #define SPI_SETMENUFADE 0x1013
1494  #define SPI_GETSELECTIONFADE 0x1014
1495  #define SPI_SETSELECTIONFADE 0x1015
1496  #define SPI_GETTOOLTIPANIMATION 0x1016
1497  #define SPI_SETTOOLTIPANIMATION 0x1017
1498  #define SPI_GETTOOLTIPFADE 0x1018
1499  #define SPI_SETTOOLTIPFADE 0x1019
1500  #define SPI_GETCURSORSHADOW 0x101A
1501  #define SPI_SETCURSORSHADOW 0x101B
1502  #if(_WIN32_WINNT >= 0x0501)
1503  #define SPI_GETMOUSESONAR 0x101C
1504  #define SPI_SETMOUSESONAR 0x101D
1505  #define SPI_GETMOUSECLICKLOCK 0x101E
1506  #define SPI_SETMOUSECLICKLOCK 0x101F
1507  #define SPI_GETMOUSEVANISH 0x1020
1508  #define SPI_SETMOUSEVANISH 0x1021
1509  #define SPI_GETFLATMENU 0x1022
1510  #define SPI_SETFLATMENU 0x1023
1511  #define SPI_GETDROPSHADOW 0x1024
1512  #define SPI_SETDROPSHADOW 0x1025
1513  #define SPI_GETBLOCKSENDINPUTRESETS 0x1026
1514  #define SPI_SETBLOCKSENDINPUTRESETS 0x1027
1515  #endif
1516  #define SPI_GETUIEFFECTS 0x103E
1517  #define SPI_SETUIEFFECTS 0x103F
1518  #if(_WIN32_WINNT >= 0x0600)
1519  #define SPI_GETDISABLEOVERLAPPEDCONTENT 0x1040
1520  #define SPI_SETDISABLEOVERLAPPEDCONTENT 0x1041
1521  #define SPI_GETCLIENTAREAANIMATION 0x1042
1522  #define SPI_SETCLIENTAREAANIMATION 0x1043
1523  #define SPI_GETCLEARTYPE 0x1048
1524  #define SPI_SETCLEARTYPE 0x1049
1525  #define SPI_GETSPEECHRECOGNITION 0x104A
1526  #define SPI_SETSPEECHRECOGNITION 0x104B
1527  #endif
1528  #define SPI_GETFOREGROUNDLOCKTIMEOUT 0x2000
1529  #define SPI_SETFOREGROUNDLOCKTIMEOUT 0x2001
1530  #define SPI_GETACTIVEWNDTRKTIMEOUT 0x2002
1531  #define SPI_SETACTIVEWNDTRKTIMEOUT 0x2003
1532  #define SPI_GETFOREGROUNDFLASHCOUNT 0x2004
1533  #define SPI_SETFOREGROUNDFLASHCOUNT 0x2005
1534  #define SPI_GETCARETWIDTH 0x2006
1535  #define SPI_SETCARETWIDTH 0x2007
1536  #if(_WIN32_WINNT >= 0x0501)
1537  #define SPI_GETMOUSECLICKLOCKTIME 0x2008
1538  #define SPI_SETMOUSECLICKLOCKTIME 0x2009
1539  #define SPI_GETFONTSMOOTHINGTYPE 0x200A
1540  #define SPI_SETFONTSMOOTHINGTYPE 0x200B
1541  #define SPI_GETFONTSMOOTHINGCONTRAST 0x200C
1542  #define SPI_SETFONTSMOOTHINGCONTRAST 0x200D
1543  #define SPI_GETFOCUSBORDERWIDTH 0x200E
1544  #define SPI_SETFOCUSBORDERWIDTH 0x200F
1545  #define SPI_GETFOCUSBORDERHEIGHT 0x2010
1546  #define SPI_SETFOCUSBORDERHEIGHT 0x2011
1547  #define SPI_GETFONTSMOOTHINGORIENTATION 0x2012
1548  #define SPI_SETFONTSMOOTHINGORIENTATION 0x2013
1549 
1550  #define FE_FONTSMOOTHINGSTANDARD 0x0001
1551  #define FE_FONTSMOOTHINGCLEARTYPE 0x0002
1552  #define FE_FONTSMOOTHINGDOCKING 0x8000
1553  #define FE_FONTSMOOTHINGORIENTATIONBGR 0x0000
1554  #define FE_FONTSMOOTHINGORIENTATIONRGB 0x0001
1555  #endif
1556 #endif
1557 
1558 #define SPIF_UPDATEINIFILE 1
1559 #define SPIF_SENDCHANGE 2
1560 #define SPIF_SENDWININICHANGE SPIF_SENDCHANGE
1561 #define ATF_ONOFFFEEDBACK 2
1562 #define ATF_TIMEOUTON 1
1563 
1564 #if (WINVER >= 0x0500)
1565 #define UIS_SET 1
1566 #define UIS_CLEAR 2
1567 #define UIS_INITIALIZE 3
1568 
1569 #define UISF_HIDEFOCUS 0x1
1570 #define UISF_HIDEACCEL 0x2
1571 #if (WINVER >= 0x0501)
1572 #define UISF_ACTIVE 0x4
1573 #endif
1574 
1575 #endif
1576 
1577 #define PBT_APMQUERYSUSPEND 0x0000
1578 #define PBT_APMQUERYSTANDBY 0x0001
1579 #define PBT_APMQUERYSUSPENDFAILED 0x0002
1580 #define PBT_APMQUERYSTANDBYFAILED 0x0003
1581 #define PBT_APMSUSPEND 0x0004
1582 #define PBT_APMSTANDBY 0x0005
1583 #define PBT_APMRESUMECRITICAL 0x0006
1584 #define PBT_APMRESUMESUSPEND 0x0007
1585 #define PBT_APMRESUMESTANDBY 0x0008
1586 #define PBTF_APMRESUMEFROMFAILURE 0x00000001
1587 #define PBT_APMBATTERYLOW 0x0009
1588 #define PBT_APMPOWERSTATUSCHANGE 0x000A
1589 #define PBT_APMOEMEVENT 0x000B
1590 #define PBT_APMRESUMEAUTOMATIC 0x0012
1591 
1592 
1593 /* Window messages */
1594 #define WM_NULL 0
1595 #define WM_CREATE 1
1596 #define WM_DESTROY 2
1597 #define WM_MOVE 3
1598 #define WM_SIZE 5
1599 #define WM_ACTIVATE 6
1600 #define WM_SETFOCUS 7
1601 #define WM_KILLFOCUS 8
1602 #define WM_ENABLE 10
1603 #define WM_SETREDRAW 11
1604 #define WM_SETTEXT 12
1605 #define WM_GETTEXT 13
1606 #define WM_GETTEXTLENGTH 14
1607 #define WM_PAINT 15
1608 #define WM_CLOSE 16
1609 #define WM_QUERYENDSESSION 17
1610 #define WM_QUIT 18
1611 #define WM_QUERYOPEN 19
1612 #define WM_ERASEBKGND 20
1613 #define WM_SYSCOLORCHANGE 21
1614 #define WM_ENDSESSION 22
1615 #define WM_SHOWWINDOW 24
1616 #define WM_SETTINGCHANGE 26
1617 #define WM_WININICHANGE 26
1618 #define WM_DEVMODECHANGE 27
1619 #define WM_ACTIVATEAPP 28
1620 #define WM_FONTCHANGE 29
1621 #define WM_TIMECHANGE 30
1622 #define WM_CANCELMODE 31
1623 #define WM_SETCURSOR 32
1624 #define WM_MOUSEACTIVATE 33
1625 #define WM_CHILDACTIVATE 34
1626 #define WM_QUEUESYNC 35
1627 #define WM_GETMINMAXINFO 36
1628 #define WM_PAINTICON 38
1629 #define WM_ICONERASEBKGND 39
1630 #define WM_NEXTDLGCTL 40
1631 #define WM_SPOOLERSTATUS 42
1632 #define WM_DRAWITEM 43
1633 #define WM_MEASUREITEM 44
1634 #define WM_DELETEITEM 45
1635 #define WM_VKEYTOITEM 46
1636 #define WM_CHARTOITEM 47
1637 #define WM_SETFONT 48
1638 #define WM_GETFONT 49
1639 #define WM_SETHOTKEY 50
1640 #define WM_GETHOTKEY 51
1641 #define WM_QUERYDRAGICON 55
1642 #define WM_COMPAREITEM 57
1643 #if (WINVER >= 0x0500)
1644 #define WM_GETOBJECT 61
1645 #endif /* (WINVER >= 0x0500) */
1646 #define WM_COMPACTING 65
1647 #define WM_COMMNOTIFY 68 /* obsolete */
1648 #define WM_WINDOWPOSCHANGING 70
1649 #define WM_WINDOWPOSCHANGED 71
1650 #define WM_POWER 72
1651 #define WM_COPYDATA 74
1652 #define WM_CANCELJOURNAL 75
1653 
1654 #if (WINVER >= 0x0400)
1655 #define WM_NOTIFY 78
1656 #define WM_INPUTLANGCHANGEREQUEST 80
1657 #define WM_INPUTLANGCHANGE 81
1658 #define WM_TCARD 82
1659 #define WM_HELP 83
1660 #define WM_USERCHANGED 84
1661 #define WM_NOTIFYFORMAT 85
1662 #define WM_CONTEXTMENU 123
1663 #define WM_STYLECHANGING 124
1664 #define WM_STYLECHANGED 125
1665 #define WM_DISPLAYCHANGE 126
1666 #define WM_GETICON 127
1667 #define WM_SETICON 128
1668 #endif /* (WINVER >= 0x0400) */
1669 
1670 #define WM_NCCREATE 129
1671 #define WM_NCDESTROY 130
1672 #define WM_NCCALCSIZE 131
1673 #define WM_NCHITTEST 132
1674 #define WM_NCPAINT 133
1675 #define WM_NCACTIVATE 134
1676 #define WM_GETDLGCODE 135
1677 #define WM_SYNCPAINT 136
1678 #define WM_NCMOUSEMOVE 160
1679 #define WM_NCLBUTTONDOWN 161
1680 #define WM_NCLBUTTONUP 162
1681 #define WM_NCLBUTTONDBLCLK 163
1682 #define WM_NCRBUTTONDOWN 164
1683 #define WM_NCRBUTTONUP 165
1684 #define WM_NCRBUTTONDBLCLK 166
1685 #define WM_NCMBUTTONDOWN 167
1686 #define WM_NCMBUTTONUP 168
1687 #define WM_NCMBUTTONDBLCLK 169
1688 
1689 #if (_WIN32_WINNT >= 0x0500)
1690 #define WM_NCXBUTTONDOWN 171
1691 #define WM_NCXBUTTONUP 172
1692 #define WM_NCXBUTTONDBLCLK 173
1693 #endif /* (_WIN32_WINNT >= 0x0500) */
1694 
1695 #define GIDC_ARRIVAL 1
1696 #define GIDC_REMOVAL 2
1697 
1698 #define WM_INPUT_DEVICE_CHANGE 254
1699 #define WM_INPUT 255
1700 
1701 #define WM_KEYFIRST 256
1702 #define WM_KEYDOWN 256
1703 #define WM_KEYUP 257
1704 #define WM_CHAR 258
1705 #define WM_DEADCHAR 259
1706 #define WM_SYSKEYDOWN 260
1707 #define WM_SYSKEYUP 261
1708 #define WM_SYSCHAR 262
1709 #define WM_SYSDEADCHAR 263
1710 #if(_WIN32_WINNT >= 0x0501)
1711 #define WM_UNICHAR 0x0109
1712 #define WM_KEYLAST WM_UNICHAR
1713 #define UNICODE_NOCHAR 0xffff
1714 #else
1715 #define WM_KEYLAST 264
1716 #endif
1717 
1718 /* Win32 4.0 messages for IME */
1719 #if (WINVER >= 0x0400)
1720 #define WM_IME_STARTCOMPOSITION 0x010d
1721 #define WM_IME_ENDCOMPOSITION 0x010e
1722 #define WM_IME_COMPOSITION 0x010f
1723 #define WM_IME_KEYLAST 0x010f
1724 #endif /* (WINVER >= 0x0400) */
1725 
1726 #define WM_INITDIALOG 272
1727 #define WM_COMMAND 273
1728 #define WM_SYSCOMMAND 274
1729 #define WM_TIMER 275
1730 #define WM_HSCROLL 276
1731 #define WM_VSCROLL 277
1732 #define WM_INITMENU 278
1733 #define WM_INITMENUPOPUP 279
1734 #define WM_MENUSELECT 287
1735 #define WM_MENUCHAR 288
1736 #define WM_ENTERIDLE 289
1737 
1738 #if (WINVER >= 0x0500)
1739 #ifndef _WIN32_WCE
1740 #define WM_MENURBUTTONUP 290
1741 #define WM_MENUDRAG 291
1742 #define WM_MENUGETOBJECT 292
1743 #define WM_UNINITMENUPOPUP 293
1744 #define WM_MENUCOMMAND 294
1745 #if(_WIN32_WINNT >= 0x0500)
1746 #define WM_CHANGEUISTATE 295
1747 #define WM_UPDATEUISTATE 296
1748 #define WM_QUERYUISTATE 297
1749 #endif /* _WIN32_WINNT >= 0x0500 */
1750 #endif /* _WIN32_WCE */
1751 #endif /* (WINVER >= 0x0500) */
1752 
1753 #define WM_CTLCOLORMSGBOX 306
1754 #define WM_CTLCOLOREDIT 307
1755 #define WM_CTLCOLORLISTBOX 308
1756 #define WM_CTLCOLORBTN 309
1757 #define WM_CTLCOLORDLG 310
1758 #define WM_CTLCOLORSCROLLBAR 311
1759 #define WM_CTLCOLORSTATIC 312
1760 #define MN_GETHMENU 481
1761 #define WM_MOUSEFIRST 512
1762 #define WM_MOUSEMOVE 512
1763 #define WM_LBUTTONDOWN 513
1764 #define WM_LBUTTONUP 514
1765 #define WM_LBUTTONDBLCLK 515
1766 #define WM_RBUTTONDOWN 516
1767 #define WM_RBUTTONUP 517
1768 #define WM_RBUTTONDBLCLK 518
1769 #define WM_MBUTTONDOWN 519
1770 #define WM_MBUTTONUP 520
1771 #define WM_MBUTTONDBLCLK 521
1772 #if (_WIN32_WINNT >= 0x0400) || (_WIN32_WINDOWS > 0x0400)
1773 #define WM_MOUSEWHEEL 522
1774 #endif
1775 #if (_WIN32_WINNT >= 0x0500)
1776 #define WM_XBUTTONDOWN 523
1777 #define WM_XBUTTONUP 524
1778 #define WM_XBUTTONDBLCLK 525
1779 #endif
1780 #if (_WIN32_WINNT >= 0x0600)
1781 #define WM_MOUSEHWHEEL 526
1782 #endif
1783 #if (_WIN32_WINNT >= 0x0500)
1784 #define WM_MOUSELAST 525
1785 #elif (_WIN32_WINNT >= 0x0400) || (_WIN32_WINDOWS > 0x0400)
1786 #define WM_MOUSELAST 522
1787 #else
1788 #define WM_MOUSELAST 521
1789 #endif
1790 #define WM_PARENTNOTIFY 528
1791 #define WM_ENTERMENULOOP 529
1792 #define WM_EXITMENULOOP 530
1793 #define WM_NEXTMENU 531
1794 #define WM_SIZING 532
1795 #define WM_CAPTURECHANGED 533
1796 #define WM_MOVING 534
1797 #define WM_POWERBROADCAST 536
1798 #define WM_DEVICECHANGE 537
1799 #define WM_MDICREATE 544
1800 #define WM_MDIDESTROY 545
1801 #define WM_MDIACTIVATE 546
1802 #define WM_MDIRESTORE 547
1803 #define WM_MDINEXT 548
1804 #define WM_MDIMAXIMIZE 549
1805 #define WM_MDITILE 550
1806 #define WM_MDICASCADE 551
1807 #define WM_MDIICONARRANGE 552
1808 #define WM_MDIGETACTIVE 553
1809 #define WM_MDISETMENU 560
1810 #define WM_ENTERSIZEMOVE 561
1811 #define WM_EXITSIZEMOVE 562
1812 #define WM_DROPFILES 563
1813 #define WM_MDIREFRESHMENU 564
1814 
1815 /* Win32 4.0 messages for IME */
1816 #define WM_IME_SETCONTEXT 0x0281
1817 #define WM_IME_NOTIFY 0x0282
1818 #define WM_IME_CONTROL 0x0283
1819 #define WM_IME_COMPOSITIONFULL 0x0284
1820 #define WM_IME_SELECT 0x0285
1821 #define WM_IME_CHAR 0x0286
1822 /* Win32 5.0 messages for IME */
1823 #define WM_IME_REQUEST 0x0288
1824 /* Win32 4.0 messages for IME */
1825 #define WM_IME_KEYDOWN 0x0290
1826 #define WM_IME_KEYUP 0x0291
1827 
1828 #define WM_NCMOUSEHOVER 0x02A0
1829 #define WM_NCMOUSELEAVE 0x02A2
1830 #define WM_MOUSEHOVER 0x02A1
1831 #define WM_MOUSELEAVE 0x02A3
1832 
1833 #if (_WIN32_WINNT >= 0x0501)
1834 #define WTS_CONSOLE_CONNECT 0x1
1835 #define WTS_CONSOLE_DISCONNECT 0x2
1836 #define WTS_REMOTE_CONNECT 0x3
1837 #define WTS_REMOTE_DISCONNECT 0x4
1838 #define WTS_SESSION_LOGON 0x5
1839 #define WTS_SESSION_LOGOFF 0x6
1840 #define WTS_SESSION_LOCK 0x7
1841 #define WTS_SESSION_UNLOCK 0x8
1842 #define WTS_SESSION_REMOTE_CONTROL 0x9
1843 #define WTS_SESSION_CREATE 0xA
1844 #define WTS_SESSION_TERMINATE 0xB
1845 #define WM_WTSSESSION_CHANGE 0x02B1
1846 #endif
1847 
1848 #define WM_CUT 768
1849 #define WM_COPY 769
1850 #define WM_PASTE 770
1851 #define WM_CLEAR 771
1852 #define WM_UNDO 772
1853 #define WM_RENDERFORMAT 773
1854 #define WM_RENDERALLFORMATS 774
1855 #define WM_DESTROYCLIPBOARD 775
1856 #define WM_DRAWCLIPBOARD 776
1857 #define WM_PAINTCLIPBOARD 777
1858 #define WM_VSCROLLCLIPBOARD 778
1859 #define WM_SIZECLIPBOARD 779
1860 #define WM_ASKCBFORMATNAME 780
1861 #define WM_CHANGECBCHAIN 781
1862 #define WM_HSCROLLCLIPBOARD 782
1863 #define WM_PALETTEISCHANGING 784
1864 #define WM_PALETTECHANGED 785
1865 #define WM_QUERYNEWPALETTE 783
1866 #define WM_HOTKEY 786
1867 #define WM_PRINT 791
1868 #define WM_PRINTCLIENT 792
1869 #define WM_APPCOMMAND 793
1870 
1871 #define WM_DWMCOMPOSITIONCHANGED 0x031E
1872 #define WM_DWMNCRENDERINGCHANGED 0x031F
1873 #define WM_DWMCOLORIZATIONCOLORCHANGED 0x0320
1874 #define WM_DWMWINDOWMAXIMIZEDCHANGE 0x0321
1875 
1876 #define WM_HANDHELDFIRST 856
1877 #define WM_HANDHELDLAST 863
1878 #define WM_AFXFIRST 864
1879 #define WM_AFXLAST 895
1880 #define WM_PENWINFIRST 896
1881 #define WM_PENWINLAST 911
1882 #define WM_USER 1024
1883 #define WM_APP 32768
1884 #define WM_GETTITLEBARINFOEX 0x033F
1885 
1886 #if (_WIN32_WINNT >= 0x0400)
1887 #define WHEEL_DELTA 120
1888 #define GET_WHEEL_DELTA_WPARAM(wParam) ((short)HIWORD(wParam))
1889 #define WHEEL_PAGESCROLL UINT_MAX
1890 #endif
1891 
1892 #if (_WIN32_WINNT >= 0x0500)
1893 #define GET_KEYSTATE_WPARAM(wParam) (LOWORD(wParam))
1894 #define GET_NCHITTEST_WPARAM(wParam) ((short)LOWORD(wParam))
1895 #define GET_XBUTTON_WPARAM(wParam) (HIWORD(wParam))
1896 #define XBUTTON1 0x0001
1897 #define XBUTTON2 0x0002
1898 #endif
1899 
1900 #if (_WIN32_WINNT >= 0x0501)
1901 #define WM_THEMECHANGED 794
1902 #endif
1903 
1904 #define BM_CLICK 245
1905 #define BM_GETCHECK 240
1906 #define BM_GETIMAGE 246
1907 #define BM_GETSTATE 242
1908 #define BM_SETCHECK 241
1909 #define BM_SETIMAGE 247
1910 #define BM_SETSTATE 243
1911 #define BM_SETSTYLE 244
1912 #define BN_CLICKED 0
1913 #define BN_DBLCLK 5
1914 #define BN_DISABLE 4
1915 #define BN_DOUBLECLICKED 5
1916 #define BN_HILITE 2
1917 #define BN_KILLFOCUS 7
1918 #define BN_PAINT 1
1919 #define BN_PUSHED 2
1920 #define BN_SETFOCUS 6
1921 #define BN_UNHILITE 3
1922 #define BN_UNPUSHED 3
1923 #define CB_ADDSTRING 323
1924 #define CB_DELETESTRING 324
1925 #define CB_DIR 325
1926 #define CB_FINDSTRING 332
1927 #define CB_FINDSTRINGEXACT 344
1928 #define CB_GETCOMBOBOXINFO 356
1929 #define CB_GETCOUNT 326
1930 #define CB_GETCURSEL 327
1931 #define CB_GETDROPPEDCONTROLRECT 338
1932 #define CB_GETDROPPEDSTATE 343
1933 #define CB_GETDROPPEDWIDTH 351
1934 #define CB_GETEDITSEL 320
1935 #define CB_GETEXTENDEDUI 342
1936 #define CB_GETHORIZONTALEXTENT 349
1937 #define CB_GETITEMDATA 336
1938 #define CB_GETITEMHEIGHT 340
1939 #define CB_GETLBTEXT 328
1940 #define CB_GETLBTEXTLEN 329
1941 #define CB_GETLOCALE 346
1942 #define CB_GETTOPINDEX 347
1943 #define CB_INITSTORAGE 353
1944 #define CB_INSERTSTRING 330
1945 #define CB_LIMITTEXT 321
1946 #define CB_RESETCONTENT 331
1947 #define CB_SELECTSTRING 333
1948 #define CB_SETCURSEL 334
1949 #define CB_SETDROPPEDWIDTH 352
1950 #define CB_SETEDITSEL 322
1951 #define CB_SETEXTENDEDUI 341
1952 #define CB_SETHORIZONTALEXTENT 350
1953 #define CB_SETITEMDATA 337
1954 #define CB_SETITEMHEIGHT 339
1955 #define CB_SETLOCALE 345
1956 #define CB_SETTOPINDEX 348
1957 #define CB_SHOWDROPDOWN 335
1958 #define CB_MSGMAX 357
1959 #define CBN_CLOSEUP 8
1960 #define CBN_DBLCLK 2
1961 #define CBN_DROPDOWN 7
1962 #define CBN_EDITCHANGE 5
1963 #define CBN_EDITUPDATE 6
1964 #define CBN_ERRSPACE (-1)
1965 #define CBN_KILLFOCUS 4
1966 #define CBN_SELCHANGE 1
1967 #define CBN_SELENDCANCEL 10
1968 #define CBN_SELENDOK 9
1969 #define CBN_SETFOCUS 3
1970 #define EM_CANUNDO 198
1971 #define EM_CHARFROMPOS 215
1972 #define EM_EMPTYUNDOBUFFER 205
1973 #define EM_FMTLINES 200
1974 #define EM_GETIMESTATUS 217
1975 #define EM_GETFIRSTVISIBLELINE 206
1976 #define EM_GETHANDLE 189
1977 #define EM_GETLIMITTEXT 213
1978 #define EM_GETLINE 196
1979 #define EM_GETLINECOUNT 186
1980 #define EM_GETMARGINS 212
1981 #define EM_GETMODIFY 184
1982 #define EM_GETPASSWORDCHAR 210
1983 #define EM_GETRECT 178
1984 #define EM_GETSEL 176
1985 #define EM_GETTHUMB 190
1986 #define EM_GETWORDBREAKPROC 209
1987 #define EM_LIMITTEXT 197
1988 #define EM_LINEFROMCHAR 201
1989 #define EM_LINEINDEX 187
1990 #define EM_LINELENGTH 193
1991 #define EM_LINESCROLL 182
1992 #define EM_POSFROMCHAR 214
1993 #define EM_REPLACESEL 194
1994 #define EM_SCROLL 181
1995 #define EM_SCROLLCARET 183
1996 #define EM_SETHANDLE 188
1997 #define EM_SETIMESTATUS 216
1998 #define EM_SETLIMITTEXT 197
1999 #define EM_SETMARGINS 211
2000 #define EM_SETMODIFY 185
2001 #define EM_SETPASSWORDCHAR 204
2002 #define EM_SETREADONLY 207
2003 #define EM_SETRECT 179
2004 #define EM_SETRECTNP 180
2005 #define EM_SETSEL 177
2006 #define EM_SETTABSTOPS 203
2007 #define EM_SETWORDBREAKPROC 208
2008 #define EM_UNDO 199
2009 #define EN_CHANGE 768
2010 #define EN_ERRSPACE 1280
2011 #define EN_HSCROLL 1537
2012 #define EN_KILLFOCUS 512
2013 #define EN_MAXTEXT 1281
2014 #define EN_SETFOCUS 256
2015 #define EN_UPDATE 1024
2016 #define EN_VSCROLL 1538
2017 #define LB_ADDFILE 406
2018 #define LB_ADDSTRING 384
2019 #define LB_DELETESTRING 386
2020 #define LB_DIR 397
2021 #define LB_FINDSTRING 399
2022 #define LB_FINDSTRINGEXACT 418
2023 #define LB_GETANCHORINDEX 413
2024 #define LB_GETCARETINDEX 415
2025 #define LB_GETCOUNT 395
2026 #define LB_GETCURSEL 392
2027 #define LB_GETHORIZONTALEXTENT 403
2028 #define LB_GETITEMDATA 409
2029 #define LB_GETITEMHEIGHT 417
2030 #define LB_GETITEMRECT 408
2031 #define LB_GETLISTBOXINFO 434
2032 #define LB_GETLOCALE 422
2033 #define LB_GETSEL 391
2034 #define LB_GETSELCOUNT 400
2035 #define LB_GETSELITEMS 401
2036 #define LB_GETTEXT 393
2037 #define LB_GETTEXTLEN 394
2038 #define LB_GETTOPINDEX 398
2039 #define LB_INITSTORAGE 424
2040 #define LB_INSERTSTRING 385
2041 #define LB_ITEMFROMPOINT 425
2042 #define LB_RESETCONTENT 388
2043 #define LB_SELECTSTRING 396
2044 #define LB_SELITEMRANGE 411
2045 #define LB_SELITEMRANGEEX 387
2046 #define LB_SETANCHORINDEX 412
2047 #define LB_SETCARETINDEX 414
2048 #define LB_SETCOLUMNWIDTH 405
2049 #define LB_SETCOUNT 423
2050 #define LB_SETCURSEL 390
2051 #define LB_SETHORIZONTALEXTENT 404
2052 #define LB_SETITEMDATA 410
2053 #define LB_SETITEMHEIGHT 416
2054 #define LB_SETLOCALE 421
2055 #define LB_SETSEL 389
2056 #define LB_SETTABSTOPS 402
2057 #define LB_SETTOPINDEX 407
2058 #define LBN_DBLCLK 2
2059 #define LBN_ERRSPACE (-2)
2060 #define LBN_KILLFOCUS 5
2061 #define LBN_SELCANCEL 3
2062 #define LBN_SELCHANGE 1
2063 #define LBN_SETFOCUS 4
2064 #define SBM_ENABLE_ARROWS 228
2065 #define SBM_GETPOS 225
2066 #define SBM_GETRANGE 227
2067 #define SBM_SETPOS 224
2068 #define SBM_SETRANGE 226
2069 #define SBM_SETRANGEREDRAW 230
2070 #if (_WIN32_WINNT >= 0x0400)
2071 #define SBM_GETSCROLLINFO 234
2072 #define SBM_SETSCROLLINFO 233
2073 #endif
2074 #if (_WIN32_WINNT >= 0x0501)
2075 #define SBM_GETSCROLLBARINFO 235
2076 #endif
2077 #define STM_GETICON 369
2078 #define STM_GETIMAGE 371
2079 #define STM_SETICON 368
2080 #define STM_SETIMAGE 370
2081 #define STN_CLICKED 0
2082 #define STN_DBLCLK 1
2083 #define STN_DISABLE 3
2084 #define STN_ENABLE 2
2085 #define DM_GETDEFID WM_USER
2086 #define DM_SETDEFID (WM_USER+1)
2087 #define DM_REPOSITION (WM_USER+2)
2088 #define PSM_PAGEINFO (WM_USER+100)
2089 #define PSM_SHEETINFO (WM_USER+101)
2090 #define PSI_SETACTIVE 1
2091 #define PSI_KILLACTIVE 2
2092 #define PSI_APPLY 3
2093 #define PSI_RESET 4
2094 #define PSI_HASHELP 5
2095 #define PSI_HELP 6
2096 #define PSI_CHANGED 1
2097 #define PSI_GUISTART 2
2098 #define PSI_REBOOT 3
2099 #define PSI_GETSIBLINGS 4
2100 #define DCX_WINDOW 1
2101 #define DCX_CACHE 2
2102 #define DCX_PARENTCLIP 32
2103 #define DCX_CLIPSIBLINGS 16
2104 #define DCX_CLIPCHILDREN 8
2105 #define DCX_NORESETATTRS 4
2106 #define DCX_INTERSECTUPDATE 0x200
2107 #define DCX_LOCKWINDOWUPDATE 0x400
2108 #define DCX_EXCLUDERGN 64
2109 #define DCX_INTERSECTRGN 128
2110 #define DCX_VALIDATE 0x200000
2111 #define DCX_EXCLUDEUPDATE 0x100
2112 #define GMDI_GOINTOPOPUPS 2
2113 #define GMDI_USEDISABLED 1
2114 #define FKF_AVAILABLE 2
2115 #define FKF_CLICKON 64
2116 #define FKF_FILTERKEYSON 1
2117 #define FKF_HOTKEYACTIVE 4
2118 #define FKF_HOTKEYSOUND 16
2119 #define FKF_CONFIRMHOTKEY 8
2120 #define FKF_INDICATOR 32
2121 #define HCF_HIGHCONTRASTON 1
2122 #define HCF_AVAILABLE 2
2123 #define HCF_HOTKEYACTIVE 4
2124 #define HCF_CONFIRMHOTKEY 8
2125 #define HCF_HOTKEYSOUND 16
2126 #define HCF_INDICATOR 32
2127 #define HCF_HOTKEYAVAILABLE 64
2128 #define MKF_AVAILABLE 2
2129 #define MKF_CONFIRMHOTKEY 8
2130 #define MKF_HOTKEYACTIVE 4
2131 #define MKF_HOTKEYSOUND 16
2132 #define MKF_INDICATOR 32
2133 #define MKF_MOUSEKEYSON 1
2134 #define MKF_MODIFIERS 64
2135 #define MKF_REPLACENUMBERS 128
2136 #define SERKF_ACTIVE 8 /* May be obsolete. Not in recent MS docs. */
2137 #define SERKF_AVAILABLE 2
2138 #define SERKF_INDICATOR 4
2139 #define SERKF_SERIALKEYSON 1
2140 #define SSF_AVAILABLE 2
2141 #define SSF_SOUNDSENTRYON 1
2142 #define SSTF_BORDER 2
2143 #define SSTF_CHARS 1
2144 #define SSTF_DISPLAY 3
2145 #define SSTF_NONE 0
2146 #define SSGF_DISPLAY 3
2147 #define SSGF_NONE 0
2148 #define SSWF_CUSTOM 4
2149 #define SSWF_DISPLAY 3
2150 #define SSWF_NONE 0
2151 #define SSWF_TITLE 1
2152 #define SSWF_WINDOW 2
2153 #define SKF_AUDIBLEFEEDBACK 64
2154 #define SKF_AVAILABLE 2
2155 #define SKF_CONFIRMHOTKEY 8
2156 #define SKF_HOTKEYACTIVE 4
2157 #define SKF_HOTKEYSOUND 16
2158 #define SKF_INDICATOR 32
2159 #define SKF_STICKYKEYSON 1
2160 #define SKF_TRISTATE 128
2161 #define SKF_TWOKEYSOFF 256
2162 #define TKF_AVAILABLE 2
2163 #define TKF_CONFIRMHOTKEY 8
2164 #define TKF_HOTKEYACTIVE 4
2165 #define TKF_HOTKEYSOUND 16
2166 #define TKF_TOGGLEKEYSON 1
2167 #define MDITILE_SKIPDISABLED 2
2168 #define MDITILE_HORIZONTAL 1
2169 #define MDITILE_VERTICAL 0
2170 #define VK_LBUTTON 1
2171 #define VK_RBUTTON 2
2172 #define VK_CANCEL 3
2173 #define VK_MBUTTON 4
2174 #if (_WIN32_WINNT >= 0x0500)
2175 #define VK_XBUTTON1 5
2176 #define VK_XBUTTON2 6
2177 #endif
2178 #define VK_BACK 8
2179 #define VK_TAB 9
2180 #define VK_CLEAR 12
2181 #define VK_RETURN 13
2182 #define VK_SHIFT 16
2183 #define VK_CONTROL 17
2184 #define VK_MENU 18
2185 #define VK_PAUSE 19
2186 #define VK_CAPITAL 20
2187 #define VK_KANA 0x15
2188 #define VK_HANGEUL 0x15
2189 #define VK_HANGUL 0x15
2190 #define VK_JUNJA 0x17
2191 #define VK_FINAL 0x18
2192 #define VK_HANJA 0x19
2193 #define VK_KANJI 0x19
2194 #define VK_ESCAPE 0x1B
2195 #define VK_CONVERT 0x1C
2196 #define VK_NONCONVERT 0x1D
2197 #define VK_ACCEPT 0x1E
2198 #define VK_MODECHANGE 0x1F
2199 #define VK_SPACE 32
2200 #define VK_PRIOR 33
2201 #define VK_NEXT 34
2202 #define VK_END 35
2203 #define VK_HOME 36
2204 #define VK_LEFT 37
2205 #define VK_UP 38
2206 #define VK_RIGHT 39
2207 #define VK_DOWN 40
2208 #define VK_SELECT 41
2209 #define VK_PRINT 42
2210 #define VK_EXECUTE 43
2211 #define VK_SNAPSHOT 44
2212 #define VK_INSERT 45
2213 #define VK_DELETE 46
2214 #define VK_HELP 47
2215 #define VK_LWIN 0x5B
2216 #define VK_RWIN 0x5C
2217 #define VK_APPS 0x5D
2218 #define VK_SLEEP 0x5F
2219 #define VK_NUMPAD0 0x60
2220 #define VK_NUMPAD1 0x61
2221 #define VK_NUMPAD2 0x62
2222 #define VK_NUMPAD3 0x63
2223 #define VK_NUMPAD4 0x64
2224 #define VK_NUMPAD5 0x65
2225 #define VK_NUMPAD6 0x66
2226 #define VK_NUMPAD7 0x67
2227 #define VK_NUMPAD8 0x68
2228 #define VK_NUMPAD9 0x69
2229 #define VK_MULTIPLY 0x6A
2230 #define VK_ADD 0x6B
2231 #define VK_SEPARATOR 0x6C
2232 #define VK_SUBTRACT 0x6D
2233 #define VK_DECIMAL 0x6E
2234 #define VK_DIVIDE 0x6F
2235 #define VK_F1 0x70
2236 #define VK_F2 0x71
2237 #define VK_F3 0x72
2238 #define VK_F4 0x73
2239 #define VK_F5 0x74
2240 #define VK_F6 0x75
2241 #define VK_F7 0x76
2242 #define VK_F8 0x77
2243 #define VK_F9 0x78
2244 #define VK_F10 0x79
2245 #define VK_F11 0x7A
2246 #define VK_F12 0x7B
2247 #define VK_F13 0x7C
2248 #define VK_F14 0x7D
2249 #define VK_F15 0x7E
2250 #define VK_F16 0x7F
2251 #define VK_F17 0x80
2252 #define VK_F18 0x81
2253 #define VK_F19 0x82
2254 #define VK_F20 0x83
2255 #define VK_F21 0x84
2256 #define VK_F22 0x85
2257 #define VK_F23 0x86
2258 #define VK_F24 0x87
2259 #define VK_NUMLOCK 0x90
2260 #define VK_SCROLL 0x91
2261 #define VK_OEM_NEC_EQUAL 0x92
2262 #define VK_LSHIFT 0xA0
2263 #define VK_RSHIFT 0xA1
2264 #define VK_LCONTROL 0xA2
2265 #define VK_RCONTROL 0xA3
2266 #define VK_LMENU 0xA4
2267 #define VK_RMENU 0xA5
2268 #if (_WIN32_WINNT >= 0x0500)
2269 #define VK_BROWSER_BACK 0xA6
2270 #define VK_BROWSER_FORWARD 0xA7
2271 #define VK_BROWSER_REFRESH 0xA8
2272 #define VK_BROWSER_STOP 0xA9
2273 #define VK_BROWSER_SEARCH 0xAA
2274 #define VK_BROWSER_FAVORITES 0xAB
2275 #define VK_BROWSER_HOME 0xAC
2276 #define VK_VOLUME_MUTE 0xAD
2277 #define VK_VOLUME_DOWN 0xAE
2278 #define VK_VOLUME_UP 0xAF
2279 #define VK_MEDIA_NEXT_TRACK 0xB0
2280 #define VK_MEDIA_PREV_TRACK 0xB1
2281 #define VK_MEDIA_STOP 0xB2
2282 #define VK_MEDIA_PLAY_PAUSE 0xB3
2283 #define VK_LAUNCH_MAIL 0xB4
2284 #define VK_LAUNCH_MEDIA_SELECT 0xB5
2285 #define VK_LAUNCH_APP1 0xB6
2286 #define VK_LAUNCH_APP2 0xB7
2287 #endif
2288 #define VK_OEM_1 0xBA
2289 #if (_WIN32_WINNT >= 0x0500)
2290 #define VK_OEM_PLUS 0xBB
2291 #define VK_OEM_COMMA 0xBC
2292 #define VK_OEM_MINUS 0xBD
2293 #define VK_OEM_PERIOD 0xBE
2294 #endif
2295 #define VK_OEM_2 0xBF
2296 #define VK_OEM_3 0xC0
2297 #define VK_OEM_4 0xDB
2298 #define VK_OEM_5 0xDC
2299 #define VK_OEM_6 0xDD
2300 #define VK_OEM_7 0xDE
2301 #define VK_OEM_8 0xDF
2302 #if (_WIN32_WINNT >= 0x0500)
2303 #define VK_OEM_102 0xE2
2304 #endif
2305 #define VK_ICO_HELP 0xE3 /* Help key on ICO */
2306 #define VK_ICO_00 0xE4 /* 00 key on ICO */
2307 #define VK_PROCESSKEY 0xE5
2308 #if (_WIN32_WINNT >= 0x0500)
2309 #define VK_PACKET 0xE7
2310 #endif
2311 #define VK_OEM_RESET 0xE9
2312 #define VK_OEM_JUMP 0xEA
2313 #define VK_OEM_PA1 0xEB
2314 #define VK_OEM_PA2 0xEC
2315 #define VK_OEM_PA3 0xED
2316 #define VK_OEM_WSCTRL 0xEE
2317 #define VK_OEM_CUSEL 0xEF
2318 #define VK_OEM_ATTN 0xF0
2319 #define VK_OEM_FINISH 0xF1
2320 #define VK_OEM_COPY 0xF2
2321 #define VK_OEM_AUTO 0xF3
2322 #define VK_OEM_ENLW 0xF4
2323 #define VK_OEM_BACKTAB 0xF5
2324 #define VK_ATTN 0xF6
2325 #define VK_CRSEL 0xF7
2326 #define VK_EXSEL 0xF8
2327 #define VK_EREOF 0xF9
2328 #define VK_PLAY 0xFA
2329 #define VK_ZOOM 0xFB
2330 #define VK_NONAME 0xFC
2331 #define VK_PA1 0xFD
2332 #define VK_OEM_CLEAR 0xFE
2333 
2334 /* MapVirtualKey translation types */
2335 #define MAPVK_VK_TO_VSC 0
2336 #define MAPVK_VSC_TO_VK 1
2337 #define MAPVK_VK_TO_CHAR 2
2338 #define MAPVK_VSC_TO_VK_EX 3
2339 #define MAPVK_VK_TO_VSC_EX 4
2340 
2341 #define TME_HOVER 1
2342 #define TME_LEAVE 2
2343 #define TME_NONCLIENT 0x00000010
2344 #define TME_QUERY 0x40000000
2345 #define TME_CANCEL 0x80000000
2346 #define HOVER_DEFAULT 0xFFFFFFFF
2347 #define MK_LBUTTON 1
2348 #define MK_RBUTTON 2
2349 #define MK_SHIFT 4
2350 #define MK_CONTROL 8
2351 #define MK_MBUTTON 16
2352 #if(_WIN32_WINNT >= 0x0500)
2353 #define MK_XBUTTON1 0x0020
2354 #define MK_XBUTTON2 0x0040
2355 #endif
2356 #define TPM_CENTERALIGN 4
2357 #define TPM_LEFTALIGN 0
2358 #define TPM_RIGHTALIGN 8
2359 #define TPM_LEFTBUTTON 0
2360 #define TPM_RIGHTBUTTON 2
2361 #define TPM_HORIZONTAL 0
2362 #define TPM_VERTICAL 64
2363 #define TPM_TOPALIGN 0
2364 #define TPM_VCENTERALIGN 16
2365 #define TPM_BOTTOMALIGN 32
2366 #define TPM_NONOTIFY 128
2367 #define TPM_RETURNCMD 256
2368 #if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0410)
2369 #define TPM_RECURSE 0x0001
2370 #define TPM_HORPOSANIMATION 0x0400
2371 #define TPM_HORNEGANIMATION 0x0800
2372 #define TPM_VERPOSANIMATION 0x1000
2373 #define TPM_VERNEGANIMATION 0x2000
2374 #endif
2375 #if(_WIN32_WINNT >= 0x0500)
2376 #define TPM_NOANIMATION 16384
2377 #endif
2378 #if (_WIN32_WINNT >= 0x0501)
2379 #define TPM_LAYOUTRTL 32768
2380 #endif
2381 #if (_WIN32_WINNT >= 0x0601)
2382 #define TPM_WORKAREA 65536
2383 #endif
2384 #define HELP_COMMAND 0x102
2385 #define HELP_CONTENTS 3
2386 #define HELP_CONTEXT 1
2387 #define HELP_CONTEXTPOPUP 8
2388 #define HELP_FORCEFILE 9
2389 #define HELP_HELPONHELP 4
2390 #define HELP_INDEX 3
2391 #define HELP_KEY 0x101
2392 #define HELP_MULTIKEY 0x201
2393 #define HELP_PARTIALKEY 0x105
2394 #define HELP_QUIT 2
2395 #define HELP_SETCONTENTS 5
2396 #define HELP_SETINDEX 5
2397 #define HELP_SETWINPOS 0x203
2398 #define HELP_CONTEXTMENU 0xa
2399 #define HELP_FINDER 0xb
2400 #define HELP_WM_HELP 0xc
2401 #define HELP_TCARD 0x8000
2402 #define HELP_TCARD_DATA 16
2403 #define HELP_TCARD_OTHER_CALLER 0x11
2404 #define IDH_NO_HELP 28440
2405 #define IDH_MISSING_CONTEXT 28441
2406 #define IDH_GENERIC_HELP_BUTTON 28442
2407 #define IDH_OK 28443
2408 #define IDH_CANCEL 28444
2409 #define IDH_HELP 28445
2410 #define LB_CTLCODE 0
2411 #define LB_OKAY 0
2412 #define LB_ERR (-1)
2413 #define LB_ERRSPACE (-2)
2414 #define CB_OKAY 0
2415 #define CB_ERR (-1)
2416 #define CB_ERRSPACE (-2)
2417 #define HIDE_WINDOW 0
2418 #define SHOW_OPENWINDOW 1
2419 #define SHOW_ICONWINDOW 2
2420 #define SHOW_FULLSCREEN 3
2421 #define SHOW_OPENNOACTIVATE 4
2422 #define SW_PARENTCLOSING 1
2423 #define SW_OTHERZOOM 2
2424 #define SW_PARENTOPENING 3
2425 #define SW_OTHERUNZOOM 4
2426 #define KF_EXTENDED 256
2427 #define KF_DLGMODE 2048
2428 #define KF_MENUMODE 4096
2429 #define KF_ALTDOWN 8192
2430 #define KF_REPEAT 16384
2431 #define KF_UP 32768
2432 #define WSF_VISIBLE 1
2433 #define PWR_OK 1
2434 #define PWR_FAIL (-1)
2435 #define PWR_SUSPENDREQUEST 1
2436 #define PWR_SUSPENDRESUME 2
2437 #define PWR_CRITICALRESUME 3
2438 #define NFR_ANSI 1
2439 #define NFR_UNICODE 2
2440 #define NF_QUERY 3
2441 #define NF_REQUERY 4
2442 #define MENULOOP_WINDOW 0
2443 #define MENULOOP_POPUP 1
2444 #define WMSZ_LEFT 1
2445 #define WMSZ_RIGHT 2
2446 #define WMSZ_TOP 3
2447 #define WMSZ_TOPLEFT 4
2448 #define WMSZ_TOPRIGHT 5
2449 #define WMSZ_BOTTOM 6
2450 #define WMSZ_BOTTOMLEFT 7
2451 #define WMSZ_BOTTOMRIGHT 8
2452 #define HTERROR (-2)
2453 #define HTTRANSPARENT (-1)
2454 #define HTNOWHERE 0
2455 #define HTCLIENT 1
2456 #define HTCAPTION 2
2457 #define HTSYSMENU 3
2458 #define HTGROWBOX 4
2459 #define HTSIZE 4
2460 #define HTMENU 5
2461 #define HTHSCROLL 6
2462 #define HTVSCROLL 7
2463 #define HTMINBUTTON 8
2464 #define HTMAXBUTTON 9
2465 #define HTREDUCE 8
2466 #define HTZOOM 9
2467 #define HTLEFT 10
2468 #define HTSIZEFIRST 10
2469 #define HTRIGHT 11
2470 #define HTTOP 12
2471 #define HTTOPLEFT 13
2472 #define HTTOPRIGHT 14
2473 #define HTBOTTOM 15
2474 #define HTBOTTOMLEFT 16
2475 #define HTBOTTOMRIGHT 17
2476 #define HTSIZELAST 17
2477 #define HTBORDER 18
2478 #define HTOBJECT 19
2479 #define HTCLOSE 20
2480 #define HTHELP 21
2481 #define MA_ACTIVATE 1
2482 #define MA_ACTIVATEANDEAT 2
2483 #define MA_NOACTIVATE 3
2484 #define MA_NOACTIVATEANDEAT 4
2485 #define SIZE_RESTORED 0
2486 #define SIZE_MINIMIZED 1
2487 #define SIZE_MAXIMIZED 2
2488 #define SIZE_MAXSHOW 3
2489 #define SIZE_MAXHIDE 4
2490 #define SIZENORMAL 0
2491 #define SIZEICONIC 1
2492 #define SIZEFULLSCREEN 2
2493 #define SIZEZOOMSHOW 3
2494 #define SIZEZOOMHIDE 4
2495 #define WVR_ALIGNTOP 16
2496 #define WVR_ALIGNLEFT 32
2497 #define WVR_ALIGNBOTTOM 64
2498 #define WVR_ALIGNRIGHT 128
2499 #define WVR_HREDRAW 256
2500 #define WVR_VREDRAW 512
2501 #define WVR_REDRAW (WVR_HREDRAW|WVR_VREDRAW)
2502 #define WVR_VALIDRECTS 1024
2503 #define PRF_CHECKVISIBLE 1
2504 #define PRF_NONCLIENT 2
2505 #define PRF_CLIENT 4
2506 #define PRF_ERASEBKGND 8
2507 #define PRF_CHILDREN 16
2508 #define PRF_OWNED 32
2509 #define IDANI_OPEN 1
2510 #define IDANI_CLOSE 2
2511 #define IDANI_CAPTION 3
2512 #define WPF_RESTORETOMAXIMIZED 2
2513 #define WPF_SETMINPOSITION 1
2514 #if(_WIN32_WINNT >= 0x0500)
2515 #define WPF_ASYNCWINDOWPLACEMENT 4
2516 #endif
2517 #define ODT_MENU 1
2518 #define ODT_LISTBOX 2
2519 #define ODT_COMBOBOX 3
2520 #define ODT_BUTTON 4
2521 #define ODT_STATIC 5
2522 #define ODA_DRAWENTIRE 1
2523 #define ODA_SELECT 2
2524 #define ODA_FOCUS 4
2525 #define ODS_SELECTED 1
2526 #define ODS_GRAYED 2
2527 #define ODS_DISABLED 4
2528 #define ODS_CHECKED 8
2529 #define ODS_FOCUS 16
2530 #if(WINVER >= 0x0400)
2531 #define ODS_DEFAULT 32
2532 #define ODS_COMBOBOXEDIT 4096
2533 #endif
2534 #if(WINVER >= 0x0500)
2535 #define ODS_HOTLIGHT 0x0040
2536 #define ODS_INACTIVE 0x0080
2537 #if(_WIN32_WINNT >= 0x0500)
2538 #define ODS_NOACCEL 0x0100
2539 #define ODS_NOFOCUSRECT 0x0200
2540 #endif
2541 #endif
2542 #define IDHOT_SNAPWINDOW (-1)
2543 #define IDHOT_SNAPDESKTOP (-2)
2544 #define DBWF_LPARAMPOINTER 0x8000
2545 #define DLGWINDOWEXTRA 30
2546 #define MNC_IGNORE 0
2547 #define MNC_CLOSE 1
2548 #define MNC_EXECUTE 2
2549 #define MNC_SELECT 3
2550 #define DOF_EXECUTABLE 0x8001
2551 #define DOF_DOCUMENT 0x8002
2552 #define DOF_DIRECTORY 0x8003
2553 #define DOF_MULTIPLE 0x8004
2554 #define DOF_PROGMAN 1
2555 #define DOF_SHELLDATA 2
2556 #define DO_DROPFILE 0x454C4946
2557 #define DO_PRINTFILE 0x544E5250
2558 #define SW_SCROLLCHILDREN 1
2559 #define SW_INVALIDATE 2
2560 #define SW_ERASE 4
2561 #if(WINVER >= 0x0500)
2562 #define SW_SMOOTHSCROLL 16
2563 #endif
2564 #define SC_SIZE 0xF000
2565 #define SC_MOVE 0xF010
2566 #define SC_MINIMIZE 0xF020
2567 #define SC_ICON 0xf020
2568 #define SC_MAXIMIZE 0xF030
2569 #define SC_ZOOM 0xF030
2570 #define SC_NEXTWINDOW 0xF040
2571 #define SC_PREVWINDOW 0xF050
2572 #define SC_CLOSE 0xF060
2573 #define SC_VSCROLL 0xF070
2574 #define SC_HSCROLL 0xF080
2575 #define SC_MOUSEMENU 0xF090
2576 #define SC_KEYMENU 0xF100
2577 #define SC_ARRANGE 0xF110
2578 #define SC_RESTORE 0xF120
2579 #define SC_TASKLIST 0xF130
2580 #define SC_SCREENSAVE 0xF140
2581 #define SC_HOTKEY 0xF150
2582 #define SC_DEFAULT 0xF160
2583 #define SC_MONITORPOWER 0xF170
2584 #define SC_CONTEXTHELP 0xF180
2585 #define SC_SEPARATOR 0xF00F
2586 #define EC_LEFTMARGIN 1
2587 #define EC_RIGHTMARGIN 2
2588 #define EC_USEFONTINFO 0xffff
2589 #define DC_HASDEFID 0x534B
2590 #define DLGC_WANTARROWS 1
2591 #define DLGC_WANTTAB 2
2592 #define DLGC_WANTALLKEYS 4
2593 #define DLGC_WANTMESSAGE 4
2594 #define DLGC_HASSETSEL 8
2595 #define DLGC_DEFPUSHBUTTON 16
2596 #define DLGC_UNDEFPUSHBUTTON 32
2597 #define DLGC_RADIOBUTTON 64
2598 #define DLGC_WANTCHARS 128
2599 #define DLGC_STATIC 256
2600 #define DLGC_BUTTON 0x2000
2601 #define LB_CTLCODE 0
2602 #define WA_INACTIVE 0
2603 #define WA_ACTIVE 1
2604 #define WA_CLICKACTIVE 2
2605 #define ICON_SMALL 0
2606 #define ICON_BIG 1
2607 #if (_WIN32_WINNT >= 0x0501)
2608 #define ICON_SMALL2 2
2609 #endif
2610 #define HBMMENU_CALLBACK ((HBITMAP) -1)
2611 #define HBMMENU_SYSTEM ((HBITMAP)1)
2612 #define HBMMENU_MBAR_RESTORE ((HBITMAP)2)
2613 #define HBMMENU_MBAR_MINIMIZE ((HBITMAP)3)
2614 #define HBMMENU_MBAR_CLOSE ((HBITMAP)5)
2615 #define HBMMENU_MBAR_CLOSE_D ((HBITMAP)6)
2616 #define HBMMENU_MBAR_MINIMIZE_D ((HBITMAP)7)
2617 #define HBMMENU_POPUP_CLOSE ((HBITMAP)8)
2618 #define HBMMENU_POPUP_RESTORE ((HBITMAP)9)
2619 #define HBMMENU_POPUP_MAXIMIZE ((HBITMAP)10)
2620 #define HBMMENU_POPUP_MINIMIZE ((HBITMAP)11)
2621 #define MOD_ALT 0x0001
2622 #define MOD_CONTROL 0x0002
2623 #define MOD_SHIFT 0x0004
2624 #define MOD_WIN 0x0008
2625 #define LLKHF_EXTENDED 0x00000001
2626 #define LLKHF_INJECTED 0x00000010
2627 #define LLKHF_ALTDOWN 0x00000020
2628 #define LLKHF_UP 0x00000080
2629 #define LLMHF_INJECTED 0x00000001
2630 #if (WINVER >= 0x0500)
2631 #define FLASHW_STOP 0
2632 #define FLASHW_CAPTION 1
2633 #define FLASHW_TRAY 2
2634 #define FLASHW_ALL (FLASHW_CAPTION|FLASHW_TRAY)
2635 #define FLASHW_TIMER 4
2636 #define FLASHW_TIMERNOFG 12
2637 #endif /* (WINVER >= 0x0500) */
2638 #define CURSOR_SHOWING 0x00000001
2639 #define WS_ACTIVECAPTION 0x00000001
2640 #if (_WIN32_WINNT >= 0x0400)
2641 #define INPUT_MOUSE 0
2642 #define INPUT_KEYBOARD 1
2643 #define INPUT_HARDWARE 2
2644 #endif /* (_WIN32_WINNT >= 0x0400) */
2645 #if (WINVER >= 0x0400)
2646 #define ENDSESSION_LOGOFF 0x80000000
2647 #define ENDSESSION_CRITICAL 0x40000000
2648 #define ENDSESSION_CLOSEAPP 0x00000001
2649 #endif
2650 #if (WINVER >= 0x0500)
2651 #define CHILDID_SELF 0
2652 #define OBJID_WINDOW 0x00000000
2653 #define OBJID_SYSMENU 0xFFFFFFFF
2654 #define OBJID_TITLEBAR 0xFFFFFFFE
2655 #define OBJID_MENU 0xFFFFFFFD
2656 #define OBJID_CLIENT 0xFFFFFFFC
2657 #define OBJID_VSCROLL 0xFFFFFFFB
2658 #define OBJID_HSCROLL 0xFFFFFFFA
2659 #define OBJID_SIZEGRIP 0xFFFFFFF9
2660 #define OBJID_CARET 0xFFFFFFF8
2661 #define OBJID_CURSOR 0xFFFFFFF7
2662 #define OBJID_ALERT 0xFFFFFFF6
2663 #define OBJID_SOUND 0xFFFFFFF5
2664 #define OBJID_QUERYCLASSNAMEIDX 0xFFFFFFF4
2665 #define OBJID_NATIVEOM 0xFFFFFF0
2666 #define GUI_CARETBLINKING 0x00000001
2667 #define GUI_INMOVESIZE 0x00000002
2668 #define GUI_INMENUMODE 0x00000004
2669 #define GUI_SYSTEMMENUMODE 0x00000008
2670 #define GUI_POPUPMENUMODE 0x00000010
2671 #if (_WIN32_WINNT >= 0x0501)
2672 #define GUI_16BITTASK 0x00000020
2673 #endif
2674 #define WINEVENT_OUTOFCONTEXT 0x0000
2675 #define WINEVENT_SKIPOWNTHREAD 0x0001
2676 #define WINEVENT_SKIPOWNPROCESS 0x0002
2677 #define WINEVENT_INCONTEXT 0x0004
2678 #define AW_HOR_POSITIVE 0x00000001
2679 #define AW_HOR_NEGATIVE 0x00000002
2680 #define AW_VER_POSITIVE 0x00000004
2681 #define AW_VER_NEGATIVE 0x00000008
2682 #define AW_CENTER 0x00000010
2683 #define AW_HIDE 0x00010000
2684 #define AW_ACTIVATE 0x00020000
2685 #define AW_SLIDE 0x00040000
2686 #define AW_BLEND 0x00080000
2687 #define DEVICE_NOTIFY_WINDOW_HANDLE 0x00000000
2688 #define DEVICE_NOTIFY_SERVICE_HANDLE 0x00000001
2689 #if (_WIN32_WINNT >= 0x0501)
2690 #define DEVICE_NOTIFY_ALL_INTERFACE_CLASSES 0x00000004
2691 #endif
2692 #define EVENT_MIN 0x00000001
2693 #define EVENT_SYSTEM_SOUND 0x00000001
2694 #define EVENT_SYSTEM_ALERT 0x00000002
2695 #define EVENT_SYSTEM_FOREGROUND 0x00000003
2696 #define EVENT_SYSTEM_MENUSTART 0x00000004
2697 #define EVENT_SYSTEM_MENUEND 0x00000005
2698 #define EVENT_SYSTEM_MENUPOPUPSTART 0x00000006
2699 #define EVENT_SYSTEM_MENUPOPUPEND 0x00000007
2700 #define EVENT_SYSTEM_CAPTURESTART 0x00000008
2701 #define EVENT_SYSTEM_CAPTUREEND 0x00000009
2702 #define EVENT_SYSTEM_MOVESIZESTART 0x0000000a
2703 #define EVENT_SYSTEM_MOVESIZEEND 0x0000000b
2704 #define EVENT_SYSTEM_CONTEXTHELPSTART 0x0000000c
2705 #define EVENT_SYSTEM_CONTEXTHELPEND 0x0000000d
2706 #define EVENT_SYSTEM_DRAGDROPSTART 0x0000000e
2707 #define EVENT_SYSTEM_DRAGDROPEND 0x0000000f
2708 #define EVENT_SYSTEM_DIALOGSTART 0x00000010
2709 #define EVENT_SYSTEM_DIALOGEND 0x00000011
2710 #define EVENT_SYSTEM_SCROLLINGSTART 0x00000012
2711 #define EVENT_SYSTEM_SCROLLINGEND 0x00000013
2712 #define EVENT_SYSTEM_SWITCHSTART 0x00000014
2713 #define EVENT_SYSTEM_SWITCHEND 0x00000015
2714 #define EVENT_SYSTEM_MINIMIZESTART 0x00000016
2715 #define EVENT_SYSTEM_MINIMIZEEND 0x00000017
2716 #define EVENT_OBJECT_CREATE 0x00008000
2717 #define EVENT_OBJECT_DESTROY 0x00008001
2718 #define EVENT_OBJECT_SHOW 0x00008002
2719 #define EVENT_OBJECT_HIDE 0x00008003
2720 #define EVENT_OBJECT_REORDER 0x00008004
2721 #define EVENT_OBJECT_FOCUS 0x00008005
2722 #define EVENT_OBJECT_SELECTION 0x00008006
2723 #define EVENT_OBJECT_SELECTIONADD 0x00008007
2724 #define EVENT_OBJECT_SELECTIONREMOVE 0x00008008
2725 #define EVENT_OBJECT_SELECTIONWITHIN 0x00008009
2726 #define EVENT_OBJECT_STATECHANGE 0x0000800a
2727 #define EVENT_OBJECT_LOCATIONCHANGE 0x0000800b
2728 #define EVENT_OBJECT_NAMECHANGE 0x0000800c
2729 #define EVENT_OBJECT_DESCRIPTIONCHANGE 0x0000800d
2730 #define EVENT_OBJECT_VALUECHANGE 0x0000800e
2731 #define EVENT_OBJECT_PARENTCHANGE 0x0000800f
2732 #define EVENT_OBJECT_HELPCHANGE 0x00008010
2733 #define EVENT_OBJECT_DEFACTIONCHANGE 0x00008011
2734 #define EVENT_OBJECT_ACCELERATORCHANGE 0x00008012
2735 #define ALERT_SYSTEM_INFORMATIONAL 1 /* MB_INFORMATION */
2736 #define ALERT_SYSTEM_WARNING 2 /* MB_WARNING */
2737 #define ALERT_SYSTEM_ERROR 3 /* MB_ERROR */
2738 #define ALERT_SYSTEM_QUERY 4 /* MB_QUESTION */
2739 #define ALERT_SYSTEM_CRITICAL 5 /* HardSysErrBox */
2740 #define CALERT_SYSTEM 6
2741 #if (_WIN32_WINNT >= 0x0501)
2742 #define EVENT_CONSOLE_CARET 0x00004001
2743 #define CONSOLE_CARET_SELECTION 0x00000001
2744 #define CONSOLE_CARET_VISIBLE 0x00000002
2745 #define EVENT_CONSOLE_UPDATE_REGION 0x00004002
2746 #define EVENT_CONSOLE_UPDATE_SIMPLE 0x00004003
2747 #define EVENT_CONSOLE_UPDATE_SCROLL 0x00004004
2748 #define EVENT_CONSOLE_LAYOUT 0x00004005
2749 #define EVENT_CONSOLE_START_APPLICATION 0x00004006
2750 #define CONSOLE_APPLICATION_16BIT 0x00000001
2751 #define EVENT_CONSOLE_END_APPLICATION 0x00004007
2752 #endif /* (_WIN32_WINNT >= 0x0501) */
2753 #define EVENT_MAX 0x7fffffff
2754 #endif /* (WINVER >= 0x0500) */
2755 #if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0490)
2756 #define ASFW_ANY ((DWORD)-1)
2757 #define LSFW_LOCK 1
2758 #define LSFW_UNLOCK 2
2759 #endif
2760 #if (_WIN32_WINNT >= 0x0500)
2761 #define LWA_COLORKEY 1
2762 #define LWA_ALPHA 2
2763 #endif
2764 #define ULW_COLORKEY 0x00000001
2765 #define ULW_ALPHA 0x00000002
2766 #define ULW_OPAQUE 0x00000004
2767 #define ULW_EX_NORESIZE 0x00000008
2768 #define GA_PARENT 1
2769 #define GA_ROOT 2
2770 #define GA_ROOTOWNER 3
2771 #if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0410)
2772 #define MONITOR_DEFAULTTONULL 0
2773 #define MONITOR_DEFAULTTOPRIMARY 1
2774 #define MONITOR_DEFAULTTONEAREST 2
2775 #define MONITORINFOF_PRIMARY 1
2776 #define EDD_GET_DEVICE_INTERFACE_NAME 0x00000001
2777 #define EDS_RAWMODE 0x00000002
2778 #define EDS_ROTATEDMODE 0x00000004
2779 #define ISMEX_NOSEND 0x00000000
2780 #define ISMEX_CALLBACK 0x00000004
2781 #define ISMEX_NOTIFY 0x00000002
2782 #define ISMEX_REPLIED 0x00000008
2783 #define ISMEX_SEND 0x00000001
2784 #endif
2785 #if (_WIN32_WINNT >= 0x0500)
2786 #define GR_GDIOBJECTS 0
2787 #define GR_USEROBJECTS 1
2788 #endif
2789 #if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0490)
2790 #define GMMP_USE_DISPLAY_POINTS 1
2791 #define GMMP_USE_HIGH_RESOLUTION_POINTS 2
2792 #endif
2793 #if (_WIN32_WINNT >= 0x0501)
2794 #define PW_CLIENTONLY 0x00000001
2795 #define RIM_INPUT 0x00000000
2796 #define RIM_INPUTSINK 0x00000001
2797 #define RIM_TYPEMOUSE 0x00000000
2798 #define RIM_TYPEKEYBOARD 0x00000001
2799 #define RIM_TYPEHID 0x00000002
2800 #define MOUSE_MOVE_RELATIVE 0
2801 #define MOUSE_MOVE_ABSOLUTE 1
2802 #define MOUSE_VIRTUAL_DESKTOP 0x02
2803 #define MOUSE_ATTRIBUTES_CHANGED 0x04
2804 #define RI_MOUSE_LEFT_BUTTON_DOWN 0x0001
2805 #define RI_MOUSE_LEFT_BUTTON_UP 0x0002
2806 #define RI_MOUSE_RIGHT_BUTTON_DOWN 0x0004
2807 #define RI_MOUSE_RIGHT_BUTTON_UP 0x0008
2808 #define RI_MOUSE_MIDDLE_BUTTON_DOWN 0x0010
2809 #define RI_MOUSE_MIDDLE_BUTTON_UP 0x0020
2810 #define RI_MOUSE_BUTTON_1_DOWN RI_MOUSE_LEFT_BUTTON_DOWN
2811 #define RI_MOUSE_BUTTON_1_UP RI_MOUSE_LEFT_BUTTON_UP
2812 #define RI_MOUSE_BUTTON_2_DOWN RI_MOUSE_RIGHT_BUTTON_DOWN
2813 #define RI_MOUSE_BUTTON_2_UP RI_MOUSE_RIGHT_BUTTON_UP
2814 #define RI_MOUSE_BUTTON_3_DOWN RI_MOUSE_MIDDLE_BUTTON_DOWN
2815 #define RI_MOUSE_BUTTON_3_UP RI_MOUSE_MIDDLE_BUTTON_UP
2816 #define RI_MOUSE_BUTTON_4_DOWN 0x0040
2817 #define RI_MOUSE_BUTTON_4_UP 0x0080
2818 #define RI_MOUSE_BUTTON_5_DOWN 0x0100
2819 #define RI_MOUSE_BUTTON_5_UP 0x0200
2820 #define RI_MOUSE_WHEEL 0x0400
2821 #define KEYBOARD_OVERRUN_MAKE_CODE 0xFF
2822 #define RI_KEY_MAKE 0x0000
2823 #define RI_KEY_BREAK 0x0001
2824 #define RI_KEY_E0 0x0002
2825 #define RI_KEY_E1 0x0004
2826 #define RI_KEY_TERMSRV_SET_LED 0x0008
2827 #define RI_KEY_TERMSRV_SHADOW 0x0010
2828 #define RID_INPUT 0x10000003
2829 #define RID_HEADER 0x10000005
2830 #define RIDI_PREPARSEDDATA 0x20000005
2831 #define RIDI_DEVICENAME 0x20000007
2832 #define RIDI_DEVICEINFO 0x2000000b
2833 #define RIDEV_REMOVE 0x00000001
2834 #define RIDEV_EXCLUDE 0x00000010
2835 #define RIDEV_PAGEONLY 0x00000020
2836 #define RIDEV_NOLEGACY 0x00000030
2837 #define RIDEV_INPUTSINK 0x00000100
2838 #define RIDEV_CAPTUREMOUSE 0x00000200
2839 #define RIDEV_NOHOTKEYS 0x00000200
2840 #define RIDEV_APPKEYS 0x00000400
2841 #endif
2842 #define STATE_SYSTEM_UNAVAILABLE 0x00000001
2843 #define STATE_SYSTEM_SELECTED 0x00000002
2844 #define STATE_SYSTEM_FOCUSED 0x00000004
2845 #define STATE_SYSTEM_PRESSED 0x00000008
2846 #define STATE_SYSTEM_CHECKED 0x00000010
2847 #define STATE_SYSTEM_MIXED 0x00000020
2848 #define STATE_SYSTEM_READONLY 0x00000040
2849 #define STATE_SYSTEM_HOTTRACKED 0x00000080
2850 #define STATE_SYSTEM_DEFAULT 0x00000100
2851 #define STATE_SYSTEM_EXPANDED 0x00000200
2852 #define STATE_SYSTEM_COLLAPSED 0x00000400
2853 #define STATE_SYSTEM_BUSY 0x00000800
2854 #define STATE_SYSTEM_FLOATING 0x00001000
2855 #define STATE_SYSTEM_MARQUEED 0x00002000
2856 #define STATE_SYSTEM_ANIMATED 0x00004000
2857 #define STATE_SYSTEM_INVISIBLE 0x00008000
2858 #define STATE_SYSTEM_OFFSCREEN 0x00010000
2859 #define STATE_SYSTEM_SIZEABLE 0x00020000
2860 #define STATE_SYSTEM_MOVEABLE 0x00040000
2861 #define STATE_SYSTEM_SELFVOICING 0x00080000
2862 #define STATE_SYSTEM_FOCUSABLE 0x00100000
2863 #define STATE_SYSTEM_SELECTABLE 0x00200000
2864 #define STATE_SYSTEM_LINKED 0x00400000
2865 #define STATE_SYSTEM_TRAVERSED 0x00800000
2866 #define STATE_SYSTEM_MULTISELECTABLE 0x01000000
2867 #define STATE_SYSTEM_EXTSELECTABLE 0x02000000
2868 #define STATE_SYSTEM_ALERT_LOW 0x04000000
2869 #define STATE_SYSTEM_ALERT_MEDIUM 0x08000000
2870 #define STATE_SYSTEM_ALERT_HIGH 0x10000000
2871 #define STATE_SYSTEM_VALID 0x1fffffff
2872 
2873 #define USER_DEFAULT_SCREEN_DPI 96
2874 
2875 #ifndef RC_INVOKED
2897 DECLARE_HANDLE(HHOOK);
2898 DECLARE_HANDLE(HDWP);
2899 DECLARE_HANDLE(HDEVNOTIFY);
2900 typedef HDEVNOTIFY *PHDEVNOTIFY;
2901 
2902 typedef struct tagACCEL {
2906 } ACCEL,*LPACCEL;
2907 
2908 typedef struct tagACCESSTIMEOUT {
2913 
2914 typedef struct tagANIMATIONINFO {
2918 
2919 typedef struct tagCREATESTRUCTA {
2924  int cy;
2925  int cx;
2926  int y;
2927  int x;
2933 
2934 typedef struct tagCREATESTRUCTW {
2939  int cy;
2940  int cx;
2941  int y;
2942  int x;
2948 
2949 typedef struct tagCBT_CREATEWNDA {
2953 
2954 typedef struct tagCBT_CREATEWNDW {
2958 
2959 typedef struct tagCBTACTIVATESTRUCT {
2963 
2964 typedef struct tagCLIENTCREATESTRUCT {
2968 
2969 typedef struct tagCOMPAREITEMSTRUCT {
2979 
2980 typedef struct tagCOPYDATASTRUCT {
2985 
2986 typedef struct tagCURSORSHAPE {
2989  int cx;
2990  int cy;
2991  int cbWidth;
2995 
2996 typedef struct tagCWPRETSTRUCT {
3003 
3004 typedef struct tagCWPSTRUCT {
3010 
3011 typedef struct tagDEBUGHOOKINFO {
3016  int code;
3018 
3019 typedef struct tagDELETEITEMSTRUCT {
3026 
3027 #include <pshpack2.h>
3028 typedef struct {
3031  short x;
3032  short y;
3033  short cx;
3034  short cy;
3037 
3038 typedef struct {
3042  short x;
3043  short y;
3044  short cx;
3045  short cy;
3047 
3052 DECL_WINELIB_TYPE_AW(PDLGITEMTEMPLATE)
3055 
3056 
3057 #ifdef UNICODE
3059 #else
3061 #endif // UNICODE
3062 #include <poppack.h>
3063 
3064 typedef struct tagDRAWITEMSTRUCT {
3075 
3076 typedef struct {
3083 
3084 typedef struct tagPAINTSTRUCT {
3092 
3093 typedef struct tagMSG {
3100 } MSG,*LPMSG,*PMSG;
3101 
3102 typedef struct _ICONINFO {
3108 } ICONINFO,*PICONINFO;
3109 
3110 typedef struct _ICONINFOEXA
3111 {
3122 
3123 typedef struct _ICONINFOEXW
3124 {
3135 
3136 typedef struct tagNMHDR {
3140 } NMHDR,*LPNMHDR;
3141 
3142 typedef struct _WNDCLASSA {
3154 
3155 typedef struct _WNDCLASSW {
3167 
3168 typedef enum tagAR_STATE {
3169  AR_ENABLED = 0x0,
3174  AR_NOSENSOR = 0x10,
3176  AR_DOCKED = 0x40,
3177  AR_LAPTOP = 0x80
3178 } AR_STATE, *PAR_STATE;
3179 
3180 typedef struct _WNDCLASSEXA {
3194 
3195 typedef struct _WNDCLASSEXW {
3209 
3210 #define MNGOF_TOPGAP 0x00000001
3211 #define MNGOF_BOTTOMGAP 0x00000002
3212 
3213 typedef struct tagMENUGETOBJECTINFO {
3220 
3221 typedef struct tagMENUITEMINFOA {
3233 #if (_WIN32_WINNT >= 0x0500)
3234  HBITMAP hbmpItem;
3235 #endif
3238 
3239 typedef struct tagMENUITEMINFOW {
3251 #if (_WIN32_WINNT >= 0x0500)
3252  HBITMAP hbmpItem;
3253 #endif
3255 
3257 
3258 typedef struct tagSCROLLINFO {
3261  int nMin;
3262  int nMax;
3264  int nPos;
3267 typedef const SCROLLINFO *LPCSCROLLINFO;
3268 
3269 typedef struct _WINDOWPLACEMENT {
3277 
3278 typedef struct {
3282 
3283 typedef struct {
3286  WCHAR mtString[1];
3288 
3290 
3291 typedef struct tagHELPINFO {
3294  int iCtrlId;
3298 } HELPINFO,*LPHELPINFO;
3299 
3301 
3302 typedef struct {
3314 
3315 typedef struct {
3327 
3328 typedef struct tagUSEROBJECTFLAGS {
3333 
3334 typedef struct tagFILTERKEYS {
3342 
3343 typedef struct tagHIGHCONTRASTA {
3348 
3349 typedef struct tagHIGHCONTRASTW {
3354 
3355 #if defined(_WINGDI_) && !defined(NOGDI)
3356 typedef struct tagICONMETRICSA {
3357  UINT cbSize;
3358  int iHorzSpacing;
3359  int iVertSpacing;
3360  int iTitleWrap;
3361  LOGFONTA lfFont;
3362 } ICONMETRICSA, *PICONMETRICSA, *LPICONMETRICSA;
3363 
3364 typedef struct tagICONMETRICSW {
3365  UINT cbSize;
3366  int iHorzSpacing;
3367  int iVertSpacing;
3368  int iTitleWrap;
3369  LOGFONTW lfFont;
3370 } ICONMETRICSW, *PICONMETRICSW, *LPICONMETRICSW;
3371 
3372 #ifdef UNICODE
3373 typedef ICONMETRICSW ICONMETRICS,*LPICONMETRICS;
3374 #else /* UNICODE */
3375 typedef ICONMETRICSA ICONMETRICS,*LPICONMETRICS;
3376 #endif /* UNICODE */
3377 #endif /* NOGDI */
3378 
3379 typedef struct tagMINIMIZEDMETRICS {
3381  int iWidth;
3386 
3387 #define WDA_NONE 0x0
3388 #define WDA_MONITOR 0x1
3389 
3390 typedef struct tagMOUSEKEYS{
3399 
3400 #if defined(_WINGDI_) && !defined(NOGDI)
3401 typedef struct tagNONCLIENTMETRICSA {
3402  UINT cbSize;
3403  int iBorderWidth;
3404  int iScrollWidth;
3405  int iScrollHeight;
3406  int iCaptionWidth;
3407  int iCaptionHeight;
3408  LOGFONTA lfCaptionFont;
3409  int iSmCaptionWidth;
3410  int iSmCaptionHeight;
3411  LOGFONTA lfSmCaptionFont;
3412  int iMenuWidth;
3413  int iMenuHeight;
3414  LOGFONTA lfMenuFont;
3415  LOGFONTA lfStatusFont;
3416  LOGFONTA lfMessageFont;
3417 #if (WINVER >= 0x0600)
3418  int iPaddedBorderWidth;
3419 #endif
3420 } NONCLIENTMETRICSA, *PNONCLIENTMETRICSA,*LPNONCLIENTMETRICSA;
3421 
3422 typedef struct tagNONCLIENTMETRICSW {
3423  UINT cbSize;
3424  int iBorderWidth;
3425  int iScrollWidth;
3426  int iScrollHeight;
3427  int iCaptionWidth;
3428  int iCaptionHeight;
3429  LOGFONTW lfCaptionFont;
3430  int iSmCaptionWidth;
3431  int iSmCaptionHeight;
3432  LOGFONTW lfSmCaptionFont;
3433  int iMenuWidth;
3434  int iMenuHeight;
3435  LOGFONTW lfMenuFont;
3436  LOGFONTW lfStatusFont;
3437  LOGFONTW lfMessageFont;
3438 #if (WINVER >= 0x0600)
3439  int iPaddedBorderWidth;
3440 #endif
3441 } NONCLIENTMETRICSW, *PNONCLIENTMETRICSW,*LPNONCLIENTMETRICSW;
3442 
3443 #ifdef UNICODE
3444 typedef NONCLIENTMETRICSW NONCLIENTMETRICS,*LPNONCLIENTMETRICS;
3445 #else /* UNICODE */
3446 typedef NONCLIENTMETRICSA NONCLIENTMETRICS,*LPNONCLIENTMETRICS;
3447 #endif /* UNICODE */
3448 #endif
3449 
3450 typedef struct tagSERIALKEYSA {
3459 
3460 typedef struct tagSERIALKEYSW {
3469 
3470 typedef struct tagSOUNDSENTRYA {
3484 
3485 typedef struct tagSOUNDSENTRYW {
3499 
3500 #if (_WIN32_WINNT >= 0x0600)
3501 typedef struct tagAUDIODESCRIPTION {
3502  UINT cbSize;
3503  BOOL Enabled;
3504  LCID Locale;
3505 } AUDIODESCRIPTION, *LPAUDIODESCRIPTION;
3506 #endif
3507 
3508 typedef struct tagSTICKYKEYS {
3512 
3513 typedef struct tagTOGGLEKEYS {
3517 
3518 typedef struct tagMOUSEHOOKSTRUCT {
3524 
3525 typedef struct tagHARDWAREHOOKSTRUCT {
3531 
3532 #if ( _WIN32_WINNT >= 0x0500 )
3533 #ifdef __cplusplus
3534 typedef struct tagMOUSEHOOKSTRUCTEX : public tagMOUSEHOOKSTRUCT
3535 {
3536  DWORD mouseData;
3537 } MOUSEHOOKSTRUCTEX, *LPMOUSEHOOKSTRUCTEX, *PMOUSEHOOKSTRUCTEX;
3538 #else
3539 typedef struct tagMOUSEHOOKSTRUCTEX
3540 {
3542  DWORD mouseData;
3543 } MOUSEHOOKSTRUCTEX, *LPMOUSEHOOKSTRUCTEX, *PMOUSEHOOKSTRUCTEX;
3544 #endif
3545 #endif
3546 
3547 typedef struct tagTRACKMOUSEEVENT {
3548  DWORD cbSize;
3549  DWORD dwFlags;
3550  HWND hwndTrack;
3553 
3554 typedef struct tagTPMPARAMS {
3558 
3559 typedef struct tagEVENTMSG {
3566 
3567 typedef struct _WINDOWPOS {
3570  int x;
3571  int y;
3572  int cx;
3573  int cy;
3576 
3577 typedef struct tagNCCALCSIZE_PARAMS {
3581 
3582 typedef struct tagMDICREATESTRUCTA {
3586  int x;
3587  int y;
3588  int cx;
3589  int cy;
3593 
3594 typedef struct tagMDICREATESTRUCTW {
3598  int x;
3599  int y;
3600  int cx;
3601  int cy;
3605 
3606 typedef struct tagMINMAXINFO {
3613 
3614 typedef struct tagMDINEXTMENU {
3619 
3620 typedef struct tagMEASUREITEMSTRUCT {
3628 
3629 typedef struct tagDROPSTRUCT {
3637 
3638 typedef DWORD HELPPOLY;
3639 typedef struct tagMULTIKEYHELPA {
3644 
3645 typedef struct tagMULTIKEYHELPW {
3650 
3651 typedef struct tagHELPWININFOA {
3653  int x;
3654  int y;
3655  int dx;
3656  int dy;
3657  int wMax;
3660 
3661 typedef struct tagHELPWININFOW {
3663  int x;
3664  int y;
3665  int dx;
3666  int dy;
3667  int wMax;
3670 
3671 typedef struct tagSTYLESTRUCT {
3675 
3676 typedef struct tagALTTABINFO {
3678  int cItems;
3680  int cRows;
3683  int cxItem;
3684  int cyItem;
3687 
3688 typedef struct tagCOMBOBOXINFO {
3697 
3698 typedef struct tagCURSORINFO {
3704 
3705 typedef struct tagMENUBARINFO {
3713 
3714 typedef struct tagMENUINFO {
3719  HBRUSH hbrBack;
3722 } MENUINFO,*LPMENUINFO;
3723 
3725 #define CCHILDREN_SCROLLBAR 5
3726 
3727 typedef struct tagSCROLLBARINFO {
3736 
3737 #define CCHILDREN_TITLEBAR 5
3738 
3739 typedef struct tagTITLEBARINFO {
3744 
3745 typedef struct tagWINDOWINFO {
3757 
3758 typedef struct tagLASTINPUTINFO {
3762 
3763 typedef struct tagMONITORINFO {
3769 
3770 #define CCHDEVICENAME 32
3771 typedef struct tagMONITORINFOEXA {
3778 
3779 typedef struct tagMONITORINFOEXW {
3786 
3787 typedef struct tagKBDLLHOOKSTRUCT {
3794 
3795 typedef struct tagMSLLHOOKSTRUCT
3796 {
3803 
3804 #if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0410)
3805 typedef struct {
3806  UINT cbSize;
3807  HWND hwnd;
3808  DWORD dwFlags;
3809  UINT uCount;
3810  DWORD dwTimeout;
3811 } FLASHWINFO,*PFLASHWINFO;
3812 #endif /* (WINVER >= 0x0500 || _WIN32_WINDOWS >= 0x0410) */
3813 
3814 #if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0490)
3815 typedef struct tagMOUSEMOVEPOINT {
3816  int x;
3817  int y;
3818  DWORD time;
3819  ULONG_PTR dwExtraInfo;
3820 } MOUSEMOVEPOINT,*PMOUSEMOVEPOINT,*LPMOUSEMOVEPOINT;
3821 #endif
3822 
3823 #if (_WIN32_WINNT >= 0x0400)
3824 typedef struct tagMOUSEINPUT {
3825  LONG dx;
3826  LONG dy;
3827  DWORD mouseData;
3828  DWORD dwFlags;
3829  DWORD time;
3831 } MOUSEINPUT,*PMOUSEINPUT, *LPMOUSEINPUT;
3832 
3833 typedef struct tagKEYBDINPUT {
3834  WORD wVk;
3835  WORD wScan;
3836  DWORD dwFlags;
3837  DWORD time;
3839 } KEYBDINPUT, *PKEYBDINPUT, *LPKEYBDINPUT;
3840 
3841 typedef struct tagHARDWAREINPUT {
3842  DWORD uMsg;
3843  WORD wParamL;
3844  WORD wParamH;
3845 } HARDWAREINPUT, *PHARDWAREINPUT, *LPHARDWAREINPUT;
3846 
3847 typedef struct tagINPUT {
3848  DWORD type;
3849  _ANONYMOUS_UNION union {
3850  MOUSEINPUT mi;
3851  KEYBDINPUT ki;
3852  HARDWAREINPUT hi;
3853  } DUMMYUNIONNAME;
3854 } INPUT,*PINPUT,*LPINPUT;
3855 #endif /* (_WIN32_WINNT >= 0x0400) */
3856 
3857 #if (WINVER >= 0x0500)
3858 typedef struct tagGUITHREADINFO {
3859  DWORD cbSize;
3860  DWORD flags;
3861  HWND hwndActive;
3862  HWND hwndFocus;
3863  HWND hwndCapture;
3866  HWND hwndCaret;
3867  RECT rcCaret;
3869 
3871 #endif /* (WINVER >= 0x0500) */
3872 
3873 #if (_WIN32_WINNT >= 0x0501)
3874 typedef struct {
3875  UINT cbSize;
3876  HDESK hdesk;
3877  HWND hwnd;
3878  LUID luid;
3879 } BSMINFO,*PBSMINFO;
3880 DECLARE_HANDLE(HRAWINPUT);
3881 
3882 typedef struct tagRAWINPUTHEADER {
3883  DWORD dwType;
3884  DWORD dwSize;
3885  HANDLE hDevice;
3886  WPARAM wParam;
3887 } RAWINPUTHEADER,*PRAWINPUTHEADER;
3888 
3889 typedef struct tagRAWMOUSE {
3890  USHORT usFlags;
3891  _ANONYMOUS_UNION union {
3892  ULONG ulButtons;
3893  _ANONYMOUS_STRUCT struct {
3894  USHORT usButtonFlags;
3895  USHORT usButtonData;
3896  };
3897  };
3898  ULONG ulRawButtons;
3899  LONG lLastX;
3900  LONG lLastY;
3901  ULONG ulExtraInformation;
3902 } RAWMOUSE,*PRAWMOUSE,*LPRAWMOUSE;
3903 
3904 typedef struct tagRAWKEYBOARD {
3905  USHORT MakeCode;
3906  USHORT Flags;
3907  USHORT Reserved;
3908  USHORT VKey;
3909  UINT Message;
3910  ULONG ExtraInformation;
3911 } RAWKEYBOARD,*PRAWKEYBOARD,*LPRAWKEYBOARD;
3912 
3913 typedef struct tagRAWHID {
3914  DWORD dwSizeHid;
3915  DWORD dwCount;
3916  BYTE bRawData;
3917 } RAWHID,*PRAWHID,*LPRAWHID;
3918 
3919 typedef struct tagRAWINPUT {
3920  RAWINPUTHEADER header;
3921  union {
3922  RAWMOUSE mouse;
3923  RAWKEYBOARD keyboard;
3924  RAWHID hid;
3925  } data;
3926 } RAWINPUT,*PRAWINPUT,*LPRAWINPUT;
3927 
3928 typedef struct tagRAWINPUTDEVICE {
3929  USHORT usUsagePage;
3930  USHORT usUsage;
3931  DWORD dwFlags;
3932  HWND hwndTarget;
3933 } RAWINPUTDEVICE,*PRAWINPUTDEVICE,*LPRAWINPUTDEVICE;
3934 
3935 typedef const RAWINPUTDEVICE *PCRAWINPUTDEVICE;
3936 
3937 typedef struct tagRAWINPUTDEVICELIST {
3938  HANDLE hDevice;
3939  DWORD dwType;
3940 } RAWINPUTDEVICELIST,*PRAWINPUTDEVICELIST;
3941 
3942 typedef struct tagRID_DEVICE_INFO_MOUSE {
3943  DWORD dwId;
3944  DWORD dwNumberOfButtons;
3945  DWORD dwSampleRate;
3946  BOOL fHasHorizontalWheel;
3947 } RID_DEVICE_INFO_MOUSE, *PRID_DEVICE_INFO_MOUSE;
3948 
3949 typedef struct tagRID_DEVICE_INFO_KEYBOARD {
3950  DWORD dwType;
3951  DWORD dwSubType;
3952  DWORD dwKeyboardMode;
3953  DWORD dwNumberOfFunctionKeys;
3954  DWORD dwNumberOfIndicators;
3955  DWORD dwNumberOfKeysTotal;
3956 } RID_DEVICE_INFO_KEYBOARD, *PRID_DEVICE_INFO_KEYBOARD;
3957 
3958 typedef struct tagRID_DEVICE_INFO_HID {
3959  DWORD dwVendorId;
3960  DWORD dwProductId;
3961  DWORD dwVersionNumber;
3962  USHORT usUsagePage;
3963  USHORT usUsage;
3964 } RID_DEVICE_INFO_HID, *PRID_DEVICE_INFO_HID;
3965 
3966 typedef struct tagRID_DEVICE_INFO {
3967  DWORD cbSize;
3968  DWORD dwType;
3969  union {
3970  RID_DEVICE_INFO_MOUSE mouse;
3971  RID_DEVICE_INFO_KEYBOARD keyboard;
3972  RID_DEVICE_INFO_HID hid;
3973  } DUMMYUNIONNAME;
3974 } RID_DEVICE_INFO, *PRID_DEVICE_INFO, *LPRID_DEVICE_INFO;
3975 
3976 #endif /* (_WIN32_WINNT >= 0x0501) */
3977 
3978 #define AnsiToOem CharToOemA
3979 #define OemToAnsi OemToCharA
3980 #define AnsiToOemBuff CharToOemBuffA
3981 #define OemToAnsiBuff OemToCharBuffA
3982 #define AnsiUpper CharUpperA
3983 #define AnsiUpperBuff CharUpperBuffA
3984 #define AnsiLower CharLowerA
3985 #define AnsiLowerBuff CharLowerBuffA
3986 #define AnsiNext CharNextA
3987 #define AnsiPrev CharPrevA
3988 #define MAKELPARAM(l,h) ((LPARAM)MAKELONG(l,h))
3989 #define MAKEWPARAM(l,h) ((WPARAM)MAKELONG(l,h))
3990 #define MAKELRESULT(l,h) ((LRESULT)MAKELONG(l,h))
3991 #define POINTSTOPOINT(p,ps) { \
3992  (p).x=LOWORD(*(DWORD *)&ps); \
3993  (p).y=HIWORD(*(DWORD *)&ps); \
3994 }
3995 #define POINTTOPOINTS(p) ((POINTS)MAKELONG((p).x,(p).y))
3996 
3997 #if (WINVER >= 0x0601)
3998 
3999 typedef enum tagINPUT_MESSAGE_DEVICE_TYPE {
4000  IMDT_UNAVAILABLE = 0x00,
4001  IMDT_KEYBOARD = 0x01,
4002  IMDT_MOUSE = 0x02,
4003  IMDT_TOUCH = 0x04,
4004  IMDT_PEN = 0x08,
4005  IMDT_TOUCHPAD = 0x10
4006 } INPUT_MESSAGE_DEVICE_TYPE;
4007 
4008 typedef enum tagINPUT_MESSAGE_ORIGIN_ID {
4009  IMO_UNAVAILABLE = 0x00,
4010  IMO_HARDWARE = 0x01,
4011  IMO_INJECTED = 0x02,
4012  IMO_SYSTEM = 0x04
4013 } INPUT_MESSAGE_ORIGIN_ID;
4014 
4015 typedef struct tagINPUT_MESSAGE_SOURCE {
4016  INPUT_MESSAGE_DEVICE_TYPE deviceType;
4017  INPUT_MESSAGE_ORIGIN_ID originId;
4018 } INPUT_MESSAGE_SOURCE;
4019 
4020 #endif /* WINVER >= 0x0601 */
4021 
4022 #if(WINVER >= 0x0602)
4023 
4024 enum tagPOINTER_INPUT_TYPE {
4025  PT_POINTER = 1,
4026  PT_TOUCH,
4027  PT_PEN,
4028  PT_MOUSE,
4029  PT_TOUCHPAD
4030 };
4031 typedef DWORD POINTER_INPUT_TYPE;
4032 
4033 #endif /* WINVER >= 0x0602 */
4034 
4038 #if (_WIN32_WINNT >= 0x0500)
4040 #endif /* (_WIN32_WINNT >= 0x0500) */
4041 BOOL WINAPI AnyPopup(void);
4046 HDWP WINAPI BeginDeferWindowPos(_In_ int);
4050 
4051 #if (_WIN32_WINNT >= 0x0400)
4052 
4053 LONG
4054 WINAPI
4056  _In_ DWORD flags,
4057  _Inout_opt_ LPDWORD lpInfo,
4058  _In_ UINT Msg,
4059  _In_ WPARAM wParam,
4060  _In_ LPARAM lParam);
4061 
4062 LONG
4063 WINAPI
4065  _In_ DWORD flags,
4066  _Inout_opt_ LPDWORD lpInfo,
4067  _In_ UINT Msg,
4068  _In_ WPARAM wParam,
4069  _In_ LPARAM lParam);
4070 
4071 #endif /* (_WIN32_WINNT >= 0x0400) */
4072 
4073 #if (_WIN32_WINNT >= 0x0501)
4074 
4075 LONG
4076 WINAPI
4078  _In_ DWORD flags,
4079  _Inout_opt_ LPDWORD lpInfo,
4080  _In_ UINT Msg,
4081  _In_ WPARAM wParam,
4082  _In_ LPARAM lParam,
4083  _Out_opt_ PBSMINFO pbsmInfo);
4084 
4085 LONG
4086 WINAPI
4088  _In_ DWORD flags,
4089  _Inout_opt_ LPDWORD lpInfo,
4090  _In_ UINT Msg,
4091  _In_ WPARAM wParam,
4092  _In_ LPARAM lParam,
4093  _Out_opt_ PBSMINFO pbsmInfo);
4094 
4095 #endif /* (_WIN32_WINNT >= 0x0501) */
4096 
4103 
4104 WORD
4105 WINAPI
4108  _In_ UINT wHow,
4109  _In_opt_ CONST RECT * lpRect,
4110  _In_ UINT cKids,
4111  _In_reads_opt_(cKids) const HWND FAR *lpKids);
4112 
4114 #if defined(_WINGDI_) && !defined(NOGDI)
4119 #endif
4124 
4125 DWORD
4126 WINAPI
4128  _Inout_updates_(cchLength) LPSTR lpsz,
4129  _In_ DWORD cchLength);
4130 
4131 DWORD
4132 WINAPI
4134  _Inout_updates_(cchLength) LPWSTR lpsz,
4135  _In_ DWORD cchLength);
4136 
4139 
4146 
4147 BOOL
4148 WINAPI
4149 CharToOemA(
4150  _In_ LPCSTR pSrc,
4151  _Out_writes_(_Inexpressible_(strlen(pSrc) + 1)) LPSTR pDst);
4152 
4153 BOOL
4154 WINAPI
4155 CharToOemW(
4156  _In_ LPCWSTR pSrc,
4157  _Out_writes_(_Inexpressible_(strlen(pSrc) + 1)) LPSTR pDst);
4158 
4159 BOOL
4160 WINAPI
4162  _In_ LPCSTR lpszSrc,
4163  _Out_writes_(cchDstLength) LPSTR lpszDst,
4164  _In_ DWORD cchDstLength);
4165 
4166 BOOL
4167 WINAPI
4169  _In_ LPCWSTR lpszSrc,
4170  _Out_writes_(cchDstLength) LPSTR lpszDst,
4171  _In_ DWORD cchDstLength);
4172 
4175 
4176 DWORD
4177 WINAPI
4179  _Inout_updates_(cchLength) LPSTR lpsz,
4180  _In_ DWORD cchLength);
4181 
4182 DWORD
4183 WINAPI
4185  _Inout_updates_(cchLength) LPWSTR lpsz,
4186  _In_ DWORD cchLength);
4187 
4191 BOOL WINAPI CheckRadioButton(_In_ HWND, _In_ int, _In_ int, _In_ int);
4196 BOOL WINAPI CloseClipboard(void);
4197 BOOL WINAPI CloseDesktop(_In_ HDESK);
4200 
4201 int
4202 WINAPI
4204  _In_ HACCEL hAccelSrc,
4205  _Out_writes_to_opt_(cAccelEntries, return) LPACCEL lpAccelDst,
4206  _In_ int cAccelEntries);
4207 
4208 int
4209 WINAPI
4211  _In_ HACCEL hAccelSrc,
4212  _Out_writes_to_opt_(cAccelEntries, return) LPACCEL lpAccelDst,
4213  _In_ int cAccelEntries);
4214 
4215 #define CopyCursor(c) ((HCURSOR)CopyIcon((HICON)(c)))
4219 int WINAPI CountClipboardFormats(void);
4220 
4221 HACCEL
4222 WINAPI
4224  _In_reads_(cAccel) LPACCEL paccel,
4225  _In_ int cAccel);
4226 
4227 HACCEL
4228 WINAPI
4230  _In_reads_(cAccel) LPACCEL paccel,
4231  _In_ int cAccel);
4232 
4235 
4236 #if defined(_WINGDI_) && !defined(NOGDI)
4237 
4238 HDESK
4239 WINAPI
4241  _In_ LPCSTR lpszDesktop,
4242  _Reserved_ LPCSTR lpszDevice,
4243  _Reserved_ DEVMODEA* pDevmode,
4244  _In_ DWORD dwFlags,
4245  _In_ ACCESS_MASK dwDesiredAccess,
4247 
4248 HDESK
4249 WINAPI
4251  _In_ LPCWSTR lpszDesktop,
4252  _Reserved_ LPCWSTR lpszDevice,
4253  _Reserved_ DEVMODEW* pDevmode,
4254  _In_ DWORD dwFlags,
4255  _In_ ACCESS_MASK dwDesiredAccess,
4257 
4258 #endif
4259 
4260 #define CreateDialogA(h,n,w,f) CreateDialogParamA(h,n,w,f,0)
4261 #define CreateDialogW(h,n,w,f) CreateDialogParamW(h,n,w,f,0)
4262 #define CreateDialogIndirectA(h,t,w,f) CreateDialogIndirectParamA(h,t,w,f,0)
4263 #define CreateDialogIndirectW(h,t,w,f) CreateDialogIndirectParamW(h,t,w,f,0)
4269 
4270 HICON
4271 WINAPI
4273  _In_reads_bytes_(dwResSize) PBYTE presbits,
4274  _In_ DWORD dwResSize,
4275  _In_ BOOL fIcon,
4276  _In_ DWORD dwVer);
4277 
4278 HICON
4279 WINAPI
4281  _In_reads_bytes_(dwResSize) PBYTE presbits,
4282  _In_ DWORD dwResSize,
4283  _In_ BOOL fIcon,
4284  _In_ DWORD dwVer,
4285  _In_ int cxDesired,
4286  _In_ int cyDesired,
4287  _In_ UINT Flags);
4288