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