xref: /reactos/sdk/include/psdk/winuser.h (revision 0707475f)
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 
597 #ifndef NORESOURCE
598 
599 #define RT_CURSOR MAKEINTRESOURCE(1)
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_FONT MAKEINTRESOURCE(8)
607 #define RT_ACCELERATOR MAKEINTRESOURCE(9)
608 #define RT_RCDATA MAKEINTRESOURCE(10)
609 #define RT_MESSAGETABLE MAKEINTRESOURCE(11)
610 #define DIFFERENCE 11
611 #define RT_GROUP_CURSOR MAKEINTRESOURCE((ULONG_PTR)RT_CURSOR+DIFFERENCE)
612 #define RT_GROUP_ICON MAKEINTRESOURCE((ULONG_PTR)RT_ICON+DIFFERENCE)
613 #define RT_VERSION MAKEINTRESOURCE(16)
614 #define RT_DLGINCLUDE MAKEINTRESOURCE(17)
615 #define RT_PLUGPLAY MAKEINTRESOURCE(19)
616 #define RT_VXD MAKEINTRESOURCE(20)
617 #define RT_ANICURSOR MAKEINTRESOURCE(21)
618 #define RT_ANIICON MAKEINTRESOURCE(22)
619 #define RT_HTML MAKEINTRESOURCE(23)
620 #ifndef RC_INVOKED
621 #define RT_MANIFEST MAKEINTRESOURCE(24)
622 #define CREATEPROCESS_MANIFEST_RESOURCE_ID  MAKEINTRESOURCE(1)
623 #define ISOLATIONAWARE_MANIFEST_RESOURCE_ID MAKEINTRESOURCE(2)
624 #define ISOLATIONAWARE_NOSTATICIMPORT_MANIFEST_RESOURCE_ID MAKEINTRESOURCE(3)
625 #else
626 #define RT_MANIFEST 24
627 #define CREATEPROCESS_MANIFEST_RESOURCE_ID  1
628 #define ISOLATIONAWARE_MANIFEST_RESOURCE_ID 2
629 #define ISOLATIONAWARE_NOSTATICIMPORT_MANIFEST_RESOURCE_ID 3
630 #endif /* !RC_INVOKED */
631 
632 #endif /* !NORESOURCE */
633 
634 
635 #define EWX_FORCE 0x00000004
636 #define EWX_LOGOFF 0
637 #define EWX_POWEROFF 0x00000008
638 #define EWX_REBOOT 0x00000002
639 #define EWX_SHUTDOWN 0x00000001
640 #if (_WIN32_WINNT >= 0x0500)
641 #define EWX_FORCEIFHUNG 0x00000010
642 #endif
643 #if (_WIN32_WINNT > 0x06010000)
644 #define EWX_HYBRID_SHUTDOWN 0x00400000
645 #endif
646 #define CS_BYTEALIGNCLIENT 4096
647 #define CS_BYTEALIGNWINDOW 8192
648 #define CS_KEYCVTWINDOW 4
649 #define CS_NOKEYCVT 256 // Class Name to Version
650 #define CS_CLASSDC 64
651 #define CS_DBLCLKS 8
652 #define CS_GLOBALCLASS 16384
653 #define CS_HREDRAW 2
654 #define CS_NOCLOSE 512
655 #define CS_OWNDC 32
656 #define CS_PARENTDC 128
657 #define CS_SAVEBITS 2048
658 #define CS_VREDRAW 1
659 #define CS_IME 0x10000
660 #define CS_DROPSHADOW 0x20000
661 #define GCW_ATOM (-32)
662 #define GCL_CBCLSEXTRA (-20)
663 #define GCL_CBWNDEXTRA (-18)
664 #define GCL_HBRBACKGROUND (-10)
665 #define GCL_HCURSOR (-12)
666 #define GCL_HICON (-14)
667 #define GCL_HICONSM (-34)
668 #define GCL_HMODULE (-16)
669 #define GCL_MENUNAME (-8)
670 #define GCL_STYLE (-26)
671 #define GCL_WNDPROC (-24)
672 #define GCLP_HBRBACKGROUND (-10)
673 #define GCLP_HCURSOR (-12)
674 #define GCLP_HICON (-14)
675 #define GCLP_HICONSM (-34)
676 #define GCLP_HMODULE (-16)
677 #define GCLP_MENUNAME (-8)
678 #define GCLP_WNDPROC (-24)
679 #if 0
680     /* This is supposed to be defined by the program using it not defined
681        in the w32api headers.  I've left it here for documentation purposes.
682     */
683 #ifndef IDC_STATIC  /* May be predefined by resource compiler. */
684 #define IDC_STATIC (-1)
685 #endif
686 #endif
687 #define IDC_ARROW MAKEINTRESOURCE(32512)
688 #define IDC_IBEAM MAKEINTRESOURCE(32513)
689 #define IDC_WAIT MAKEINTRESOURCE(32514)
690 #define IDC_CROSS MAKEINTRESOURCE(32515)
691 #define IDC_UPARROW MAKEINTRESOURCE(32516)
692 #define IDC_SIZENWSE MAKEINTRESOURCE(32642)
693 #define IDC_SIZENESW MAKEINTRESOURCE(32643)
694 #define IDC_SIZEWE MAKEINTRESOURCE(32644)
695 #define IDC_SIZENS MAKEINTRESOURCE(32645)
696 #define IDC_SIZEALL MAKEINTRESOURCE(32646)
697 #define IDC_NO MAKEINTRESOURCE(32648)
698 #define IDC_HAND MAKEINTRESOURCE(32649)
699 #define IDC_APPSTARTING MAKEINTRESOURCE(32650)
700 #define IDC_HELP MAKEINTRESOURCE(32651)
701 #define IDC_ICON MAKEINTRESOURCE(32641)
702 #define IDC_SIZE MAKEINTRESOURCE(32640)
703 #ifndef RC_INVOKED
704 #define IDI_APPLICATION MAKEINTRESOURCE(32512)
705 #define IDI_HAND MAKEINTRESOURCE(32513)
706 #define IDI_QUESTION MAKEINTRESOURCE(32514)
707 #define IDI_EXCLAMATION MAKEINTRESOURCE(32515)
708 #define IDI_ASTERISK MAKEINTRESOURCE(32516)
709 #define IDI_WINLOGO MAKEINTRESOURCE(32517)
710 #else
711 #define IDI_APPLICATION 32512
712 #define IDI_HAND 32513
713 #define IDI_QUESTION 32514
714 #define IDI_EXCLAMATION 32515
715 #define IDI_ASTERISK 32516
716 #define IDI_WINLOGO 32517
717 #if(WINVER >= 0x0600)
718 #define IDI_SHIELD  32518
719 #endif /* WINVER >= 0x0600 */
720 #endif
721 #define IDI_WARNING IDI_EXCLAMATION
722 #define IDI_ERROR IDI_HAND
723 #define IDI_INFORMATION IDI_ASTERISK
724 #define MIIM_STATE 1
725 #define MIIM_ID 2
726 #define MIIM_SUBMENU 4
727 #define MIIM_CHECKMARKS 8
728 #define MIIM_TYPE 16
729 #define MIIM_DATA 32
730 #define MIIM_STRING 64
731 #define MIIM_BITMAP 128
732 #define MIIM_FTYPE 256
733 #if (WINVER >= 0x0500)
734 #define MIM_MAXHEIGHT 1
735 #define MIM_BACKGROUND 2
736 #define MIM_HELPID 4
737 #define MIM_MENUDATA 8
738 #define MIM_STYLE 16
739 #define MIM_APPLYTOSUBMENUS 0x80000000L
740 #endif
741 #define MFT_BITMAP 4
742 #define MFT_MENUBARBREAK 32
743 #define MFT_MENUBREAK 64
744 #define MFT_OWNERDRAW 256
745 #define MFT_RADIOCHECK 512
746 #define MFT_RIGHTJUSTIFY 0x4000
747 #define MFT_SEPARATOR 0x800
748 #define MFT_RIGHTORDER 0x2000L
749 #define MFT_STRING 0
750 #define MFS_CHECKED 8
751 #define MFS_DEFAULT 4096
752 #define MFS_DISABLED 3
753 #define MFS_ENABLED 0
754 #define MFS_GRAYED 3
755 #define MFS_HILITE 128
756 #define MFS_UNCHECKED 0
757 #define MFS_UNHILITE 0
758 #define MNS_NOCHECK 0x80000000
759 #define MNS_MODELESS 0x40000000
760 #define MNS_DRAGDROP 0x20000000
761 #define MNS_AUTODISMISS 0x10000000
762 #define MNS_NOTIFYBYPOS 0x08000000
763 #define MNS_CHECKORBMP 0x04000000
764 #define GW_HWNDNEXT 2
765 #define GW_HWNDPREV 3
766 #define GW_CHILD 5
767 #define GW_HWNDFIRST 0
768 #define GW_HWNDLAST 1
769 #define GW_OWNER 4
770 #define GW_ENABLEDPOPUP 6
771 #define SW_HIDE 0
772 #define SW_NORMAL 1
773 #define SW_SHOWNORMAL 1
774 #define SW_SHOWMINIMIZED 2
775 #define SW_MAXIMIZE 3
776 #define SW_SHOWMAXIMIZED 3
777 #define SW_SHOWNOACTIVATE 4
778 #define SW_SHOW 5
779 #define SW_MINIMIZE 6
780 #define SW_SHOWMINNOACTIVE 7
781 #define SW_SHOWNA 8
782 #define SW_RESTORE 9
783 #define SW_SHOWDEFAULT 10
784 #define SW_FORCEMINIMIZE 11
785 #define SW_MAX 11
786 #define MB_USERICON 128
787 #define MB_ICONASTERISK 64
788 #define MB_ICONEXCLAMATION 0x30
789 #define MB_ICONWARNING 0x30
790 #define MB_ICONERROR 16
791 #define MB_ICONHAND 16
792 #define MB_ICONQUESTION 32
793 #define MB_OK 0
794 #define MB_ABORTRETRYIGNORE 2
795 #define MB_APPLMODAL 0
796 #define MB_DEFAULT_DESKTOP_ONLY 0x20000
797 #define MB_HELP 0x4000
798 #define MB_RIGHT 0x80000
799 #define MB_RTLREADING 0x100000
800 #define MB_TOPMOST 0x40000
801 #define MB_DEFBUTTON1 0
802 #define MB_DEFBUTTON2 256
803 #define MB_DEFBUTTON3 512
804 #define MB_DEFBUTTON4 0x300
805 #define MB_ICONINFORMATION 64
806 #define MB_ICONSTOP 16
807 #define MB_OKCANCEL 1
808 #define MB_RETRYCANCEL 5
809 #ifdef _WIN32_WINNT
810 #if (_WIN32_WINNT >= 0x0400)
811 #define MB_SERVICE_NOTIFICATION 0x00200000
812 #else
813 #define MB_SERVICE_NOTIFICATION 0x00040000
814 #endif
815 #define MB_SERVICE_NOTIFICATION_NT3X 0x00040000
816 #endif
817 #define MB_SETFOREGROUND 0x10000
818 #define MB_SYSTEMMODAL 4096
819 #define MB_TASKMODAL 0x2000
820 #define MB_YESNO 4
821 #define MB_YESNOCANCEL 3
822 #define MB_ICONMASK 240
823 #define MB_DEFMASK 3840
824 #define MB_MODEMASK 0x00003000
825 #define MB_MISCMASK 0x0000C000
826 #define MB_NOFOCUS 0x00008000
827 #define MB_TYPEMASK 15
828 #define MB_TOPMOST 0x40000
829 #if (WINVER >= 0x0500)
830 #define MB_CANCELTRYCONTINUE 6
831 #endif
832 
833 #define IDOK 1
834 #define IDCANCEL 2
835 #define IDABORT 3
836 #define IDRETRY 4
837 #define IDIGNORE 5
838 #define IDYES 6
839 #define IDNO 7
840 #if (WINVER >= 0x0400)
841 #define IDCLOSE 8
842 #define IDHELP 9
843 #endif
844 #if (WINVER >= 0x0500)
845 #define IDTRYAGAIN 10
846 #define IDCONTINUE 11
847 #endif
848 #if (WINVER >= 0x0501)
849 #ifndef IDTIMEOUT
850 #define IDTIMEOUT 32000
851 #endif
852 #endif
853 
854 #define GWL_EXSTYLE (-20)
855 #define GWL_STYLE (-16)
856 #define GWL_WNDPROC (-4)
857 #define GWLP_WNDPROC (-4)
858 #define GWL_HINSTANCE (-6)
859 #define GWLP_HINSTANCE (-6)
860 #define GWL_HWNDPARENT (-8)
861 #define GWLP_HWNDPARENT (-8)
862 #define GWL_ID (-12)
863 #define GWLP_ID (-12)
864 #define GWL_USERDATA (-21)
865 #define GWLP_USERDATA (-21)
866 
867 #ifndef __REACTOS__ // NEVER USE THESE!
868 #define DWL_MSGRESULT 0
869 #define DWL_DLGPROC 4
870 #define DWL_USER 8
871 #endif
872 
873 #define DWLP_MSGRESULT 0
874 #define DWLP_DLGPROC (DWLP_MSGRESULT + sizeof(LRESULT))
875 #define DWLP_USER (DWLP_DLGPROC + sizeof(DLGPROC))
876 
877 #define QS_KEY              1
878 #define QS_MOUSEMOVE        2
879 #define QS_MOUSEBUTTON      4
880 #define QS_POSTMESSAGE      8
881 #define QS_TIMER            16
882 #define QS_PAINT            32
883 #define QS_SENDMESSAGE      64
884 #define QS_HOTKEY           128
885 #define QS_ALLPOSTMESSAGE   256
886 
887 #if (_WIN32_WINNT >= 0x0501)
888 #define QS_RAWINPUT         1024
889 #endif
890 #if (_WIN32_WINNT >= 0x0602)
891 #define QS_TOUCH            2048
892 #define QS_POINTER          4096
893 #endif
894 
895 #define QS_MOUSE            (QS_MOUSEMOVE | QS_MOUSEBUTTON)
896 
897 #if (_WIN32_WINNT >= 0x0602)
898 #define QS_INPUT            (QS_KEY | QS_MOUSE | QS_RAWINPUT | QS_TOUCH | QS_POINTER)
899 #elif (_WIN32_WINNT >= 0x0501)
900 #define QS_INPUT            (QS_KEY | QS_MOUSE | QS_RAWINPUT)
901 #else
902 #define QS_INPUT            (QS_KEY | QS_MOUSE)
903 #endif
904 
905 #define QS_ALLEVENTS        (QS_INPUT | QS_POSTMESSAGE | QS_TIMER | QS_PAINT | QS_HOTKEY)
906 #define QS_ALLINPUT         (QS_ALLEVENTS | QS_SENDMESSAGE)
907 
908 #define USER_TIMER_MAXIMUM  2147483647
909 #define USER_TIMER_MINIMUM  10
910 
911 #define MWMO_WAITALL 1
912 #define MWMO_ALERTABLE 2
913 #define MWMO_INPUTAVAILABLE 4
914 
915 #define COLOR_SCROLLBAR 0
916 #define COLOR_BACKGROUND 1
917 #define COLOR_DESKTOP COLOR_BACKGROUND
918 #define COLOR_ACTIVECAPTION 2
919 #define COLOR_INACTIVECAPTION 3
920 #define COLOR_MENU 4
921 #define COLOR_WINDOW 5
922 #define COLOR_WINDOWFRAME 6
923 #define COLOR_MENUTEXT 7
924 #define COLOR_WINDOWTEXT 8
925 #define COLOR_CAPTIONTEXT 9
926 #define COLOR_ACTIVEBORDER 10
927 #define COLOR_INACTIVEBORDER 11
928 #define COLOR_APPWORKSPACE 12
929 #define COLOR_HIGHLIGHT 13
930 #define COLOR_HIGHLIGHTTEXT 14
931 #define COLOR_BTNFACE 15
932 #define COLOR_3DFACE COLOR_BTNFACE
933 #define COLOR_BTNSHADOW 16
934 #define COLOR_3DSHADOW COLOR_BTNSHADOW
935 #define COLOR_GRAYTEXT 17
936 #define COLOR_BTNTEXT 18
937 #define COLOR_INACTIVECAPTIONTEXT 19
938 #define COLOR_BTNHIGHLIGHT 20
939 #define COLOR_3DHIGHLIGHT COLOR_BTNHIGHLIGHT
940 #define COLOR_3DHILIGHT COLOR_BTNHIGHLIGHT
941 #define COLOR_BTNHILIGHT COLOR_BTNHIGHLIGHT
942 #define COLOR_3DDKSHADOW 21
943 #define COLOR_3DLIGHT 22
944 #define COLOR_INFOTEXT 23
945 #define COLOR_INFOBK 24
946 #define COLOR_HOTLIGHT 26
947 #define COLOR_GRADIENTACTIVECAPTION 27
948 #define COLOR_GRADIENTINACTIVECAPTION 28
949 #if WINVER >= 0x0501
950 #define COLOR_MENUHILIGHT 29
951 #define COLOR_MENUBAR 30
952 #endif
953 
954 #define CTLCOLOR_MSGBOX 0
955 #define CTLCOLOR_EDIT 1
956 #define CTLCOLOR_LISTBOX 2
957 #define CTLCOLOR_BTN 3
958 #define CTLCOLOR_DLG 4
959 #define CTLCOLOR_SCROLLBAR 5
960 #define CTLCOLOR_STATIC 6
961 #define CTLCOLOR_MAX 7
962 #define SM_CXSCREEN 0
963 #define SM_CYSCREEN 1
964 #define SM_CXVSCROLL 2
965 #define SM_CYHSCROLL 3
966 #define SM_CYCAPTION 4
967 #define SM_CXBORDER 5
968 #define SM_CYBORDER 6
969 #define SM_CXDLGFRAME 7
970 #define SM_CXFIXEDFRAME 7
971 #define SM_CYDLGFRAME 8
972 #define SM_CYFIXEDFRAME 8
973 #define SM_CYVTHUMB 9
974 #define SM_CXHTHUMB 10
975 #define SM_CXICON 11
976 #define SM_CYICON 12
977 #define SM_CXCURSOR 13
978 #define SM_CYCURSOR 14
979 #define SM_CYMENU 15
980 #define SM_CXFULLSCREEN 16
981 #define SM_CYFULLSCREEN 17
982 #define SM_CYKANJIWINDOW 18
983 #define SM_MOUSEPRESENT 19
984 #define SM_CYVSCROLL 20
985 #define SM_CXHSCROLL 21
986 #define SM_DEBUG 22
987 #define SM_SWAPBUTTON 23
988 #define SM_RESERVED1 24
989 #define SM_RESERVED2 25
990 #define SM_RESERVED3 26
991 #define SM_RESERVED4 27
992 #define SM_CXMIN 28
993 #define SM_CYMIN 29
994 #define SM_CXSIZE 30
995 #define SM_CYSIZE 31
996 #define SM_CXSIZEFRAME 32
997 #define SM_CXFRAME 32
998 #define SM_CYSIZEFRAME 33
999 #define SM_CYFRAME 33
1000 #define SM_CXMINTRACK 34
1001 #define SM_CYMINTRACK 35
1002 #define SM_CXDOUBLECLK 36
1003 #define SM_CYDOUBLECLK 37
1004 #define SM_CXICONSPACING 38
1005 #define SM_CYICONSPACING 39
1006 #define SM_MENUDROPALIGNMENT 40
1007 #define SM_PENWINDOWS 41
1008 #define SM_DBCSENABLED 42
1009 #define SM_CMOUSEBUTTONS 43
1010 #define SM_SECURE 44
1011 #define SM_CXEDGE 45
1012 #define SM_CYEDGE 46
1013 #define SM_CXMINSPACING 47
1014 #define SM_CYMINSPACING 48
1015 #define SM_CXSMICON 49
1016 #define SM_CYSMICON 50
1017 #define SM_CYSMCAPTION 51
1018 #define SM_CXSMSIZE 52
1019 #define SM_CYSMSIZE 53
1020 #define SM_CXMENUSIZE 54
1021 #define SM_CYMENUSIZE 55
1022 #define SM_ARRANGE 56
1023 #define SM_CXMINIMIZED 57
1024 #define SM_CYMINIMIZED 58
1025 #define SM_CXMAXTRACK 59
1026 #define SM_CYMAXTRACK 60
1027 #define SM_CXMAXIMIZED 61
1028 #define SM_CYMAXIMIZED 62
1029 #define SM_NETWORK 63
1030 #define SM_CLEANBOOT 67
1031 #define SM_CXDRAG 68
1032 #define SM_CYDRAG 69
1033 #define SM_SHOWSOUNDS 70
1034 #define SM_CXMENUCHECK 71
1035 #define SM_CYMENUCHECK 72
1036 #define SM_SLOWMACHINE 73
1037 #define SM_MIDEASTENABLED 74
1038 #define SM_MOUSEWHEELPRESENT 75
1039 #define SM_XVIRTUALSCREEN 76
1040 #define SM_YVIRTUALSCREEN 77
1041 #define SM_CXVIRTUALSCREEN 78
1042 #define SM_CYVIRTUALSCREEN 79
1043 #define SM_CMONITORS 80
1044 #define SM_SAMEDISPLAYFORMAT 81
1045 #if(_WIN32_WINNT >= 0x0500)
1046 #define SM_IMMENABLED 82
1047 #endif /* _WIN32_WINNT >= 0x0500 */
1048 #if (_WIN32_WINNT >= 0x0501)
1049 #define SM_CXFOCUSBORDER 83
1050 #define SM_CYFOCUSBORDER 84
1051 #define SM_TABLETPC      86
1052 #define SM_MEDIACENTER   87
1053 #define SM_STARTER       88
1054 #define SM_SERVERR2      89
1055 #endif /* _WIN32_WINNT >= 0x0501 */
1056 #if (_WIN32_WINNT >= 0x0600)
1057 #define SM_MOUSEHORIZONTALWHEELPRESENT 91
1058 #define SM_CXPADDEDBORDER 92
1059 #endif /* _WIN32_WINNT >= 0x0600 */
1060 
1061 #define SM_REMOTESESSION 0x1000
1062 #if (_WIN32_WINNT >= 0x0501)
1063 #define SM_SHUTTINGDOWN 0x2000
1064 #define SM_REMOTECONTROL 0x2001
1065 #endif /* _WIN32_WINNT >= 0x0501 */
1066 
1067 #if (WINVER < 0x0500) && ((_WIN32_WINNT < 0x0400) || !defined(_WIN32_WINNT))
1068 #define SM_CMETRICS 76
1069 #elif (WINVER == 0x500)
1070 #define SM_CMETRICS 83
1071 #elif (WINVER == 0x501)
1072 #define SM_CMETRICS 90
1073 #else
1074 #define SM_CMETRICS 93
1075 #endif
1076 
1077 #define ARW_BOTTOMLEFT 0
1078 #define ARW_BOTTOMRIGHT 1
1079 #define ARW_HIDE 8
1080 #define ARW_TOPLEFT 2
1081 #define ARW_TOPRIGHT 3
1082 #define ARW_DOWN 4
1083 #define ARW_LEFT 0
1084 #define ARW_RIGHT 0
1085 #define ARW_UP 4
1086 #define UOI_FLAGS 1
1087 #define UOI_NAME 2
1088 #define UOI_TYPE 3
1089 #define UOI_USER_SID 4
1090 #define LR_DEFAULTCOLOR 0
1091 #define LR_MONOCHROME 1
1092 #define LR_COLOR 2
1093 #define LR_COPYRETURNORG 4
1094 #define LR_COPYDELETEORG 8
1095 #define LR_LOADFROMFILE 16
1096 #define LR_LOADTRANSPARENT 32
1097 #define LR_DEFAULTSIZE 64
1098 #define LR_LOADREALSIZE 128
1099 #define LR_VGACOLOR 128
1100 #define LR_LOADMAP3DCOLORS 4096
1101 #define LR_CREATEDIBSECTION 8192
1102 #define LR_COPYFROMRESOURCE 0x4000
1103 #define LR_SHARED 32768
1104 #define KEYEVENTF_EXTENDEDKEY 0x00000001
1105 #define KEYEVENTF_KEYUP 00000002
1106 #if (_WIN32_WINNT >= 0x0500)
1107 #define KEYEVENTF_UNICODE 0x00000004
1108 #define KEYEVENTF_SCANCODE 0x00000008
1109 #endif
1110 
1111 #ifdef OEMRESOURCE
1112 #define OBM_TRTYPE 32732
1113 #define OBM_LFARROWI 32734
1114 #define OBM_RGARROWI 32735
1115 #define OBM_DNARROWI 32736
1116 #define OBM_UPARROWI 32737
1117 #define OBM_COMBO 32738
1118 #define OBM_MNARROW 32739
1119 #define OBM_LFARROWD 32740
1120 #define OBM_RGARROWD 32741
1121 #define OBM_DNARROWD 32742
1122 #define OBM_UPARROWD 32743
1123 #define OBM_RESTORED 32744
1124 #define OBM_ZOOMD 32745
1125 #define OBM_REDUCED 32746
1126 #define OBM_RESTORE 32747
1127 #define OBM_ZOOM 32748
1128 #define OBM_REDUCE 32749
1129 #define OBM_LFARROW 32750
1130 #define OBM_RGARROW 32751
1131 #define OBM_DNARROW 32752
1132 #define OBM_UPARROW 32753
1133 #define OBM_CLOSE 32754
1134 #define OBM_OLD_RESTORE 32755
1135 #define OBM_OLD_ZOOM 32756
1136 #define OBM_OLD_REDUCE 32757
1137 #define OBM_BTNCORNERS 32758
1138 #define OBM_CHECKBOXES 32759
1139 #define OBM_CHECK 32760
1140 #define OBM_BTSIZE 32761
1141 #define OBM_OLD_LFARROW 32762
1142 #define OBM_OLD_RGARROW 32763
1143 #define OBM_OLD_DNARROW 32764
1144 #define OBM_OLD_UPARROW 32765
1145 #define OBM_SIZE 32766
1146 #define OBM_OLD_CLOSE 32767
1147 #define OCR_NORMAL 32512
1148 #define OCR_IBEAM 32513
1149 #define OCR_WAIT 32514
1150 #define OCR_CROSS 32515
1151 #define OCR_UP 32516
1152 #define OCR_SIZE 32640
1153 #define OCR_ICON 32641
1154 #define OCR_SIZENWSE 32642
1155 #define OCR_SIZENESW 32643
1156 #define OCR_SIZEWE 32644
1157 #define OCR_SIZENS 32645
1158 #define OCR_SIZEALL 32646
1159 #define OCR_NO 32648
1160 #define OCR_HAND 32649
1161 #define OCR_APPSTARTING 32650
1162 #define OCR_HELP 32651
1163 #define OIC_SAMPLE 32512
1164 #define OIC_HAND 32513
1165 #define OIC_QUES 32514
1166 #define OIC_BANG 32515
1167 #define OIC_NOTE 32516
1168 #define OIC_WINLOGO 32517
1169 #define OIC_WARNING OIC_BANG
1170 #define OIC_ERROR OIC_HAND
1171 #define OIC_INFORMATION OIC_NOTE
1172 #endif /* OEMRESOURCE */
1173 
1174 #define HELPINFO_MENUITEM 2
1175 #define HELPINFO_WINDOW 1
1176 #define MSGF_DIALOGBOX 0
1177 #define MSGF_MESSAGEBOX 1
1178 #define MSGF_MENU 2
1179 #define MSGF_MOVE 3
1180 #define MSGF_SIZE 4
1181 #define MSGF_SCROLLBAR 5
1182 #define MSGF_NEXTWINDOW 6
1183 #define MSGF_MAINLOOP 8
1184 #define MSGF_USER 4096
1185 #define MSGF_MAX  8
1186 #define MOUSEEVENTF_MOVE        0x0001
1187 #define MOUSEEVENTF_LEFTDOWN    0x0002
1188 #define MOUSEEVENTF_LEFTUP      0x0004
1189 #define MOUSEEVENTF_RIGHTDOWN   0x0008
1190 #define MOUSEEVENTF_RIGHTUP     0x0010
1191 #define MOUSEEVENTF_MIDDLEDOWN  0x0020
1192 #define MOUSEEVENTF_MIDDLEUP    0x0040
1193 #define MOUSEEVENTF_XDOWN       0x0080
1194 #define MOUSEEVENTF_XUP         0x0100
1195 #define MOUSEEVENTF_WHEEL       0x0800
1196 #define MOUSEEVENTF_VIRTUALDESK 0x4000
1197 #define MOUSEEVENTF_ABSOLUTE    0x8000
1198 #define PM_NOREMOVE 0
1199 #define PM_REMOVE 1
1200 #define PM_NOYIELD 2
1201 #if (WINVER >= 0x0500)
1202 # define PM_QS_INPUT (QS_INPUT << 16)
1203 # define PM_QS_POSTMESSAGE ((QS_POSTMESSAGE|QS_HOTKEY|QS_TIMER) << 16)
1204 # define PM_QS_PAINT (QS_PAINT << 16)
1205 # define PM_QS_SENDMESSAGE (QS_SENDMESSAGE << 16)
1206 #endif
1207 #define HWND_BROADCAST  ((HWND)0xffff)
1208 #define HWND_BOTTOM ((HWND)1)
1209 #define HWND_NOTOPMOST ((HWND)(-2))
1210 #define HWND_TOP ((HWND)0)
1211 #define HWND_TOPMOST ((HWND)(-1))
1212 #define HWND_DESKTOP (HWND)0
1213 #define HWND_MESSAGE ((HWND)(-3)) /* w2k */
1214 #define RDW_ERASE 4
1215 #define RDW_FRAME 1024
1216 #define RDW_INTERNALPAINT 2
1217 #define RDW_INVALIDATE 1
1218 #define RDW_NOERASE 32
1219 #define RDW_NOFRAME 2048
1220 #define RDW_NOINTERNALPAINT 16
1221 #define RDW_VALIDATE 8
1222 #define RDW_ERASENOW 512
1223 #define RDW_UPDATENOW 256
1224 #define RDW_ALLCHILDREN 128
1225 #define RDW_NOCHILDREN 64
1226 #define SMTO_ABORTIFHUNG 2
1227 #define SMTO_BLOCK 1
1228 #define SMTO_NORMAL 0
1229 #if (WINVER >= 0x0500)
1230 #define SMTO_NOTIMEOUTIFNOTHUNG 8
1231 #endif
1232 #if (WINVER >= 0x0600)
1233 #define SMTO_ERRORONEXIT 32
1234 #endif
1235 #define SIF_ALL 23
1236 #define SIF_PAGE 2
1237 #define SIF_POS 4
1238 #define SIF_RANGE 1
1239 #define SIF_DISABLENOSCROLL 8
1240 #define SIF_TRACKPOS   16
1241 #define SIF_THEMED 128      /* REACTOS Specific Only */
1242 #define SWP_DRAWFRAME 32
1243 #define SWP_FRAMECHANGED 32
1244 #define SWP_HIDEWINDOW 128
1245 #define SWP_NOACTIVATE 16
1246 #define SWP_NOCOPYBITS 256
1247 #define SWP_NOMOVE 2
1248 #define SWP_NOSIZE 1
1249 #define SWP_NOREDRAW 8
1250 #define SWP_NOZORDER 4
1251 #define SWP_SHOWWINDOW 64
1252 #define SWP_NOOWNERZORDER 512
1253 #define SWP_NOREPOSITION 512
1254 #define SWP_NOSENDCHANGING 1024
1255 #define SWP_DEFERERASE 8192
1256 #define SWP_ASYNCWINDOWPOS  16384
1257 
1258 #define HSHELL_WINDOWCREATED 1
1259 #define HSHELL_WINDOWDESTROYED 2
1260 #define HSHELL_ACTIVATESHELLWINDOW 3
1261 #if(WINVER >= 0x0400)
1262 #define HSHELL_WINDOWACTIVATED 4
1263 #define HSHELL_GETMINRECT 5
1264 #define HSHELL_REDRAW 6
1265 #define HSHELL_TASKMAN 7
1266 #define HSHELL_LANGUAGE 8
1267 #define HSHELL_SYSMENU  9
1268 #define HSHELL_ENDTASK  10
1269 #endif /* WINVER >= 0x0400 */
1270 #if(_WIN32_WINNT >= 0x0500)
1271 #define HSHELL_ACCESSIBILITYSTATE 11
1272 #define ACCESS_STICKYKEYS 0x01
1273 #define ACCESS_FILTERKEYS 0x02
1274 #define ACCESS_MOUSEKEYS 0x03
1275 #define HSHELL_APPCOMMAND 12
1276 #endif /* _WIN32_WINNT >= 0x0500 */
1277 #if(_WIN32_WINNT >= 0x0501)
1278 #define HSHELL_WINDOWREPLACED 13
1279 #define HSHELL_WINDOWREPLACING 14
1280 #endif /* _WIN32_WINNT >= 0x0501 */
1281 
1282 #define HSHELL_HIGHBIT          0x8000
1283 #define HSHELL_FLASH            (HSHELL_REDRAW|HSHELL_HIGHBIT)
1284 #define HSHELL_RUDEAPPACTIVATED (HSHELL_WINDOWACTIVATED|HSHELL_HIGHBIT)
1285 
1286 #if(_WIN32_WINNT >= 0x0500)
1287 #define APPCOMMAND_BROWSER_BACKWARD 1
1288 #define APPCOMMAND_BROWSER_FORWARD 2
1289 #define APPCOMMAND_BROWSER_REFRESH 3
1290 #define APPCOMMAND_BROWSER_STOP 4
1291 #define APPCOMMAND_BROWSER_SEARCH 5
1292 #define APPCOMMAND_BROWSER_FAVORITES 6
1293 #define APPCOMMAND_BROWSER_HOME 7
1294 #define APPCOMMAND_VOLUME_MUTE 8
1295 #define APPCOMMAND_VOLUME_DOWN 9
1296 #define APPCOMMAND_VOLUME_UP 10
1297 #define APPCOMMAND_MEDIA_NEXTTRACK 11
1298 #define APPCOMMAND_MEDIA_PREVIOUSTRACK 12
1299 #define APPCOMMAND_MEDIA_STOP 13
1300 #define APPCOMMAND_MEDIA_PLAY_PAUSE 14
1301 #define APPCOMMAND_LAUNCH_MAIL 15
1302 #define APPCOMMAND_LAUNCH_MEDIA_SELECT 16
1303 #define APPCOMMAND_LAUNCH_APP1 17
1304 #define APPCOMMAND_LAUNCH_APP2 18
1305 #define APPCOMMAND_BASS_DOWN 19
1306 #define APPCOMMAND_BASS_BOOST 20
1307 #define APPCOMMAND_BASS_UP 21
1308 #define APPCOMMAND_TREBLE_DOWN 22
1309 #define APPCOMMAND_TREBLE_UP 23
1310 #if( _WIN32_WINNT >= 0x0501 )
1311 #define APPCOMMAND_MICROPHONE_VOLUME_MUTE 24
1312 #define APPCOMMAND_MICROPHONE_VOLUME_DOWN 25
1313 #define APPCOMMAND_MICROPHONE_VOLUME_UP 26
1314 #define APPCOMMAND_HELP 27
1315 #define APPCOMMAND_FIND 28
1316 #define APPCOMMAND_NEW 29
1317 #define APPCOMMAND_OPEN 30
1318 #define APPCOMMAND_CLOSE 31
1319 #define APPCOMMAND_SAVE 32
1320 #define APPCOMMAND_PRINT 33
1321 #define APPCOMMAND_UNDO 34
1322 #define APPCOMMAND_REDO 35
1323 #define APPCOMMAND_COPY 36
1324 #define APPCOMMAND_CUT 37
1325 #define APPCOMMAND_PASTE 38
1326 #define APPCOMMAND_REPLY_TO_MAIL 39
1327 #define APPCOMMAND_FORWARD_MAIL 40
1328 #define APPCOMMAND_SEND_MAIL 41
1329 #define APPCOMMAND_SPELL_CHECK 42
1330 #define APPCOMMAND_DICTATE_OR_COMMAND_CONTROL_TOGGLE 43
1331 #define APPCOMMAND_MIC_ON_OFF_TOGGLE 44
1332 #define APPCOMMAND_CORRECTION_LIST 45
1333 #define APPCOMMAND_MEDIA_PLAY 46
1334 #define APPCOMMAND_MEDIA_PAUSE 47
1335 #define APPCOMMAND_MEDIA_RECORD 48
1336 #define APPCOMMAND_MEDIA_FAST_FORWARD 49
1337 #define APPCOMMAND_MEDIA_REWIND 50
1338 #define APPCOMMAND_MEDIA_CHANNEL_UP 51
1339 #define APPCOMMAND_MEDIA_CHANNEL_DOWN 52
1340 #endif /* _WIN32_WINNT >= 0x0501 */
1341 
1342 #define FAPPCOMMAND_MOUSE   0x8000
1343 #define FAPPCOMMAND_KEY 0
1344 #define FAPPCOMMAND_OEM 0x1000
1345 #define FAPPCOMMAND_MASK    0xf000
1346 
1347 #define GET_APPCOMMAND_LPARAM(lParam)   ((SHORT)(HIWORD(lParam) & ~FAPPCOMMAND_MASK))
1348 #define GET_DEVICE_LPARAM(lParam)   ((WORD)(HIWORD(lParam) & FAPPCOMMAND_MASK))
1349 #define GET_MOUSEORKEY_LPARAM   GET_DEVICE_LPARAM
1350 #define GET_FLAGS_LPARAM(lParam)    (LOWORD(lParam))
1351 #define GET_KEYSTATE_LPARAM(lParam) GET_FLAGS_LPARAM(lParam)
1352 #endif
1353 
1354 
1355 
1356 #define SPI_GETBEEP 0x0001
1357 #define SPI_SETBEEP 0x0002
1358 #define SPI_GETMOUSE 0x0003
1359 #define SPI_SETMOUSE 0x0004
1360 #define SPI_GETBORDER 0x0005
1361 #define SPI_SETBORDER 0x0006
1362 #define SPI_GETKEYBOARDSPEED 0x000A
1363 #define SPI_SETKEYBOARDSPEED 0x000B
1364 #define SPI_LANGDRIVER 0x000C
1365 #define SPI_ICONHORIZONTALSPACING 0x000D
1366 #define SPI_GETSCREENSAVETIMEOUT 0x000E
1367 #define SPI_SETSCREENSAVETIMEOUT 0x000F
1368 #define SPI_GETSCREENSAVEACTIVE 0x0010
1369 #define SPI_SETSCREENSAVEACTIVE 0x0011
1370 #define SPI_GETGRIDGRANULARITY 0x0012
1371 #define SPI_SETGRIDGRANULARITY 0x0013
1372 #define SPI_SETDESKWALLPAPER 0x0014
1373 #define SPI_SETDESKPATTERN 0x0015
1374 #define SPI_GETKEYBOARDDELAY 0x0016
1375 #define SPI_SETKEYBOARDDELAY 0x0017
1376 #define SPI_ICONVERTICALSPACING 0x0018
1377 #define SPI_GETICONTITLEWRAP 0x0019
1378 #define SPI_SETICONTITLEWRAP 0x001A
1379 #define SPI_GETMENUDROPALIGNMENT 0x001B
1380 #define SPI_SETMENUDROPALIGNMENT 0x001C
1381 #define SPI_SETDOUBLECLKWIDTH 0x001D
1382 #define SPI_SETDOUBLECLKHEIGHT 0x001E
1383 #define SPI_GETICONTITLELOGFONT 0x001F
1384 #define SPI_SETDOUBLECLICKTIME 0x0020
1385 #define SPI_SETMOUSEBUTTONSWAP 0x0021
1386 #define SPI_SETICONTITLELOGFONT 0x0022
1387 #define SPI_GETFASTTASKSWITCH 0x0023
1388 #define SPI_SETFASTTASKSWITCH 0x0024
1389 #if(WINVER >= 0x0400)
1390     #define SPI_SETDRAGFULLWINDOWS 0x0025
1391     #define SPI_GETDRAGFULLWINDOWS 0x0026
1392     #define SPI_GETNONCLIENTMETRICS 0x0029
1393     #define SPI_SETNONCLIENTMETRICS 0x002A
1394     #define SPI_GETMINIMIZEDMETRICS 0x002B
1395     #define SPI_SETMINIMIZEDMETRICS 0x002C
1396     #define SPI_GETICONMETRICS 0x002D
1397     #define SPI_SETICONMETRICS 0x002E
1398     #define SPI_SETWORKAREA 0x002F
1399     #define SPI_GETWORKAREA 0x0030
1400     #define SPI_SETPENWINDOWS 0x0031
1401 #endif
1402 #define SPI_GETFILTERKEYS 0x0032
1403 #define SPI_SETFILTERKEYS 0x0033
1404 #define SPI_GETTOGGLEKEYS 0x0034
1405 #define SPI_SETTOGGLEKEYS 0x0035
1406 #define SPI_GETMOUSEKEYS 0x0036
1407 #define SPI_SETMOUSEKEYS 0x0037
1408 #define SPI_GETSHOWSOUNDS 0x0038
1409 #define SPI_SETSHOWSOUNDS 0x0039
1410 #define SPI_GETSTICKYKEYS 0x003A
1411 #define SPI_SETSTICKYKEYS 0x003B
1412 #define SPI_GETACCESSTIMEOUT 0x003C
1413 #define SPI_SETACCESSTIMEOUT 0x003D
1414 #if(WINVER >= 0x0400)
1415     #define SPI_GETSERIALKEYS 0x003E
1416     #define SPI_SETSERIALKEYS 0x003F
1417 #endif
1418 #define SPI_GETSOUNDSENTRY 0x0040
1419 #define SPI_SETSOUNDSENTRY 0x0041
1420 #if(WINVER >= 0x0400)
1421     #define SPI_GETHIGHCONTRAST 0x0042
1422     #define SPI_SETHIGHCONTRAST 0x0043
1423     #define SPI_GETKEYBOARDPREF 0x0044
1424     #define SPI_SETKEYBOARDPREF 0x0045
1425     #define SPI_GETSCREENREADER 0x0046
1426     #define SPI_SETSCREENREADER 0x0047
1427     #define SPI_GETANIMATION 0x0048
1428     #define SPI_SETANIMATION 0x0049
1429     #define SPI_GETFONTSMOOTHING 0x004A
1430     #define SPI_SETFONTSMOOTHING 0x004B
1431     #define SPI_SETDRAGWIDTH 0x004C
1432     #define SPI_SETDRAGHEIGHT 0x004D
1433     #define SPI_SETHANDHELD 0x004E
1434     #define SPI_GETLOWPOWERTIMEOUT 0x004F
1435     #define SPI_GETPOWEROFFTIMEOUT 0x0050
1436     #define SPI_SETLOWPOWERTIMEOUT 0x0051
1437     #define SPI_SETPOWEROFFTIMEOUT 0x0052
1438     #define SPI_GETLOWPOWERACTIVE 0x0053
1439     #define SPI_GETPOWEROFFACTIVE 0x0054
1440     #define SPI_SETLOWPOWERACTIVE 0x0055
1441     #define SPI_SETPOWEROFFACTIVE 0x0056
1442     #define SPI_SETCURSORS 0x0057
1443     #define SPI_SETICONS 0x0058
1444     #define SPI_GETDEFAULTINPUTLANG 0x0059
1445     #define SPI_SETDEFAULTINPUTLANG 0x005A
1446     #define SPI_SETLANGTOGGLE 0x005B
1447     #define SPI_GETWINDOWSEXTENSION 0x005C
1448     #define SPI_SETMOUSETRAILS 0x005D
1449     #define SPI_GETMOUSETRAILS 0x005E
1450 #endif
1451 #if(_WIN32_WINNT >= 0x0400)
1452     #define SPI_GETSNAPTODEFBUTTON 0x005F
1453     #define SPI_SETSNAPTODEFBUTTON 0x0060
1454 #endif
1455 #if(WINVER >= 0x0400)
1456     #define SPI_SCREENSAVERRUNNING 0x0061
1457     #define SPI_SETSCREENSAVERRUNNING SPI_SCREENSAVERRUNNING
1458 #endif
1459 #if (_WIN32_WINNT >= 0x0400) || (_WIN32_WINDOWS > 0x0400)
1460     #define SPI_GETMOUSEHOVERWIDTH 0x0062
1461     #define SPI_SETMOUSEHOVERWIDTH 0x0063
1462     #define SPI_GETMOUSEHOVERHEIGHT 0x0064
1463     #define SPI_SETMOUSEHOVERHEIGHT 0x0065
1464     #define SPI_GETMOUSEHOVERTIME 0x0066
1465     #define SPI_SETMOUSEHOVERTIME 0x0067
1466     #define SPI_GETWHEELSCROLLLINES 0x0068
1467     #define SPI_SETWHEELSCROLLLINES 0x0069
1468     #define SPI_GETMENUSHOWDELAY 0x006A
1469     #define SPI_SETMENUSHOWDELAY 0x006B
1470     #if (_WIN32_WINNT >= 0x0600)
1471         #define SPI_GETWHEELSCROLLCHARS 0x006C
1472         #define SPI_SETWHEELSCROLLCHARS 0x006D
1473     #endif
1474     #define SPI_GETSHOWIMEUI 0x006E
1475     #define SPI_SETSHOWIMEUI 0x006F
1476 #endif
1477 #if(WINVER >= 0x0500)
1478     #define SPI_GETMOUSESPEED 0x0070
1479     #define SPI_SETMOUSESPEED 0x0071
1480     #define SPI_GETSCREENSAVERRUNNING 0x0072
1481     #define SPI_GETDESKWALLPAPER 0x0073
1482 #endif
1483 #if(WINVER >= 0x0600)
1484     #define SPI_GETAUDIODESCRIPTION 0x0074
1485     #define SPI_SETAUDIODESCRIPTION 0x0075
1486     #define SPI_GETSCREENSAVESECURE 0x0076
1487     #define SPI_SETSCREENSAVESECURE 0x0077
1488 #endif
1489 #if(WINVER >= 0x0500)
1490     #define SPI_GETACTIVEWINDOWTRACKING 0x1000
1491     #define SPI_SETACTIVEWINDOWTRACKING 0x1001
1492     #define SPI_GETMENUANIMATION 0x1002
1493     #define SPI_SETMENUANIMATION 0x1003
1494     #define SPI_GETCOMBOBOXANIMATION 0x1004
1495     #define SPI_SETCOMBOBOXANIMATION 0x1005
1496     #define SPI_GETLISTBOXSMOOTHSCROLLING 0x1006
1497     #define SPI_SETLISTBOXSMOOTHSCROLLING 0x1007
1498     #define SPI_GETGRADIENTCAPTIONS 0x1008
1499     #define SPI_SETGRADIENTCAPTIONS 0x1009
1500     #define SPI_GETKEYBOARDCUES 0x100A
1501     #define SPI_SETKEYBOARDCUES 0x100B
1502     #define SPI_GETMENUUNDERLINES SPI_GETKEYBOARDCUES
1503     #define SPI_SETMENUUNDERLINES SPI_SETKEYBOARDCUES
1504     #define SPI_GETACTIVEWNDTRKZORDER 0x100C
1505     #define SPI_SETACTIVEWNDTRKZORDER 0x100D
1506     #define SPI_GETHOTTRACKING 0x100E
1507     #define SPI_SETHOTTRACKING 0x100F
1508     #define SPI_GETMENUFADE 0x1012
1509     #define SPI_SETMENUFADE 0x1013
1510     #define SPI_GETSELECTIONFADE 0x1014
1511     #define SPI_SETSELECTIONFADE 0x1015
1512     #define SPI_GETTOOLTIPANIMATION 0x1016
1513     #define SPI_SETTOOLTIPANIMATION 0x1017
1514     #define SPI_GETTOOLTIPFADE 0x1018
1515     #define SPI_SETTOOLTIPFADE 0x1019
1516     #define SPI_GETCURSORSHADOW 0x101A
1517     #define SPI_SETCURSORSHADOW 0x101B
1518     #if(_WIN32_WINNT >= 0x0501)
1519         #define SPI_GETMOUSESONAR 0x101C
1520         #define SPI_SETMOUSESONAR 0x101D
1521         #define SPI_GETMOUSECLICKLOCK 0x101E
1522         #define SPI_SETMOUSECLICKLOCK 0x101F
1523         #define SPI_GETMOUSEVANISH 0x1020
1524         #define SPI_SETMOUSEVANISH 0x1021
1525         #define SPI_GETFLATMENU 0x1022
1526         #define SPI_SETFLATMENU 0x1023
1527         #define SPI_GETDROPSHADOW 0x1024
1528         #define SPI_SETDROPSHADOW 0x1025
1529         #define SPI_GETBLOCKSENDINPUTRESETS 0x1026
1530         #define SPI_SETBLOCKSENDINPUTRESETS 0x1027
1531     #endif
1532     #define SPI_GETUIEFFECTS 0x103E
1533     #define SPI_SETUIEFFECTS 0x103F
1534     #if(_WIN32_WINNT >= 0x0600)
1535         #define SPI_GETDISABLEOVERLAPPEDCONTENT 0x1040
1536         #define SPI_SETDISABLEOVERLAPPEDCONTENT 0x1041
1537         #define SPI_GETCLIENTAREAANIMATION 0x1042
1538         #define SPI_SETCLIENTAREAANIMATION 0x1043
1539         #define SPI_GETCLEARTYPE 0x1048
1540         #define SPI_SETCLEARTYPE 0x1049
1541         #define SPI_GETSPEECHRECOGNITION 0x104A
1542         #define SPI_SETSPEECHRECOGNITION 0x104B
1543     #endif
1544     #define SPI_GETFOREGROUNDLOCKTIMEOUT 0x2000
1545     #define SPI_SETFOREGROUNDLOCKTIMEOUT 0x2001
1546     #define SPI_GETACTIVEWNDTRKTIMEOUT 0x2002
1547     #define SPI_SETACTIVEWNDTRKTIMEOUT 0x2003
1548     #define SPI_GETFOREGROUNDFLASHCOUNT 0x2004
1549     #define SPI_SETFOREGROUNDFLASHCOUNT 0x2005
1550     #define SPI_GETCARETWIDTH 0x2006
1551     #define SPI_SETCARETWIDTH 0x2007
1552     #if(_WIN32_WINNT >= 0x0501)
1553         #define SPI_GETMOUSECLICKLOCKTIME 0x2008
1554         #define SPI_SETMOUSECLICKLOCKTIME 0x2009
1555         #define SPI_GETFONTSMOOTHINGTYPE 0x200A
1556         #define SPI_SETFONTSMOOTHINGTYPE 0x200B
1557         #define SPI_GETFONTSMOOTHINGCONTRAST 0x200C
1558         #define SPI_SETFONTSMOOTHINGCONTRAST 0x200D
1559         #define SPI_GETFOCUSBORDERWIDTH 0x200E
1560         #define SPI_SETFOCUSBORDERWIDTH 0x200F
1561         #define SPI_GETFOCUSBORDERHEIGHT 0x2010
1562         #define SPI_SETFOCUSBORDERHEIGHT 0x2011
1563         #define SPI_GETFONTSMOOTHINGORIENTATION 0x2012
1564         #define SPI_SETFONTSMOOTHINGORIENTATION 0x2013
1565 
1566         #define FE_FONTSMOOTHINGSTANDARD 0x0001
1567         #define FE_FONTSMOOTHINGCLEARTYPE 0x0002
1568         #define FE_FONTSMOOTHINGDOCKING 0x8000
1569         #define FE_FONTSMOOTHINGORIENTATIONBGR 0x0000
1570         #define FE_FONTSMOOTHINGORIENTATIONRGB 0x0001
1571     #endif
1572 #endif
1573 
1574 #define SPIF_UPDATEINIFILE 1
1575 #define SPIF_SENDCHANGE 2
1576 #define SPIF_SENDWININICHANGE SPIF_SENDCHANGE
1577 #define ATF_ONOFFFEEDBACK 2
1578 #define ATF_TIMEOUTON 1
1579 
1580 #if (WINVER >= 0x0500)
1581 #define UIS_SET 1
1582 #define UIS_CLEAR 2
1583 #define UIS_INITIALIZE 3
1584 
1585 #define UISF_HIDEFOCUS 0x1
1586 #define UISF_HIDEACCEL 0x2
1587 #if (WINVER >= 0x0501)
1588 #define UISF_ACTIVE 0x4
1589 #endif
1590 
1591 #endif
1592 
1593 #define PBT_APMQUERYSUSPEND 0x0000
1594 #define PBT_APMQUERYSTANDBY 0x0001
1595 #define PBT_APMQUERYSUSPENDFAILED 0x0002
1596 #define PBT_APMQUERYSTANDBYFAILED 0x0003
1597 #define PBT_APMSUSPEND 0x0004
1598 #define PBT_APMSTANDBY 0x0005
1599 #define PBT_APMRESUMECRITICAL 0x0006
1600 #define PBT_APMRESUMESUSPEND 0x0007
1601 #define PBT_APMRESUMESTANDBY 0x0008
1602 #define PBTF_APMRESUMEFROMFAILURE 0x00000001
1603 #define PBT_APMBATTERYLOW 0x0009
1604 #define PBT_APMPOWERSTATUSCHANGE 0x000A
1605 #define PBT_APMOEMEVENT 0x000B
1606 #define PBT_APMRESUMEAUTOMATIC 0x0012
1607 
1608 
1609 /* Window messages */
1610 #define WM_NULL 0
1611 #define WM_CREATE 1
1612 #define WM_DESTROY 2
1613 #define WM_MOVE 3
1614 #define WM_SIZE 5
1615 #define WM_ACTIVATE 6
1616 #define WM_SETFOCUS 7
1617 #define WM_KILLFOCUS 8
1618 #define WM_ENABLE 10
1619 #define WM_SETREDRAW 11
1620 #define WM_SETTEXT 12
1621 #define WM_GETTEXT 13
1622 #define WM_GETTEXTLENGTH 14
1623 #define WM_PAINT 15
1624 #define WM_CLOSE 16
1625 #define WM_QUERYENDSESSION 17
1626 #define WM_QUIT 18
1627 #define WM_QUERYOPEN 19
1628 #define WM_ERASEBKGND 20
1629 #define WM_SYSCOLORCHANGE 21
1630 #define WM_ENDSESSION 22
1631 #define WM_SHOWWINDOW 24
1632 #define WM_SETTINGCHANGE 26
1633 #define WM_WININICHANGE 26
1634 #define WM_DEVMODECHANGE 27
1635 #define WM_ACTIVATEAPP 28
1636 #define WM_FONTCHANGE 29
1637 #define WM_TIMECHANGE 30
1638 #define WM_CANCELMODE 31
1639 #define WM_SETCURSOR 32
1640 #define WM_MOUSEACTIVATE 33
1641 #define WM_CHILDACTIVATE 34
1642 #define WM_QUEUESYNC 35
1643 #define WM_GETMINMAXINFO 36
1644 #define WM_PAINTICON 38
1645 #define WM_ICONERASEBKGND 39
1646 #define WM_NEXTDLGCTL 40
1647 #define WM_SPOOLERSTATUS 42
1648 #define WM_DRAWITEM 43
1649 #define WM_MEASUREITEM 44
1650 #define WM_DELETEITEM 45
1651 #define WM_VKEYTOITEM 46
1652 #define WM_CHARTOITEM 47
1653 #define WM_SETFONT 48
1654 #define WM_GETFONT 49
1655 #define WM_SETHOTKEY 50
1656 #define WM_GETHOTKEY 51
1657 #define WM_QUERYDRAGICON 55
1658 #define WM_COMPAREITEM 57
1659 #if (WINVER >= 0x0500)
1660 #define WM_GETOBJECT 61
1661 #endif /* (WINVER >= 0x0500) */
1662 #define WM_COMPACTING 65
1663 #define WM_COMMNOTIFY 68		/* obsolete */
1664 #define WM_WINDOWPOSCHANGING 70
1665 #define WM_WINDOWPOSCHANGED 71
1666 #define WM_POWER 72
1667 #define WM_COPYDATA 74
1668 #define WM_CANCELJOURNAL 75
1669 
1670 #if (WINVER >= 0x0400)
1671 #define WM_NOTIFY 78
1672 #define WM_INPUTLANGCHANGEREQUEST 80
1673 #define WM_INPUTLANGCHANGE 81
1674 #define WM_TCARD 82
1675 #define WM_HELP 83
1676 #define WM_USERCHANGED 84
1677 #define WM_NOTIFYFORMAT 85
1678 #define WM_CONTEXTMENU 123
1679 #define WM_STYLECHANGING 124
1680 #define WM_STYLECHANGED 125
1681 #define WM_DISPLAYCHANGE 126
1682 #define WM_GETICON 127
1683 #define WM_SETICON 128
1684 #endif /* (WINVER >= 0x0400) */
1685 
1686 #define WM_NCCREATE 129
1687 #define WM_NCDESTROY 130
1688 #define WM_NCCALCSIZE 131
1689 #define WM_NCHITTEST 132
1690 #define WM_NCPAINT 133
1691 #define WM_NCACTIVATE 134
1692 #define WM_GETDLGCODE 135
1693 #define WM_SYNCPAINT  136
1694 #define WM_NCMOUSEMOVE 160
1695 #define WM_NCLBUTTONDOWN 161
1696 #define WM_NCLBUTTONUP 162
1697 #define WM_NCLBUTTONDBLCLK 163
1698 #define WM_NCRBUTTONDOWN 164
1699 #define WM_NCRBUTTONUP 165
1700 #define WM_NCRBUTTONDBLCLK 166
1701 #define WM_NCMBUTTONDOWN 167
1702 #define WM_NCMBUTTONUP 168
1703 #define WM_NCMBUTTONDBLCLK 169
1704 
1705 #if (_WIN32_WINNT >= 0x0500)
1706 #define WM_NCXBUTTONDOWN 171
1707 #define WM_NCXBUTTONUP 172
1708 #define WM_NCXBUTTONDBLCLK 173
1709 #endif /* (_WIN32_WINNT >= 0x0500) */
1710 
1711 #define GIDC_ARRIVAL 1
1712 #define GIDC_REMOVAL 2
1713 
1714 #define WM_INPUT_DEVICE_CHANGE 254
1715 #define WM_INPUT 255
1716 
1717 #define WM_KEYFIRST 256
1718 #define WM_KEYDOWN 256
1719 #define WM_KEYUP 257
1720 #define WM_CHAR 258
1721 #define WM_DEADCHAR 259
1722 #define WM_SYSKEYDOWN 260
1723 #define WM_SYSKEYUP 261
1724 #define WM_SYSCHAR 262
1725 #define WM_SYSDEADCHAR 263
1726 #if(_WIN32_WINNT >= 0x0501)
1727 #define WM_UNICHAR 0x0109
1728 #define WM_KEYLAST WM_UNICHAR
1729 #define UNICODE_NOCHAR 0xffff
1730 #else
1731 #define WM_KEYLAST 264
1732 #endif
1733 
1734 /* Win32 4.0 messages for IME */
1735 #if (WINVER >= 0x0400)
1736 #define WM_IME_STARTCOMPOSITION     0x010d
1737 #define WM_IME_ENDCOMPOSITION       0x010e
1738 #define WM_IME_COMPOSITION          0x010f
1739 #define WM_IME_KEYLAST              0x010f
1740 #endif /* (WINVER >= 0x0400) */
1741 
1742 #define WM_INITDIALOG 272
1743 #define WM_COMMAND 273
1744 #define WM_SYSCOMMAND 274
1745 #define WM_TIMER 275
1746 #define WM_HSCROLL 276
1747 #define WM_VSCROLL 277
1748 #define WM_INITMENU 278
1749 #define WM_INITMENUPOPUP 279
1750 #define WM_MENUSELECT 287
1751 #define WM_MENUCHAR 288
1752 #define WM_ENTERIDLE 289
1753 
1754 #if (WINVER >= 0x0500)
1755 #ifndef _WIN32_WCE
1756 #define WM_MENURBUTTONUP 290
1757 #define WM_MENUDRAG 291
1758 #define WM_MENUGETOBJECT 292
1759 #define WM_UNINITMENUPOPUP 293
1760 #define WM_MENUCOMMAND 294
1761 #if(_WIN32_WINNT >= 0x0500)
1762 #define WM_CHANGEUISTATE 295
1763 #define WM_UPDATEUISTATE 296
1764 #define WM_QUERYUISTATE 297
1765 #endif /* _WIN32_WINNT >= 0x0500 */
1766 #endif /* _WIN32_WCE */
1767 #endif /* (WINVER >= 0x0500) */
1768 
1769 #define WM_CTLCOLORMSGBOX 306
1770 #define WM_CTLCOLOREDIT 307
1771 #define WM_CTLCOLORLISTBOX 308
1772 #define WM_CTLCOLORBTN 309
1773 #define WM_CTLCOLORDLG 310
1774 #define WM_CTLCOLORSCROLLBAR 311
1775 #define WM_CTLCOLORSTATIC 312
1776 #define MN_GETHMENU 481
1777 #define WM_MOUSEFIRST 512
1778 #define WM_MOUSEMOVE 512
1779 #define WM_LBUTTONDOWN 513
1780 #define WM_LBUTTONUP 514
1781 #define WM_LBUTTONDBLCLK 515
1782 #define WM_RBUTTONDOWN 516
1783 #define WM_RBUTTONUP 517
1784 #define WM_RBUTTONDBLCLK 518
1785 #define WM_MBUTTONDOWN 519
1786 #define WM_MBUTTONUP 520
1787 #define WM_MBUTTONDBLCLK 521
1788 #if (_WIN32_WINNT >= 0x0400) || (_WIN32_WINDOWS > 0x0400)
1789 #define WM_MOUSEWHEEL 522
1790 #endif
1791 #if (_WIN32_WINNT >= 0x0500)
1792 #define WM_XBUTTONDOWN 523
1793 #define WM_XBUTTONUP 524
1794 #define WM_XBUTTONDBLCLK 525
1795 #endif
1796 #if (_WIN32_WINNT >= 0x0600)
1797 #define WM_MOUSEHWHEEL 526
1798 #endif
1799 #if (_WIN32_WINNT >= 0x0500)
1800 #define WM_MOUSELAST 525
1801 #elif (_WIN32_WINNT >= 0x0400) || (_WIN32_WINDOWS > 0x0400)
1802 #define WM_MOUSELAST 522
1803 #else
1804 #define WM_MOUSELAST 521
1805 #endif
1806 #define WM_PARENTNOTIFY 528
1807 #define WM_ENTERMENULOOP 529
1808 #define WM_EXITMENULOOP 530
1809 #define WM_NEXTMENU 531
1810 #define WM_SIZING 532
1811 #define WM_CAPTURECHANGED 533
1812 #define WM_MOVING 534
1813 #define WM_POWERBROADCAST 536
1814 #define WM_DEVICECHANGE 537
1815 #define WM_MDICREATE 544
1816 #define WM_MDIDESTROY 545
1817 #define WM_MDIACTIVATE 546
1818 #define WM_MDIRESTORE 547
1819 #define WM_MDINEXT 548
1820 #define WM_MDIMAXIMIZE 549
1821 #define WM_MDITILE 550
1822 #define WM_MDICASCADE 551
1823 #define WM_MDIICONARRANGE 552
1824 #define WM_MDIGETACTIVE 553
1825 #define WM_MDISETMENU 560
1826 #define WM_ENTERSIZEMOVE 561
1827 #define WM_EXITSIZEMOVE 562
1828 #define WM_DROPFILES 563
1829 #define WM_MDIREFRESHMENU 564
1830 
1831 /* Win32 4.0 messages for IME */
1832 #define WM_IME_SETCONTEXT           0x0281
1833 #define WM_IME_NOTIFY               0x0282
1834 #define WM_IME_CONTROL              0x0283
1835 #define WM_IME_COMPOSITIONFULL      0x0284
1836 #define WM_IME_SELECT               0x0285
1837 #define WM_IME_CHAR                 0x0286
1838 /* Win32 5.0 messages for IME */
1839 #define WM_IME_REQUEST              0x0288
1840 /* Win32 4.0 messages for IME */
1841 #define WM_IME_KEYDOWN              0x0290
1842 #define WM_IME_KEYUP                0x0291
1843 
1844 #define WM_NCMOUSEHOVER             0x02A0
1845 #define WM_NCMOUSELEAVE             0x02A2
1846 #define WM_MOUSEHOVER               0x02A1
1847 #define WM_MOUSELEAVE               0x02A3
1848 
1849 #if (_WIN32_WINNT >= 0x0501)
1850 #define WTS_CONSOLE_CONNECT 0x1
1851 #define WTS_CONSOLE_DISCONNECT 0x2
1852 #define WTS_REMOTE_CONNECT 0x3
1853 #define WTS_REMOTE_DISCONNECT 0x4
1854 #define WTS_SESSION_LOGON 0x5
1855 #define WTS_SESSION_LOGOFF 0x6
1856 #define WTS_SESSION_LOCK 0x7
1857 #define WTS_SESSION_UNLOCK 0x8
1858 #define WTS_SESSION_REMOTE_CONTROL 0x9
1859 #define WTS_SESSION_CREATE 0xA
1860 #define WTS_SESSION_TERMINATE 0xB
1861 #define WM_WTSSESSION_CHANGE 0x02B1
1862 #endif
1863 
1864 #define WM_CUT 768
1865 #define WM_COPY 769
1866 #define WM_PASTE 770
1867 #define WM_CLEAR 771
1868 #define WM_UNDO 772
1869 #define WM_RENDERFORMAT 773
1870 #define WM_RENDERALLFORMATS 774
1871 #define WM_DESTROYCLIPBOARD 775
1872 #define WM_DRAWCLIPBOARD 776
1873 #define WM_PAINTCLIPBOARD 777
1874 #define WM_VSCROLLCLIPBOARD 778
1875 #define WM_SIZECLIPBOARD 779
1876 #define WM_ASKCBFORMATNAME 780
1877 #define WM_CHANGECBCHAIN 781
1878 #define WM_HSCROLLCLIPBOARD 782
1879 #define WM_PALETTEISCHANGING 784
1880 #define WM_PALETTECHANGED 785
1881 #define WM_QUERYNEWPALETTE 783
1882 #define WM_HOTKEY 786
1883 #define WM_PRINT 791
1884 #define WM_PRINTCLIENT 792
1885 #define WM_APPCOMMAND 793
1886 
1887 #define WM_DWMCOMPOSITIONCHANGED 0x031E
1888 #define WM_DWMNCRENDERINGCHANGED 0x031F
1889 #define WM_DWMCOLORIZATIONCOLORCHANGED 0x0320
1890 #define WM_DWMWINDOWMAXIMIZEDCHANGE 0x0321
1891 
1892 #define WM_HANDHELDFIRST 856
1893 #define WM_HANDHELDLAST 863
1894 #define WM_AFXFIRST 864
1895 #define WM_AFXLAST 895
1896 #define WM_PENWINFIRST 896
1897 #define WM_PENWINLAST 911
1898 #define WM_USER 1024
1899 #define WM_APP 32768
1900 #define WM_GETTITLEBARINFOEX 0x033F
1901 
1902 #if (_WIN32_WINNT >= 0x0400)
1903 #define WHEEL_DELTA 120
1904 #define GET_WHEEL_DELTA_WPARAM(wParam)  ((short)HIWORD(wParam))
1905 #define WHEEL_PAGESCROLL UINT_MAX
1906 #endif
1907 
1908 #if (_WIN32_WINNT >= 0x0500)
1909 #define GET_KEYSTATE_WPARAM(wParam)     (LOWORD(wParam))
1910 #define GET_NCHITTEST_WPARAM(wParam)    ((short)LOWORD(wParam))
1911 #define GET_XBUTTON_WPARAM(wParam)      (HIWORD(wParam))
1912 #define XBUTTON1    0x0001
1913 #define XBUTTON2    0x0002
1914 #endif
1915 
1916 #if (_WIN32_WINNT >= 0x0501)
1917 #define WM_THEMECHANGED 794
1918 #endif
1919 
1920 #define BM_CLICK 245
1921 #define BM_GETCHECK 240
1922 #define BM_GETIMAGE 246
1923 #define BM_GETSTATE 242
1924 #define BM_SETCHECK 241
1925 #define BM_SETIMAGE 247
1926 #define BM_SETSTATE 243
1927 #define BM_SETSTYLE 244
1928 #define BN_CLICKED 0
1929 #define BN_DBLCLK 5
1930 #define BN_DISABLE 4
1931 #define BN_DOUBLECLICKED 5
1932 #define BN_HILITE 2
1933 #define BN_KILLFOCUS 7
1934 #define BN_PAINT 1
1935 #define BN_PUSHED 2
1936 #define BN_SETFOCUS 6
1937 #define BN_UNHILITE 3
1938 #define BN_UNPUSHED 3
1939 #define CB_ADDSTRING 323
1940 #define CB_DELETESTRING 324
1941 #define CB_DIR 325
1942 #define CB_FINDSTRING 332
1943 #define CB_FINDSTRINGEXACT 344
1944 #define CB_GETCOMBOBOXINFO 356
1945 #define CB_GETCOUNT 326
1946 #define CB_GETCURSEL 327
1947 #define CB_GETDROPPEDCONTROLRECT 338
1948 #define CB_GETDROPPEDSTATE 343
1949 #define CB_GETDROPPEDWIDTH 351
1950 #define CB_GETEDITSEL 320
1951 #define CB_GETEXTENDEDUI 342
1952 #define CB_GETHORIZONTALEXTENT 349
1953 #define CB_GETITEMDATA 336
1954 #define CB_GETITEMHEIGHT 340
1955 #define CB_GETLBTEXT 328
1956 #define CB_GETLBTEXTLEN 329
1957 #define CB_GETLOCALE 346
1958 #define CB_GETTOPINDEX 347
1959 #define CB_INITSTORAGE 353
1960 #define CB_INSERTSTRING 330
1961 #define CB_LIMITTEXT 321
1962 #define CB_RESETCONTENT 331
1963 #define CB_SELECTSTRING 333
1964 #define CB_SETCURSEL 334
1965 #define CB_SETDROPPEDWIDTH 352
1966 #define CB_SETEDITSEL 322
1967 #define CB_SETEXTENDEDUI 341
1968 #define CB_SETHORIZONTALEXTENT 350
1969 #define CB_SETITEMDATA 337
1970 #define CB_SETITEMHEIGHT 339
1971 #define CB_SETLOCALE 345
1972 #define CB_SETTOPINDEX 348
1973 #define CB_SHOWDROPDOWN 335
1974 #define CB_MSGMAX 357
1975 #define CBN_CLOSEUP 8
1976 #define CBN_DBLCLK 2
1977 #define CBN_DROPDOWN 7
1978 #define CBN_EDITCHANGE 5
1979 #define CBN_EDITUPDATE 6
1980 #define CBN_ERRSPACE (-1)
1981 #define CBN_KILLFOCUS 4
1982 #define CBN_SELCHANGE 1
1983 #define CBN_SELENDCANCEL 10
1984 #define CBN_SELENDOK 9
1985 #define CBN_SETFOCUS 3
1986 #define EM_CANUNDO 198
1987 #define EM_CHARFROMPOS 215
1988 #define EM_EMPTYUNDOBUFFER 205
1989 #define EM_FMTLINES 200
1990 #define EM_GETIMESTATUS 217
1991 #define EM_GETFIRSTVISIBLELINE 206
1992 #define EM_GETHANDLE 189
1993 #define EM_GETLIMITTEXT 213
1994 #define EM_GETLINE 196
1995 #define EM_GETLINECOUNT 186
1996 #define EM_GETMARGINS 212
1997 #define EM_GETMODIFY 184
1998 #define EM_GETPASSWORDCHAR 210
1999 #define EM_GETRECT 178
2000 #define EM_GETSEL 176
2001 #define EM_GETTHUMB 190
2002 #define EM_GETWORDBREAKPROC 209
2003 #define EM_LIMITTEXT 197
2004 #define EM_LINEFROMCHAR 201
2005 #define EM_LINEINDEX 187
2006 #define EM_LINELENGTH 193
2007 #define EM_LINESCROLL 182
2008 #define EM_POSFROMCHAR 214
2009 #define EM_REPLACESEL 194
2010 #define EM_SCROLL 181
2011 #define EM_SCROLLCARET 183
2012 #define EM_SETHANDLE 188
2013 #define EM_SETIMESTATUS 216
2014 #define EM_SETLIMITTEXT 197
2015 #define EM_SETMARGINS 211
2016 #define EM_SETMODIFY 185
2017 #define EM_SETPASSWORDCHAR 204
2018 #define EM_SETREADONLY 207
2019 #define EM_SETRECT 179
2020 #define EM_SETRECTNP 180
2021 #define EM_SETSEL 177
2022 #define EM_SETTABSTOPS 203
2023 #define EM_SETWORDBREAKPROC 208
2024 #define EM_UNDO 199
2025 #define EN_CHANGE 768
2026 #define EN_ERRSPACE 1280
2027 #define EN_HSCROLL 1537
2028 #define EN_KILLFOCUS 512
2029 #define EN_MAXTEXT 1281
2030 #define EN_SETFOCUS 256
2031 #define EN_UPDATE 1024
2032 #define EN_VSCROLL 1538
2033 #define LB_ADDFILE 406
2034 #define LB_ADDSTRING 384
2035 #define LB_DELETESTRING 386
2036 #define LB_DIR 397
2037 #define LB_FINDSTRING 399
2038 #define LB_FINDSTRINGEXACT 418
2039 #define LB_GETANCHORINDEX 413
2040 #define LB_GETCARETINDEX 415
2041 #define LB_GETCOUNT 395
2042 #define LB_GETCURSEL 392
2043 #define LB_GETHORIZONTALEXTENT 403
2044 #define LB_GETITEMDATA 409
2045 #define LB_GETITEMHEIGHT 417
2046 #define LB_GETITEMRECT 408
2047 #define LB_GETLISTBOXINFO 434
2048 #define LB_GETLOCALE 422
2049 #define LB_GETSEL 391
2050 #define LB_GETSELCOUNT 400
2051 #define LB_GETSELITEMS 401
2052 #define LB_GETTEXT 393
2053 #define LB_GETTEXTLEN 394
2054 #define LB_GETTOPINDEX 398
2055 #define LB_INITSTORAGE 424
2056 #define LB_INSERTSTRING 385
2057 #define LB_ITEMFROMPOINT 425
2058 #define LB_RESETCONTENT 388
2059 #define LB_SELECTSTRING 396
2060 #define LB_SELITEMRANGE 411
2061 #define LB_SELITEMRANGEEX 387
2062 #define LB_SETANCHORINDEX 412
2063 #define LB_SETCARETINDEX 414
2064 #define LB_SETCOLUMNWIDTH 405
2065 #define LB_SETCOUNT 423
2066 #define LB_SETCURSEL 390
2067 #define LB_SETHORIZONTALEXTENT 404
2068 #define LB_SETITEMDATA 410
2069 #define LB_SETITEMHEIGHT 416
2070 #define LB_SETLOCALE 421
2071 #define LB_SETSEL 389
2072 #define LB_SETTABSTOPS 402
2073 #define LB_SETTOPINDEX 407
2074 #define LBN_DBLCLK 2
2075 #define LBN_ERRSPACE (-2)
2076 #define LBN_KILLFOCUS 5
2077 #define LBN_SELCANCEL 3
2078 #define LBN_SELCHANGE 1
2079 #define LBN_SETFOCUS 4
2080 #define SBM_ENABLE_ARROWS 228
2081 #define SBM_GETPOS 225
2082 #define SBM_GETRANGE 227
2083 #define SBM_SETPOS 224
2084 #define SBM_SETRANGE 226
2085 #define SBM_SETRANGEREDRAW 230
2086 #if (_WIN32_WINNT >= 0x0400)
2087 #define SBM_GETSCROLLINFO 234
2088 #define SBM_SETSCROLLINFO 233
2089 #endif
2090 #if (_WIN32_WINNT >= 0x0501)
2091 #define SBM_GETSCROLLBARINFO 235
2092 #endif
2093 #define STM_GETICON 369
2094 #define STM_GETIMAGE 371
2095 #define STM_SETICON 368
2096 #define STM_SETIMAGE 370
2097 #define STN_CLICKED 0
2098 #define STN_DBLCLK 1
2099 #define STN_DISABLE 3
2100 #define STN_ENABLE 2
2101 #define DM_GETDEFID WM_USER
2102 #define DM_SETDEFID (WM_USER+1)
2103 #define DM_REPOSITION (WM_USER+2)
2104 #define PSM_PAGEINFO (WM_USER+100)
2105 #define PSM_SHEETINFO (WM_USER+101)
2106 #define PSI_SETACTIVE 1
2107 #define PSI_KILLACTIVE 2
2108 #define PSI_APPLY 3
2109 #define PSI_RESET 4
2110 #define PSI_HASHELP 5
2111 #define PSI_HELP 6
2112 #define PSI_CHANGED 1
2113 #define PSI_GUISTART 2
2114 #define PSI_REBOOT 3
2115 #define PSI_GETSIBLINGS 4
2116 #define DCX_WINDOW 1
2117 #define DCX_CACHE 2
2118 #define DCX_PARENTCLIP 32
2119 #define DCX_CLIPSIBLINGS 16
2120 #define DCX_CLIPCHILDREN 8
2121 #define DCX_NORESETATTRS 4
2122 #define DCX_INTERSECTUPDATE 0x200
2123 #define DCX_LOCKWINDOWUPDATE 0x400
2124 #define DCX_EXCLUDERGN 64
2125 #define DCX_INTERSECTRGN 128
2126 #define DCX_VALIDATE 0x200000
2127 #define DCX_EXCLUDEUPDATE   0x100
2128 #define GMDI_GOINTOPOPUPS 2
2129 #define GMDI_USEDISABLED 1
2130 #define FKF_AVAILABLE 2
2131 #define FKF_CLICKON 64
2132 #define FKF_FILTERKEYSON 1
2133 #define FKF_HOTKEYACTIVE 4
2134 #define FKF_HOTKEYSOUND 16
2135 #define FKF_CONFIRMHOTKEY 8
2136 #define FKF_INDICATOR 32
2137 #define HCF_HIGHCONTRASTON 1
2138 #define HCF_AVAILABLE 2
2139 #define HCF_HOTKEYACTIVE 4
2140 #define HCF_CONFIRMHOTKEY 8
2141 #define HCF_HOTKEYSOUND 16
2142 #define HCF_INDICATOR 32
2143 #define HCF_HOTKEYAVAILABLE 64
2144 
2145 #define MKF_MOUSEKEYSON     0x00000001
2146 #define MKF_AVAILABLE       0x00000002
2147 #define MKF_HOTKEYACTIVE    0x00000004
2148 #define MKF_CONFIRMHOTKEY   0x00000008
2149 #define MKF_HOTKEYSOUND     0x00000010
2150 #define MKF_INDICATOR       0x00000020
2151 #define MKF_MODIFIERS       0x00000040
2152 #define MKF_REPLACENUMBERS  0x00000080
2153 #define MKF_LEFTBUTTONDOWN  0x01000000
2154 #define MKF_RIGHTBUTTONDOWN 0x02000000
2155 #define MKF_LEFTBUTTONSEL   0x10000000
2156 #define MKF_RIGHTBUTTONSEL  0x20000000
2157 #define MKF_MOUSEMODE       0x80000000
2158 
2159 #define SERKF_ACTIVE 8 /* May be obsolete. Not in recent MS docs. */
2160 #define SERKF_AVAILABLE 2
2161 #define SERKF_INDICATOR 4
2162 #define SERKF_SERIALKEYSON 1
2163 #define SSF_AVAILABLE 2
2164 #define SSF_SOUNDSENTRYON 1
2165 #define SSTF_BORDER 2
2166 #define SSTF_CHARS 1
2167 #define SSTF_DISPLAY 3
2168 #define SSTF_NONE 0
2169 #define SSGF_DISPLAY 3
2170 #define SSGF_NONE 0
2171 #define SSWF_CUSTOM 4
2172 #define SSWF_DISPLAY 3
2173 #define SSWF_NONE 0
2174 #define SSWF_TITLE 1
2175 #define SSWF_WINDOW 2
2176 #define SKF_AUDIBLEFEEDBACK 64
2177 #define SKF_AVAILABLE 2
2178 #define SKF_CONFIRMHOTKEY 8
2179 #define SKF_HOTKEYACTIVE 4
2180 #define SKF_HOTKEYSOUND 16
2181 #define SKF_INDICATOR 32
2182 #define SKF_STICKYKEYSON 1
2183 #define SKF_TRISTATE 128
2184 #define SKF_TWOKEYSOFF 256
2185 #define TKF_AVAILABLE 2
2186 #define TKF_CONFIRMHOTKEY 8
2187 #define TKF_HOTKEYACTIVE 4
2188 #define TKF_HOTKEYSOUND 16
2189 #define TKF_TOGGLEKEYSON 1
2190 #define MDITILE_SKIPDISABLED 2
2191 #define MDITILE_HORIZONTAL 1
2192 #define MDITILE_VERTICAL 0
2193 #define VK_LBUTTON	1
2194 #define VK_RBUTTON	2
2195 #define VK_CANCEL	3
2196 #define VK_MBUTTON	4
2197 #if (_WIN32_WINNT >= 0x0500)
2198 #define VK_XBUTTON1	5
2199 #define VK_XBUTTON2	6
2200 #endif
2201 #define VK_BACK	8
2202 #define VK_TAB	9
2203 #define VK_CLEAR	12
2204 #define VK_RETURN	13
2205 #define VK_SHIFT	16
2206 #define VK_CONTROL	17
2207 #define VK_MENU	18
2208 #define VK_PAUSE	19
2209 #define VK_CAPITAL	20
2210 #define VK_KANA	0x15
2211 #define VK_HANGEUL	0x15
2212 #define VK_HANGUL	0x15
2213 #define VK_JUNJA	0x17
2214 #define VK_FINAL	0x18
2215 #define VK_HANJA	0x19
2216 #define VK_KANJI	0x19
2217 #define VK_ESCAPE	0x1B
2218 #define VK_CONVERT	0x1C
2219 #define VK_NONCONVERT	0x1D
2220 #define VK_ACCEPT	0x1E
2221 #define VK_MODECHANGE	0x1F
2222 #define VK_SPACE	32
2223 #define VK_PRIOR	33
2224 #define VK_NEXT	34
2225 #define VK_END	35
2226 #define VK_HOME	36
2227 #define VK_LEFT	37
2228 #define VK_UP	38
2229 #define VK_RIGHT	39
2230 #define VK_DOWN	40
2231 #define VK_SELECT	41
2232 #define VK_PRINT	42
2233 #define VK_EXECUTE	43
2234 #define VK_SNAPSHOT	44
2235 #define VK_INSERT	45
2236 #define VK_DELETE	46
2237 #define VK_HELP	47
2238 #define VK_LWIN	0x5B
2239 #define VK_RWIN	0x5C
2240 #define VK_APPS	0x5D
2241 #define VK_SLEEP	0x5F
2242 #define VK_NUMPAD0	0x60
2243 #define VK_NUMPAD1	0x61
2244 #define VK_NUMPAD2	0x62
2245 #define VK_NUMPAD3	0x63
2246 #define VK_NUMPAD4	0x64
2247 #define VK_NUMPAD5	0x65
2248 #define VK_NUMPAD6	0x66
2249 #define VK_NUMPAD7	0x67
2250 #define VK_NUMPAD8	0x68
2251 #define VK_NUMPAD9	0x69
2252 #define VK_MULTIPLY	0x6A
2253 #define VK_ADD	0x6B
2254 #define VK_SEPARATOR	0x6C
2255 #define VK_SUBTRACT	0x6D
2256 #define VK_DECIMAL	0x6E
2257 #define VK_DIVIDE	0x6F
2258 #define VK_F1	0x70
2259 #define VK_F2	0x71
2260 #define VK_F3	0x72
2261 #define VK_F4	0x73
2262 #define VK_F5	0x74
2263 #define VK_F6	0x75
2264 #define VK_F7	0x76
2265 #define VK_F8	0x77
2266 #define VK_F9	0x78
2267 #define VK_F10	0x79
2268 #define VK_F11	0x7A
2269 #define VK_F12	0x7B
2270 #define VK_F13	0x7C
2271 #define VK_F14	0x7D
2272 #define VK_F15	0x7E
2273 #define VK_F16	0x7F
2274 #define VK_F17	0x80
2275 #define VK_F18	0x81
2276 #define VK_F19	0x82
2277 #define VK_F20	0x83
2278 #define VK_F21	0x84
2279 #define VK_F22	0x85
2280 #define VK_F23	0x86
2281 #define VK_F24	0x87
2282 #define VK_NUMLOCK	0x90
2283 #define VK_SCROLL	0x91
2284 #define VK_OEM_NEC_EQUAL	0x92
2285 #define VK_LSHIFT	0xA0
2286 #define VK_RSHIFT	0xA1
2287 #define VK_LCONTROL	0xA2
2288 #define VK_RCONTROL	0xA3
2289 #define VK_LMENU	0xA4
2290 #define VK_RMENU	0xA5
2291 #if (_WIN32_WINNT >= 0x0500)
2292 #define VK_BROWSER_BACK	0xA6
2293 #define VK_BROWSER_FORWARD	0xA7
2294 #define VK_BROWSER_REFRESH	0xA8
2295 #define VK_BROWSER_STOP	0xA9
2296 #define VK_BROWSER_SEARCH	0xAA
2297 #define VK_BROWSER_FAVORITES	0xAB
2298 #define VK_BROWSER_HOME	0xAC
2299 #define VK_VOLUME_MUTE	0xAD
2300 #define VK_VOLUME_DOWN	0xAE
2301 #define VK_VOLUME_UP	0xAF
2302 #define VK_MEDIA_NEXT_TRACK	0xB0
2303 #define VK_MEDIA_PREV_TRACK	0xB1
2304 #define VK_MEDIA_STOP	0xB2
2305 #define VK_MEDIA_PLAY_PAUSE	0xB3
2306 #define VK_LAUNCH_MAIL	0xB4
2307 #define VK_LAUNCH_MEDIA_SELECT	0xB5
2308 #define VK_LAUNCH_APP1	0xB6
2309 #define VK_LAUNCH_APP2	0xB7
2310 #endif
2311 #define VK_OEM_1	0xBA
2312 #if (_WIN32_WINNT >= 0x0500)
2313 #define VK_OEM_PLUS	0xBB
2314 #define VK_OEM_COMMA	0xBC
2315 #define VK_OEM_MINUS	0xBD
2316 #define VK_OEM_PERIOD	0xBE
2317 #endif
2318 #define VK_OEM_2	0xBF
2319 #define VK_OEM_3	0xC0
2320 #define VK_OEM_4	0xDB
2321 #define VK_OEM_5	0xDC
2322 #define VK_OEM_6	0xDD
2323 #define VK_OEM_7	0xDE
2324 #define VK_OEM_8	0xDF
2325 #if (_WIN32_WINNT >= 0x0500)
2326 #define VK_OEM_102	0xE2
2327 #endif
2328 #define VK_ICO_HELP	0xE3  /* Help key on ICO */
2329 #define VK_ICO_00	0xE4  /* 00 key on ICO */
2330 #define VK_PROCESSKEY	0xE5
2331 #if (_WIN32_WINNT >= 0x0500)
2332 #define VK_PACKET	0xE7
2333 #endif
2334 #define VK_OEM_RESET	0xE9
2335 #define VK_OEM_JUMP	0xEA
2336 #define VK_OEM_PA1	0xEB
2337 #define VK_OEM_PA2	0xEC
2338 #define VK_OEM_PA3	0xED
2339 #define VK_OEM_WSCTRL	0xEE
2340 #define VK_OEM_CUSEL	0xEF
2341 #define VK_OEM_ATTN	0xF0
2342 #define VK_OEM_FINISH	0xF1
2343 #define VK_OEM_COPY	0xF2
2344 #define VK_OEM_AUTO	0xF3
2345 #define VK_OEM_ENLW	0xF4
2346 #define VK_OEM_BACKTAB	0xF5
2347 #define VK_ATTN	0xF6
2348 #define VK_CRSEL	0xF7
2349 #define VK_EXSEL	0xF8
2350 #define VK_EREOF	0xF9
2351 #define VK_PLAY	0xFA
2352 #define VK_ZOOM	0xFB
2353 #define VK_NONAME	0xFC
2354 #define VK_PA1	0xFD
2355 #define VK_OEM_CLEAR	0xFE
2356 
2357 /* MapVirtualKey translation types */
2358 #define MAPVK_VK_TO_VSC     0
2359 #define MAPVK_VSC_TO_VK     1
2360 #define MAPVK_VK_TO_CHAR    2
2361 #define MAPVK_VSC_TO_VK_EX  3
2362 #define MAPVK_VK_TO_VSC_EX  4
2363 
2364 #define TME_HOVER	1
2365 #define TME_LEAVE	2
2366 #define TME_NONCLIENT   0x00000010
2367 #define TME_QUERY	0x40000000
2368 #define TME_CANCEL	0x80000000
2369 #define HOVER_DEFAULT	0xFFFFFFFF
2370 #define MK_LBUTTON	1
2371 #define MK_RBUTTON	2
2372 #define MK_SHIFT	4
2373 #define MK_CONTROL	8
2374 #define MK_MBUTTON	16
2375 #if(_WIN32_WINNT >= 0x0500)
2376 #define MK_XBUTTON1	0x0020
2377 #define MK_XBUTTON2	0x0040
2378 #endif
2379 #define TPM_CENTERALIGN 4
2380 #define TPM_LEFTALIGN 0
2381 #define TPM_RIGHTALIGN 8
2382 #define TPM_LEFTBUTTON 0
2383 #define TPM_RIGHTBUTTON 2
2384 #define TPM_HORIZONTAL 0
2385 #define TPM_VERTICAL 64
2386 #define TPM_TOPALIGN 0
2387 #define TPM_VCENTERALIGN 16
2388 #define TPM_BOTTOMALIGN 32
2389 #define TPM_NONOTIFY 128
2390 #define TPM_RETURNCMD 256
2391 #if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0410)
2392 #define TPM_RECURSE 0x0001
2393 #define TPM_HORPOSANIMATION 0x0400
2394 #define TPM_HORNEGANIMATION 0x0800
2395 #define TPM_VERPOSANIMATION 0x1000
2396 #define TPM_VERNEGANIMATION 0x2000
2397 #endif
2398 #if(_WIN32_WINNT >= 0x0500)
2399 #define TPM_NOANIMATION 16384
2400 #endif
2401 #if (_WIN32_WINNT >= 0x0501)
2402 #define TPM_LAYOUTRTL 32768
2403 #endif
2404 #if (_WIN32_WINNT >= 0x0601)
2405 #define TPM_WORKAREA 65536
2406 #endif
2407 #define HELP_COMMAND 0x102
2408 #define HELP_CONTENTS 3
2409 #define HELP_CONTEXT 1
2410 #define HELP_CONTEXTPOPUP 8
2411 #define HELP_FORCEFILE 9
2412 #define HELP_HELPONHELP 4
2413 #define HELP_INDEX 3
2414 #define HELP_KEY 0x101
2415 #define HELP_MULTIKEY 0x201
2416 #define HELP_PARTIALKEY 0x105
2417 #define HELP_QUIT 2
2418 #define HELP_SETCONTENTS 5
2419 #define HELP_SETINDEX 5
2420 #define HELP_SETWINPOS 0x203
2421 #define HELP_CONTEXTMENU 0xa
2422 #define HELP_FINDER 0xb
2423 #define HELP_WM_HELP 0xc
2424 #define HELP_TCARD 0x8000
2425 #define HELP_TCARD_DATA 16
2426 #define HELP_TCARD_OTHER_CALLER 0x11
2427 #define IDH_NO_HELP	28440
2428 #define IDH_MISSING_CONTEXT	28441
2429 #define IDH_GENERIC_HELP_BUTTON	28442
2430 #define IDH_OK	28443
2431 #define IDH_CANCEL	28444
2432 #define IDH_HELP	28445
2433 #define LB_CTLCODE 0
2434 #define LB_OKAY 0
2435 #define LB_ERR (-1)
2436 #define LB_ERRSPACE (-2)
2437 #define CB_OKAY 0
2438 #define CB_ERR (-1)
2439 #define CB_ERRSPACE (-2)
2440 #define HIDE_WINDOW 0
2441 #define SHOW_OPENWINDOW 1
2442 #define SHOW_ICONWINDOW 2
2443 #define SHOW_FULLSCREEN 3
2444 #define SHOW_OPENNOACTIVATE 4
2445 #define SW_PARENTCLOSING 1
2446 #define SW_OTHERZOOM 2
2447 #define SW_PARENTOPENING 3
2448 #define SW_OTHERUNZOOM 4
2449 #define KF_EXTENDED 256
2450 #define KF_DLGMODE 2048
2451 #define KF_MENUMODE 4096
2452 #define KF_ALTDOWN 8192
2453 #define KF_REPEAT 16384
2454 #define KF_UP 32768
2455 #define WSF_VISIBLE 1
2456 #define PWR_OK 1
2457 #define PWR_FAIL (-1)
2458 #define PWR_SUSPENDREQUEST 1
2459 #define PWR_SUSPENDRESUME 2
2460 #define PWR_CRITICALRESUME 3
2461 #define NFR_ANSI 1
2462 #define NFR_UNICODE 2
2463 #define NF_QUERY 3
2464 #define NF_REQUERY 4
2465 #define MENULOOP_WINDOW 0
2466 #define MENULOOP_POPUP 1
2467 #define WMSZ_LEFT 1
2468 #define WMSZ_RIGHT 2
2469 #define WMSZ_TOP 3
2470 #define WMSZ_TOPLEFT 4
2471 #define WMSZ_TOPRIGHT 5
2472 #define WMSZ_BOTTOM 6
2473 #define WMSZ_BOTTOMLEFT 7
2474 #define WMSZ_BOTTOMRIGHT 8
2475 #define HTERROR (-2)
2476 #define HTTRANSPARENT (-1)
2477 #define HTNOWHERE 0
2478 #define HTCLIENT 1
2479 #define HTCAPTION 2
2480 #define HTSYSMENU 3
2481 #define HTGROWBOX 4
2482 #define HTSIZE 4
2483 #define HTMENU 5
2484 #define HTHSCROLL 6
2485 #define HTVSCROLL 7
2486 #define HTMINBUTTON 8
2487 #define HTMAXBUTTON 9
2488 #define HTREDUCE 8
2489 #define HTZOOM 9
2490 #define HTLEFT 10
2491 #define HTSIZEFIRST 10
2492 #define HTRIGHT 11
2493 #define HTTOP 12
2494 #define HTTOPLEFT 13
2495 #define HTTOPRIGHT 14
2496 #define HTBOTTOM 15
2497 #define HTBOTTOMLEFT 16
2498 #define HTBOTTOMRIGHT 17
2499 #define HTSIZELAST 17
2500 #define HTBORDER 18
2501 #define HTOBJECT 19
2502 #define HTCLOSE 20
2503 #define HTHELP 21
2504 #define MA_ACTIVATE 1
2505 #define MA_ACTIVATEANDEAT 2
2506 #define MA_NOACTIVATE 3
2507 #define MA_NOACTIVATEANDEAT 4
2508 #define SIZE_RESTORED 0
2509 #define SIZE_MINIMIZED 1
2510 #define SIZE_MAXIMIZED 2
2511 #define SIZE_MAXSHOW 3
2512 #define SIZE_MAXHIDE 4
2513 #define SIZENORMAL 0
2514 #define SIZEICONIC 1
2515 #define SIZEFULLSCREEN 2
2516 #define SIZEZOOMSHOW 3
2517 #define SIZEZOOMHIDE 4
2518 #define WVR_ALIGNTOP 16
2519 #define WVR_ALIGNLEFT 32
2520 #define WVR_ALIGNBOTTOM 64
2521 #define WVR_ALIGNRIGHT 128
2522 #define WVR_HREDRAW 256
2523 #define WVR_VREDRAW 512
2524 #define WVR_REDRAW (WVR_HREDRAW|WVR_VREDRAW)
2525 #define WVR_VALIDRECTS 1024
2526 #define PRF_CHECKVISIBLE 1
2527 #define PRF_NONCLIENT 2
2528 #define PRF_CLIENT 4
2529 #define PRF_ERASEBKGND 8
2530 #define PRF_CHILDREN 16
2531 #define PRF_OWNED 32
2532 #define IDANI_OPEN 1
2533 #define IDANI_CLOSE 2
2534 #define IDANI_CAPTION 3
2535 #define WPF_RESTORETOMAXIMIZED 2
2536 #define WPF_SETMINPOSITION 1
2537 #if(_WIN32_WINNT >= 0x0500)
2538 #define WPF_ASYNCWINDOWPLACEMENT 4
2539 #endif
2540 #define ODT_MENU 1
2541 #define ODT_LISTBOX 2
2542 #define ODT_COMBOBOX 3
2543 #define ODT_BUTTON 4
2544 #define ODT_STATIC 5
2545 #define ODA_DRAWENTIRE 1
2546 #define ODA_SELECT 2
2547 #define ODA_FOCUS 4
2548 #define ODS_SELECTED 1
2549 #define ODS_GRAYED 2
2550 #define ODS_DISABLED 4
2551 #define ODS_CHECKED 8
2552 #define ODS_FOCUS 16
2553 #if(WINVER >= 0x0400)
2554 #define ODS_DEFAULT 32
2555 #define ODS_COMBOBOXEDIT 4096
2556 #endif
2557 #if(WINVER >= 0x0500)
2558 #define ODS_HOTLIGHT        0x0040
2559 #define ODS_INACTIVE        0x0080
2560 #if(_WIN32_WINNT >= 0x0500)
2561 #define ODS_NOACCEL         0x0100
2562 #define ODS_NOFOCUSRECT     0x0200
2563 #endif
2564 #endif
2565 #define IDHOT_SNAPWINDOW (-1)
2566 #define IDHOT_SNAPDESKTOP (-2)
2567 #define DBWF_LPARAMPOINTER 0x8000
2568 #define DLGWINDOWEXTRA 30
2569 #define MNC_IGNORE 0
2570 #define MNC_CLOSE 1
2571 #define MNC_EXECUTE 2
2572 #define MNC_SELECT 3
2573 #define DOF_EXECUTABLE 0x8001
2574 #define DOF_DOCUMENT 0x8002
2575 #define DOF_DIRECTORY 0x8003
2576 #define DOF_MULTIPLE 0x8004
2577 #define DOF_PROGMAN 1
2578 #define DOF_SHELLDATA 2
2579 #define DO_DROPFILE 0x454C4946
2580 #define DO_PRINTFILE 0x544E5250
2581 #define SW_SCROLLCHILDREN 1
2582 #define SW_INVALIDATE 2
2583 #define SW_ERASE 4
2584 #if(WINVER >= 0x0500)
2585 #define SW_SMOOTHSCROLL 16
2586 #endif
2587 #define SC_SIZE 0xF000
2588 #define SC_MOVE 0xF010
2589 #define SC_MINIMIZE 0xF020
2590 #define SC_ICON 0xf020
2591 #define SC_MAXIMIZE 0xF030
2592 #define SC_ZOOM 0xF030
2593 #define SC_NEXTWINDOW 0xF040
2594 #define SC_PREVWINDOW 0xF050
2595 #define SC_CLOSE 0xF060
2596 #define SC_VSCROLL 0xF070
2597 #define SC_HSCROLL 0xF080
2598 #define SC_MOUSEMENU 0xF090
2599 #define SC_KEYMENU 0xF100
2600 #define SC_ARRANGE 0xF110
2601 #define SC_RESTORE 0xF120
2602 #define SC_TASKLIST 0xF130
2603 #define SC_SCREENSAVE 0xF140
2604 #define SC_HOTKEY 0xF150
2605 #define SC_DEFAULT 0xF160
2606 #define SC_MONITORPOWER 0xF170
2607 #define SC_CONTEXTHELP 0xF180
2608 #define SC_SEPARATOR 0xF00F
2609 #define EC_LEFTMARGIN 1
2610 #define EC_RIGHTMARGIN 2
2611 #define EC_USEFONTINFO 0xffff
2612 #define DC_HASDEFID 0x534B
2613 #define DLGC_WANTARROWS 1
2614 #define DLGC_WANTTAB 2
2615 #define DLGC_WANTALLKEYS 4
2616 #define DLGC_WANTMESSAGE 4
2617 #define DLGC_HASSETSEL 8
2618 #define DLGC_DEFPUSHBUTTON 16
2619 #define DLGC_UNDEFPUSHBUTTON 32
2620 #define DLGC_RADIOBUTTON 64
2621 #define DLGC_WANTCHARS 128
2622 #define DLGC_STATIC 256
2623 #define DLGC_BUTTON 0x2000
2624 #define LB_CTLCODE 0
2625 #define WA_INACTIVE 0
2626 #define WA_ACTIVE 1
2627 #define WA_CLICKACTIVE 2
2628 #define ICON_SMALL 0
2629 #define ICON_BIG 1
2630 #if (_WIN32_WINNT >= 0x0501)
2631 #define ICON_SMALL2 2
2632 #endif
2633 #define HBMMENU_CALLBACK ((HBITMAP) -1)
2634 #define HBMMENU_SYSTEM ((HBITMAP)1)
2635 #define HBMMENU_MBAR_RESTORE ((HBITMAP)2)
2636 #define HBMMENU_MBAR_MINIMIZE ((HBITMAP)3)
2637 #define HBMMENU_MBAR_CLOSE ((HBITMAP)5)
2638 #define HBMMENU_MBAR_CLOSE_D ((HBITMAP)6)
2639 #define HBMMENU_MBAR_MINIMIZE_D ((HBITMAP)7)
2640 #define HBMMENU_POPUP_CLOSE ((HBITMAP)8)
2641 #define HBMMENU_POPUP_RESTORE ((HBITMAP)9)
2642 #define HBMMENU_POPUP_MAXIMIZE ((HBITMAP)10)
2643 #define HBMMENU_POPUP_MINIMIZE ((HBITMAP)11)
2644 #define MOD_ALT         0x0001
2645 #define MOD_CONTROL     0x0002
2646 #define MOD_SHIFT       0x0004
2647 #define MOD_WIN         0x0008
2648 #define LLKHF_EXTENDED 0x00000001
2649 #define LLKHF_INJECTED 0x00000010
2650 #define LLKHF_ALTDOWN  0x00000020
2651 #define LLKHF_UP  0x00000080
2652 #define LLMHF_INJECTED  0x00000001
2653 #if (WINVER >= 0x0500)
2654 #define FLASHW_STOP 0
2655 #define FLASHW_CAPTION 1
2656 #define FLASHW_TRAY 2
2657 #define FLASHW_ALL (FLASHW_CAPTION|FLASHW_TRAY)
2658 #define FLASHW_TIMER 4
2659 #define FLASHW_TIMERNOFG 12
2660 #endif /* (WINVER >= 0x0500) */
2661 #define CURSOR_SHOWING 0x00000001
2662 #define WS_ACTIVECAPTION 0x00000001
2663 #if (_WIN32_WINNT >= 0x0400)
2664 #define INPUT_MOUSE 0
2665 #define INPUT_KEYBOARD 1
2666 #define INPUT_HARDWARE 2
2667 #endif /* (_WIN32_WINNT >= 0x0400) */
2668 #if (WINVER >= 0x0400)
2669 #define ENDSESSION_LOGOFF 0x80000000
2670 #define ENDSESSION_CRITICAL 0x40000000
2671 #define ENDSESSION_CLOSEAPP 0x00000001
2672 #endif
2673 #if (WINVER >= 0x0500)
2674 #define CHILDID_SELF 0
2675 #define OBJID_WINDOW 0x00000000
2676 #define OBJID_SYSMENU 0xFFFFFFFF
2677 #define OBJID_TITLEBAR 0xFFFFFFFE
2678 #define OBJID_MENU 0xFFFFFFFD
2679 #define OBJID_CLIENT 0xFFFFFFFC
2680 #define OBJID_VSCROLL 0xFFFFFFFB
2681 #define OBJID_HSCROLL 0xFFFFFFFA
2682 #define OBJID_SIZEGRIP 0xFFFFFFF9
2683 #define OBJID_CARET 0xFFFFFFF8
2684 #define OBJID_CURSOR 0xFFFFFFF7
2685 #define OBJID_ALERT 0xFFFFFFF6
2686 #define OBJID_SOUND 0xFFFFFFF5
2687 #define OBJID_QUERYCLASSNAMEIDX 0xFFFFFFF4
2688 #define OBJID_NATIVEOM 0xFFFFFF0
2689 #define GUI_CARETBLINKING 0x00000001
2690 #define GUI_INMOVESIZE 0x00000002
2691 #define GUI_INMENUMODE 0x00000004
2692 #define GUI_SYSTEMMENUMODE 0x00000008
2693 #define GUI_POPUPMENUMODE 0x00000010
2694 #if (_WIN32_WINNT >= 0x0501)
2695 #define GUI_16BITTASK 0x00000020
2696 #endif
2697 #define WINEVENT_OUTOFCONTEXT   0x0000
2698 #define WINEVENT_SKIPOWNTHREAD  0x0001
2699 #define WINEVENT_SKIPOWNPROCESS 0x0002
2700 #define WINEVENT_INCONTEXT      0x0004
2701 #define AW_HOR_POSITIVE 0x00000001
2702 #define AW_HOR_NEGATIVE 0x00000002
2703 #define AW_VER_POSITIVE 0x00000004
2704 #define AW_VER_NEGATIVE 0x00000008
2705 #define AW_CENTER 0x00000010
2706 #define AW_HIDE 0x00010000
2707 #define AW_ACTIVATE 0x00020000
2708 #define AW_SLIDE 0x00040000
2709 #define AW_BLEND 0x00080000
2710 #define DEVICE_NOTIFY_WINDOW_HANDLE 0x00000000
2711 #define DEVICE_NOTIFY_SERVICE_HANDLE 0x00000001
2712 #if (_WIN32_WINNT >= 0x0501)
2713 #define DEVICE_NOTIFY_ALL_INTERFACE_CLASSES 0x00000004
2714 #endif
2715 #define EVENT_MIN                       0x00000001
2716 #define EVENT_SYSTEM_SOUND              0x00000001
2717 #define EVENT_SYSTEM_ALERT              0x00000002
2718 #define EVENT_SYSTEM_FOREGROUND         0x00000003
2719 #define EVENT_SYSTEM_MENUSTART          0x00000004
2720 #define EVENT_SYSTEM_MENUEND            0x00000005
2721 #define EVENT_SYSTEM_MENUPOPUPSTART     0x00000006
2722 #define EVENT_SYSTEM_MENUPOPUPEND       0x00000007
2723 #define EVENT_SYSTEM_CAPTURESTART       0x00000008
2724 #define EVENT_SYSTEM_CAPTUREEND         0x00000009
2725 #define EVENT_SYSTEM_MOVESIZESTART      0x0000000a
2726 #define EVENT_SYSTEM_MOVESIZEEND        0x0000000b
2727 #define EVENT_SYSTEM_CONTEXTHELPSTART   0x0000000c
2728 #define EVENT_SYSTEM_CONTEXTHELPEND     0x0000000d
2729 #define EVENT_SYSTEM_DRAGDROPSTART      0x0000000e
2730 #define EVENT_SYSTEM_DRAGDROPEND        0x0000000f
2731 #define EVENT_SYSTEM_DIALOGSTART        0x00000010
2732 #define EVENT_SYSTEM_DIALOGEND          0x00000011
2733 #define EVENT_SYSTEM_SCROLLINGSTART     0x00000012
2734 #define EVENT_SYSTEM_SCROLLINGEND       0x00000013
2735 #define EVENT_SYSTEM_SWITCHSTART        0x00000014
2736 #define EVENT_SYSTEM_SWITCHEND          0x00000015
2737 #define EVENT_SYSTEM_MINIMIZESTART      0x00000016
2738 #define EVENT_SYSTEM_MINIMIZEEND        0x00000017
2739 #define EVENT_OBJECT_CREATE             0x00008000
2740 #define EVENT_OBJECT_DESTROY            0x00008001
2741 #define EVENT_OBJECT_SHOW               0x00008002
2742 #define EVENT_OBJECT_HIDE               0x00008003
2743 #define EVENT_OBJECT_REORDER            0x00008004
2744 #define EVENT_OBJECT_FOCUS              0x00008005
2745 #define EVENT_OBJECT_SELECTION          0x00008006
2746 #define EVENT_OBJECT_SELECTIONADD       0x00008007
2747 #define EVENT_OBJECT_SELECTIONREMOVE    0x00008008
2748 #define EVENT_OBJECT_SELECTIONWITHIN    0x00008009
2749 #define EVENT_OBJECT_STATECHANGE        0x0000800a
2750 #define EVENT_OBJECT_LOCATIONCHANGE     0x0000800b
2751 #define EVENT_OBJECT_NAMECHANGE         0x0000800c
2752 #define EVENT_OBJECT_DESCRIPTIONCHANGE  0x0000800d
2753 #define EVENT_OBJECT_VALUECHANGE        0x0000800e
2754 #define EVENT_OBJECT_PARENTCHANGE       0x0000800f
2755 #define EVENT_OBJECT_HELPCHANGE         0x00008010
2756 #define EVENT_OBJECT_DEFACTIONCHANGE    0x00008011
2757 #define EVENT_OBJECT_ACCELERATORCHANGE  0x00008012
2758 #define ALERT_SYSTEM_INFORMATIONAL      1          /* MB_INFORMATION */
2759 #define ALERT_SYSTEM_WARNING            2          /* MB_WARNING */
2760 #define ALERT_SYSTEM_ERROR              3          /* MB_ERROR */
2761 #define ALERT_SYSTEM_QUERY              4          /* MB_QUESTION */
2762 #define ALERT_SYSTEM_CRITICAL           5          /* HardSysErrBox */
2763 #define CALERT_SYSTEM                   6
2764 #if (_WIN32_WINNT >= 0x0501)
2765 #define EVENT_CONSOLE_CARET             0x00004001
2766 #define CONSOLE_CARET_SELECTION         0x00000001
2767 #define CONSOLE_CARET_VISIBLE           0x00000002
2768 #define EVENT_CONSOLE_UPDATE_REGION     0x00004002
2769 #define EVENT_CONSOLE_UPDATE_SIMPLE     0x00004003
2770 #define EVENT_CONSOLE_UPDATE_SCROLL     0x00004004
2771 #define EVENT_CONSOLE_LAYOUT            0x00004005
2772 #define EVENT_CONSOLE_START_APPLICATION 0x00004006
2773 #define CONSOLE_APPLICATION_16BIT       0x00000001
2774 #define EVENT_CONSOLE_END_APPLICATION   0x00004007
2775 #endif /* (_WIN32_WINNT >= 0x0501) */
2776 #define EVENT_MAX                       0x7fffffff
2777 #endif /* (WINVER >= 0x0500) */
2778 #if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0490)
2779 #define ASFW_ANY ((DWORD)-1)
2780 #define LSFW_LOCK 1
2781 #define LSFW_UNLOCK 2
2782 #endif
2783 #if (_WIN32_WINNT >= 0x0500)
2784 #define LWA_COLORKEY 1
2785 #define LWA_ALPHA 2
2786 #endif
2787 #define ULW_COLORKEY        0x00000001
2788 #define ULW_ALPHA           0x00000002
2789 #define ULW_OPAQUE          0x00000004
2790 #define ULW_EX_NORESIZE     0x00000008
2791 #define GA_PARENT 1
2792 #define GA_ROOT 2
2793 #define GA_ROOTOWNER 3
2794 #if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0410)
2795 #define MONITOR_DEFAULTTONULL 0
2796 #define MONITOR_DEFAULTTOPRIMARY 1
2797 #define MONITOR_DEFAULTTONEAREST 2
2798 #define MONITORINFOF_PRIMARY 1
2799 #define EDD_GET_DEVICE_INTERFACE_NAME 0x00000001
2800 #define EDS_RAWMODE 0x00000002
2801 #define EDS_ROTATEDMODE 0x00000004
2802 #define ISMEX_NOSEND 0x00000000
2803 #define ISMEX_CALLBACK 0x00000004
2804 #define ISMEX_NOTIFY 0x00000002
2805 #define ISMEX_REPLIED 0x00000008
2806 #define ISMEX_SEND 0x00000001
2807 #endif
2808 #if (_WIN32_WINNT >= 0x0500)
2809 #define GR_GDIOBJECTS 0
2810 #define GR_USEROBJECTS 1
2811 #endif
2812 #if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0490)
2813 #define GMMP_USE_DISPLAY_POINTS 1
2814 #define GMMP_USE_HIGH_RESOLUTION_POINTS 2
2815 #endif
2816 #if (_WIN32_WINNT >= 0x0501)
2817 #define PW_CLIENTONLY 0x00000001
2818 #define RIM_INPUT     0x00000000
2819 #define RIM_INPUTSINK 0x00000001
2820 #define RIM_TYPEMOUSE    0x00000000
2821 #define RIM_TYPEKEYBOARD 0x00000001
2822 #define RIM_TYPEHID      0x00000002
2823 #define MOUSE_MOVE_RELATIVE               0
2824 #define MOUSE_MOVE_ABSOLUTE               1
2825 #define MOUSE_VIRTUAL_DESKTOP             0x02
2826 #define MOUSE_ATTRIBUTES_CHANGED          0x04
2827 #define RI_MOUSE_LEFT_BUTTON_DOWN   0x0001
2828 #define RI_MOUSE_LEFT_BUTTON_UP     0x0002
2829 #define RI_MOUSE_RIGHT_BUTTON_DOWN  0x0004
2830 #define RI_MOUSE_RIGHT_BUTTON_UP    0x0008
2831 #define RI_MOUSE_MIDDLE_BUTTON_DOWN 0x0010
2832 #define RI_MOUSE_MIDDLE_BUTTON_UP   0x0020
2833 #define RI_MOUSE_BUTTON_1_DOWN      RI_MOUSE_LEFT_BUTTON_DOWN
2834 #define RI_MOUSE_BUTTON_1_UP        RI_MOUSE_LEFT_BUTTON_UP
2835 #define RI_MOUSE_BUTTON_2_DOWN      RI_MOUSE_RIGHT_BUTTON_DOWN
2836 #define RI_MOUSE_BUTTON_2_UP        RI_MOUSE_RIGHT_BUTTON_UP
2837 #define RI_MOUSE_BUTTON_3_DOWN      RI_MOUSE_MIDDLE_BUTTON_DOWN
2838 #define RI_MOUSE_BUTTON_3_UP        RI_MOUSE_MIDDLE_BUTTON_UP
2839 #define RI_MOUSE_BUTTON_4_DOWN      0x0040
2840 #define RI_MOUSE_BUTTON_4_UP        0x0080
2841 #define RI_MOUSE_BUTTON_5_DOWN      0x0100
2842 #define RI_MOUSE_BUTTON_5_UP        0x0200
2843 #define RI_MOUSE_WHEEL              0x0400
2844 #define KEYBOARD_OVERRUN_MAKE_CODE 0xFF
2845 #define RI_KEY_MAKE            0x0000
2846 #define RI_KEY_BREAK           0x0001
2847 #define RI_KEY_E0              0x0002
2848 #define RI_KEY_E1              0x0004
2849 #define RI_KEY_TERMSRV_SET_LED 0x0008
2850 #define RI_KEY_TERMSRV_SHADOW  0x0010
2851 #define RID_INPUT  0x10000003
2852 #define RID_HEADER 0x10000005
2853 #define RIDI_PREPARSEDDATA 0x20000005
2854 #define RIDI_DEVICENAME    0x20000007
2855 #define RIDI_DEVICEINFO    0x2000000b
2856 #define RIDEV_REMOVE       0x00000001
2857 #define RIDEV_EXCLUDE      0x00000010
2858 #define RIDEV_PAGEONLY     0x00000020
2859 #define RIDEV_NOLEGACY     0x00000030
2860 #define RIDEV_INPUTSINK    0x00000100
2861 #define RIDEV_CAPTUREMOUSE 0x00000200
2862 #define RIDEV_NOHOTKEYS    0x00000200
2863 #define RIDEV_APPKEYS      0x00000400
2864 #endif
2865 #define STATE_SYSTEM_UNAVAILABLE 0x00000001
2866 #define STATE_SYSTEM_SELECTED 0x00000002
2867 #define STATE_SYSTEM_FOCUSED 0x00000004
2868 #define STATE_SYSTEM_PRESSED 0x00000008
2869 #define STATE_SYSTEM_CHECKED 0x00000010
2870 #define STATE_SYSTEM_MIXED 0x00000020
2871 #define STATE_SYSTEM_READONLY 0x00000040
2872 #define STATE_SYSTEM_HOTTRACKED 0x00000080
2873 #define STATE_SYSTEM_DEFAULT 0x00000100
2874 #define STATE_SYSTEM_EXPANDED 0x00000200
2875 #define STATE_SYSTEM_COLLAPSED 0x00000400
2876 #define STATE_SYSTEM_BUSY 0x00000800
2877 #define STATE_SYSTEM_FLOATING 0x00001000
2878 #define STATE_SYSTEM_MARQUEED 0x00002000
2879 #define STATE_SYSTEM_ANIMATED 0x00004000
2880 #define STATE_SYSTEM_INVISIBLE 0x00008000
2881 #define STATE_SYSTEM_OFFSCREEN 0x00010000
2882 #define STATE_SYSTEM_SIZEABLE 0x00020000
2883 #define STATE_SYSTEM_MOVEABLE 0x00040000
2884 #define STATE_SYSTEM_SELFVOICING 0x00080000
2885 #define STATE_SYSTEM_FOCUSABLE 0x00100000
2886 #define STATE_SYSTEM_SELECTABLE 0x00200000
2887 #define STATE_SYSTEM_LINKED 0x00400000
2888 #define STATE_SYSTEM_TRAVERSED 0x00800000
2889 #define STATE_SYSTEM_MULTISELECTABLE 0x01000000
2890 #define STATE_SYSTEM_EXTSELECTABLE 0x02000000
2891 #define STATE_SYSTEM_ALERT_LOW 0x04000000
2892 #define STATE_SYSTEM_ALERT_MEDIUM 0x08000000
2893 #define STATE_SYSTEM_ALERT_HIGH 0x10000000
2894 #define STATE_SYSTEM_VALID 0x1fffffff
2895 
2896 #define USER_DEFAULT_SCREEN_DPI 96
2897 
2898 #ifndef RC_INVOKED
2899 typedef INT_PTR(CALLBACK *DLGPROC)(HWND,UINT,WPARAM,LPARAM);
2900 typedef VOID(CALLBACK *TIMERPROC)(HWND,UINT,UINT_PTR,DWORD);
2901 typedef BOOL(CALLBACK *GRAYSTRINGPROC)(HDC,LPARAM,int);
2902 typedef LRESULT(CALLBACK *HOOKPROC)(int,WPARAM,LPARAM);
2903 typedef BOOL(CALLBACK *PROPENUMPROCA)(HWND,LPCSTR,HANDLE);
2904 typedef BOOL(CALLBACK *PROPENUMPROCW)(HWND,LPCWSTR,HANDLE);
2905 typedef BOOL(CALLBACK *PROPENUMPROCEXA)(HWND,LPSTR,HANDLE,ULONG_PTR);
2906 typedef BOOL(CALLBACK *PROPENUMPROCEXW)(HWND,LPWSTR,HANDLE,ULONG_PTR);
2907 typedef int(CALLBACK *EDITWORDBREAKPROCA)(LPSTR,int,int,int);
2908 typedef int(CALLBACK *EDITWORDBREAKPROCW)(LPWSTR,int,int,int);
2909 typedef LRESULT(CALLBACK *WNDPROC)(HWND,UINT,WPARAM,LPARAM);
2910 typedef BOOL(CALLBACK *DRAWSTATEPROC)(HDC,LPARAM,WPARAM,int,int);
2911 typedef BOOL(CALLBACK *WNDENUMPROC)(HWND,LPARAM);
2912 typedef BOOL(CALLBACK* MONITORENUMPROC)(HMONITOR,HDC,LPRECT,LPARAM);
2913 typedef BOOL(CALLBACK *NAMEENUMPROCA)(LPSTR,LPARAM);
2914 typedef BOOL(CALLBACK *NAMEENUMPROCW)(LPWSTR,LPARAM);
2915 typedef NAMEENUMPROCA DESKTOPENUMPROCA;
2916 typedef NAMEENUMPROCW DESKTOPENUMPROCW;
2917 typedef NAMEENUMPROCA WINSTAENUMPROCA;
2918 typedef NAMEENUMPROCW WINSTAENUMPROCW;
2919 typedef void(CALLBACK *SENDASYNCPROC)(HWND,UINT,ULONG_PTR,LRESULT);
2920 DECLARE_HANDLE(HHOOK);
2921 DECLARE_HANDLE(HDWP);
2922 DECLARE_HANDLE(HDEVNOTIFY);
2923 typedef HDEVNOTIFY *PHDEVNOTIFY;
2924 
2925 typedef struct tagACCEL {
2926 	BYTE fVirt;
2927 	WORD key;
2928 	WORD cmd;
2929 } ACCEL,*LPACCEL;
2930 
2931 typedef struct tagACCESSTIMEOUT {
2932 	UINT cbSize;
2933 	DWORD dwFlags;
2934 	DWORD iTimeOutMSec;
2935 } ACCESSTIMEOUT, *LPACCESSTIMEOUT;
2936 
2937 typedef struct tagANIMATIONINFO {
2938 	UINT cbSize;
2939 	int iMinAnimate;
2940 } ANIMATIONINFO,*LPANIMATIONINFO;
2941 
2942 typedef struct tagCREATESTRUCTA {
2943 	LPVOID	lpCreateParams;
2944 	HINSTANCE	hInstance;
2945 	HMENU	hMenu;
2946 	HWND	hwndParent;
2947 	int	cy;
2948 	int	cx;
2949 	int	y;
2950 	int	x;
2951 	LONG	style;
2952 	LPCSTR	lpszName;
2953 	LPCSTR	lpszClass;
2954 	DWORD	dwExStyle;
2955 } CREATESTRUCTA,*LPCREATESTRUCTA;
2956 
2957 typedef struct tagCREATESTRUCTW {
2958 	LPVOID	lpCreateParams;
2959 	HINSTANCE	hInstance;
2960 	HMENU	hMenu;
2961 	HWND	hwndParent;
2962 	int	cy;
2963 	int	cx;
2964 	int	y;
2965 	int	x;
2966 	LONG	style;
2967 	LPCWSTR	lpszName;
2968 	LPCWSTR	lpszClass;
2969 	DWORD	dwExStyle;
2970 } CREATESTRUCTW,*LPCREATESTRUCTW;
2971 
2972 typedef struct tagCBT_CREATEWNDA {
2973 	LPCREATESTRUCTA lpcs;
2974 	HWND	hwndInsertAfter;
2975 } CBT_CREATEWNDA, *LPCBT_CREATEWNDA;
2976 
2977 typedef struct tagCBT_CREATEWNDW {
2978 	LPCREATESTRUCTW lpcs;
2979 	HWND	hwndInsertAfter;
2980 } CBT_CREATEWNDW, *LPCBT_CREATEWNDW;
2981 
2982 typedef struct tagCBTACTIVATESTRUCT {
2983 	BOOL fMouse;
2984 	HWND hWndActive;
2985 } CBTACTIVATESTRUCT,*LPCBTACTIVATESTRUCT;
2986 
2987 typedef struct tagCLIENTCREATESTRUCT {
2988 	HANDLE	hWindowMenu;
2989 	UINT	idFirstChild;
2990 } CLIENTCREATESTRUCT,*LPCLIENTCREATESTRUCT;
2991 
2992 typedef struct tagCOMPAREITEMSTRUCT {
2993 	UINT	CtlType;
2994 	UINT	CtlID;
2995 	HWND	hwndItem;
2996 	UINT	itemID1;
2997 	ULONG_PTR	itemData1;
2998 	UINT	itemID2;
2999 	ULONG_PTR	itemData2;
3000 	DWORD	dwLocaleId;
3001 } COMPAREITEMSTRUCT, *PCOMPAREITEMSTRUCT,*LPCOMPAREITEMSTRUCT;
3002 
3003 typedef struct tagCOPYDATASTRUCT {
3004   ULONG_PTR dwData;
3005   DWORD cbData;
3006   _Field_size_bytes_(cbData) PVOID lpData;
3007 } COPYDATASTRUCT,*PCOPYDATASTRUCT;
3008 
3009 typedef struct tagCURSORSHAPE {
3010 	int xHotSpot;
3011 	int yHotSpot;
3012 	int cx;
3013 	int cy;
3014 	int cbWidth;
3015     BYTE Planes;
3016     BYTE BitsPixel;
3017 } CURSORSHAPE,*LPCURSORSHAPE;
3018 
3019 typedef struct tagCWPRETSTRUCT {
3020 	LRESULT lResult;
3021 	LPARAM lParam;
3022 	WPARAM wParam;
3023 	DWORD message;
3024 	HWND hwnd;
3025 } CWPRETSTRUCT,*PCWPRETSTRUCT, *LPCWPRETSTRUCT;
3026 
3027 typedef struct tagCWPSTRUCT {
3028 	LPARAM lParam;
3029 	WPARAM wParam;
3030 	UINT message;
3031 	HWND hwnd;
3032 } CWPSTRUCT,*PCWPSTRUCT, *LPCWPSTRUCT;
3033 
3034 typedef struct tagDEBUGHOOKINFO {
3035 	DWORD idThread;
3036 	DWORD idThreadInstaller;
3037 	LPARAM lParam;
3038 	WPARAM wParam;
3039 	int code;
3040 } DEBUGHOOKINFO,*PDEBUGHOOKINFO,*LPDEBUGHOOKINFO;
3041 
3042 typedef struct tagDELETEITEMSTRUCT {
3043 	UINT CtlType;
3044 	UINT CtlID;
3045 	UINT itemID;
3046 	HWND hwndItem;
3047 	ULONG_PTR itemData;
3048 } DELETEITEMSTRUCT,*PDELETEITEMSTRUCT,*LPDELETEITEMSTRUCT;
3049 
3050 #include <pshpack2.h>
3051 typedef struct {
3052 	DWORD style;
3053 	DWORD dwExtendedStyle;
3054 	short x;
3055 	short y;
3056 	short cx;
3057 	short cy;
3058 	WORD id;
3059 } DLGITEMTEMPLATE,*LPDLGITEMTEMPLATE;
3060 
3061 typedef struct {
3062 	DWORD style;
3063 	DWORD dwExtendedStyle;
3064 	WORD cdit;
3065 	short x;
3066 	short y;
3067 	short cx;
3068 	short cy;
3069 } DLGTEMPLATE,*LPDLGTEMPLATE,*LPDLGTEMPLATEA,*LPDLGTEMPLATEW;
3070 
3071 typedef const DLGTEMPLATE *LPCDLGTEMPLATEA;
3072 typedef const DLGTEMPLATE *LPCDLGTEMPLATEW;
3073 typedef DLGITEMTEMPLATE *PDLGITEMTEMPLATEA;
3074 typedef DLGITEMTEMPLATE *PDLGITEMTEMPLATEW;
3075 DECL_WINELIB_TYPE_AW(PDLGITEMTEMPLATE)
3076 typedef DLGITEMTEMPLATE *LPDLGITEMTEMPLATEA;
3077 typedef DLGITEMTEMPLATE *LPDLGITEMTEMPLATEW;
3078 
3079 
3080 #ifdef UNICODE
3081 typedef LPCDLGTEMPLATEW LPCDLGTEMPLATE;
3082 #else
3083 typedef LPCDLGTEMPLATEA LPCDLGTEMPLATE;
3084 #endif // UNICODE
3085 #include <poppack.h>
3086 
3087 typedef struct tagDRAWITEMSTRUCT {
3088 	UINT CtlType;
3089 	UINT CtlID;
3090 	UINT itemID;
3091 	UINT itemAction;
3092 	UINT itemState;
3093 	HWND hwndItem;
3094 	HDC	hDC;
3095 	RECT rcItem;
3096 	ULONG_PTR itemData;
3097 } DRAWITEMSTRUCT,*LPDRAWITEMSTRUCT,*PDRAWITEMSTRUCT;
3098 
3099 typedef struct {
3100 	UINT cbSize;
3101 	int iTabLength;
3102 	int iLeftMargin;
3103 	int iRightMargin;
3104 	UINT uiLengthDrawn;
3105 } DRAWTEXTPARAMS,*LPDRAWTEXTPARAMS;
3106 
3107 typedef struct tagPAINTSTRUCT {
3108 	HDC	hdc;
3109 	BOOL fErase;
3110 	RECT rcPaint;
3111 	BOOL fRestore;
3112 	BOOL fIncUpdate;
3113 	BYTE rgbReserved[32];
3114 } PAINTSTRUCT, *PPAINTSTRUCT,*LPPAINTSTRUCT;
3115 
3116 typedef struct tagMSG {
3117 	HWND hwnd;
3118 	UINT message;
3119 	WPARAM wParam;
3120 	LPARAM lParam;
3121 	DWORD time;
3122 	POINT pt;
3123 } MSG,*LPMSG,*PMSG;
3124 
3125 typedef struct _ICONINFO {
3126 	BOOL fIcon;
3127 	DWORD xHotspot;
3128 	DWORD yHotspot;
3129 	HBITMAP hbmMask;
3130 	HBITMAP hbmColor;
3131 } ICONINFO,*PICONINFO;
3132 
3133 typedef struct _ICONINFOEXA
3134 {
3135 	DWORD     cbSize;
3136 	BOOL      fIcon;
3137 	DWORD     xHotspot;
3138 	DWORD     yHotspot;
3139 	HBITMAP   hbmMask;
3140 	HBITMAP   hbmColor;
3141 	WORD      wResID;
3142 	CHAR      szModName[MAX_PATH];
3143 	CHAR      szResName[MAX_PATH];
3144 } ICONINFOEXA, *PICONINFOEXA;
3145 
3146 typedef struct _ICONINFOEXW
3147 {
3148 	DWORD     cbSize;
3149 	BOOL      fIcon;
3150 	DWORD     xHotspot;
3151 	DWORD     yHotspot;
3152 	HBITMAP   hbmMask;
3153 	HBITMAP   hbmColor;
3154 	WORD      wResID;
3155 	WCHAR     szModName[MAX_PATH];
3156 	WCHAR     szResName[MAX_PATH];
3157 } ICONINFOEXW, *PICONINFOEXW;
3158 
3159 typedef struct tagNMHDR {
3160 	HWND hwndFrom;
3161 	UINT_PTR idFrom;
3162 	UINT code;
3163 } NMHDR,*LPNMHDR;
3164 
3165 typedef struct _WNDCLASSA {
3166 	UINT style;
3167 	WNDPROC lpfnWndProc;
3168 	int cbClsExtra;
3169 	int cbWndExtra;
3170 	HINSTANCE hInstance;
3171 	HICON hIcon;
3172 	HCURSOR hCursor;
3173 	HBRUSH hbrBackground;
3174 	LPCSTR lpszMenuName;
3175 	LPCSTR lpszClassName;
3176 } WNDCLASSA,*LPWNDCLASSA,*PWNDCLASSA;
3177 
3178 typedef struct _WNDCLASSW {
3179 	UINT style;
3180 	WNDPROC lpfnWndProc;
3181 	int cbClsExtra;
3182 	int cbWndExtra;
3183 	HINSTANCE hInstance;
3184 	HICON hIcon;
3185 	HCURSOR hCursor;
3186 	HBRUSH hbrBackground;
3187 	LPCWSTR lpszMenuName;
3188 	LPCWSTR lpszClassName;
3189 } WNDCLASSW,*LPWNDCLASSW,*PWNDCLASSW;
3190 
3191 typedef enum tagAR_STATE {
3192   AR_ENABLED = 0x0,
3193   AR_DISABLED = 0x1,
3194   AR_SUPPRESSED = 0x2,
3195   AR_REMOTESESSION = 0x4,
3196   AR_MULTIMON = 0x8,
3197   AR_NOSENSOR = 0x10,
3198   AR_NOT_SUPPORTED = 0x20,
3199   AR_DOCKED = 0x40,
3200   AR_LAPTOP = 0x80
3201 } AR_STATE, *PAR_STATE;
3202 
3203 typedef struct _WNDCLASSEXA {
3204 	UINT cbSize;
3205 	UINT style;
3206 	WNDPROC lpfnWndProc;
3207 	int cbClsExtra;
3208 	int cbWndExtra;
3209 	HINSTANCE hInstance;
3210 	HICON hIcon;
3211 	HCURSOR hCursor;
3212 	HBRUSH hbrBackground;
3213 	LPCSTR lpszMenuName;
3214 	LPCSTR lpszClassName;
3215 	HICON hIconSm;
3216 } WNDCLASSEXA,*LPWNDCLASSEXA,*PWNDCLASSEXA;
3217 
3218 typedef struct _WNDCLASSEXW {
3219 	UINT cbSize;
3220 	UINT style;
3221 	WNDPROC lpfnWndProc;
3222 	int cbClsExtra;
3223 	int cbWndExtra;
3224 	HINSTANCE hInstance;
3225 	HICON hIcon;
3226 	HCURSOR hCursor;
3227 	HBRUSH hbrBackground;
3228 	LPCWSTR lpszMenuName;
3229 	LPCWSTR lpszClassName;
3230 	HICON hIconSm;
3231 } WNDCLASSEXW,*LPWNDCLASSEXW,*PWNDCLASSEXW;
3232 
3233 #define MNGOF_TOPGAP 0x00000001
3234 #define MNGOF_BOTTOMGAP 0x00000002
3235 
3236 typedef struct tagMENUGETOBJECTINFO {
3237 	DWORD dwFlags;
3238 	UINT uPos;
3239 	HMENU hmenu;
3240 	PVOID riid;
3241 	PVOID pvObj;
3242 } MENUGETOBJECTINFO,*PMENUGETOBJECTINFO;
3243 
3244 typedef struct tagMENUITEMINFOA {
3245 	UINT cbSize;
3246 	UINT fMask;
3247 	UINT fType;
3248 	UINT fState;
3249 	UINT wID;
3250 	HMENU hSubMenu;
3251 	HBITMAP hbmpChecked;
3252 	HBITMAP hbmpUnchecked;
3253 	ULONG_PTR dwItemData;
3254 	LPSTR dwTypeData;
3255 	UINT cch;
3256 #if (_WIN32_WINNT >= 0x0500)
3257 	HBITMAP hbmpItem;
3258 #endif
3259 } MENUITEMINFOA,*LPMENUITEMINFOA;
3260 typedef const MENUITEMINFOA *LPCMENUITEMINFOA;
3261 
3262 typedef struct tagMENUITEMINFOW {
3263 	UINT cbSize;
3264 	UINT fMask;
3265 	UINT fType;
3266 	UINT fState;
3267 	UINT wID;
3268 	HMENU hSubMenu;
3269 	HBITMAP hbmpChecked;
3270 	HBITMAP hbmpUnchecked;
3271 	ULONG_PTR dwItemData;
3272 	LPWSTR dwTypeData;
3273 	UINT cch;
3274 #if (_WIN32_WINNT >= 0x0500)
3275 	HBITMAP hbmpItem;
3276 #endif
3277 } MENUITEMINFOW,*LPMENUITEMINFOW;
3278 
3279 typedef const MENUITEMINFOW *LPCMENUITEMINFOW;
3280 
3281 typedef struct tagSCROLLINFO {
3282 	UINT cbSize;
3283 	UINT fMask;
3284 	int nMin;
3285 	int nMax;
3286 	UINT nPage;
3287 	int nPos;
3288 	int nTrackPos;
3289 } SCROLLINFO,*LPSCROLLINFO;
3290 typedef const SCROLLINFO *LPCSCROLLINFO;
3291 
3292 typedef struct _WINDOWPLACEMENT {
3293 	UINT length;
3294 	UINT flags;
3295 	UINT showCmd;
3296 	POINT ptMinPosition;
3297 	POINT ptMaxPosition;
3298 	RECT rcNormalPosition;
3299 } WINDOWPLACEMENT,*LPWINDOWPLACEMENT,*PWINDOWPLACEMENT;
3300 
3301 typedef struct {
3302 	WORD versionNumber;
3303 	WORD offset;
3304 } MENUITEMTEMPLATEHEADER, *PMENUITEMTEMPLATEHEADER;
3305 
3306 typedef struct {
3307 	WORD mtOption;
3308 	WORD mtID;
3309 	WCHAR mtString[1];
3310 } MENUITEMTEMPLATE, *PMENUITEMTEMPLATE;
3311 
3312 typedef void MENUTEMPLATE,MENUTEMPLATEA,MENUTEMPLATEW,*LPMENUTEMPLATEA,*LPMENUTEMPLATEW,*LPMENUTEMPLATE;
3313 
3314 typedef struct tagHELPINFO {
3315 	UINT cbSize;
3316 	int iContextType;
3317 	int iCtrlId;
3318 	HANDLE hItemHandle;
3319 	DWORD_PTR dwContextId;
3320 	POINT MousePos;
3321 } HELPINFO,*LPHELPINFO;
3322 
3323 typedef void(CALLBACK *MSGBOXCALLBACK)(LPHELPINFO);
3324 
3325 typedef struct {
3326 	UINT cbSize;
3327 	HWND hwndOwner;
3328 	HINSTANCE hInstance;
3329 	LPCSTR lpszText;
3330 	LPCSTR lpszCaption;
3331 	DWORD dwStyle;
3332 	LPCSTR lpszIcon;
3333 	DWORD_PTR dwContextHelpId;
3334 	MSGBOXCALLBACK lpfnMsgBoxCallback;
3335 	DWORD dwLanguageId;
3336 } MSGBOXPARAMSA,*PMSGBOXPARAMSA,*LPMSGBOXPARAMSA;
3337 
3338 typedef struct {
3339 	UINT cbSize;
3340 	HWND hwndOwner;
3341 	HINSTANCE hInstance;
3342 	LPCWSTR lpszText;
3343 	LPCWSTR lpszCaption;
3344 	DWORD dwStyle;
3345 	LPCWSTR lpszIcon;
3346 	DWORD_PTR dwContextHelpId;
3347 	MSGBOXCALLBACK lpfnMsgBoxCallback;
3348 	DWORD dwLanguageId;
3349 } MSGBOXPARAMSW,*PMSGBOXPARAMSW,*LPMSGBOXPARAMSW;
3350 
3351 typedef struct tagUSEROBJECTFLAGS {
3352 	BOOL fInherit;
3353 	BOOL fReserved;
3354 	DWORD dwFlags;
3355 } USEROBJECTFLAGS, *PUSEROBJECTFLAGS;
3356 
3357 typedef struct tagFILTERKEYS {
3358 	UINT cbSize;
3359 	DWORD dwFlags;
3360 	DWORD iWaitMSec;
3361 	DWORD iDelayMSec;
3362 	DWORD iRepeatMSec;
3363 	DWORD iBounceMSec;
3364 } FILTERKEYS, *LPFILTERKEYS;
3365 
3366 typedef struct tagHIGHCONTRASTA {
3367 	UINT cbSize;
3368 	DWORD dwFlags;
3369 	LPSTR lpszDefaultScheme;
3370 } HIGHCONTRASTA,*LPHIGHCONTRASTA;
3371 
3372 typedef struct tagHIGHCONTRASTW {
3373 	UINT cbSize;
3374 	DWORD dwFlags;
3375 	LPWSTR lpszDefaultScheme;
3376 } HIGHCONTRASTW,*LPHIGHCONTRASTW;
3377 
3378 #if defined(_WINGDI_) && !defined(NOGDI)
3379 typedef struct tagICONMETRICSA {
3380 	UINT cbSize;
3381 	int iHorzSpacing;
3382 	int iVertSpacing;
3383 	int iTitleWrap;
3384 	LOGFONTA lfFont;
3385 } ICONMETRICSA, *PICONMETRICSA, *LPICONMETRICSA;
3386 
3387 typedef struct tagICONMETRICSW {
3388 	UINT cbSize;
3389 	int iHorzSpacing;
3390 	int iVertSpacing;
3391 	int iTitleWrap;
3392 	LOGFONTW lfFont;
3393 } ICONMETRICSW, *PICONMETRICSW, *LPICONMETRICSW;
3394 
3395 #ifdef UNICODE
3396 typedef ICONMETRICSW ICONMETRICS,*LPICONMETRICS;
3397 #else /* UNICODE */
3398 typedef ICONMETRICSA ICONMETRICS,*LPICONMETRICS;
3399 #endif /* UNICODE */
3400 #endif /*  NOGDI */
3401 
3402 typedef struct tagMINIMIZEDMETRICS {
3403 	UINT cbSize;
3404 	int iWidth;
3405 	int iHorzGap;
3406 	int iVertGap;
3407 	int iArrange;
3408 } MINIMIZEDMETRICS, *PMINIMIZEDMETRICS,*LPMINIMIZEDMETRICS;
3409 
3410 #define WDA_NONE    0x0
3411 #define WDA_MONITOR 0x1
3412 
3413 typedef struct tagMOUSEKEYS{
3414 	UINT cbSize;
3415 	DWORD dwFlags;
3416 	DWORD iMaxSpeed;
3417 	DWORD iTimeToMaxSpeed;
3418 	DWORD iCtrlSpeed;
3419 	DWORD dwReserved1;
3420 	DWORD dwReserved2;
3421 } MOUSEKEYS,*LPMOUSEKEYS;
3422 
3423 #if defined(_WINGDI_) && !defined(NOGDI)
3424 typedef struct tagNONCLIENTMETRICSA {
3425 	UINT cbSize;
3426 	int iBorderWidth;
3427 	int iScrollWidth;
3428 	int iScrollHeight;
3429 	int iCaptionWidth;
3430 	int iCaptionHeight;
3431 	LOGFONTA lfCaptionFont;
3432 	int iSmCaptionWidth;
3433 	int iSmCaptionHeight;
3434 	LOGFONTA lfSmCaptionFont;
3435 	int iMenuWidth;
3436 	int iMenuHeight;
3437 	LOGFONTA lfMenuFont;
3438 	LOGFONTA lfStatusFont;
3439 	LOGFONTA lfMessageFont;
3440 #if (WINVER >= 0x0600)
3441         int iPaddedBorderWidth;
3442 #endif
3443 } NONCLIENTMETRICSA, *PNONCLIENTMETRICSA,*LPNONCLIENTMETRICSA;
3444 
3445 typedef struct tagNONCLIENTMETRICSW {
3446 	UINT cbSize;
3447 	int iBorderWidth;
3448 	int iScrollWidth;
3449 	int iScrollHeight;
3450 	int iCaptionWidth;
3451 	int iCaptionHeight;
3452 	LOGFONTW lfCaptionFont;
3453 	int iSmCaptionWidth;
3454 	int iSmCaptionHeight;
3455 	LOGFONTW lfSmCaptionFont;
3456 	int iMenuWidth;
3457 	int iMenuHeight;
3458 	LOGFONTW lfMenuFont;
3459 	LOGFONTW lfStatusFont;
3460 	LOGFONTW lfMessageFont;
3461 #if (WINVER >= 0x0600)
3462         int iPaddedBorderWidth;
3463 #endif
3464 } NONCLIENTMETRICSW, *PNONCLIENTMETRICSW,*LPNONCLIENTMETRICSW;
3465 
3466 #ifdef UNICODE
3467 typedef NONCLIENTMETRICSW NONCLIENTMETRICS,*LPNONCLIENTMETRICS;
3468 #else /* UNICODE */
3469 typedef NONCLIENTMETRICSA NONCLIENTMETRICS,*LPNONCLIENTMETRICS;
3470 #endif /* UNICODE */
3471 #endif
3472 
3473 typedef struct tagSERIALKEYSA {
3474 	UINT cbSize;
3475 	DWORD dwFlags;
3476 	LPSTR lpszActivePort;
3477 	LPSTR lpszPort;
3478 	UINT iBaudRate;
3479 	UINT iPortState;
3480 	UINT iActive;
3481 } SERIALKEYSA,*LPSERIALKEYSA;
3482 
3483 typedef struct tagSERIALKEYSW {
3484 	UINT cbSize;
3485 	DWORD dwFlags;
3486 	LPWSTR lpszActivePort;
3487 	LPWSTR lpszPort;
3488 	UINT iBaudRate;
3489 	UINT iPortState;
3490 	UINT iActive;
3491 } SERIALKEYSW,*LPSERIALKEYSW;
3492 
3493 typedef struct tagSOUNDSENTRYA {
3494 	UINT cbSize;
3495 	DWORD dwFlags;
3496 	DWORD iFSTextEffect;
3497 	DWORD iFSTextEffectMSec;
3498 	DWORD iFSTextEffectColorBits;
3499 	DWORD iFSGrafEffect;
3500 	DWORD iFSGrafEffectMSec;
3501 	DWORD iFSGrafEffectColor;
3502 	DWORD iWindowsEffect;
3503 	DWORD iWindowsEffectMSec;
3504 	LPSTR lpszWindowsEffectDLL;
3505 	DWORD iWindowsEffectOrdinal;
3506 } SOUNDSENTRYA,*LPSOUNDSENTRYA;
3507 
3508 typedef struct tagSOUNDSENTRYW {
3509 	UINT cbSize;
3510 	DWORD dwFlags;
3511 	DWORD iFSTextEffect;
3512 	DWORD iFSTextEffectMSec;
3513 	DWORD iFSTextEffectColorBits;
3514 	DWORD iFSGrafEffect;
3515 	DWORD iFSGrafEffectMSec;
3516 	DWORD iFSGrafEffectColor;
3517 	DWORD iWindowsEffect;
3518 	DWORD iWindowsEffectMSec;
3519 	LPWSTR lpszWindowsEffectDLL;
3520 	DWORD iWindowsEffectOrdinal;
3521 } SOUNDSENTRYW,*LPSOUNDSENTRYW;
3522 
3523 #if (_WIN32_WINNT >= 0x0600)
3524 typedef struct tagAUDIODESCRIPTION {
3525 	UINT cbSize;
3526 	BOOL Enabled;
3527 	LCID Locale;
3528 } AUDIODESCRIPTION, *LPAUDIODESCRIPTION;
3529 #endif
3530 
3531 typedef struct tagSTICKYKEYS {
3532 	DWORD cbSize;
3533 	DWORD dwFlags;
3534 } STICKYKEYS,*LPSTICKYKEYS;
3535 
3536 typedef struct tagTOGGLEKEYS {
3537 	DWORD cbSize;
3538 	DWORD dwFlags;
3539 } TOGGLEKEYS, *LPTOGGLEKEYS;
3540 
3541 typedef struct tagMOUSEHOOKSTRUCT {
3542 	POINT pt;
3543 	HWND hwnd;
3544 	UINT wHitTestCode;
3545 	ULONG_PTR dwExtraInfo;
3546 } MOUSEHOOKSTRUCT,*LPMOUSEHOOKSTRUCT,*PMOUSEHOOKSTRUCT;
3547 
3548 typedef struct tagHARDWAREHOOKSTRUCT {
3549     HWND    hwnd;
3550     UINT    message;
3551     WPARAM  wParam;
3552     LPARAM  lParam;
3553 } HARDWAREHOOKSTRUCT, *PHARDWAREHOOKSTRUCT, *LPHARDWAREHOOKSTRUCT;
3554 
3555 #if ( _WIN32_WINNT >= 0x0500 )
3556 #ifdef __cplusplus
3557 typedef struct tagMOUSEHOOKSTRUCTEX : public tagMOUSEHOOKSTRUCT
3558 {
3559         DWORD   mouseData;
3560 } MOUSEHOOKSTRUCTEX, *LPMOUSEHOOKSTRUCTEX, *PMOUSEHOOKSTRUCTEX;
3561 #else
3562 typedef struct tagMOUSEHOOKSTRUCTEX
3563 {
3564         MOUSEHOOKSTRUCT MOUSEHOOKSTRUCT;
3565         DWORD   mouseData;
3566 } MOUSEHOOKSTRUCTEX, *LPMOUSEHOOKSTRUCTEX, *PMOUSEHOOKSTRUCTEX;
3567 #endif
3568 #endif
3569 
3570 typedef struct tagTRACKMOUSEEVENT {
3571 	DWORD cbSize;
3572 	DWORD dwFlags;
3573 	HWND  hwndTrack;
3574 	DWORD dwHoverTime;
3575 } TRACKMOUSEEVENT,*LPTRACKMOUSEEVENT;
3576 
3577 typedef struct tagTPMPARAMS {
3578 	UINT cbSize;
3579 	RECT rcExclude;
3580 } TPMPARAMS,*LPTPMPARAMS;
3581 
3582 typedef struct tagEVENTMSG {
3583 	UINT message;
3584 	UINT paramL;
3585 	UINT paramH;
3586 	DWORD time;
3587 	HWND hwnd;
3588 } EVENTMSG,*PEVENTMSGMSG,*LPEVENTMSGMSG,*PEVENTMSG,*LPEVENTMSG;
3589 
3590 typedef struct _WINDOWPOS {
3591 	HWND hwnd;
3592 	HWND hwndInsertAfter;
3593 	int x;
3594 	int y;
3595 	int cx;
3596 	int cy;
3597 	UINT flags;
3598 } WINDOWPOS,*PWINDOWPOS,*LPWINDOWPOS;
3599 
3600 typedef struct tagNCCALCSIZE_PARAMS {
3601 	RECT rgrc[3];
3602 	PWINDOWPOS lppos;
3603 } NCCALCSIZE_PARAMS, *LPNCCALCSIZE_PARAMS;
3604 
3605 typedef struct tagMDICREATESTRUCTA {
3606 	LPCSTR szClass;
3607 	LPCSTR szTitle;
3608 	HANDLE hOwner;
3609 	int x;
3610 	int y;
3611 	int cx;
3612 	int cy;
3613 	DWORD style;
3614 	LPARAM lParam;
3615 } MDICREATESTRUCTA,*LPMDICREATESTRUCTA;
3616 
3617 typedef struct tagMDICREATESTRUCTW {
3618 	LPCWSTR szClass;
3619 	LPCWSTR szTitle;
3620 	HANDLE hOwner;
3621 	int x;
3622 	int y;
3623 	int cx;
3624 	int cy;
3625 	DWORD style;
3626 	LPARAM lParam;
3627 } MDICREATESTRUCTW,*LPMDICREATESTRUCTW;
3628 
3629 typedef struct tagMINMAXINFO {
3630 	POINT ptReserved;
3631 	POINT ptMaxSize;
3632 	POINT ptMaxPosition;
3633 	POINT ptMinTrackSize;
3634 	POINT ptMaxTrackSize;
3635 } MINMAXINFO,*PMINMAXINFO,*LPMINMAXINFO;
3636 
3637 typedef struct tagMDINEXTMENU {
3638 	HMENU hmenuIn;
3639 	HMENU hmenuNext;
3640 	HWND hwndNext;
3641 } MDINEXTMENU,*PMDINEXTMENU,*LPMDINEXTMENU;
3642 
3643 typedef struct tagMEASUREITEMSTRUCT {
3644 	UINT CtlType;
3645 	UINT CtlID;
3646 	UINT itemID;
3647 	UINT itemWidth;
3648 	UINT itemHeight;
3649 	ULONG_PTR itemData;
3650 } MEASUREITEMSTRUCT,*PMEASUREITEMSTRUCT,*LPMEASUREITEMSTRUCT;
3651 
3652 typedef struct tagDROPSTRUCT {
3653 	HWND hwndSource;
3654 	HWND hwndSink;
3655 	DWORD wFmt;
3656 	ULONG_PTR dwData;
3657 	POINT ptDrop;
3658 	DWORD dwControlData;
3659 } DROPSTRUCT,*PDROPSTRUCT,*LPDROPSTRUCT;
3660 
3661 typedef DWORD HELPPOLY;
3662 typedef struct tagMULTIKEYHELPA {
3663 	DWORD mkSize;
3664 	CHAR mkKeylist;
3665 	CHAR szKeyphrase[1];
3666 } MULTIKEYHELPA,*PMULTIKEYHELPA,*LPMULTIKEYHELPA;
3667 
3668 typedef struct tagMULTIKEYHELPW {
3669 	DWORD mkSize;
3670 	WCHAR mkKeylist;
3671 	WCHAR szKeyphrase[1];
3672 } MULTIKEYHELPW,*PMULTIKEYHELPW,*LPMULTIKEYHELPW;
3673 
3674 typedef struct tagHELPWININFOA {
3675 	int wStructSize;
3676 	int x;
3677 	int y;
3678 	int dx;
3679 	int dy;
3680 	int wMax;
3681 	CHAR rgchMember[2];
3682 } HELPWININFOA,*PHELPWININFOA,*LPHELPWININFOA;
3683 
3684 typedef struct tagHELPWININFOW {
3685 	int wStructSize;
3686 	int x;
3687 	int y;
3688 	int dx;
3689 	int dy;
3690 	int wMax;
3691 	WCHAR rgchMember[2];
3692 } HELPWININFOW,*PHELPWININFOW,*LPHELPWININFOW;
3693 
3694 typedef struct tagSTYLESTRUCT {
3695 	DWORD styleOld;
3696 	DWORD styleNew;
3697 } STYLESTRUCT,*LPSTYLESTRUCT;
3698 
3699 typedef struct tagALTTABINFO {
3700 	DWORD cbSize;
3701 	int   cItems;
3702 	int   cColumns;
3703 	int   cRows;
3704 	int   iColFocus;
3705 	int   iRowFocus;
3706 	int   cxItem;
3707 	int   cyItem;
3708 	POINT ptStart;
3709 } ALTTABINFO,*PALTTABINFO,*LPALTTABINFO;
3710 
3711 typedef struct tagCOMBOBOXINFO {
3712 	DWORD cbSize;
3713 	RECT rcItem;
3714 	RECT rcButton;
3715 	DWORD stateButton;
3716 	HWND hwndCombo;
3717 	HWND hwndItem;
3718 	HWND hwndList;
3719 } COMBOBOXINFO,*PCOMBOBOXINFO,*LPCOMBOBOXINFO;
3720 
3721 typedef struct tagCURSORINFO {
3722 	DWORD cbSize;
3723 	DWORD flags;
3724 	HCURSOR hCursor;
3725 	POINT ptScreenPos;
3726 } CURSORINFO,*PCURSORINFO,*LPCURSORINFO;
3727 
3728 typedef struct tagMENUBARINFO {
3729 	DWORD cbSize;
3730 	RECT  rcBar;
3731 	HMENU hMenu;
3732 	HWND  hwndMenu;
3733 	BOOL  fBarFocused:1;
3734 	BOOL  fFocused:1;
3735 } MENUBARINFO,*PMENUBARINFO;
3736 
3737 typedef struct tagMENUINFO {
3738 	DWORD cbSize;
3739 	DWORD fMask;
3740 	DWORD dwStyle;
3741 	UINT cyMax;
3742 	HBRUSH  hbrBack;
3743 	DWORD   dwContextHelpID;
3744 	ULONG_PTR dwMenuData;
3745 } MENUINFO,*LPMENUINFO;
3746 
3747 typedef MENUINFO CONST *LPCMENUINFO;
3748 #define CCHILDREN_SCROLLBAR 5
3749 
3750 typedef struct tagSCROLLBARINFO {
3751 	DWORD cbSize;
3752 	RECT  rcScrollBar;
3753 	int   dxyLineButton;
3754 	int   xyThumbTop;
3755 	int   xyThumbBottom;
3756 	int   reserved;
3757 	DWORD rgstate[CCHILDREN_SCROLLBAR+1];
3758 } SCROLLBARINFO,*PSCROLLBARINFO,*LPSCROLLBARINFO;
3759 
3760 #define CCHILDREN_TITLEBAR 5
3761 
3762 typedef struct tagTITLEBARINFO {
3763 	DWORD cbSize;
3764 	RECT  rcTitleBar;
3765 	DWORD rgstate[CCHILDREN_TITLEBAR+1];
3766 } TITLEBARINFO,*PTITLEBARINFO,*LPTITLEBARINFO;
3767 
3768 typedef struct tagWINDOWINFO {
3769 	DWORD cbSize;
3770 	RECT  rcWindow;
3771 	RECT  rcClient;
3772 	DWORD dwStyle;
3773 	DWORD dwExStyle;
3774 	DWORD dwWindowStatus;
3775 	UINT  cxWindowBorders;
3776 	UINT  cyWindowBorders;
3777 	ATOM  atomWindowType;
3778 	WORD  wCreatorVersion;
3779 } WINDOWINFO,*PWINDOWINFO,*LPWINDOWINFO;
3780 
3781 typedef struct tagLASTINPUTINFO {
3782 	UINT cbSize;
3783 	DWORD dwTime;
3784 } LASTINPUTINFO,*PLASTINPUTINFO;
3785 
3786 typedef struct tagMONITORINFO {
3787 	DWORD cbSize;
3788 	RECT rcMonitor;
3789 	RECT rcWork;
3790 	DWORD dwFlags;
3791 } MONITORINFO,*LPMONITORINFO;
3792 
3793 #define CCHDEVICENAME 32
3794 typedef struct tagMONITORINFOEXA {
3795 	DWORD	cbSize;
3796 	RECT	rcMonitor;
3797 	RECT	rcWork;
3798 	DWORD	dwFlags;
3799 	CHAR	szDevice[CCHDEVICENAME];
3800 } MONITORINFOEXA,*LPMONITORINFOEXA;
3801 
3802 typedef struct tagMONITORINFOEXW {
3803 	DWORD	cbSize;
3804 	RECT	rcMonitor;
3805 	RECT	rcWork;
3806 	DWORD	dwFlags;
3807 	WCHAR	szDevice[CCHDEVICENAME];
3808 } MONITORINFOEXW,*LPMONITORINFOEXW;
3809 
3810 typedef struct tagKBDLLHOOKSTRUCT {
3811 	DWORD vkCode;
3812 	DWORD scanCode;
3813 	DWORD flags;
3814 	DWORD time;
3815 	ULONG_PTR dwExtraInfo;
3816 } KBDLLHOOKSTRUCT,*LPKBDLLHOOKSTRUCT,*PKBDLLHOOKSTRUCT;
3817 
3818 typedef struct tagMSLLHOOKSTRUCT
3819 {
3820 	POINT pt;
3821 	DWORD mouseData;
3822 	DWORD flags;
3823 	DWORD time;
3824 	ULONG_PTR dwExtraInfo;
3825 } MSLLHOOKSTRUCT, *LPMSLLHOOKSTRUCT, *PMSLLHOOKSTRUCT;
3826 
3827 #if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0410)
3828 typedef struct {
3829   UINT  cbSize;
3830   HWND  hwnd;
3831   DWORD dwFlags;
3832   UINT  uCount;
3833   DWORD dwTimeout;
3834 } FLASHWINFO,*PFLASHWINFO;
3835 #endif /* (WINVER >= 0x0500 || _WIN32_WINDOWS >= 0x0410) */
3836 
3837 #if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0490)
3838 typedef struct tagMOUSEMOVEPOINT {
3839   int x;
3840   int y;
3841   DWORD time;
3842   ULONG_PTR dwExtraInfo;
3843 } MOUSEMOVEPOINT,*PMOUSEMOVEPOINT,*LPMOUSEMOVEPOINT;
3844 #endif
3845 
3846 #if (_WIN32_WINNT >= 0x0400)
3847 typedef struct tagMOUSEINPUT {
3848   LONG dx;
3849   LONG dy;
3850   DWORD mouseData;
3851   DWORD dwFlags;
3852   DWORD time;
3853   ULONG_PTR dwExtraInfo;
3854 } MOUSEINPUT,*PMOUSEINPUT, *LPMOUSEINPUT;
3855 
3856 typedef struct tagKEYBDINPUT {
3857   WORD wVk;
3858   WORD wScan;
3859   DWORD dwFlags;
3860   DWORD time;
3861   ULONG_PTR dwExtraInfo;
3862 } KEYBDINPUT, *PKEYBDINPUT, *LPKEYBDINPUT;
3863 
3864 typedef struct tagHARDWAREINPUT {
3865   DWORD uMsg;
3866   WORD wParamL;
3867   WORD wParamH;
3868 } HARDWAREINPUT, *PHARDWAREINPUT, *LPHARDWAREINPUT;
3869 
3870 typedef struct tagINPUT {
3871   DWORD type;
3872   _ANONYMOUS_UNION union {
3873 		MOUSEINPUT mi;
3874 		KEYBDINPUT ki;
3875 		HARDWAREINPUT hi;
3876   } DUMMYUNIONNAME;
3877 } INPUT,*PINPUT,*LPINPUT;
3878 #endif /* (_WIN32_WINNT >= 0x0400) */
3879 
3880 #if (WINVER >= 0x0500)
3881 typedef struct tagGUITHREADINFO {
3882 	DWORD cbSize;
3883 	DWORD flags;
3884 	HWND hwndActive;
3885 	HWND hwndFocus;
3886 	HWND hwndCapture;
3887 	HWND hwndMenuOwner;
3888 	HWND hwndMoveSize;
3889 	HWND hwndCaret;
3890 	RECT rcCaret;
3891 } GUITHREADINFO,*PGUITHREADINFO,*LPGUITHREADINFO;
3892 
3893 typedef VOID (CALLBACK *WINEVENTPROC)(HWINEVENTHOOK,DWORD,HWND,LONG,LONG,DWORD,DWORD);
3894 #endif /* (WINVER >= 0x0500) */
3895 
3896 #if (_WIN32_WINNT >= 0x0501)
3897 typedef struct {
3898 	UINT  cbSize;
3899 	HDESK hdesk;
3900 	HWND  hwnd;
3901 	LUID  luid;
3902 } BSMINFO,*PBSMINFO;
3903 DECLARE_HANDLE(HRAWINPUT);
3904 
3905 typedef struct tagRAWINPUTHEADER {
3906 	DWORD dwType;
3907 	DWORD dwSize;
3908 	HANDLE hDevice;
3909 	WPARAM wParam;
3910 } RAWINPUTHEADER,*PRAWINPUTHEADER;
3911 
3912 typedef struct tagRAWMOUSE {
3913 	USHORT usFlags;
3914 	_ANONYMOUS_UNION union {
3915 		ULONG ulButtons;
3916 		_ANONYMOUS_STRUCT struct {
3917 			USHORT usButtonFlags;
3918 			USHORT usButtonData;
3919 		};
3920 	};
3921 	ULONG ulRawButtons;
3922 	LONG lLastX;
3923 	LONG lLastY;
3924 	ULONG ulExtraInformation;
3925 } RAWMOUSE,*PRAWMOUSE,*LPRAWMOUSE;
3926 
3927 typedef struct tagRAWKEYBOARD {
3928 	USHORT MakeCode;
3929 	USHORT Flags;
3930 	USHORT Reserved;
3931 	USHORT VKey;
3932 	UINT Message;
3933 	ULONG ExtraInformation;
3934 } RAWKEYBOARD,*PRAWKEYBOARD,*LPRAWKEYBOARD;
3935 
3936 typedef struct tagRAWHID {
3937 	DWORD dwSizeHid;
3938 	DWORD dwCount;
3939 	BYTE bRawData;
3940 } RAWHID,*PRAWHID,*LPRAWHID;
3941 
3942 typedef struct tagRAWINPUT {
3943 	RAWINPUTHEADER header;
3944 	union {
3945 		RAWMOUSE    mouse;
3946 		RAWKEYBOARD keyboard;
3947 		RAWHID      hid;
3948 	} data;
3949 } RAWINPUT,*PRAWINPUT,*LPRAWINPUT;
3950 
3951 typedef struct tagRAWINPUTDEVICE {
3952 	USHORT usUsagePage;
3953 	USHORT usUsage;
3954 	DWORD dwFlags;
3955 	HWND hwndTarget;
3956 } RAWINPUTDEVICE,*PRAWINPUTDEVICE,*LPRAWINPUTDEVICE;
3957 
3958 typedef const RAWINPUTDEVICE *PCRAWINPUTDEVICE;
3959 
3960 typedef struct tagRAWINPUTDEVICELIST {
3961 	HANDLE hDevice;
3962 	DWORD dwType;
3963 } RAWINPUTDEVICELIST,*PRAWINPUTDEVICELIST;
3964 
3965 typedef struct tagRID_DEVICE_INFO_MOUSE {
3966   DWORD dwId;
3967   DWORD dwNumberOfButtons;
3968   DWORD dwSampleRate;
3969   BOOL fHasHorizontalWheel;
3970 } RID_DEVICE_INFO_MOUSE, *PRID_DEVICE_INFO_MOUSE;
3971 
3972 typedef struct tagRID_DEVICE_INFO_KEYBOARD {
3973   DWORD dwType;
3974   DWORD dwSubType;
3975   DWORD dwKeyboardMode;
3976   DWORD dwNumberOfFunctionKeys;
3977   DWORD dwNumberOfIndicators;
3978   DWORD dwNumberOfKeysTotal;
3979 } RID_DEVICE_INFO_KEYBOARD, *PRID_DEVICE_INFO_KEYBOARD;
3980 
3981 typedef struct tagRID_DEVICE_INFO_HID {
3982   DWORD dwVendorId;
3983   DWORD dwProductId;
3984   DWORD dwVersionNumber;
3985   USHORT usUsagePage;
3986   USHORT usUsage;
3987 } RID_DEVICE_INFO_HID, *PRID_DEVICE_INFO_HID;
3988 
3989 typedef struct tagRID_DEVICE_INFO {
3990   DWORD cbSize;
3991   DWORD dwType;
3992   union {
3993     RID_DEVICE_INFO_MOUSE mouse;
3994     RID_DEVICE_INFO_KEYBOARD keyboard;
3995     RID_DEVICE_INFO_HID hid;
3996   } DUMMYUNIONNAME;
3997 } RID_DEVICE_INFO, *PRID_DEVICE_INFO, *LPRID_DEVICE_INFO;
3998 
3999 #endif /* (_WIN32_WINNT >= 0x0501) */
4000 
4001 #define AnsiToOem CharToOemA
4002 #define OemToAnsi OemToCharA
4003 #define AnsiToOemBuff CharToOemBuffA
4004 #define OemToAnsiBuff OemToCharBuffA
4005 #define AnsiUpper CharUpperA
4006 #define AnsiUpperBuff CharUpperBuffA
4007 #define AnsiLower CharLowerA
4008 #define AnsiLowerBuff CharLowerBuffA
4009 #define AnsiNext CharNextA
4010 #define AnsiPrev CharPrevA
4011 #define MAKELPARAM(l,h) ((LPARAM)MAKELONG(l,h))
4012 #define MAKEWPARAM(l,h) ((WPARAM)MAKELONG(l,h))
4013 #define MAKELRESULT(l,h) ((LRESULT)MAKELONG(l,h))
4014 #define POINTSTOPOINT(p,ps) { \
4015   (p).x=LOWORD(*(DWORD *)&ps); \
4016   (p).y=HIWORD(*(DWORD *)&ps); \
4017 }
4018 #define POINTTOPOINTS(p) ((POINTS)MAKELONG((p).x,(p).y))
4019 
4020 #if (WINVER >= 0x0601)
4021 
4022 typedef enum tagINPUT_MESSAGE_DEVICE_TYPE {
4023   IMDT_UNAVAILABLE = 0x00,
4024   IMDT_KEYBOARD = 0x01,
4025   IMDT_MOUSE = 0x02,
4026   IMDT_TOUCH = 0x04,
4027   IMDT_PEN = 0x08,
4028   IMDT_TOUCHPAD = 0x10
4029 } INPUT_MESSAGE_DEVICE_TYPE;
4030 
4031 typedef enum tagINPUT_MESSAGE_ORIGIN_ID {
4032   IMO_UNAVAILABLE = 0x00,
4033   IMO_HARDWARE = 0x01,
4034   IMO_INJECTED = 0x02,
4035   IMO_SYSTEM = 0x04
4036 } INPUT_MESSAGE_ORIGIN_ID;
4037 
4038 typedef struct tagINPUT_MESSAGE_SOURCE {
4039   INPUT_MESSAGE_DEVICE_TYPE deviceType;
4040   INPUT_MESSAGE_ORIGIN_ID originId;
4041 } INPUT_MESSAGE_SOURCE;
4042 
4043 #endif /* WINVER >= 0x0601 */
4044 
4045 #if(WINVER >= 0x0602)
4046 
4047 enum tagPOINTER_INPUT_TYPE {
4048   PT_POINTER = 1,
4049   PT_TOUCH,
4050   PT_PEN,
4051   PT_MOUSE,
4052   PT_TOUCHPAD
4053 };
4054 typedef DWORD POINTER_INPUT_TYPE;
4055 
4056 #endif /* WINVER >= 0x0602 */
4057 
4058 HKL WINAPI ActivateKeyboardLayout(_In_ HKL, _In_ UINT);
4059 BOOL WINAPI AdjustWindowRect(_Inout_ LPRECT, _In_ DWORD, _In_ BOOL);
4060 BOOL WINAPI AdjustWindowRectEx(_Inout_ LPRECT, _In_ DWORD, _In_ BOOL, _In_ DWORD);
4061 #if (_WIN32_WINNT >= 0x0500)
4062 BOOL WINAPI AnimateWindow(_In_ HWND, _In_ DWORD, _In_ DWORD);
4063 #endif /* (_WIN32_WINNT >= 0x0500) */
4064 BOOL WINAPI AnyPopup(void);
4065 BOOL WINAPI AppendMenuA(_In_ HMENU, _In_ UINT, _In_ UINT_PTR, _In_opt_ LPCSTR);
4066 BOOL WINAPI AppendMenuW(_In_ HMENU, _In_ UINT, _In_ UINT_PTR, _In_opt_ LPCWSTR);
4067 UINT WINAPI ArrangeIconicWindows(_In_ HWND);
4068 BOOL WINAPI AttachThreadInput(_In_ DWORD, _In_ DWORD, _In_ BOOL);
4069 HDWP WINAPI BeginDeferWindowPos(_In_ int);
4070 HDC WINAPI BeginPaint(_In_ HWND, _Out_ LPPAINTSTRUCT);
4071 BOOL WINAPI BringWindowToTop(_In_ HWND);
4072 long WINAPI BroadcastSystemMessage(_In_ DWORD, _Inout_opt_ LPDWORD, _In_ UINT, _In_ WPARAM, _In_ LPARAM);
4073 
4074 #if (_WIN32_WINNT >= 0x0400)
4075 
4076 LONG
4077 WINAPI
4078 BroadcastSystemMessageA(
4079   _In_ DWORD flags,
4080   _Inout_opt_ LPDWORD lpInfo,
4081   _In_ UINT Msg,
4082   _In_ WPARAM wParam,
4083   _In_ LPARAM lParam);
4084 
4085 LONG
4086 WINAPI
4087 BroadcastSystemMessageW(
4088   _In_ DWORD flags,
4089   _Inout_opt_ LPDWORD lpInfo,
4090   _In_ UINT Msg,
4091   _In_ WPARAM wParam,
4092   _In_ LPARAM lParam);
4093 
4094 #endif /* (_WIN32_WINNT >= 0x0400) */
4095 
4096 #if (_WIN32_WINNT >= 0x0501)
4097 
4098 LONG
4099 WINAPI
4100 BroadcastSystemMessageExA(
4101   _In_ DWORD flags,
4102   _Inout_opt_ LPDWORD lpInfo,
4103   _In_ UINT Msg,
4104   _In_ WPARAM wParam,
4105   _In_ LPARAM lParam,
4106   _Out_opt_ PBSMINFO pbsmInfo);
4107 
4108 LONG
4109 WINAPI
4110 BroadcastSystemMessageExW(
4111   _In_ DWORD flags,
4112   _Inout_opt_ LPDWORD lpInfo,
4113   _In_ UINT Msg,
4114   _In_ WPARAM wParam,
4115   _In_ LPARAM lParam,
4116   _Out_opt_ PBSMINFO pbsmInfo);
4117 
4118 #endif /* (_WIN32_WINNT >= 0x0501) */
4119 
4120 void WINAPI CalcChildScroll(HWND, INT);
4121 BOOL WINAPI CallMsgFilterA(_In_ LPMSG, _In_ INT);
4122 BOOL WINAPI CallMsgFilterW(_In_ LPMSG, _In_ INT);
4123 LRESULT WINAPI CallNextHookEx(_In_opt_ HHOOK, _In_ int, _In_ WPARAM, _In_ LPARAM);
4124 LRESULT WINAPI CallWindowProcA(_In_ WNDPROC, _In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM);
4125 LRESULT WINAPI CallWindowProcW(_In_ WNDPROC, _In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM);
4126 
4127 WORD
4128 WINAPI
4129 CascadeWindows(
4130   _In_opt_ HWND hwndParent,
4131   _In_ UINT wHow,
4132   _In_opt_ CONST RECT * lpRect,
4133   _In_ UINT cKids,
4134   _In_reads_opt_(cKids) const HWND FAR *lpKids);
4135 
4136 BOOL WINAPI ChangeClipboardChain(_In_ HWND, _In_ HWND);
4137 #if defined(_WINGDI_) && !defined(NOGDI)
4138 LONG WINAPI ChangeDisplaySettingsA(_In_opt_ PDEVMODEA, _In_ DWORD);
4139 LONG WINAPI ChangeDisplaySettingsW(_In_opt_ PDEVMODEW, _In_ DWORD);
4140 LONG WINAPI ChangeDisplaySettingsExA(_In_opt_ LPCSTR, _In_opt_ LPDEVMODEA, _Reserved_ HWND, _In_ DWORD, _In_opt_ LPVOID);
4141 LONG WINAPI ChangeDisplaySettingsExW(_In_opt_ LPCWSTR, _In_opt_ LPDEVMODEW, _Reserved_ HWND, _In_ DWORD, _In_opt_ LPVOID);
4142 #endif
4143 BOOL WINAPI ChangeMenuA(_In_ HMENU, _In_ UINT, _In_opt_ LPCSTR, _In_ UINT, _In_ UINT);
4144 BOOL WINAPI ChangeMenuW(_In_ HMENU, _In_ UINT, _In_opt_ LPCWSTR, _In_ UINT, _In_ UINT);
4145 LPSTR WINAPI CharLowerA(_Inout_ LPSTR);
4146 LPWSTR WINAPI CharLowerW(_Inout_ LPWSTR);
4147 
4148 DWORD
4149 WINAPI
4150 CharLowerBuffA(
4151   _Inout_updates_(cchLength) LPSTR lpsz,
4152   _In_ DWORD cchLength);
4153 
4154 DWORD
4155 WINAPI
4156 CharLowerBuffW(
4157   _Inout_updates_(cchLength) LPWSTR lpsz,
4158   _In_ DWORD cchLength);
4159 
4160 LPSTR WINAPI CharNextA(_In_ LPCSTR);
4161 LPWSTR WINAPI CharNextW(_In_ LPCWSTR);
4162 
4163 LPSTR WINAPI CharNextExA(_In_ WORD, _In_ LPCSTR, _In_ DWORD);
4164 LPWSTR WINAPI CharNextExW(_In_ WORD, _In_ LPCWSTR, _In_ DWORD);
4165 LPSTR WINAPI CharPrevA(_In_ LPCSTR, _In_ LPCSTR);
4166 LPWSTR WINAPI CharPrevW(_In_ LPCWSTR, _In_ LPCWSTR);
4167 LPSTR WINAPI CharPrevExA(_In_ WORD, _In_ LPCSTR, _In_ LPCSTR, _In_ DWORD);
4168 LPWSTR WINAPI CharPrevExW(_In_ WORD, _In_ LPCWSTR, _In_ LPCWSTR, _In_ DWORD);
4169 
4170 BOOL
4171 WINAPI
4172 CharToOemA(
4173   _In_ LPCSTR pSrc,
4174   _Out_writes_(_Inexpressible_(strlen(pSrc) + 1)) LPSTR pDst);
4175 
4176 BOOL
4177 WINAPI
4178 CharToOemW(
4179   _In_ LPCWSTR pSrc,
4180   _Out_writes_(_Inexpressible_(strlen(pSrc) + 1)) LPSTR pDst);
4181 
4182 BOOL
4183 WINAPI
4184 CharToOemBuffA(
4185   _In_ LPCSTR lpszSrc,
4186   _Out_writes_(cchDstLength) LPSTR lpszDst,
4187   _In_ DWORD cchDstLength);
4188 
4189 BOOL
4190 WINAPI
4191 CharToOemBuffW(
4192   _In_ LPCWSTR lpszSrc,
4193   _Out_writes_(cchDstLength) LPSTR lpszDst,
4194   _In_ DWORD cchDstLength);
4195 
4196 LPSTR WINAPI CharUpperA(_Inout_ LPSTR);
4197 LPWSTR WINAPI CharUpperW(_Inout_ LPWSTR);
4198 
4199 DWORD
4200 WINAPI
4201 CharUpperBuffA(
4202   _Inout_updates_(cchLength) LPSTR lpsz,
4203   _In_ DWORD cchLength);
4204 
4205 DWORD
4206 WINAPI
4207 CharUpperBuffW(
4208   _Inout_updates_(cchLength) LPWSTR lpsz,
4209   _In_ DWORD cchLength);
4210 
4211 BOOL WINAPI CheckDlgButton(_In_ HWND, _In_ int, _In_ UINT);
4212 DWORD WINAPI CheckMenuItem(_In_ HMENU, _In_ UINT, _In_ UINT);
4213 BOOL WINAPI CheckMenuRadioItem(_In_ HMENU, _In_ UINT, _In_ UINT, _In_ UINT, _In_ UINT);
4214 BOOL WINAPI CheckRadioButton(_In_ HWND, _In_ int, _In_ int, _In_ int);
4215 HWND WINAPI ChildWindowFromPoint(_In_ HWND, _In_ POINT);
4216 HWND WINAPI ChildWindowFromPointEx(_In_ HWND, _In_ POINT, _In_ UINT);
4217 BOOL WINAPI ClientToScreen(_In_ HWND, _Inout_ LPPOINT);
4218 BOOL WINAPI ClipCursor(_In_opt_ LPCRECT);
4219 BOOL WINAPI CloseClipboard(void);
4220 BOOL WINAPI CloseDesktop(_In_ HDESK);
4221 BOOL WINAPI CloseWindow(_In_ HWND);
4222 BOOL WINAPI CloseWindowStation(_In_ HWINSTA);
4223 
4224 int
4225 WINAPI
4226 CopyAcceleratorTableA(
4227   _In_ HACCEL hAccelSrc,
4228   _Out_writes_to_opt_(cAccelEntries, return) LPACCEL lpAccelDst,
4229   _In_ int cAccelEntries);
4230 
4231 int
4232 WINAPI
4233 CopyAcceleratorTableW(
4234   _In_ HACCEL hAccelSrc,
4235   _Out_writes_to_opt_(cAccelEntries, return) LPACCEL lpAccelDst,
4236   _In_ int cAccelEntries);
4237 
4238 #define CopyCursor(c) ((HCURSOR)CopyIcon((HICON)(c)))
4239 HICON WINAPI CopyIcon(_In_ HICON);
4240 HANDLE WINAPI CopyImage(_In_ HANDLE, _In_ UINT, _In_ int, _In_ int, _In_ UINT);
4241 BOOL WINAPI CopyRect(_Out_ LPRECT, _In_ LPCRECT);
4242 int WINAPI CountClipboardFormats(void);
4243 
4244 HACCEL
4245 WINAPI
4246 CreateAcceleratorTableA(
4247   _In_reads_(cAccel) LPACCEL paccel,
4248   _In_ int cAccel);
4249 
4250 HACCEL
4251 WINAPI
4252 CreateAcceleratorTableW(
4253   _In_reads_(cAccel) LPACCEL paccel,
4254   _In_ int cAccel);
4255 
4256 BOOL WINAPI CreateCaret(_In_ HWND, _In_opt_ HBITMAP, _In_ int, _In_ int);
4257 HCURSOR WINAPI CreateCursor(_In_opt_ HINSTANCE, _In_ int, _In_ int, _In_ int, _In_ int, _In_ CONST VOID*, _In_ CONST VOID*);
4258 
4259 #if defined(_WINGDI_) && !defined(NOGDI)
4260 
4261 HDESK
4262 WINAPI
4263 CreateDesktopA(
4264   _In_ LPCSTR lpszDesktop,
4265   _Reserved_ LPCSTR lpszDevice,
4266   _Reserved_ DEVMODEA* pDevmode,
4267   _In_ DWORD dwFlags,
4268   _In_ ACCESS_MASK dwDesiredAccess,
4269   _In_opt_ LPSECURITY_ATTRIBUTES lpsa);
4270 
4271 HDESK
4272 WINAPI
4273 CreateDesktopW(
4274   _In_ LPCWSTR lpszDesktop,
4275   _Reserved_ LPCWSTR lpszDevice,
4276   _Reserved_ DEVMODEW* pDevmode,
4277   _In_ DWORD dwFlags,
4278   _In_ ACCESS_MASK dwDesiredAccess,
4279   _In_opt_ LPSECURITY_ATTRIBUTES lpsa);
4280 
4281 #endif
4282 
4283 #define CreateDialogA(h,n,w,f) CreateDialogParamA(h,n,w,f,0)
4284 #define CreateDialogW(h,n,w,f) CreateDialogParamW(h,n,w,f,0)
4285 #define CreateDialogIndirectA(h,t,w,f) CreateDialogIndirectParamA(h,t,w,f,0)
4286 #define CreateDialogIndirectW(h,t,w,f) CreateDialogIndirectParamW(h,t,w,f,0)
4287 HWND WINAPI CreateDialogIndirectParamA(_In_opt_ HINSTANCE, _In_ LPCDLGTEMPLATE, _In_opt_ HWND, _In_opt_ DLGPROC, _In_ LPARAM);
4288 HWND WINAPI CreateDialogIndirectParamW(_In_opt_ HINSTANCE, _In_ LPCDLGTEMPLATE, _In_opt_ HWND, _In_opt_ DLGPROC, _In_ LPARAM);
4289 HWND WINAPI CreateDialogParamA(_In_opt_ HINSTANCE, _In_ LPCSTR, _In_opt_ HWND, _In_opt_ DLGPROC, _In_ LPARAM);
4290 HWND WINAPI CreateDialogParamW(_In_opt_ HINSTANCE, _In_ LPCWSTR, _In_opt_ HWND, _In_opt_ DLGPROC, _In_ LPARAM);
4291 HICON WINAPI CreateIcon(_In_opt_ HINSTANCE, _In_ int, _In_ int, _In_ BYTE, _In_ BYTE, _In_ const BYTE*, _In_ const BYTE*);
4292 
4293 HICON
4294 WINAPI
4295 CreateIconFromResource(
4296   _In_reads_bytes_(dwResSize) PBYTE presbits,
4297   _In_ DWORD dwResSize,
4298   _In_ BOOL fIcon,
4299   _In_ DWORD dwVer);
4300 
4301 HICON
4302 WINAPI
4303 CreateIconFromResourceEx(
4304   _In_reads_bytes_(dwResSize) PBYTE presbits,
4305   _In_ DWORD dwResSize,
4306   _In_ BOOL fIcon,
4307   _In_ DWORD dwVer,
4308   _In_ int cxDesired,
4309   _In_ int cyDesired,
4310   _In_ UINT Flags);
4311 
4312 HICON WINAPI CreateIconIndirect(_In_ PICONINFO);
4313 HWND WINAPI CreateMDIWindowA(_In_ LPCSTR, _In_ LPCSTR, _In_ DWORD, _In_ int, _In_ int, _In_ int, _In_ int, _In_opt_ HWND, _In_opt_ HINSTANCE, _In_ LPARAM);
4314 HWND WINAPI CreateMDIWindowW(_In_ LPCWSTR, _In_ LPCWSTR, _In_ DWORD, _In_ int, _In_ int, _In_ int, _In_ int, _In_opt_ HWND, _In_opt_ HINSTANCE, _In_ LPARAM);
4315 HMENU WINAPI CreateMenu(void);
4316 HMENU WINAPI CreatePopupMenu(void);
4317 
4318 #define CreateWindowA(a,b,c,d,e,f,g,h,i,j,k) CreateWindowExA(0,a,b,c,d,e,f,g,h,i,j,k)
4319 #define CreateWindowW(a,b,c,d,e,f,g,h,i,j,k) CreateWindowExW(0,a,b,c,d,e,f,g,h,i,j,k)
4320 
4321 HWND
4322 WINAPI
4323 CreateWindowExA(
4324   _In_ DWORD dwExStyle,
4325   _In_opt_ LPCSTR lpClassName,
4326   _In_opt_ LPCSTR lpWindowName,
4327   _In_ DWORD dwStyle,
4328   _In_ int X,
4329   _In_ int Y,
4330   _In_ int nWidth,
4331   _In_ int nHeight,
4332   _In_opt_ HWND hWndParent,
4333   _In_opt_ HMENU hMenu,
4334   _In_opt_ HINSTANCE hInstance,
4335   _In_opt_ LPVOID lpParam);
4336 
4337 HWND
4338 WINAPI
4339 CreateWindowExW(
4340   _In_ DWORD dwExStyle,
4341   _In_opt_ LPCWSTR lpClassName,
4342   _In_opt_ LPCWSTR lpWindowName,
4343   _In_ DWORD dwStyle,
4344   _In_ int X,
4345   _In_ int Y,
4346   _In_ int nWidth,
4347   _In_ int nHeight,
4348   _In_opt_ HWND hWndParent,
4349   _In_opt_ HMENU hMenu,
4350   _In_opt_ HINSTANCE hInstance,
4351   _In_opt_ LPVOID lpParam);
4352 
4353 #ifndef NOWINDOWSTATION
4354 
4355 HWINSTA
4356 WINAPI
4357 CreateWindowStationA(
4358   _In_opt_ LPCSTR lpwinsta,
4359   _In_ DWORD dwFlags,
4360   _In_ ACCESS_MASK dwDesiredAccess,
4361   _In_opt_ LPSECURITY_ATTRIBUTES lpsa);
4362 
4363 HWINSTA
4364 WINAPI
4365 CreateWindowStationW(
4366   _In_opt_ LPCWSTR lpwinsta,
4367   _In_ DWORD dwFlags,
4368   _In_ ACCESS_MASK dwDesiredAccess,
4369   _In_opt_ LPSECURITY_ATTRIBUTES lpsa);
4370 
4371 #endif
4372 
4373 LRESULT WINAPI DefDlgProcA(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM);
4374 LRESULT WINAPI DefDlgProcW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM);
4375 HDWP WINAPI DeferWindowPos(_In_ HDWP, _In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT);
4376 LRESULT WINAPI DefFrameProcA(_In_ HWND, _In_opt_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM);
4377 LRESULT WINAPI DefFrameProcW(_In_ HWND, _In_opt_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM);
4378 #define DefHookProc(c,p,lp,h) CallNextHookEx((HHOOK)*h,c,p,lp)
4379 LRESULT WINAPI DefMDIChildProcA(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM);
4380 LRESULT WINAPI DefMDIChildProcW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM);
4381 
4382 #if (_WIN32_WINNT >= 0x0501)
4383 LRESULT
4384 WINAPI
4385 DefRawInputProc(
4386   _In_reads_(nInput) PRAWINPUT *paRawInput,
4387   _In_ INT nInput,
4388   _In_ UINT cbSizeHeader);
4389 #endif
4390 
4391 LRESULT WINAPI DefWindowProcA(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM);
4392 LRESULT WINAPI DefWindowProcW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM);
4393 BOOL WINAPI DeleteMenu(_In_ HMENU, _In_ UINT, _In_ UINT);
4394 BOOL WINAPI DeregisterShellHookWindow(_In_ HWND);
4395 BOOL WINAPI DestroyAcceleratorTable(_In_ HACCEL);
4396 BOOL WINAPI DestroyCaret(void);
4397 BOOL WINAPI DestroyCursor(_In_ HCURSOR);
4398 BOOL WINAPI DestroyIcon(_In_ HICON);
4399 BOOL WINAPI DestroyMenu(_In_ HMENU);
4400 BOOL WINAPI DestroyWindow(_In_ HWND);
4401 #define DialogBoxA(i,t,p,f) DialogBoxParamA(i,t,p,f,0)
4402 #define DialogBoxW(i,t,p,f) DialogBoxParamW(i,t,p,f,0)
4403 #define DialogBoxIndirectA(i,t,p,f) DialogBoxIndirectParamA(i,t,p,f,0)
4404 #define DialogBoxIndirectW(i,t,p,f) DialogBoxIndirectParamW(i,t,p,f,0)
4405 INT_PTR WINAPI DialogBoxIndirectParamA(_In_opt_ HINSTANCE, _In_ LPCDLGTEMPLATE, _In_opt_ HWND, _In_opt_ DLGPROC, _In_ LPARAM);
4406 INT_PTR WINAPI DialogBoxIndirectParamW(_In_opt_ HINSTANCE, _In_ LPCDLGTEMPLATE, _In_opt_ HWND, _In_opt_ DLGPROC, _In_ LPARAM);
4407 INT_PTR WINAPI DialogBoxParamA(_In_opt_ HINSTANCE, _In_ LPCSTR, _In_opt_ HWND, _In_opt_ DLGPROC, _In_ LPARAM);
4408 INT_PTR WINAPI DialogBoxParamW(_In_opt_ HINSTANCE, _In_ LPCWSTR, _In_opt_ HWND, _In_opt_ DLGPROC, _In_ LPARAM);
4409 LRESULT WINAPI DispatchMessageA(_In_ const MSG*);
4410 LRESULT WINAPI DispatchMessageW(_In_ const MSG*);
4411 int WINAPI DlgDirListA(_In_ HWND, _Inout_ LPSTR, _In_ int, _In_ int, _In_ UINT);
4412 int WINAPI DlgDirListW(_In_ HWND, _Inout_ LPWSTR, _In_ int, _In_ int, _In_ UINT);
4413 int WINAPI DlgDirListComboBoxA(_In_ HWND, _Inout_ LPSTR, _In_ int, _In_ int, _In_ UINT);
4414 int WINAPI DlgDirListComboBoxW(_In_ HWND, _Inout_ LPWSTR, _In_ int, _In_ int, _In_ UINT);
4415 
4416 BOOL
4417 WINAPI
4418 DlgDirSelectComboBoxExA(
4419   _In_ HWND hwndDlg,
4420   _Out_writes_(cchOut) LPSTR lpString,
4421   _In_ int cchOut,
4422   _In_ int idComboBox);
4423 
4424 BOOL
4425 WINAPI
4426 DlgDirSelectComboBoxExW(
4427   _In_ HWND hwndDlg,
4428   _Out_writes_(cchOut) LPWSTR lpString,
4429   _In_ int cchOut,
4430   _In_ int idComboBox);
4431 
4432 BOOL
4433 WINAPI
4434 DlgDirSelectExA(
4435   _In_ HWND hwndDlg,
4436   _Out_writes_(chCount) LPSTR lpString,
4437   _In_ int chCount,
4438   _In_ int idListBox);
4439 
4440 BOOL
4441 WINAPI
4442 DlgDirSelectExW(
4443   _In_ HWND hwndDlg,
4444   _Out_writes_(chCount) LPWSTR lpString,
4445   _In_ int chCount,
4446   _In_ int idListBox);
4447 
4448 BOOL WINAPI DragDetect(_In_ HWND, _In_ POINT);
4449 DWORD WINAPI DragObject(_In_ HWND, _In_ HWND, _In_ UINT, _In_ ULONG_PTR, _In_opt_ HCURSOR);
4450 BOOL WINAPI DrawAnimatedRects(_In_opt_ HWND, _In_ int, _In_ LPCRECT, _In_ LPCRECT);
4451 BOOL WINAPI DrawCaption(_In_ HWND, _In_ HDC, _In_ LPCRECT, _In_ UINT);
4452 BOOL WINAPI DrawEdge(_In_ HDC, _Inout_ LPRECT, _In_ UINT, _In_ UINT);
4453 BOOL WINAPI DrawFocusRect(_In_ HDC, _In_ LPCRECT);
4454 BOOL WINAPI DrawFrameControl(_In_ HDC, _Inout_ LPRECT, _In_ UINT, _In_ UINT);
4455 BOOL WINAPI DrawIcon(_In_ HDC, _In_ int, _In_ int, _In_ HICON);
4456 BOOL WINAPI DrawIconEx(_In_ HDC, _In_ int, _In_ int, _In_ HICON, _In_ int, _In_ int, _In_ UINT, _In_opt_ HBRUSH, _In_ UINT);
4457 BOOL WINAPI DrawMenuBar(_In_ HWND);
4458 DWORD WINAPI DrawMenuBarTemp(HWND,HDC,LPRECT,HMENU,HFONT);
4459 BOOL WINAPI DrawStateA(_In_ HDC, _In_opt_ HBRUSH, _In_opt_ DRAWSTATEPROC, _In_ LPARAM, _In_ WPARAM, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT);
4460 BOOL WINAPI DrawStateW(_In_ HDC, _In_opt_ HBRUSH, _In_opt_ DRAWSTATEPROC, _In_ LPARAM, _In_ WPARAM, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT);
4461 
4462 _Success_(return)
4463 int
4464 WINAPI
4465 DrawTextA(
4466   _In_ HDC hdc,
4467   _At_((LPSTR)lpchText, _Inout_updates_opt_(cchText)) LPCSTR lpchText,
4468   _In_ int cchText,
4469   _Inout_ LPRECT lprc,
4470   _In_ UINT format);
4471 
4472 _Success_(return)
4473 int
4474 WINAPI
4475 DrawTextW(
4476   _In_ HDC hdc,
4477   _At_((LPWSTR)lpchText, _Inout_updates_opt_(cchText)) LPCWSTR lpchText,
4478   _In_ int cchText,
4479   _Inout_ LPRECT lprc,
4480   _In_ UINT format);
4481 
4482 int
4483 WINAPI
4484 DrawTextExA(
4485   _In_ HDC hdc,
4486   _Inout_updates_opt_(cchText) LPSTR lpchText,
4487   _In_ int cchText,
4488   _Inout_ LPRECT lprc,
4489   _In_ UINT format,
4490   _In_opt_ LPDRAWTEXTPARAMS lpdtp);
4491 
4492 int
4493 WINAPI
4494 DrawTextExW(
4495   _In_ HDC hdc,
4496   _Inout_updates_opt_(cchText) LPWSTR lpchText,
4497   _In_ int cchText,
4498   _Inout_ LPRECT lprc,
4499   _In_ UINT format,
4500   _In_opt_ LPDRAWTEXTPARAMS lpdtp);
4501 
4502 BOOL WINAPI EmptyClipboard(void);
4503 BOOL WINAPI EnableMenuItem(_In_ HMENU, _In_ UINT, _In_ UINT);
4504 BOOL WINAPI EnableScrollBar(_In_ HWND, _In_ UINT, _In_ UINT);
4505 BOOL WINAPI EnableWindow(_In_ HWND, _In_ BOOL);
4506 BOOL WINAPI EndDeferWindowPos(_In_ HDWP);
4507 BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR);
4508 BOOL WINAPI EndMenu(void);
4509 BOOL WINAPI EndPaint(_In_ HWND, _In_ const PAINTSTRUCT*);
4510 #if (_WIN32_WINNT >= 0x0500)
4511 BOOL WINAPI EndTask(_In_ HWND, _In_ BOOL, _In_ BOOL);
4512 #endif
4513 BOOL WINAPI EnumChildWindows(_In_opt_ HWND, _In_ WNDENUMPROC, _In_ LPARAM);
4514 UINT WINAPI EnumClipboardFormats(_In_ UINT);
4515 BOOL WINAPI EnumDesktopsA(_In_opt_ HWINSTA, _In_ DESKTOPENUMPROCA, _In_ LPARAM);
4516 BOOL WINAPI EnumDesktopsW(_In_opt_ HWINSTA, _In_ DESKTOPENUMPROCW, _In_ LPARAM);
4517 BOOL WINAPI EnumDesktopWindows(_In_opt_ HDESK, _In_ WNDENUMPROC, _In_ LPARAM);
4518 BOOL WINAPI EnumDisplayMonitors(_In_opt_ HDC, _In_opt_ LPCRECT, _In_ MONITORENUMPROC, _In_ LPARAM);
4519 #if defined(_WINGDI_) && !defined(NOGDI)
4520 BOOL WINAPI EnumDisplaySettingsA(_In_opt_ LPCSTR, _In_ DWORD, _Inout_ PDEVMODEA);
4521 BOOL WINAPI EnumDisplaySettingsW(_In_opt_ LPCWSTR, _In_ DWORD, _Inout_ PDEVMODEW);
4522 #if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0410)
4523 BOOL WINAPI EnumDisplaySettingsExA(_In_opt_ LPCSTR, _In_ DWORD, _Inout_ LPDEVMODEA, _In_ DWORD);
4524 BOOL WINAPI EnumDisplaySettingsExW(_In_opt_ LPCWSTR, _In_ DWORD, _Inout_ LPDEVMODEW, _In_ DWORD);
4525 #endif
4526 BOOL WINAPI EnumDisplayDevicesA(_In_opt_ LPCSTR, _In_ DWORD, _Inout_ PDISPLAY_DEVICEA, _In_ DWORD);
4527 BOOL WINAPI EnumDisplayDevicesW(_In_opt_ LPCWSTR, _In_ DWORD, _Inout_ PDISPLAY_DEVICEW, _In_ DWORD);
4528 #endif
4529 int WINAPI EnumPropsA(_In_ HWND, _In_ PROPENUMPROCA);
4530 int WINAPI EnumPropsW(_In_ HWND, _In_ PROPENUMPROCW);
4531 int WINAPI EnumPropsExA(_In_ HWND, _In_ PROPENUMPROCEXA, _In_ LPARAM lParam);
4532 int WINAPI EnumPropsExW(_In_ HWND, _In_ PROPENUMPROCEXW, _In_ LPARAM lParam);
4533 #define EnumTaskWindows(h,f,p) EnumThreadWindows((DWORD)h,f,p)
4534 BOOL WINAPI EnumThreadWindows(_In_ DWORD, _In_ WNDENUMPROC, _In_ LPARAM);
4535 BOOL WINAPI EnumWindows(_In_ WNDENUMPROC lpEnumFunc, _In_ LPARAM lParam);
4536 BOOL WINAPI EnumWindowStationsA(_In_ WINSTAENUMPROCA, _In_ LPARAM lParam);
4537 BOOL WINAPI EnumWindowStationsW(_In_ WINSTAENUMPROCW, _In_ LPARAM lParam);
4538 BOOL WINAPI EqualRect(_In_ LPCRECT, _In_ LPCRECT);
4539 #define ExitWindows(r,c) ExitWindowsEx(EWX_LOGOFF,0)
4540 BOOL WINAPI ExitWindowsEx(_In_ UINT, _In_ DWORD);
4541 HWND WINAPI FindWindowA(_In_opt_ LPCSTR, _In_opt_ LPCSTR);
4542 HWND WINAPI FindWindowW(_In_opt_ LPCWSTR, _In_opt_ LPCWSTR);
4543 HWND WINAPI FindWindowExA(_In_opt_ HWND, _In_opt_ HWND, _In_opt_ LPCSTR, _In_opt_ LPCSTR);
4544 HWND WINAPI FindWindowExW(_In_opt_ HWND, _In_opt_ HWND, _In_opt_ LPCWSTR, _In_opt_ LPCWSTR);
4545 BOOL WINAPI FlashWindow(_In_ HWND, _In_ BOOL);
4546 #if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0410)
4547 BOOL WINAPI FlashWindowEx(_In_ PFLASHWINFO);
4548 #endif
4549 int WINAPI FrameRect(_In_ HDC, _In_ LPCRECT, _In_ HBRUSH);
4550 HWND WINAPI GetActiveWindow(void);
4551 HWND WINAPI GetAncestor(_In_ HWND, _In_ UINT);
4552 SHORT WINAPI GetAsyncKeyState(_In_ int);
4553 HWND WINAPI GetCapture(void);
4554 UINT WINAPI GetCaretBlinkTime(void);
4555 BOOL WINAPI GetCaretPos(_Out_ LPPOINT);
4556 BOOL WINAPI GetClassInfoA(_In_opt_ HINSTANCE, _In_ LPCSTR, _Out_ LPWNDCLASSA);
4557 BOOL WINAPI GetClassInfoExA(_In_opt_ HINSTANCE, _In_ LPCSTR, _Out_ LPWNDCLASSEXA);
4558 BOOL WINAPI GetClassInfoW(_In_opt_ HINSTANCE, _In_ LPCWSTR, _Out_ LPWNDCLASSW);
4559 BOOL WINAPI GetClassInfoExW(_In_opt_ HINSTANCE, _In_ LPCWSTR, _Out_ LPWNDCLASSEXW);
4560 DWORD WINAPI GetClassLongA(_In_ HWND, _In_ int);
4561 DWORD WINAPI GetClassLongW(_In_ HWND, _In_ int);
4562 #ifdef _WIN64
4563 ULONG_PTR WINAPI GetClassLongPtrA(_In_ HWND, _In_ int);
4564 ULONG_PTR WINAPI GetClassLongPtrW(_In_ HWND, _In_ int);
4565 #else
4566 #define GetClassLongPtrA GetClassLongA
4567 #define GetClassLongPtrW GetClassLongW
4568 #endif
4569 
4570 int
4571 WINAPI
4572 GetClassNameA(
4573   _In_ HWND hWnd,
4574   _Out_writes_to_(nMaxCount, return) LPSTR lpClassName,
4575   _In_ int nMaxCount);
4576 
4577 int
4578 WINAPI
4579 GetClassNameW(
4580   _In_ HWND hWnd,
4581   _Out_writes_to_(nMaxCount, return) LPWSTR lpClassName,
4582   _In_ int nMaxCount);
4583 
4584 WORD WINAPI GetClassWord(_In_ HWND, _In_ int);
4585 BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT);
4586 HANDLE WINAPI GetClipboardData(_In_ UINT);
4587 
4588 int
4589 WINAPI
4590 GetClipboardFormatNameA(
4591   _In_ UINT format,
4592   _Out_writes_(cchMaxCount) LPSTR lpszFormatName,
4593   _In_ int cchMaxCount);
4594 
4595 int
4596 WINAPI
4597 GetClipboardFormatNameW(
4598   _In_ UINT format,
4599   _Out_writes_(cchMaxCount) LPWSTR lpszFormatName,
4600   _In_ int cchMaxCount);
4601 
4602 HWND WINAPI GetClipboardOwner(void);
4603 #if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0410)
4604 DWORD WINAPI GetClipboardSequenceNumber(void);
4605 #endif
4606 HWND WINAPI GetClipboardViewer(void);
4607 BOOL WINAPI GetClipCursor(_Out_ LPRECT);
4608 BOOL WINAPI GetCursorPos(_Out_ LPPOINT);
4609 HDC WINAPI GetDC(_In_opt_ HWND);
4610 HDC WINAPI GetDCEx(_In_opt_ HWND, _In_opt_ HRGN, _In_ DWORD);
4611 HWND WINAPI GetDesktopWindow(void);
4612 LONG WINAPI GetDialogBaseUnits(void);
4613 int WINAPI GetDlgCtrlID(_In_ HWND);
4614 HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int);
4615 UINT WINAPI GetDlgItemInt(_In_ HWND, _In_ int, _Out_opt_ PBOOL, _In_ BOOL);
4616 
4617 _Ret_range_(0, cchMax)
4618 UINT
4619 WINAPI
4620 GetDlgItemTextA(
4621   _In_ HWND hDlg,
4622   _In_ int nIDDlgItem,
4623   _Out_writes_(cchMax) LPSTR lpString,
4624   _In_ int cchMax);
4625 
4626 _Ret_range_(0, cchMax)
4627 UINT
4628 WINAPI
4629 GetDlgItemTextW(
4630   _In_ HWND hDlg,
4631   _In_ int nIDDlgItem,
4632   _Out_writes_(cchMax) LPWSTR lpString,
4633   _In_ int cchMax);
4634 
4635 UINT WINAPI GetDoubleClickTime(void);
4636 HWND WINAPI GetFocus(void);
4637 HWND WINAPI GetForegroundWindow(void);
4638 #if (_WIN32_WINNT >= 0x0500)
4639 DWORD WINAPI GetGuiResources(_In_ HANDLE, _In_ DWORD);
4640 #endif
4641 BOOL WINAPI GetIconInfo(_In_ HICON, _Out_ PICONINFO);
4642 BOOL WINAPI GetIconInfoExA(_In_ HICON, _Inout_ ICONINFOEXA*);
4643 BOOL WINAPI GetIconInfoExW(_In_ HICON, _Inout_ ICONINFOEXW*);
4644 BOOL WINAPI GetInputState(void);
4645 UINT WINAPI GetKBCodePage(void);
4646 HKL WINAPI GetKeyboardLayout(_In_ DWORD);
4647 
4648 UINT
4649 WINAPI
4650 GetKeyboardLayoutList(
4651   _In_ int nBuff,
4652   _Out_writes_to_opt_(nBuff, return) HKL FAR *lpList);
4653 
4654 BOOL WINAPI GetKeyboardLayoutNameA(_Out_writes_(KL_NAMELENGTH) LPSTR);
4655 BOOL WINAPI GetKeyboardLayoutNameW(_Out_writes_(KL_NAMELENGTH) LPWSTR);
4656 
4657 _Check_return_
4658 BOOL
4659 WINAPI
4660 GetKeyboardState(
4661   _Out_writes_(256) PBYTE lpKeyState);
4662 
4663 int WINAPI GetKeyboardType(_In_ int);
4664 
4665 int
4666 WINAPI
4667 GetKeyNameTextA(
4668   _In_ LONG lParam,
4669   _Out_writes_(cchSize) LPSTR lpString,
4670   _In_ int cchSize);
4671 
4672 int
4673 WINAPI
4674 GetKeyNameTextW(
4675   _In_ LONG lParam,
4676   _Out_writes_(cchSize) LPWSTR lpString,
4677   _In_ int cchSize);
4678 
4679 SHORT WINAPI GetKeyState(_In_ int);
4680 HWND WINAPI GetLastActivePopup(_In_ HWND);
4681 HMENU WINAPI GetMenu(_In_ HWND);
4682 LONG WINAPI GetMenuCheckMarkDimensions(void);
4683 DWORD WINAPI GetMenuContextHelpId(_In_ HMENU);
4684 UINT WINAPI GetMenuDefaultItem(_In_ HMENU hMenu, _In_ UINT fByPos, _In_ UINT gmdiFlags);
4685 int WINAPI GetMenuItemCount(_In_opt_ HMENU);
4686 UINT WINAPI GetMenuItemID(_In_ HMENU, _In_ int);
4687 BOOL WINAPI GetMenuItemInfoA(_In_ HMENU, _In_ UINT, _In_ BOOL, _Inout_ LPMENUITEMINFOA);
4688 BOOL WINAPI GetMenuItemInfoW(_In_ HMENU, _In_ UINT, _In_ BOOL, _Inout_ LPMENUITEMINFOW);
4689 BOOL WINAPI GetMenuItemRect(_In_opt_ HWND, _In_ HMENU, _In_ UINT, _Out_ LPRECT);
4690 UINT WINAPI GetMenuState(_In_ HMENU, _In_ UINT, _In_ UINT);
4691 
4692 int
4693 WINAPI
4694 GetMenuStringA(
4695   _In_ HMENU hMenu,
4696   _In_ UINT uIDItem,
4697   _Out_writes_opt_(cchMax) LPSTR lpString,
4698   _In_ int cchMax,
4699   _In_ UINT flags);
4700 
4701 int
4702 WINAPI
4703 GetMenuStringW(
4704   _In_ HMENU hMenu,
4705   _In_ UINT uIDItem,
4706   _Out_writes_opt_(cchMax) LPWSTR lpString,
4707   _In_ int cchMax,
4708   _In_ UINT flags);
4709 
4710 BOOL WINAPI GetMessageA(_Out_ LPMSG, _In_opt_ HWND, _In_ UINT, _In_ UINT);
4711 BOOL WINAPI GetMessageW(_Out_ LPMSG, _In_opt_ HWND, _In_ UINT, _In_ UINT);
4712 
4713 LPARAM WINAPI GetMessageExtraInfo(void);
4714 DWORD WINAPI GetMessagePos(void);
4715 LONG WINAPI GetMessageTime(void);
4716 
4717 #if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0490)
4718 int
4719 WINAPI
4720 GetMouseMovePointsEx(
4721   _In_ UINT cbSize,
4722   _In_ LPMOUSEMOVEPOINT lppt,
4723   _Out_writes_(nBufPoints) LPMOUSEMOVEPOINT lpptBuf,
4724   _In_ int nBufPoints,
4725   _In_ DWORD resolution);
4726 #endif
4727 
4728 HWND WINAPI GetNextDlgGroupItem(_In_ HWND, _In_opt_ HWND, _In_ BOOL);
4729 HWND WINAPI GetNextDlgTabItem(_In_ HWND, _In_opt_ HWND, _In_ BOOL);
4730 #define GetNextWindow(h,c) GetWindow(h,c)
4731 HWND WINAPI GetOpenClipboardWindow(void);
4732 HWND WINAPI GetParent(_In_ HWND);
4733 
4734 int
4735 WINAPI
4736 GetPriorityClipboardFormat(
4737   _In_reads_(cFormats) UINT *paFormatPriorityList,
4738   _In_ int cFormats);
4739 
4740 HANDLE WINAPI GetPropA(_In_ HWND, _In_ LPCSTR);
4741 HANDLE WINAPI GetPropW(_In_ HWND, _In_ LPCWSTR);
4742 
4743 #if (_WIN32_WINNT >= 0x0501)
4744 
4745 UINT
4746 WINAPI
4747 GetRawInputBuffer(
4748   _Out_writes_bytes_opt_(*pcbSize) PRAWINPUT pData,
4749   _Inout_ PUINT pcbSize,
4750   _In_ UINT cbSizeHeader);
4751 
4752 UINT
4753 WINAPI
4754 GetRawInputData(
4755   _In_ HRAWINPUT hRawInput,
4756   _In_ UINT uiCommand,
4757   _Out_writes_bytes_to_opt_(*pcbSize, return) LPVOID pData,
4758   _Inout_ PUINT pcbSize,
4759   _In_ UINT cbSizeHeader);
4760 
4761 UINT
4762 WINAPI
4763 GetRawInputDeviceInfoA(
4764   _In_opt_ HANDLE hDevice,
4765   _In_ UINT uiCommand,
4766   _Inout_updates_bytes_to_opt_(*pcbSize, *pcbSize) LPVOID pData,
4767   _Inout_ PUINT pcbSize);
4768 
4769 UINT
4770 WINAPI
4771 GetRawInputDeviceInfoW(
4772   _In_opt_ HANDLE hDevice,
4773   _In_ UINT uiCommand,
4774   _Inout_updates_bytes_to_opt_(*pcbSize, *pcbSize) LPVOID pData,
4775   _Inout_ PUINT pcbSize);
4776 
4777 UINT
4778 WINAPI
4779 GetRawInputDeviceList(
4780   _Out_writes_opt_(*puiNumDevices) PRAWINPUTDEVICELIST pRawInputDeviceList,
4781   _Inout_ PUINT puiNumDevices,
4782   _In_ UINT cbSize);
4783 
4784 UINT
4785 WINAPI
4786 GetRegisteredRawInputDevices(
4787   _Out_writes_opt_(*puiNumDevices) PRAWINPUTDEVICE pRawInputDevices,
4788   _Inout_ PUINT puiNumDevices,
4789   _In_ UINT cbSize);
4790 
4791 #endif /* (_WIN32_WINNT >= 0x0501) */
4792 
4793 DWORD WINAPI GetQueueStatus(_In_ UINT);
4794 BOOL WINAPI GetScrollInfo(_In_ HWND, _In_ int, _Inout_ LPSCROLLINFO);
4795 int WINAPI GetScrollPos(_In_ HWND, _In_ int);
4796 BOOL WINAPI GetScrollRange(_In_ HWND, _In_ int, _Out_ LPINT, _Out_ LPINT);
4797 #if (_WIN32_WINNT >= 0x0500)
4798 HWND WINAPI GetShellWindow(void);
4799 #endif
4800 HMENU WINAPI GetSubMenu(_In_ HMENU, _In_ int);
4801 DWORD WINAPI GetSysColor(_In_ int);
4802 HBRUSH WINAPI GetSysColorBrush(_In_ int);
4803 #define GetSysModalWindow() (NULL)
4804 HMENU WINAPI GetSystemMenu(_In_ HWND, _In_ BOOL);
4805 int WINAPI GetSystemMetrics(_In_ int);
4806 
4807 DWORD
4808 WINAPI
4809 GetTabbedTextExtentA(
4810   _In_ HDC hdc,
4811   _In_reads_(chCount) LPCSTR lpString,
4812   _In_ int chCount,
4813   _In_ int nTabPositions,
4814   _In_reads_opt_(nTabPositions) CONST INT *lpnTabStopPositions);
4815 
4816 DWORD
4817 WINAPI
4818 GetTabbedTextExtentW(
4819   _In_ HDC hdc,
4820   _In_reads_(chCount) LPCWSTR lpString,
4821   _In_ int chCount,
4822   _In_ int nTabPositions,
4823   _In_reads_opt_(nTabPositions) CONST INT *lpnTabStopPositions);
4824 
4825 LONG WINAPI GetWindowLongA(_In_ HWND, _In_ int);
4826 LONG WINAPI GetWindowLongW(_In_ HWND, _In_ int);
4827 #ifdef _WIN64
4828 LONG_PTR WINAPI GetWindowLongPtrA(_In_ HWND, _In_ int);
4829 LONG_PTR WINAPI GetWindowLongPtrW(_In_ HWND, _In_ int);
4830 #else
4831 #define GetWindowLongPtrA GetWindowLongA
4832 #define GetWindowLongPtrW GetWindowLongW
4833 #endif
4834 HDESK WINAPI GetThreadDesktop(_In_ DWORD);
4835 HWND WINAPI GetTopWindow(_In_opt_ HWND);
4836 BOOL WINAPI GetUpdateRect(_In_ HWND, _Out_opt_ LPRECT, _In_ BOOL);
4837 int WINAPI GetUpdateRgn(_In_ HWND, _In_ HRGN, _In_ BOOL);
4838 
4839 BOOL
4840 WINAPI
4841 GetUserObjectInformationA(
4842   _In_ HANDLE hObj,
4843   _In_ int nIndex,
4844   _Out_writes_bytes_opt_(nLength) PVOID pvInfo,
4845   _In_ DWORD nLength,
4846   _Out_opt_ LPDWORD lpnLengthNeeded);
4847 
4848 BOOL
4849 WINAPI
4850 GetUserObjectInformationW(
4851   _In_ HANDLE hObj,
4852   _In_ int nIndex,
4853   _Out_writes_bytes_opt_(nLength) PVOID pvInfo,
4854   _In_ DWORD nLength,
4855   _Out_opt_ LPDWORD lpnLengthNeeded);
4856 
4857 BOOL
4858 WINAPI
4859 GetUserObjectSecurity(
4860   _In_ HANDLE hObj,
4861   _In_ PSECURITY_INFORMATION pSIRequested,
4862   _Out_writes_bytes_opt_(nLength) PSECURITY_DESCRIPTOR pSID,
4863   _In_ DWORD nLength,
4864   _Out_ LPDWORD lpnLengthNeeded);
4865 
4866 HWND WINAPI GetWindow(_In_ HWND, _In_ UINT);
4867 DWORD WINAPI GetWindowContextHelpId(_In_ HWND);
4868 HDC WINAPI GetWindowDC(_In_opt_ HWND);
4869 BOOL WINAPI GetWindowPlacement(_In_ HWND, _Inout_ WINDOWPLACEMENT*);
4870 BOOL WINAPI GetWindowRect(_In_ HWND, _Out_ LPRECT);
4871 int WINAPI GetWindowRgn(_In_ HWND, _In_ HRGN);
4872 #define GetWindowTask(hWnd) ((HANDLE)GetWindowThreadProcessId(hWnd, NULL))
4873 
4874 _Ret_range_(0, nMaxCount)
4875 int
4876 WINAPI
4877 GetWindowTextA(
4878   _In_ HWND hWnd,
4879   _Out_writes_(nMaxCount) LPSTR lpString,
4880   _In_ int nMaxCount);
4881 
4882 _Ret_range_(0, nMaxCount)
4883 int
4884 WINAPI
4885 GetWindowTextW(
4886   _In_ HWND hWnd,
4887   _Out_writes_(nMaxCount) LPWSTR lpString,
4888   _In_ int nMaxCount);
4889 
4890 int WINAPI GetWindowTextLengthA(_In_ HWND);
4891 int WINAPI GetWindowTextLengthW(_In_ HWND);
4892 WORD WINAPI GetWindowWord(_In_ HWND, _In_ int);
4893 
4894 BOOL
4895 WINAPI
4896 GetAltTabInfoA(
4897   _In_opt_ HWND hwnd,
4898   _In_ int iItem,
4899   _Inout_ PALTTABINFO pati,
4900   _Out_writes_opt_(cchItemText) LPSTR pszItemText,
4901   _In_ UINT cchItemText);
4902 
4903 BOOL
4904 WINAPI
4905 GetAltTabInfoW(
4906   _In_opt_ HWND hwnd,
4907   _In_ int iItem,
4908   _Inout_ PALTTABINFO pati,
4909   _Out_writes_opt_(cchItemText) LPWSTR pszItemText,
4910   _In_ UINT cchItemText);
4911 
4912 BOOL WINAPI GetComboBoxInfo(_In_ HWND, _Inout_ PCOMBOBOXINFO);
4913 BOOL WINAPI GetCursorInfo(_Inout_ PCURSORINFO);
4914 #if (WINVER >= 0x0500)
4915 BOOL WINAPI GetGUIThreadInfo(_In_ DWORD, _Inout_ LPGUITHREADINFO);
4916 #endif
4917 BOOL WINAPI GetLastInputInfo(_Out_ PLASTINPUTINFO);
4918 DWORD WINAPI GetListBoxInfo(_In_ HWND);
4919 BOOL WINAPI GetMenuBarInfo(_In_ HWND, _In_ LONG, _In_ LONG, _Inout_ PMENUBARINFO);
4920 BOOL WINAPI GetMenuInfo(_In_ HMENU, _Inout_ LPMENUINFO);
4921 #if (_WIN32_WINNT >= 0x0500)
4922 BOOL WINAPI GetProcessDefaultLayout(_Out_ DWORD*);
4923 #endif
4924 BOOL WINAPI GetScrollBarInfo(_In_ HWND, _In_ LONG, _Inout_ PSCROLLBARINFO);
4925 BOOL WINAPI GetTitleBarInfo(_In_ HWND, _Inout_ PTITLEBARINFO);
4926 BOOL WINAPI GetWindowInfo(_In_ HWND, _Inout_ PWINDOWINFO);
4927 BOOL WINAPI GetMonitorInfoA(_In_ HMONITOR, _Inout_ LPMONITORINFO);
4928 BOOL WINAPI GetMonitorInfoW(_In_ HMONITOR, _Inout_ LPMONITORINFO);
4929 
4930 #if (_WIN32_WINNT >= _WIN32_WINNT_VISTA)
4931 #define USER_DEFAULT_SCREEN_DPI 96
4932 #endif /* _WIN32_WINNT >= _WIN32_WINNT_VISTA */
4933 
4934 #if (_WIN32_WINNT >= 0x0605) /* Windows 10 pre-Threshold */
4935 UINT WINAPI GetDpiForSystem(VOID);
4936 UINT WINAPI GetDpiForWindow(_In_ HWND hwnd);
4937 #endif /* _WIN32_WINNT >= 0x0605 */
4938 
4939 UINT
4940 WINAPI
4941 GetWindowModuleFileNameA(
4942   _In_ HWND hwnd,
4943   _Out_writes_to_(cchFileNameMax, return) LPSTR pszFileName,
4944   _In_ UINT cchFileNameMax);
4945 
4946 UINT
4947 WINAPI
4948 GetWindowModuleFileNameW(
4949   _In_ HWND hwnd,
4950   _Out_writes_to_(cchFileNameMax, return) LPWSTR pszFileName,
4951   _In_ UINT cchFileNameMax);
4952 
4953 BOOL WINAPI GrayStringA(_In_ HDC, _In_opt_ HBRUSH, _In_opt_ GRAYSTRINGPROC, _In_ LPARAM, _In_ int, _In_ int, _In_ int, _In_ int, _In_ int);
4954 BOOL WINAPI GrayStringW(_In_ HDC, _In_opt_ HBRUSH, _In_opt_ GRAYSTRINGPROC, _In_ LPARAM, _In_ int, _In_ int, _In_ int, _In_ int, _In_ int);
4955 BOOL WINAPI HideCaret(_In_opt_ HWND);
4956 BOOL WINAPI HiliteMenuItem(_In_ HWND, _In_ HMENU, _In_ UINT, _In_ UINT);
4957 BOOL WINAPI InflateRect(_Inout_ LPRECT, _In_ int, _In_ int);
4958 BOOL WINAPI InSendMessage(void);
4959 #if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0410)
4960 DWORD WINAPI InSendMessageEx(_Reserved_ LPVOID);
4961 #endif
4962 BOOL WINAPI InsertMenuA(_In_ HMENU, _In_ UINT, _In_ UINT, _In_ UINT_PTR, _In_opt_ LPCSTR);
4963 BOOL WINAPI InsertMenuW(_In_ HMENU, _In_ UINT, _In_ UINT, _In_ UINT_PTR, _In_opt_ LPCWSTR);
4964 BOOL WINAPI InsertMenuItemA(_In_ HMENU, _In_ UINT, _In_ BOOL, _In_ LPCMENUITEMINFOA);
4965 BOOL WINAPI InsertMenuItemW(_In_ HMENU, _In_ UINT, _In_ BOOL, _In_ LPCMENUITEMINFOW);
4966 
4967 INT
4968 WINAPI
4969 InternalGetWindowText(
4970   _In_ HWND hWnd,
4971   _Out_writes_to_(cchMaxCount, return + 1) LPWSTR pString,
4972   _In_ int cchMaxCount);
4973 
4974 BOOL WINAPI IntersectRect(_Out_ LPRECT, _In_ LPCRECT, _In_ LPCRECT);
4975 BOOL WINAPI InvalidateRect(_In_opt_ HWND, _In_opt_ LPCRECT, _In_ BOOL);
4976 BOOL WINAPI InvalidateRgn(_In_ HWND, _In_opt_ HRGN, _In_ BOOL);
4977 BOOL WINAPI InvertRect(_In_ HDC, _In_ LPCRECT);
4978 BOOL WINAPI IsCharAlphaA(_In_ CHAR ch);
4979 BOOL WINAPI IsCharAlphaNumericA(_In_ CHAR);
4980 BOOL WINAPI IsCharAlphaNumericW(_In_ WCHAR);
4981 BOOL WINAPI IsCharAlphaW( _In_ WCHAR);
4982 BOOL WINAPI IsCharLowerA(_In_ CHAR);
4983 BOOL WINAPI IsCharLowerW(_In_ WCHAR);
4984 BOOL WINAPI IsCharUpperA(_In_ CHAR);
4985 BOOL WINAPI IsCharUpperW(_In_ WCHAR);
4986 BOOL WINAPI IsChild(_In_ HWND, _In_ HWND);
4987 BOOL WINAPI IsClipboardFormatAvailable(_In_ UINT);
4988 BOOL WINAPI IsDialogMessageA(_In_ HWND, _In_ LPMSG);
4989 BOOL WINAPI IsDialogMessageW(_In_ HWND, _In_ LPMSG);
4990 UINT WINAPI IsDlgButtonChecked(_In_ HWND, _In_ int);
4991 #if(_WIN32_WINNT >= 0x0501)
4992 BOOL WINAPI IsGUIThread(_In_ BOOL);
4993 #endif
4994 #if(_WIN32_WINNT >= 0x0500)
4995 BOOL WINAPI IsHungAppWindow(_In_ HWND);
4996 #endif
4997 BOOL WINAPI IsIconic(_In_ HWND);
4998 BOOL WINAPI IsMenu(_In_ HMENU);
4999 BOOL WINAPI IsRectEmpty(_In_ LPCRECT);
5000 BOOL WINAPI IsWindow(_In_opt_ HWND);
5001 BOOL WINAPI IsWindowEnabled(_In_ HWND);
5002 BOOL WINAPI IsWindowUnicode(_In_ HWND);
5003 BOOL WINAPI IsWindowVisible(_In_ HWND);
5004 #if (_WIN32_WINNT >= 0x0501)
5005 BOOL WINAPI IsWinEventHookInstalled(_In_ DWORD);
5006 #endif
5007 BOOL WINAPI IsZoomed(_In_ HWND);
5008 VOID WINAPI keybd_event(_In_ BYTE, _In_ BYTE, _In_ DWORD, _In_ ULONG_PTR);
5009 BOOL WINAPI KillTimer(_In_opt_ HWND, _In_ UINT_PTR);
5010 BOOL WINAPI KillSystemTimer(HWND,UINT_PTR);
5011 HACCEL WINAPI LoadAcceleratorsA(_In_opt_ HINSTANCE, _In_ LPCSTR);
5012 HACCEL WINAPI LoadAcceleratorsW(_In_opt_ HINSTANCE, _In_ LPCWSTR);
5013 HBITMAP WINAPI LoadBitmapA(_In_opt_ HINSTANCE, _In_ LPCSTR);
5014 HBITMAP WINAPI LoadBitmapW(_In_opt_ HINSTANCE, _In_ LPCWSTR);
5015 HCURSOR WINAPI LoadCursorA(_In_opt_ HINSTANCE, _In_ LPCSTR);
5016 HCURSOR WINAPI LoadCursorW(_In_opt_ HINSTANCE, _In_ LPCWSTR);
5017 HCURSOR WINAPI LoadCursorFromFileA(_In_ LPCSTR);
5018 HCURSOR WINAPI LoadCursorFromFileW(_In_ LPCWSTR);
5019 HICON WINAPI LoadIconA(_In_opt_ HINSTANCE hInstance, _In_ LPCSTR lpIconName);
5020 HICON WINAPI LoadIconW(_In_opt_ HINSTANCE hInstance, _In_ LPCWSTR lpIconName);
5021 HANDLE WINAPI LoadImageA(_In_opt_ HINSTANCE hInst, _In_ LPCSTR name, _In_ UINT type, _In_ int cx, _In_ int cy, _In_ UINT fuLoad);
5022 HANDLE WINAPI LoadImageW(_In_opt_ HINSTANCE hInst, _In_ LPCWSTR name, _In_ UINT type, _In_ int cx, _In_ int cy, _In_ UINT fuLoad);
5023 HKL WINAPI LoadKeyboardLayoutA(_In_ LPCSTR, _In_ UINT);
5024 HKL WINAPI LoadKeyboardLayoutW(_In_ LPCWSTR, _In_ UINT);
5025 HMENU WINAPI LoadMenuA(_In_opt_ HINSTANCE, _In_ LPCSTR);
5026 HMENU WINAPI LoadMenuIndirectA(_In_ const MENUTEMPLATE*);
5027 HMENU WINAPI LoadMenuIndirectW(_In_ const MENUTEMPLATE*);
5028 HMENU WINAPI LoadMenuW(_In_opt_ HINSTANCE, _In_ LPCWSTR);
5029 
5030 int
5031 WINAPI
5032 LoadStringA(
5033   _In_opt_ HINSTANCE hInstance,
5034   _In_ UINT uID,
5035   _Out_writes_to_(cchBufferMax, return + 1) LPSTR lpBuffer,
5036   _In_ int cchBufferMax);
5037 
5038 int
5039 WINAPI
5040 LoadStringW(
5041   _In_opt_ HINSTANCE hInstance,
5042   _In_ UINT uID,
5043   _Out_writes_to_(cchBufferMax, return + 1) LPWSTR lpBuffer,
5044   _In_ int cchBufferMax);
5045 
5046 BOOL WINAPI LockWindowUpdate(_In_opt_ HWND);
5047 #if (_WIN32_WINNT >= 0x0500)
5048 BOOL WINAPI LockWorkStation(void);
5049 #endif
5050 
5051 typedef struct {
5052   WORD Reserved;
5053   WORD ResType;
5054   WORD ResCount;
5055 } NEWHEADER;
5056 
5057 int WINAPI LookupIconIdFromDirectory(_In_reads_bytes_(sizeof(NEWHEADER)) PBYTE, _In_ BOOL);
5058 int WINAPI LookupIconIdFromDirectoryEx(_In_reads_bytes_(sizeof(NEWHEADER)) PBYTE, _In_ BOOL, _In_ int, _In_ int, _In_ UINT);
5059 BOOL WINAPI MapDialogRect(_In_ HWND, _Inout_ LPRECT);
5060 UINT WINAPI MapVirtualKeyA(_In_ UINT, _In_ UINT);
5061 UINT WINAPI MapVirtualKeyExA(_In_ UINT, _In_ UINT, _In_opt_ HKL);
5062 UINT WINAPI MapVirtualKeyExW(_In_ UINT, _In_ UINT, _In_opt_ HKL);
5063 UINT WINAPI MapVirtualKeyW(_In_ UINT, _In_ UINT);
5064 
5065 int
5066 WINAPI
5067 MapWindowPoints(
5068   _In_opt_ HWND hWndFrom,
5069   _In_opt_ HWND hWndTo,
5070   _Inout_updates_(cPoints) LPPOINT lpPoints,
5071   _In_ UINT cPoints);
5072 
5073 int WINAPI MenuItemFromPoint(_In_opt_ HWND, _In_ HMENU, _In_ POINT);
5074 BOOL WINAPI MessageBeep(_In_ UINT uType);
5075 int WINAPI MessageBoxA(_In_opt_ HWND hWnd, _In_opt_ LPCSTR lpText, _In_opt_ LPCSTR lpCaption, _In_ UINT uType);
5076 int WINAPI MessageBoxW(_In_opt_ HWND hWnd, _In_opt_ LPCWSTR lpText, _In_opt_ LPCWSTR lpCaption, _In_ UINT uType);
5077 int WINAPI MessageBoxExA(_In_opt_ HWND hWnd, _In_opt_ LPCSTR lpText, _In_opt_ LPCSTR lpCaption, _In_ UINT uType, _In_ WORD wLanguageId);
5078 int WINAPI MessageBoxExW(_In_opt_ HWND hWnd, _In_opt_ LPCWSTR lpText, _In_opt_ LPCWSTR lpCaption, _In_ UINT uType, _In_ WORD wLanguageId);
5079 int WINAPI MessageBoxIndirectA(_In_ CONST MSGBOXPARAMSA* lpmbp);
5080 int WINAPI MessageBoxIndirectW(_In_ CONST MSGBOXPARAMSW* lpmbp);
5081 BOOL WINAPI ModifyMenuA(_In_ HMENU, _In_ UINT, _In_ UINT, _In_ UINT_PTR, _In_opt_ LPCSTR);
5082 BOOL WINAPI ModifyMenuW(_In_ HMENU, _In_ UINT, _In_ UINT, _In_ UINT_PTR, _In_opt_ LPCWSTR);
5083 HMONITOR WINAPI MonitorFromPoint(_In_ POINT, _In_ DWORD);
5084 HMONITOR WINAPI MonitorFromRect(_In_ LPCRECT, _In_ DWORD);
5085 HMONITOR WINAPI MonitorFromWindow(_In_ HWND, _In_ DWORD);
5086 void WINAPI mouse_event(_In_ DWORD, _In_ DWORD, _In_ DWORD, _In_ DWORD, _In_ ULONG_PTR);
5087 BOOL WINAPI MoveWindow(_In_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ BOOL);
5088 
5089 DWORD
5090 WINAPI
5091 MsgWaitForMultipleObjects(
5092   _In_ DWORD nCount,
5093   _In_reads_opt_(nCount) CONST HANDLE *pHandles,
5094   _In_ BOOL fWaitAll,
5095   _In_ DWORD dwMilliseconds,
5096   _In_ DWORD dwWakeMask);
5097 
5098 DWORD
5099 WINAPI
5100 MsgWaitForMultipleObjectsEx(
5101   _In_ DWORD nCount,
5102   _In_reads_opt_(nCount) CONST HANDLE *pHandles,
5103   _In_ DWORD dwMilliseconds,
5104   _In_ DWORD dwWakeMask,
5105   _In_ DWORD dwFlags);
5106 
5107 #if (WINVER >= 0x0500)
5108 void WINAPI NotifyWinEvent(_In_ DWORD, _In_ HWND, _In_ LONG, _In_ LONG);
5109 #endif
5110 DWORD WINAPI OemKeyScan(_In_ WORD);
5111 
5112 BOOL
5113 WINAPI
5114 OemToCharA(
5115   _In_ LPCSTR pSrc,
5116   _Out_writes_(_Inexpressible_(strlen(pSrc) + 1)) LPSTR pDst);
5117 
5118 BOOL
5119 WINAPI
5120 OemToCharBuffA(
5121   _In_ LPCSTR lpszSrc,
5122   _Out_writes_(cchDstLength) LPSTR lpszDst,
5123   _In_ DWORD cchDstLength);
5124 
5125 BOOL
5126 WINAPI
5127 OemToCharBuffW(
5128   _In_ LPCSTR lpszSrc,
5129   _Out_writes_(cchDstLength) LPWSTR lpszDst,
5130   _In_ DWORD cchDstLength);
5131 
5132 BOOL
5133 WINAPI
5134 OemToCharW(
5135   _In_ LPCSTR pSrc,
5136   _Out_writes_(_Inexpressible_(strlen(pSrc) + 1)) LPWSTR pDst);
5137 
5138 BOOL WINAPI OffsetRect(_Inout_ LPRECT, _In_ int, _In_ int);
5139 BOOL WINAPI OpenClipboard(_In_opt_ HWND);
5140 HDESK WINAPI OpenDesktopA(_In_ LPCSTR, _In_ DWORD, _In_ BOOL, _In_ DWORD);
5141 HDESK WINAPI OpenDesktopW(_In_ LPCWSTR, _In_ DWORD, _In_ BOOL, _In_ DWORD);
5142 BOOL WINAPI OpenIcon(_In_ HWND);
5143 HDESK WINAPI OpenInputDesktop(_In_ DWORD, _In_ BOOL, _In_ DWORD);
5144 HWINSTA WINAPI OpenWindowStationA(_In_ LPCSTR, _In_ BOOL, _In_ DWORD);
5145 HWINSTA WINAPI OpenWindowStationW(_In_ LPCWSTR, _In_ BOOL, _In_ DWORD);
5146 BOOL WINAPI PaintDesktop(_In_ HDC);
5147 BOOL WINAPI PeekMessageA(_Out_ LPMSG, _In_opt_ HWND, _In_ UINT, _In_ UINT, _In_ UINT);
5148 BOOL WINAPI PeekMessageW(_Out_ LPMSG, _In_opt_ HWND, _In_ UINT, _In_ UINT, _In_ UINT);
5149 #define PostAppMessageA(t,m,w,l) PostThreadMessageA((DWORD)t,m,w,l)
5150 #define PostAppMessageW(t,m,w,l) PostThreadMessageW((DWORD)t,m,w,l)
5151 BOOL WINAPI PostMessageA(_In_opt_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM);
5152 BOOL WINAPI PostMessageW(_In_opt_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM);
5153 
5154 __analysis_noreturn
5155 void WINAPI PostQuitMessage(_In_ int);
5156 
5157 BOOL WINAPI PostThreadMessageA(_In_ DWORD, _In_ UINT, _In_ WPARAM, _In_ LPARAM);
5158 BOOL WINAPI PostThreadMessageW(_In_ DWORD, _In_ UINT, _In_ WPARAM, _In_ LPARAM);
5159 #if (_WIN32_WINNT >= 0x0501)
5160 BOOL WINAPI PrintWindow(_In_ HWND, _In_ HDC, _In_ UINT);
5161 #endif
5162 
5163 UINT
5164 WINAPI
5165 PrivateExtractIconsA(
5166   _In_reads_(MAX_PATH) LPCSTR szFileName,
5167   _In_ int nIconIndex,
5168   _In_ int cxIcon,
5169   _In_ int cyIcon,
5170   _Out_writes_opt_(nIcons) HICON *phicon,
5171   _Out_writes_opt_(nIcons) UINT *piconid,
5172   _In_ UINT nIcons,
5173   _In_ UINT flags);
5174 
5175 UINT
5176 WINAPI
5177 PrivateExtractIconsW(
5178   _In_reads_(MAX_PATH) LPCWSTR szFileName,
5179   _In_ int nIconIndex,
5180   _In_ int cxIcon,
5181   _In_ int cyIcon,
5182   _Out_writes_opt_(nIcons) HICON *phicon,
5183   _Out_writes_opt_(nIcons) UINT *piconid,
5184   _In_ UINT nIcons,
5185   _In_ UINT flags);
5186 
5187 UINT WINAPI WINAPI PrivateExtractIconExA(LPCSTR,int,HICON*,HICON*,UINT);
5188 UINT WINAPI WINAPI PrivateExtractIconExW(LPCWSTR,int,HICON*,HICON*,UINT);
5189 BOOL WINAPI PtInRect(_In_ LPCRECT, _In_ POINT);
5190 HWND WINAPI RealChildWindowFromPoint(_In_ HWND, _In_ POINT);
5191 
5192 UINT
5193 WINAPI
5194 RealGetWindowClassA(
5195   _In_ HWND hwnd,
5196   _Out_writes_to_(cchClassNameMax, return) LPSTR ptszClassName,
5197   _In_ UINT cchClassNameMax);
5198 
5199 UINT
5200 WINAPI
5201 RealGetWindowClassW(
5202   _In_ HWND hwnd,
5203   _Out_writes_to_(cchClassNameMax, return) LPWSTR ptszClassName,
5204   _In_ UINT cchClassNameMax);
5205 
5206 BOOL WINAPI RedrawWindow(_In_opt_ HWND, _In_opt_ LPCRECT, _In_opt_ HRGN, _In_ UINT);
5207 ATOM WINAPI RegisterClassA(_In_ CONST WNDCLASSA*);
5208 ATOM WINAPI RegisterClassW(_In_ CONST WNDCLASSW*);
5209 ATOM WINAPI RegisterClassExA(_In_ CONST WNDCLASSEXA*);
5210 ATOM WINAPI RegisterClassExW(_In_ CONST WNDCLASSEXW*);
5211 #if(_WIN32_WINNT >= 0x0501)
5212 typedef BOOLEAN (WINAPI * PREGISTERCLASSNAMEW)(LPCWSTR);
5213 #endif
5214 UINT WINAPI RegisterClipboardFormatA(_In_ LPCSTR);
5215 UINT WINAPI RegisterClipboardFormatW(_In_ LPCWSTR);
5216 #if (WINVER >= 0x0500)
5217 HDEVNOTIFY WINAPI RegisterDeviceNotificationA(_In_ HANDLE, _In_ LPVOID, _In_ DWORD);
5218 HDEVNOTIFY WINAPI RegisterDeviceNotificationW(_In_ HANDLE, _In_ LPVOID, _In_ DWORD);
5219 #endif
5220 BOOL WINAPI RegisterHotKey(_In_opt_ HWND, _In_ int, _In_ UINT, _In_ UINT);
5221 BOOL WINAPI RegisterLogonProcess(DWORD,BOOL);
5222 
5223 #if (_WIN32_WINNT >= 0x0501)
5224 BOOL
5225 WINAPI
5226 RegisterRawInputDevices(
5227   _In_reads_(uiNumDevices) PCRAWINPUTDEVICE pRawInputDevices,
5228   _In_ UINT uiNumDevices,
5229   _In_ UINT cbSize);
5230 #endif
5231 
5232 BOOL WINAPI RegisterShellHookWindow(_In_ HWND);
5233 UINT WINAPI RegisterWindowMessageA(_In_ LPCSTR);
5234 UINT WINAPI RegisterWindowMessageW(_In_ LPCWSTR);
5235 BOOL WINAPI ReleaseCapture(void);
5236 int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC);
5237 BOOL WINAPI RemoveMenu(_In_ HMENU, _In_ UINT, _In_ UINT);
5238 HANDLE WINAPI RemovePropA(_In_ HWND, _In_ LPCSTR);
5239 HANDLE WINAPI RemovePropW(_In_ HWND, _In_ LPCWSTR);
5240 BOOL WINAPI ReplyMessage(_In_ LRESULT);
5241 BOOL WINAPI ScreenToClient(_In_ HWND, _Inout_ LPPOINT);
5242 VOID WINAPI ScrollChildren(HWND,UINT,WPARAM,LPARAM);
5243 BOOL WINAPI ScrollDC(_In_ HDC, _In_ int, _In_ int, _In_opt_ LPCRECT, _In_opt_ LPCRECT, _In_opt_ HRGN, _Out_opt_ LPRECT);
5244 BOOL WINAPI ScrollWindow(_In_ HWND, _In_ int, _In_ int, _In_opt_ LPCRECT, _In_opt_ LPCRECT);
5245 int WINAPI ScrollWindowEx(_In_ HWND, _In_ int, _In_ int, _In_opt_ LPCRECT, _In_opt_ LPCRECT, _In_opt_ HRGN, _Out_opt_ LPRECT, _In_ UINT);
5246 LRESULT WINAPI SendDlgItemMessageA(_In_ HWND, _In_ int, _In_ UINT, _In_ WPARAM, _In_ LPARAM);
5247 LRESULT WINAPI SendDlgItemMessageW(_In_ HWND, _In_ int, _In_ UINT, _In_ WPARAM, _In_ LPARAM);
5248 
5249 #if (_WIN32_WINNT >= 0x0403)
5250 UINT
5251 WINAPI
5252 SendInput(
5253   _In_ UINT cInputs,
5254   _In_reads_(cInputs) LPINPUT pInputs,
5255   _In_ int cbSize);
5256 #endif
5257 
5258 LRESULT WINAPI SendMessageA(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM);
5259 BOOL WINAPI SendMessageCallbackA(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM, _In_ SENDASYNCPROC, _In_ ULONG_PTR);
5260 BOOL WINAPI SendMessageCallbackW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM, _In_ SENDASYNCPROC, _In_ ULONG_PTR);
5261 LRESULT WINAPI SendMessageTimeoutA(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM, _In_ UINT, _In_ UINT, _Out_opt_ PDWORD_PTR);
5262 LRESULT WINAPI SendMessageTimeoutW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM, _In_ UINT, _In_ UINT, _Out_opt_ PDWORD_PTR);
5263 LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM);
5264 BOOL WINAPI SendNotifyMessageA(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM);
5265 BOOL WINAPI SendNotifyMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM);
5266 HWND WINAPI SetActiveWindow(_In_ HWND);
5267 HWND WINAPI SetCapture(_In_ HWND hWnd);
5268 BOOL WINAPI SetCaretBlinkTime(_In_ UINT);
5269 BOOL WINAPI SetCaretPos(_In_ int, _In_ int);
5270 DWORD WINAPI SetClassLongA(_In_ HWND, _In_ int, _In_ LONG);
5271 DWORD WINAPI SetClassLongW(_In_ HWND, _In_ int, _In_ LONG);
5272 #ifdef _WIN64
5273 ULONG_PTR WINAPI SetClassLongPtrA(_In_ HWND, _In_ INT, _In_ LONG_PTR);
5274 ULONG_PTR WINAPI SetClassLongPtrW(_In_ HWND, _In_ INT, _In_ LONG_PTR);
5275 #else
5276 #define SetClassLongPtrA SetClassLongA
5277 #define SetClassLongPtrW SetClassLongW
5278 #endif
5279 WORD WINAPI SetClassWord(_In_ HWND, _In_ int, _In_ WORD);
5280 HANDLE WINAPI SetClipboardData(_In_ UINT, _In_opt_ HANDLE);
5281 HWND WINAPI SetClipboardViewer(_In_ HWND);
5282 HCURSOR WINAPI SetCursor(_In_opt_ HCURSOR);
5283 BOOL WINAPI SetCursorPos(_In_ int, _In_ int);
5284 VOID WINAPI SetDebugErrorLevel(_In_ DWORD);
5285 BOOL WINAPI SetDeskWallPaper(LPCSTR);
5286 BOOL WINAPI SetDlgItemInt(_In_ HWND, _In_ int, _In_ UINT, _In_ BOOL);
5287 BOOL WINAPI SetDlgItemTextA(_In_ HWND, _In_ int, _In_ LPCSTR);
5288 BOOL WINAPI SetDlgItemTextW(_In_ HWND, _In_ int, _In_ LPCWSTR);
5289 BOOL WINAPI SetDoubleClickTime(_In_ UINT);
5290 HWND WINAPI SetFocus(_In_opt_ HWND);
5291 BOOL WINAPI SetForegroundWindow(_In_ HWND);
5292 BOOL WINAPI SetKeyboardState(_In_reads_(256) LPBYTE);
5293 BOOL WINAPI SetMenu(_In_ HWND, _In_opt_ HMENU);
5294 BOOL WINAPI SetMenuContextHelpId(_In_ HMENU, _In_ DWORD);
5295 BOOL WINAPI SetMenuDefaultItem(_In_ HMENU, _In_ UINT, _In_ UINT);
5296 BOOL WINAPI SetMenuInfo(_In_ HMENU, _In_ LPCMENUINFO);
5297 BOOL WINAPI SetMenuItemBitmaps(_In_ HMENU, _In_ UINT, _In_ UINT, _In_opt_ HBITMAP, _In_opt_ HBITMAP);
5298 BOOL WINAPI SetMenuItemInfoA(_In_ HMENU, _In_ UINT, _In_ BOOL, _In_ LPCMENUITEMINFOA);
5299 BOOL WINAPI SetMenuItemInfoW(_In_ HMENU, _In_ UINT, _In_ BOOL, _In_ LPCMENUITEMINFOW);
5300 LPARAM WINAPI SetMessageExtraInfo(_In_ LPARAM);
5301 BOOL WINAPI SetMessageQueue(_In_ int);
5302 HWND WINAPI SetParent(_In_ HWND, _In_opt_ HWND);
5303 #if (_WIN32_WINNT >= 0x0500)
5304 BOOL WINAPI SetProcessDefaultLayout(_In_ DWORD);
5305 #endif /* (_WIN32_WINNT >= 0x0500) */
5306 BOOL WINAPI SetProcessWindowStation(_In_ HWINSTA);
5307 BOOL WINAPI SetPropA(_In_ HWND, _In_ LPCSTR, _In_opt_ HANDLE);
5308 BOOL WINAPI SetPropW(_In_ HWND, _In_ LPCWSTR, _In_opt_ HANDLE);
5309 BOOL WINAPI SetRect(_Out_ LPRECT, _In_ int, _In_ int, _In_ int, _In_ int);
5310 BOOL WINAPI SetRectEmpty(_Out_ LPRECT);
5311 int WINAPI SetScrollInfo(_In_ HWND, _In_ int, _In_ LPCSCROLLINFO, _In_ BOOL);
5312 int WINAPI SetScrollPos(_In_ HWND, _In_ int, _In_ int, _In_ BOOL);
5313 BOOL WINAPI SetScrollRange(_In_ HWND, _In_ int, _In_ int, _In_ int, _In_ BOOL);
5314 
5315 BOOL
5316 WINAPI
5317 SetSysColors(
5318   _In_ int cElements,
5319   _In_reads_(cElements) CONST INT * lpaElements,
5320   _In_reads_(cElements) CONST COLORREF * lpaRgbValues);
5321 
5322 DWORD_PTR WINAPI SetSysColorsTemp(const COLORREF *, const HBRUSH *, DWORD_PTR);
5323 #define SetSysModalWindow(h) (NULL)
5324 BOOL WINAPI SetSystemCursor(_In_ HCURSOR, _In_ DWORD);
5325 BOOL WINAPI SetSystemMenu(HWND,HMENU);
5326 BOOL WINAPI SetThreadDesktop(_In_ HDESK);
5327 UINT_PTR WINAPI SetTimer(_In_opt_ HWND, _In_ UINT_PTR, _In_ UINT, _In_opt_ TIMERPROC);
5328 UINT_PTR WINAPI SetSystemTimer(HWND,UINT_PTR,UINT,TIMERPROC);
5329 
5330 BOOL
5331 WINAPI
5332 SetUserObjectInformationA(
5333   _In_ HANDLE hObj,
5334   _In_ int nIndex,
5335   _In_reads_bytes_(nLength) PVOID pvInfo,
5336   _In_ DWORD nLength);
5337 
5338 BOOL
5339 WINAPI
5340 SetUserObjectInformationW(
5341   _In_ HANDLE hObj,
5342   _In_ int nIndex,
5343   _In_reads_bytes_(nLength) PVOID pvInfo,
5344   _In_ DWORD nLength);
5345 
5346 BOOL WINAPI SetUserObjectSecurity(_In_ HANDLE, _In_ PSECURITY_INFORMATION, _In_ PSECURITY_DESCRIPTOR);
5347 #if (WINVER >= 0x0500)
5348 HWINEVENTHOOK WINAPI SetWinEventHook(_In_ UINT, _In_ UINT, _In_opt_ HMODULE, _In_ WINEVENTPROC, _In_ DWORD, _In_ DWORD, _In_ UINT);
5349 #endif
5350 BOOL WINAPI SetWindowContextHelpId(_In_ HWND, _In_ DWORD);
5351 LONG WINAPI SetWindowLongA(_In_ HWND, _In_ int, _In_ LONG);
5352 LONG WINAPI SetWindowLongW(_In_ HWND, _In_ int, _In_ LONG);
5353 #ifdef _WIN64
5354 LONG_PTR WINAPI SetWindowLongPtrA(_In_ HWND, _In_ int, _In_ LONG_PTR);
5355 LONG_PTR WINAPI SetWindowLongPtrW(_In_ HWND, _In_ int, _In_ LONG_PTR);
5356 #else
5357 #define SetWindowLongPtrA SetWindowLongA
5358 #define SetWindowLongPtrW SetWindowLongW
5359 #endif
5360 BOOL WINAPI SetWindowPlacement(_In_ HWND hWnd, _In_ const WINDOWPLACEMENT*);
5361 BOOL WINAPI SetWindowPos(_In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT);
5362 int WINAPI SetWindowRgn(_In_ HWND, _In_opt_ HRGN, _In_ BOOL);
5363 HHOOK WINAPI SetWindowsHookA(_In_ int, _In_ HOOKPROC);
5364 HHOOK WINAPI SetWindowsHookW(_In_ int, _In_ HOOKPROC);
5365 HHOOK WINAPI SetWindowsHookExA(_In_ int, _In_ HOOKPROC, _In_opt_ HINSTANCE, _In_ DWORD);
5366 HHOOK WINAPI SetWindowsHookExW(_In_ int, _In_ HOOKPROC, _In_opt_ HINSTANCE, _In_ DWORD);
5367 BOOL WINAPI SetWindowTextA(_In_ HWND, _In_opt_ LPCSTR);
5368 BOOL WINAPI SetWindowTextW(_In_ HWND, _In_opt_ LPCWSTR);
5369 WORD WINAPI SetWindowWord(_In_ HWND, _In_ int, _In_ WORD);
5370 BOOL WINAPI ShowCaret(_In_opt_ HWND);
5371 int WINAPI ShowCursor(_In_ BOOL);
5372 BOOL WINAPI ShowOwnedPopups(_In_ HWND, _In_ BOOL);
5373 BOOL WINAPI ShowScrollBar(_In_ HWND, _In_ int, _In_ BOOL);
5374 BOOL WINAPI ShowWindow(_In_ HWND, _In_ int);
5375 BOOL WINAPI ShowWindowAsync(_In_ HWND, _In_ int);
5376 BOOL WINAPI SubtractRect(_Out_ LPRECT, _In_ LPCRECT, _In_ LPCRECT);
5377 BOOL WINAPI SwapMouseButton(_In_ BOOL);
5378 BOOL WINAPI SwitchDesktop(_In_ HDESK);
5379 #if(_WIN32_WINNT >= 0x0500)
5380 VOID WINAPI SwitchToThisWindow(_In_ HWND, _In_ BOOL);
5381 #endif /* (_WIN32_WINNT >= 0x0500) */
5382 BOOL WINAPI SystemParametersInfoA(_In_ UINT uiAction, _In_ UINT uiParam, _Inout_opt_ PVOID pvParam, _In_ UINT fWinIni);
5383 BOOL WINAPI SystemParametersInfoW(_In_ UINT uiAction, _In_ UINT uiParam, _Inout_opt_ PVOID pvParam, _In_ UINT fWinIni);
5384 
5385 LONG
5386 WINAPI
5387 TabbedTextOutA(
5388   _In_ HDC hdc,
5389   _In_ int x,
5390   _In_ int y,
5391   _In_reads_(chCount) LPCSTR lpString,
5392   _In_ int chCount,
5393   _In_ int nTabPositions,
5394   _In_reads_opt_(nTabPositions) CONST INT *lpnTabStopPositions,
5395   _In_ int nTabOrigin);
5396 
5397 LONG
5398 WINAPI
5399 TabbedTextOutW(
5400   _In_ HDC hdc,
5401   _In_ int x,
5402   _In_ int y,
5403   _In_reads_(chCount) LPCWSTR lpString,
5404   _In_ int chCount,
5405   _In_ int nTabPositions,
5406   _In_reads_opt_(nTabPositions) CONST INT *lpnTabStopPositions,
5407   _In_ int nTabOrigin);
5408 
5409 WORD
5410 WINAPI
5411 TileWindows(
5412   _In_opt_ HWND hwndParent,
5413   _In_ UINT wHow,
5414   _In_opt_ CONST RECT * lpRect,
5415   _In_ UINT cKids,
5416   _In_reads_opt_(cKids) const HWND FAR *lpKids);
5417 
5418 int WINAPI ToAscii(_In_ UINT, _In_ UINT, _In_reads_opt_(256) CONST BYTE*, _Out_ LPWORD, _In_ UINT);
5419 int WINAPI ToAsciiEx(_In_ UINT, _In_ UINT, _In_reads_opt_(256) CONST BYTE*, _Out_ LPWORD, _In_ UINT, _In_opt_ HKL);
5420 
5421 int
5422 WINAPI
5423 ToUnicode(
5424   _In_ UINT wVirtKey,
5425   _In_ UINT wScanCode,
5426   _In_reads_bytes_opt_(256) CONST BYTE *lpKeyState,
5427   _Out_writes_(cchBuff) LPWSTR pwszBuff,
5428   _In_ int cchBuff,
5429   _In_ UINT wFlags);
5430 
5431 int
5432 WINAPI
5433 ToUnicodeEx(
5434   _In_ UINT wVirtKey,
5435   _In_ UINT wScanCode,
5436   _In_reads_bytes_(256) CONST BYTE *lpKeyState,
5437   _Out_writes_(cchBuff) LPWSTR pwszBuff,
5438   _In_ int cchBuff,
5439   _In_ UINT wFlags,
5440   _In_opt_ HKL dwhkl);
5441 
5442 BOOL WINAPI TrackMouseEvent(_Inout_ LPTRACKMOUSEEVENT);
5443 BOOL WINAPI TrackPopupMenu(_In_ HMENU, _In_ UINT, _In_ int, _In_ int, _Reserved_ int, _In_ HWND, _Reserved_ LPCRECT);
5444 BOOL WINAPI TrackPopupMenuEx(_In_ HMENU, _In_ UINT, _In_ int, _In_ int, _In_ HWND, _In_opt_ LPTPMPARAMS);
5445 int WINAPI TranslateAcceleratorA(_In_ HWND, _In_ HACCEL, _In_ LPMSG);
5446 int WINAPI TranslateAcceleratorW(_In_ HWND, _In_ HACCEL, _In_ LPMSG);
5447 BOOL WINAPI TranslateMDISysAccel(_In_ HWND, _In_ LPMSG);
5448 BOOL WINAPI TranslateMessage(_In_ const MSG*);
5449 BOOL WINAPI UnhookWindowsHook(_In_ int, _In_ HOOKPROC);
5450 BOOL WINAPI UnhookWindowsHookEx(_In_ HHOOK);
5451 #if (WINVER >= 0x0500)
5452 BOOL WINAPI UnhookWinEvent(_In_ HWINEVENTHOOK);
5453 #endif
5454 BOOL WINAPI UnionRect(_Out_ LPRECT, _In_ LPCRECT, _In_ LPCRECT);
5455 BOOL WINAPI UnloadKeyboardLayout(_In_ HKL);
5456 BOOL WINAPI UnregisterClassA(_In_ LPCSTR,HINSTANCE);
5457 BOOL WINAPI UnregisterClassW(_In_ LPCWSTR,HINSTANCE);
5458 #if (WINVER >= 0x0500)
5459 BOOL WINAPI UnregisterDeviceNotification(_In_ HDEVNOTIFY);
5460 #endif
5461 BOOL WINAPI UnregisterHotKey(_In_opt_ HWND, _In_ int);
5462 BOOL WINAPI UpdateWindow(_In_ HWND);
5463 #if (_WIN32_WINNT >= 0x0500)
5464 BOOL WINAPI UserHandleGrantAccess(_In_ HANDLE, _In_ HANDLE, _In_ BOOL);
5465 #endif
5466 BOOL WINAPI ValidateRect(_In_opt_ HWND, _In_opt_ LPCRECT);
5467 BOOL WINAPI ValidateRgn(_In_ HWND, _In_opt_ HRGN);
5468 SHORT WINAPI VkKeyScanA(_In_ CHAR);
5469 SHORT WINAPI VkKeyScanExA(_In_ CHAR, _In_ HKL);
5470 SHORT WINAPI VkKeyScanExW(_In_ WCHAR, _In_ HKL);
5471 SHORT WINAPI VkKeyScanW(_In_ WCHAR);
5472 DWORD WINAPI WaitForInputIdle(_In_ HANDLE, _In_ DWORD);
5473 BOOL WINAPI WaitMessage(void);
5474 HWND WINAPI WindowFromDC(_In_ HDC hDC);
5475 #if (_WIN32_WINNT >= 0x0600)
5476 HWND WINAPI WindowFromPhysicalPoint(_In_ POINT);
5477 #endif
5478 HWND WINAPI WindowFromPoint(_In_ POINT);
5479 UINT WINAPI WinExec(LPCSTR,UINT);
5480 BOOL WINAPI WinHelpA(_In_opt_ HWND, _In_opt_ LPCSTR, _In_ UINT, _In_ ULONG_PTR);
5481 BOOL WINAPI WinHelpW(_In_opt_ HWND, _In_opt_ LPCWSTR, _In_ UINT, _In_ ULONG_PTR);
5482 
5483 int
5484 WINAPIV
5485 wsprintfA(
5486   _Out_ LPSTR,
5487   _In_ _Printf_format_string_ LPCSTR,
5488   ...);
5489 
5490 int
5491 WINAPIV
5492 wsprintfW(
5493   _Out_ LPWSTR,
5494   _In_ _Printf_format_string_ LPCWSTR,
5495   ...);
5496 
5497 int
5498 WINAPI
5499 wvsprintfA(
5500   _Out_ LPSTR,
5501   _In_ _Printf_format_string_ LPCSTR,
5502   _In_ va_list arglist);
5503 
5504 int
5505 WINAPI
5506 wvsprintfW(
5507   _Out_ LPWSTR,
5508   _In_ _Printf_format_string_ LPCWSTR,
5509   _In_ va_list arglist);
5510 
5511 #if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0490)
5512 BOOL WINAPI AllowSetForegroundWindow(_In_ DWORD);
5513 BOOL WINAPI LockSetForegroundWindow(_In_ UINT);
5514 #endif
5515 #if (_WIN32_WINNT >= 0x0500)
5516 
5517 BOOL WINAPI SetLayeredWindowAttributes(_In_ HWND, _In_ COLORREF, _In_ BYTE, _In_ DWORD);
5518 
5519 #if defined(_WINGDI_) && !defined(NOGDI)
5520 
5521 BOOL
5522 WINAPI
5523 UpdateLayeredWindow(
5524   _In_ HWND hWnd,
5525   _In_opt_ HDC hdcDst,
5526   _In_opt_ POINT* pptDst,
5527   _In_opt_ SIZE* psize,
5528   _In_opt_ HDC hdcSrc,
5529   _In_opt_ POINT* pptSrc,
5530   _In_ COLORREF crKey,
5531   _In_opt_ BLENDFUNCTION* pblend,
5532   _In_ DWORD dwFlags);
5533 
5534 typedef struct tagUPDATELAYEREDWINDOWINFO {
5535   DWORD cbSize;
5536   HDC hdcDst;
5537   POINT CONST* pptDst;
5538   SIZE CONST* psize;
5539   HDC hdcSrc;
5540   POINT CONST* pptSrc;
5541   COLORREF crKey;
5542   BLENDFUNCTION CONST* pblend;
5543   DWORD dwFlags;
5544   RECT CONST* prcDirty;
5545 } UPDATELAYEREDWINDOWINFO, *PUPDATELAYEREDWINDOWINFO;
5546 
5547 BOOL WINAPI UpdateLayeredWindowIndirect(_In_ HWND, _In_ const UPDATELAYEREDWINDOWINFO*);
5548 
5549 #endif /* defined(_WINGDI_) && !defined(NOGDI) */
5550 
5551 #endif /* (_WIN32_WINNT >= 0x0500) */
5552 
5553 #if (_WIN32_WINNT >= 0x0501)
5554 BOOL WINAPI GetLayeredWindowAttributes(_In_ HWND, _Out_opt_ COLORREF*, _Out_opt_ BYTE*, _Out_opt_ DWORD*);
5555 #endif
5556 #ifdef UNICODE
5557 #define EDITWORDBREAKPROC EDITWORDBREAKPROCW
5558 #define PROPENUMPROC PROPENUMPROCW
5559 #define PROPENUMPROCEX PROPENUMPROCEXW
5560 #define DESKTOPENUMPROC DESKTOPENUMPROCW
5561 #define WINSTAENUMPROC WINSTAENUMPROCW
5562 #define PROPENUMPROC PROPENUMPROCW
5563 #define PROPENUMPROCEX PROPENUMPROCEXW
5564 typedef WNDCLASSW WNDCLASS,*LPWNDCLASS,*PWNDCLASS;
5565 typedef WNDCLASSEXW WNDCLASSEX,*LPWNDCLASSEX,*PWNDCLASSEX;
5566 typedef MENUITEMINFOW MENUITEMINFO,*LPMENUITEMINFO;
5567 typedef LPCMENUITEMINFOW LPCMENUITEMINFO;
5568 typedef MSGBOXPARAMSW MSGBOXPARAMS,*PMSGBOXPARAMS,*LPMSGBOXPARAMS;
5569 typedef HIGHCONTRASTW HIGHCONTRAST,*LPHIGHCONTRAST;
5570 typedef SERIALKEYSW SERIALKEYS,*LPSERIALKEYS;
5571 typedef SOUNDSENTRYW SOUNDSENTRY,*LPSOUNDSENTRY;
5572 typedef CREATESTRUCTW CREATESTRUCT, *LPCREATESTRUCT;
5573 typedef CBT_CREATEWNDW CBT_CREATEWND, *LPCBT_CREATEWND;
5574 typedef MDICREATESTRUCTW MDICREATESTRUCT,*LPMDICREATESTRUCT;
5575 typedef MULTIKEYHELPW MULTIKEYHELP,*PMULTIKEYHELP,*LPMULTIKEYHELP;
5576 typedef MONITORINFOEXW MONITORINFOEX, *LPMONITORINFOEX;
5577 #define AppendMenu AppendMenuW
5578 #define BroadcastSystemMessage BroadcastSystemMessageW
5579 #define BroadcastSystemMessageEx BroadcastSystemMessageExW
5580 #define CallMsgFilter CallMsgFilterW
5581 #define CallWindowProc CallWindowProcW
5582 #define ChangeMenu ChangeMenuW
5583 #define CharLower CharLowerW
5584 #define CharLowerBuff CharLowerBuffW
5585 #define CharNext CharNextW
5586 #define CharNextEx CharNextExW
5587 #define CharPrev CharPrevW
5588 #define CharPrevEx CharPrevExW
5589 #define CharToOem CharToOemW
5590 #define CharToOemBuff CharToOemBuffW
5591 #define CharUpper CharUpperW
5592 #define CharUpperBuff CharUpperBuffW
5593 #define CopyAcceleratorTable CopyAcceleratorTableW
5594 #define CreateAcceleratorTable CreateAcceleratorTableW
5595 #define CreateDialog CreateDialogW
5596 #define CreateDialogIndirect CreateDialogIndirectW
5597 #define CreateDialogIndirectParam CreateDialogIndirectParamW
5598 #define CreateDialogParam CreateDialogParamW
5599 #define CreateMDIWindow CreateMDIWindowW
5600 #define CreateWindow CreateWindowW
5601 #define CreateWindowEx CreateWindowExW
5602 #define CreateWindowStation CreateWindowStationW
5603 #define DefDlgProc DefDlgProcW
5604 #define DefFrameProc DefFrameProcW
5605 #define DefMDIChildProc DefMDIChildProcW
5606 #define DefWindowProc DefWindowProcW
5607 #define DialogBox DialogBoxW
5608 #define DialogBoxIndirect DialogBoxIndirectW
5609 #define DialogBoxIndirectParam DialogBoxIndirectParamW
5610 #define DialogBoxParam DialogBoxParamW
5611 #define DispatchMessage DispatchMessageW
5612 #define DlgDirList DlgDirListW
5613 #define DlgDirListComboBox DlgDirListComboBoxW
5614 #define DlgDirSelectComboBoxEx DlgDirSelectComboBoxExW
5615 #define DlgDirSelectEx DlgDirSelectExW
5616 #define DrawState DrawStateW
5617 #define DrawText DrawTextW
5618 #define DrawTextEx DrawTextExW
5619 #define EnumDesktops EnumDesktopsW
5620 #define EnumProps EnumPropsW
5621 #define EnumPropsEx EnumPropsExW
5622 #define EnumWindowStations EnumWindowStationsW
5623 #define FindWindow FindWindowW
5624 #define FindWindowEx FindWindowExW
5625 #define GetClassInfo GetClassInfoW
5626 #define GetClassInfoEx GetClassInfoExW
5627 #define GetClassLong GetClassLongW
5628 #define GetClassLongPtr GetClassLongPtrW
5629 #define GetClassName GetClassNameW
5630 #define GetClipboardFormatName GetClipboardFormatNameW
5631 #define GetDlgItemText GetDlgItemTextW
5632 #define GetKeyboardLayoutName GetKeyboardLayoutNameW
5633 #define GetKeyNameText GetKeyNameTextW
5634 #define GetMenuItemInfo GetMenuItemInfoW
5635 #define GetMenuString GetMenuStringW
5636 #define GetMessage GetMessageW
5637 #define GetMonitorInfo GetMonitorInfoW
5638 #define GetProp GetPropW
5639 #define GetRawInputDeviceInfo GetRawInputDeviceInfoW
5640 #define GetTabbedTextExtent GetTabbedTextExtentW
5641 #define GetUserObjectInformation GetUserObjectInformationW
5642 #define GetWindowLong GetWindowLongW
5643 #define GetWindowLongPtr GetWindowLongPtrW
5644 #define GetWindowText GetWindowTextW
5645 #define GetWindowTextLength GetWindowTextLengthW
5646 #define GetAltTabInfo GetAltTabInfoW
5647 #define GetWindowModuleFileName GetWindowModuleFileNameW
5648 #define GrayString GrayStringW
5649 #define InsertMenu InsertMenuW
5650 #define InsertMenuItem InsertMenuItemW
5651 #define IsCharAlpha IsCharAlphaW
5652 #define IsCharAlphaNumeric IsCharAlphaNumericW
5653 #define IsCharLower IsCharLowerW
5654 #define IsCharUpper IsCharUpperW
5655 #define IsDialogMessage IsDialogMessageW
5656 #define LoadAccelerators LoadAcceleratorsW
5657 #define LoadBitmap LoadBitmapW
5658 #define LoadCursor LoadCursorW
5659 #define LoadCursorFromFile LoadCursorFromFileW
5660 #define LoadIcon LoadIconW
5661 #define LoadImage LoadImageW
5662 #define LoadKeyboardLayout LoadKeyboardLayoutW
5663 #define LoadMenu LoadMenuW
5664 #define LoadMenuIndirect LoadMenuIndirectW
5665 #define LoadString LoadStringW
5666 #define MapVirtualKey MapVirtualKeyW
5667 #define MapVirtualKeyEx MapVirtualKeyExW
5668 #define MessageBox MessageBoxW
5669 #define MessageBoxEx MessageBoxExW
5670 #define MessageBoxIndirect MessageBoxIndirectW
5671 #define ModifyMenu ModifyMenuW
5672 #define OemToChar OemToCharW
5673 #define OemToCharBuff OemToCharBuffW
5674 #define OpenDesktop OpenDesktopW
5675 #define OpenWindowStation OpenWindowStationW
5676 #define PeekMessage PeekMessageW
5677 #define PostAppMessage PostAppMessageW
5678 #define PostMessage PostMessageW
5679 #define PostThreadMessage PostThreadMessageW
5680 #define PrivateExtractIcons PrivateExtractIconsW
5681 #define RealGetWindowClass RealGetWindowClassW
5682 #define RegisterClass RegisterClassW
5683 #define RegisterClassEx RegisterClassExW
5684 #define RegisterClipboardFormat RegisterClipboardFormatW
5685 #define RegisterDeviceNotification RegisterDeviceNotificationW
5686 #define RegisterWindowMessage RegisterWindowMessageW
5687 #define RemoveProp RemovePropW
5688 #define SendDlgItemMessage SendDlgItemMessageW
5689 #define SendMessage SendMessageW
5690 #define SendMessageCallback SendMessageCallbackW
5691 #define SendMessageTimeout SendMessageTimeoutW
5692 #define SendNotifyMessage SendNotifyMessageW
5693 #define SetClassLong SetClassLongW
5694 #define SetClassLongPtr SetClassLongPtrW
5695 #define SetDlgItemText SetDlgItemTextW
5696 #define SetMenuItemInfo SetMenuItemInfoW
5697 #define SetProp SetPropW
5698 #define SetUserObjectInformation SetUserObjectInformationW
5699 #define SetWindowLong SetWindowLongW
5700 #define SetWindowLongPtr SetWindowLongPtrW
5701 #define SetWindowsHook SetWindowsHookW
5702 #define SetWindowsHookEx SetWindowsHookExW
5703 #define SetWindowText SetWindowTextW
5704 #define SystemParametersInfo SystemParametersInfoW
5705 #define TabbedTextOut TabbedTextOutW
5706 #define TranslateAccelerator TranslateAcceleratorW
5707 #define UnregisterClass UnregisterClassW
5708 #define VkKeyScan VkKeyScanW
5709 #define VkKeyScanEx VkKeyScanExW
5710 #define WinHelp WinHelpW
5711 #define wsprintf wsprintfW
5712 #define wvsprintf wvsprintfW
5713 
5714 #if defined(_WINGDI_) && !defined(NOGDI)
5715 #define ChangeDisplaySettings ChangeDisplaySettingsW
5716 #define ChangeDisplaySettingsEx ChangeDisplaySettingsExW
5717 #define CreateDesktop CreateDesktopW
5718 #define EnumDisplaySettings EnumDisplaySettingsW
5719 #define EnumDisplaySettingsEx EnumDisplaySettingsExW
5720 #define EnumDisplayDevices EnumDisplayDevicesW
5721 #endif /* _WINGDI_ && !NOGDI */
5722 #else /* UNICODE */
5723 #define EDITWORDBREAKPROC EDITWORDBREAKPROCA
5724 #define PROPENUMPROC PROPENUMPROCA
5725 #define PROPENUMPROCEX PROPENUMPROCEXA
5726 #define DESKTOPENUMPROC DESKTOPENUMPROCA
5727 #define WINSTAENUMPROC WINSTAENUMPROCA
5728 #define PROPENUMPROC PROPENUMPROCA
5729 #define PROPENUMPROCEX PROPENUMPROCEXA
5730 typedef WNDCLASSA WNDCLASS,*LPWNDCLASS,*PWNDCLASS;
5731 typedef WNDCLASSEXA WNDCLASSEX,*LPWNDCLASSEX,*PWNDCLASSEX;
5732 typedef MENUITEMINFOA MENUITEMINFO,*LPMENUITEMINFO;
5733 typedef LPCMENUITEMINFOA LPCMENUITEMINFO;
5734 typedef MSGBOXPARAMSA MSGBOXPARAMS,*PMSGBOXPARAMS,*LPMSGBOXPARAMS;
5735 typedef HIGHCONTRASTA HIGHCONTRAST,*LPHIGHCONTRAST;
5736 typedef SERIALKEYSA SERIALKEYS,*LPSERIALKEYS;
5737 typedef SOUNDSENTRYA SOUNDSENTRY,*LPSOUNDSENTRY;
5738 typedef CREATESTRUCTA CREATESTRUCT, *LPCREATESTRUCT;
5739 typedef CBT_CREATEWNDA CBT_CREATEWND, *LPCBT_CREATEWND;
5740 typedef MDICREATESTRUCTA MDICREATESTRUCT,*LPMDICREATESTRUCT;
5741 typedef MULTIKEYHELPA MULTIKEYHELP,*PMULTIKEYHELP,*LPMULTIKEYHELP;
5742 typedef MONITORINFOEXA MONITORINFOEX, *LPMONITORINFOEX;
5743 #define AppendMenu AppendMenuA
5744 #define BroadcastSystemMessage BroadcastSystemMessageA
5745 #define BroadcastSystemMessageEx BroadcastSystemMessageExA
5746 #define CallMsgFilter CallMsgFilterA
5747 #define CallWindowProc CallWindowProcA
5748 #define ChangeMenu ChangeMenuA
5749 #define CharLower CharLowerA
5750 #define CharLowerBuff CharLowerBuffA
5751 #define CharNext CharNextA
5752 #define CharNextEx CharNextExA
5753 #define CharPrev CharPrevA
5754 #define CharPrevEx CharPrevExA
5755 #define CharToOem CharToOemA
5756 #define CharToOemBuff CharToOemBuffA
5757 #define CharUpper CharUpperA
5758 #define CharUpperBuff CharUpperBuffA
5759 #define CopyAcceleratorTable CopyAcceleratorTableA
5760 #define CreateAcceleratorTable CreateAcceleratorTableA
5761 #define CreateDialog CreateDialogA
5762 #define CreateDialogIndirect CreateDialogIndirectA
5763 #define CreateDialogIndirectParam CreateDialogIndirectParamA
5764 #define CreateDialogParam CreateDialogParamA
5765 #define CreateMDIWindow CreateMDIWindowA
5766 #define CreateWindow CreateWindowA
5767 #define CreateWindowEx CreateWindowExA
5768 #define CreateWindowStation CreateWindowStationA
5769 #define DefDlgProc DefDlgProcA
5770 #define DefFrameProc DefFrameProcA
5771 #define DefMDIChildProc DefMDIChildProcA
5772 #define DefWindowProc DefWindowProcA
5773 #define DialogBox DialogBoxA
5774 #define DialogBoxIndirect DialogBoxIndirectA
5775 #define DialogBoxIndirectParam DialogBoxIndirectParamA
5776 #define DialogBoxParam DialogBoxParamA
5777 #define DispatchMessage DispatchMessageA
5778 #define DlgDirList DlgDirListA
5779 #define DlgDirListComboBox DlgDirListComboBoxA
5780 #define DlgDirSelectComboBoxEx DlgDirSelectComboBoxExA
5781 #define DlgDirSelectEx DlgDirSelectExA
5782 #define DrawState DrawStateA
5783 #define DrawText DrawTextA
5784 #define DrawTextEx DrawTextExA
5785 #define EnumDesktops EnumDesktopsA
5786 #define EnumProps EnumPropsA
5787 #define EnumPropsEx EnumPropsExA
5788 #define EnumWindowStations EnumWindowStationsA
5789 #define FindWindow FindWindowA
5790 #define FindWindowEx FindWindowExA
5791 #define GetClassInfo GetClassInfoA
5792 #define GetClassInfoEx GetClassInfoExA
5793 #define GetClassLong GetClassLongA
5794 #define GetClassLongPtr GetClassLongPtrA
5795 #define GetClassName GetClassNameA
5796 #define GetClipboardFormatName GetClipboardFormatNameA
5797 #define GetDlgItemText GetDlgItemTextA
5798 #define GetKeyboardLayoutName GetKeyboardLayoutNameA
5799 #define GetKeyNameText GetKeyNameTextA
5800 #define GetMenuItemInfo GetMenuItemInfoA
5801 #define GetMenuString GetMenuStringA
5802 #define GetMessage GetMessageA
5803 #define GetMonitorInfo GetMonitorInfoA
5804 #define GetProp GetPropA
5805 #define GetRawInputDeviceInfo GetRawInputDeviceInfoA
5806 #define GetTabbedTextExtent GetTabbedTextExtentA
5807 #define GetUserObjectInformation GetUserObjectInformationA
5808 #define GetWindowLong GetWindowLongA
5809 #define GetWindowLongPtr GetWindowLongPtrA
5810 #define GetWindowText GetWindowTextA
5811 #define GetWindowTextLength GetWindowTextLengthA
5812 #define GetAltTabInfo GetAltTabInfoA
5813 #define GetWindowModuleFileName GetWindowModuleFileNameA
5814 #define GrayString GrayStringA
5815 #define InsertMenu InsertMenuA
5816 #define InsertMenuItem InsertMenuItemA
5817 #define IsCharAlpha IsCharAlphaA
5818 #define IsCharAlphaNumeric IsCharAlphaNumericA
5819 #define IsCharLower IsCharLowerA
5820 #define IsCharUpper IsCharUpperA
5821 #define IsDialogMessage IsDialogMessageA
5822 #define LoadAccelerators LoadAcceleratorsA
5823 #define LoadBitmap LoadBitmapA
5824 #define LoadCursor LoadCursorA
5825 #define LoadIcon LoadIconA
5826 #define LoadCursorFromFile LoadCursorFromFileA
5827 #define LoadImage LoadImageA
5828 #define LoadKeyboardLayout LoadKeyboardLayoutA
5829 #define LoadMenu LoadMenuA
5830 #define LoadMenuIndirect LoadMenuIndirectA
5831 #define LoadString LoadStringA
5832 #define MapVirtualKey MapVirtualKeyA
5833 #define MapVirtualKeyEx MapVirtualKeyExA
5834 #define MessageBox MessageBoxA
5835 #define MessageBoxEx MessageBoxExA
5836 #define MessageBoxIndirect MessageBoxIndirectA
5837 #define ModifyMenu ModifyMenuA
5838 #define OemToChar OemToCharA
5839 #define OemToCharBuff OemToCharBuffA
5840 #define OpenDesktop OpenDesktopA
5841 #define OpenWindowStation OpenWindowStationA
5842 #define PeekMessage PeekMessageA
5843 #define PostAppMessage PostAppMessageA
5844 #define PostMessage PostMessageA
5845 #define PostThreadMessage PostThreadMessageA
5846 #define PrivateExtractIcons PrivateExtractIconsA
5847 #define RealGetWindowClass RealGetWindowClassA
5848 #define RegisterClass RegisterClassA
5849 #define RegisterClassEx RegisterClassExA
5850 #define RegisterClipboardFormat RegisterClipboardFormatA
5851 #define RegisterDeviceNotification RegisterDeviceNotificationA
5852 #define RegisterWindowMessage RegisterWindowMessageA
5853 #define RemoveProp RemovePropA
5854 #define SendDlgItemMessage SendDlgItemMessageA
5855 #define SendMessage SendMessageA
5856 #define SendMessageCallback SendMessageCallbackA
5857 #define SendMessageTimeout SendMessageTimeoutA
5858 #define SendNotifyMessage SendNotifyMessageA
5859 #define SetClassLong SetClassLongA
5860 #define SetClassLongPtr SetClassLongPtrA
5861 #define SetDlgItemText SetDlgItemTextA
5862 #define SetMenuItemInfo SetMenuItemInfoA
5863 #define SetProp SetPropA
5864 #define SetUserObjectInformation SetUserObjectInformationA
5865 #define SetWindowLong SetWindowLongA
5866 #define SetWindowLongPtr SetWindowLongPtrA
5867 #define SetWindowsHook SetWindowsHookA
5868 #define SetWindowsHookEx SetWindowsHookExA
5869 #define SetWindowText SetWindowTextA
5870 #define SystemParametersInfo SystemParametersInfoA
5871 #define TabbedTextOut TabbedTextOutA
5872 #define TranslateAccelerator TranslateAcceleratorA
5873 #define UnregisterClass UnregisterClassA
5874 #define VkKeyScan VkKeyScanA
5875 #define VkKeyScanEx VkKeyScanExA
5876 #define WinHelp WinHelpA
5877 #define wsprintf wsprintfA
5878 #define wvsprintf wvsprintfA
5879 #if defined(_WINGDI_) && !defined(NOGDI)
5880 #define ChangeDisplaySettings ChangeDisplaySettingsA
5881 #define ChangeDisplaySettingsEx ChangeDisplaySettingsExA
5882 #define CreateDesktop CreateDesktopA
5883 #define EnumDisplaySettings EnumDisplaySettingsA
5884 #define EnumDisplaySettingsEx EnumDisplaySettingsExA
5885 #define EnumDisplayDevices EnumDisplayDevicesA
5886 #endif /* _WINGDI_ && !NOGDI */
5887 #endif /* UNICODE */
5888 #endif /* RC_INVOKED */
5889 
5890 #ifdef _WINE
5891 #include "reactos/undocuser.h"
5892 #endif
5893 
5894 #ifdef _MSC_VER
5895 #pragma warning(pop)
5896 #endif
5897 
5898 #ifdef __cplusplus
5899 }
5900 #endif
5901 #endif
5902