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