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