source: vendor/w32api/3.6/include/winuser.h

Last change on this file was 2720, checked in by bird, 19 years ago

w32api v3.6

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