source: Daodan/MinGW/include/winuser.h@ 1051

Last change on this file since 1051 was 1046, checked in by alloc, 8 years ago

Daodan: Added Windows MinGW and build batch file

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