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