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