- fix a typo
[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 #define WM_UNINITMENUPOPUP 293
1646 #endif
1647 #define WM_MENUCHAR 288
1648 #define WM_MENUCOMMAND 294
1649 #define WM_MENUSELECT 287
1650 #define WM_NEXTMENU 531
1651 #define WM_MOVE 3
1652 #define WM_MOVING 534
1653 #define WM_NCACTIVATE 134
1654 #define WM_NCCALCSIZE 131
1655 #define WM_NCCREATE 129
1656 #define WM_NCDESTROY 130
1657 #define WM_NCHITTEST 132
1658 #define WM_NCLBUTTONDBLCLK 163
1659 #define WM_NCLBUTTONDOWN 161
1660 #define WM_NCLBUTTONUP 162
1661 #define WM_NCMBUTTONDBLCLK 169
1662 #define WM_NCMBUTTONDOWN 167
1663 #define WM_NCMBUTTONUP 168
1664 #if (_WIN32_WINNT >= 0x0500)
1665 #define WM_NCXBUTTONDOWN 171
1666 #define WM_NCXBUTTONUP 172
1667 #define WM_NCXBUTTONDBLCLK 173
1668 #endif
1669 #define WM_NCMOUSEMOVE 160
1670 #define WM_NCMOUSEHOVER 0x02A0
1671 #define WM_NCMOUSELEAVE 0x02A2
1672 #define WM_NCPAINT 133
1673 #define WM_NCRBUTTONDBLCLK 166
1674 #define WM_NCRBUTTONDOWN 164
1675 #define WM_NCRBUTTONUP 165
1676 #define WM_NEXTDLGCTL 40
1677 #define WM_NEXTMENU 531
1678 #define WM_NOTIFY 78
1679 #define WM_NOTIFYFORMAT 85
1680 #define WM_NULL 0
1681 #define WM_PAINT 15
1682 #define WM_PAINTCLIPBOARD 777
1683 #define WM_PAINTICON 38
1684 #define WM_PALETTECHANGED 785
1685 #define WM_PALETTEISCHANGING 784
1686 #define WM_PARENTNOTIFY 528
1687 #define WM_PASTE 770
1688 #define WM_PENWINFIRST 896
1689 #define WM_PENWINLAST 911
1690 #define WM_POWER 72
1691 #define WM_POWERBROADCAST 536
1692 #define WM_PRINT 791
1693 #define WM_PRINTCLIENT 792
1694 #define WM_QUERYDRAGICON 55
1695 #define WM_QUERYENDSESSION 17
1696 #define WM_QUERYNEWPALETTE 783
1697 #define WM_QUERYOPEN 19
1698 #define WM_QUEUESYNC 35
1699 #define WM_QUIT 18
1700 #define WM_RENDERALLFORMATS 774
1701 #define WM_RENDERFORMAT 773
1702 #define WM_SETCURSOR 32
1703 #define WM_SETFOCUS 7
1704 #define WM_SETFONT 48
1705 #define WM_SETHOTKEY 50
1706 #define WM_SETICON 128
1707 #define WM_SETREDRAW 11
1708 #define WM_SETTEXT 12
1709 #define WM_SETTINGCHANGE 26
1710 #define WM_SHOWWINDOW 24
1711 #define WM_SIZE 5
1712 #define WM_SIZECLIPBOARD 779
1713 #define WM_SIZING 532
1714 #define WM_SPOOLERSTATUS 42
1715 #define WM_STYLECHANGED 125
1716 #define WM_STYLECHANGING 124
1717 #define WM_SYSCHAR 262
1718 #define WM_SYSCOLORCHANGE 21
1719 #define WM_SYSCOMMAND 274
1720 #define WM_SYSDEADCHAR 263
1721 #define WM_SYSKEYDOWN 260
1722 #define WM_SYSKEYUP 261
1723 #define WM_TCARD 82
1724 #define WM_TIMECHANGE 30
1725 #define WM_TIMER 275
1726 #define WM_UNDO 772
1727 #define WM_USER 1024
1728 #define WM_USERCHANGED 84
1729 #define WM_VKEYTOITEM 46
1730 #define WM_VSCROLL 277
1731 #define WM_VSCROLLCLIPBOARD 778
1732 #define WM_WINDOWPOSCHANGED 71
1733 #define WM_WINDOWPOSCHANGING 70
1734 #define WM_WININICHANGE 26
1735 #define WM_KEYFIRST 256
1736 #define WM_KEYLAST 264
1737 #define WM_SYNCPAINT 136
1738 #define WM_MOUSEACTIVATE 33
1739 #define WM_MOUSEFIRST 512
1740 #define WM_MOUSEMOVE 512
1741 #define WM_LBUTTONDOWN 513
1742 #define WM_LBUTTONUP 514
1743 #define WM_LBUTTONDBLCLK 515
1744 #define WM_RBUTTONDOWN 516
1745 #define WM_RBUTTONUP 517
1746 #define WM_RBUTTONDBLCLK 518
1747 #define WM_MBUTTONDOWN 519
1748 #define WM_MBUTTONUP 520
1749 #define WM_MBUTTONDBLCLK 521
1750 #if (_WIN32_WINNT >= 0x0400) || (_WIN32_WINDOWS > 0x0400)
1751 #define WM_MOUSEWHEEL 522
1752 #endif
1753 #if (_WIN32_WINNT >= 0x0500)
1754 #define WM_XBUTTONDOWN 523
1755 #define WM_XBUTTONUP 524
1756 #define WM_XBUTTONDBLCLK 525
1757 #endif
1758 #if (_WIN32_WINNT >= 0x0500)
1759 #define WM_MOUSELAST 525
1760 #elif (_WIN32_WINNT >= 0x0400) || (_WIN32_WINDOWS > 0x0400)
1761 #define WM_MOUSELAST 522
1762 #else
1763 #define WM_MOUSELAST 521
1764 #endif
1765 #define WM_MOUSEHOVER 0x2A1
1766 #define WM_MOUSELEAVE 0x2A3
1767 #if (_WIN32_WINNT >= 0x0400)
1768 #define WHEEL_DELTA 120
1769 #define GET_WHEEL_DELTA_WPARAM(wparam) ((short)HIWORD (wparam))
1770 #define WHEEL_PAGESCROLL UINT_MAX
1771 #endif
1772 #if (_WIN32_WINNT >= 0x0501)
1773 #define WM_THEMECHANGED 794
1774 #endif
1775 #ifndef _WIN32_WCE
1776 #if(_WIN32_WINNT >= 0x0500)
1777 #define WM_CHANGEUISTATE 295
1778 #define WM_UPDATEUISTATE 296
1779 #define WM_QUERYUISTATE 297
1780 #endif /* _WIN32_WINNT >= 0x0500 */
1781 #endif /* _WIN32_WCE */
1782 #define BM_CLICK 245
1783 #define BM_GETCHECK 240
1784 #define BM_GETIMAGE 246
1785 #define BM_GETSTATE 242
1786 #define BM_SETCHECK 241
1787 #define BM_SETIMAGE 247
1788 #define BM_SETSTATE 243
1789 #define BM_SETSTYLE 244
1790 #define BN_CLICKED 0
1791 #define BN_DBLCLK 5
1792 #define BN_DISABLE 4
1793 #define BN_DOUBLECLICKED 5
1794 #define BN_HILITE 2
1795 #define BN_KILLFOCUS 7
1796 #define BN_PAINT 1
1797 #define BN_PUSHED 2
1798 #define BN_SETFOCUS 6
1799 #define BN_UNHILITE 3
1800 #define BN_UNPUSHED 3
1801 #define CB_ADDSTRING 323
1802 #define CB_DELETESTRING 324
1803 #define CB_DIR 325
1804 #define CB_FINDSTRING 332
1805 #define CB_FINDSTRINGEXACT 344
1806 #define CB_GETCOMBOBOXINFO 356
1807 #define CB_GETCOUNT 326
1808 #define CB_GETCURSEL 327
1809 #define CB_GETDROPPEDCONTROLRECT 338
1810 #define CB_GETDROPPEDSTATE 343
1811 #define CB_GETDROPPEDWIDTH 351
1812 #define CB_GETEDITSEL 320
1813 #define CB_GETEXTENDEDUI 342
1814 #define CB_GETHORIZONTALEXTENT 349
1815 #define CB_GETITEMDATA 336
1816 #define CB_GETITEMHEIGHT 340
1817 #define CB_GETLBTEXT 328
1818 #define CB_GETLBTEXTLEN 329
1819 #define CB_GETLOCALE 346
1820 #define CB_GETTOPINDEX 347
1821 #define CB_INITSTORAGE 353
1822 #define CB_INSERTSTRING 330
1823 #define CB_LIMITTEXT 321
1824 #define CB_RESETCONTENT 331
1825 #define CB_SELECTSTRING 333
1826 #define CB_SETCURSEL 334
1827 #define CB_SETDROPPEDWIDTH 352
1828 #define CB_SETEDITSEL 322
1829 #define CB_SETEXTENDEDUI 341
1830 #define CB_SETHORIZONTALEXTENT 350
1831 #define CB_SETITEMDATA 337
1832 #define CB_SETITEMHEIGHT 339
1833 #define CB_SETLOCALE 345
1834 #define CB_SETTOPINDEX 348
1835 #define CB_SHOWDROPDOWN 335
1836 #define CBN_CLOSEUP 8
1837 #define CBN_DBLCLK 2
1838 #define CBN_DROPDOWN 7
1839 #define CBN_EDITCHANGE 5
1840 #define CBN_EDITUPDATE 6
1841 #define CBN_ERRSPACE (-1)
1842 #define CBN_KILLFOCUS 4
1843 #define CBN_SELCHANGE 1
1844 #define CBN_SELENDCANCEL 10
1845 #define CBN_SELENDOK 9
1846 #define CBN_SETFOCUS 3
1847 #define EM_CANUNDO 198
1848 #define EM_CHARFROMPOS 215
1849 #define EM_EMPTYUNDOBUFFER 205
1850 #define EM_FMTLINES 200
1851 #define EM_GETFIRSTVISIBLELINE 206
1852 #define EM_GETHANDLE 189
1853 #define EM_GETLIMITTEXT 213
1854 #define EM_GETLINE 196
1855 #define EM_GETLINECOUNT 186
1856 #define EM_GETMARGINS 212
1857 #define EM_GETMODIFY 184
1858 #define EM_GETPASSWORDCHAR 210
1859 #define EM_GETRECT 178
1860 #define EM_GETSEL 176
1861 #define EM_GETTHUMB 190
1862 #define EM_GETWORDBREAKPROC 209
1863 #define EM_LIMITTEXT 197
1864 #define EM_LINEFROMCHAR 201
1865 #define EM_LINEINDEX 187
1866 #define EM_LINELENGTH 193
1867 #define EM_LINESCROLL 182
1868 #define EM_POSFROMCHAR 214
1869 #define EM_REPLACESEL 194
1870 #define EM_SCROLL 181
1871 #define EM_SCROLLCARET 183
1872 #define EM_SETHANDLE 188
1873 #define EM_SETLIMITTEXT 197
1874 #define EM_SETMARGINS 211
1875 #define EM_SETMODIFY 185
1876 #define EM_SETPASSWORDCHAR 204
1877 #define EM_SETREADONLY 207
1878 #define EM_SETRECT 179
1879 #define EM_SETRECTNP 180
1880 #define EM_SETSEL 177
1881 #define EM_SETTABSTOPS 203
1882 #define EM_SETWORDBREAKPROC 208
1883 #define EM_UNDO 199
1884 #define EN_CHANGE 768
1885 #define EN_ERRSPACE 1280
1886 #define EN_HSCROLL 1537
1887 #define EN_KILLFOCUS 512
1888 #define EN_MAXTEXT 1281
1889 #define EN_SETFOCUS 256
1890 #define EN_UPDATE 1024
1891 #define EN_VSCROLL 1538
1892 #define LB_ADDFILE 406
1893 #define LB_ADDSTRING 384
1894 #define LB_DELETESTRING 386
1895 #define LB_DIR 397
1896 #define LB_FINDSTRING 399
1897 #define LB_FINDSTRINGEXACT 418
1898 #define LB_GETANCHORINDEX 413
1899 #define LB_GETCARETINDEX 415
1900 #define LB_GETCOUNT 395
1901 #define LB_GETCURSEL 392
1902 #define LB_GETHORIZONTALEXTENT 403
1903 #define LB_GETITEMDATA 409
1904 #define LB_GETITEMHEIGHT 417
1905 #define LB_GETITEMRECT 408
1906 #define LB_GETLISTBOXINFO 434
1907 #define LB_GETLOCALE 422
1908 #define LB_GETSEL 391
1909 #define LB_GETSELCOUNT 400
1910 #define LB_GETSELITEMS 401
1911 #define LB_GETTEXT 393
1912 #define LB_GETTEXTLEN 394
1913 #define LB_GETTOPINDEX 398
1914 #define LB_INITSTORAGE 424
1915 #define LB_INSERTSTRING 385
1916 #define LB_ITEMFROMPOINT 425
1917 #define LB_RESETCONTENT 388
1918 #define LB_SELECTSTRING 396
1919 #define LB_SELITEMRANGE 411
1920 #define LB_SELITEMRANGEEX 387
1921 #define LB_SETANCHORINDEX 412
1922 #define LB_SETCARETINDEX 414
1923 #define LB_SETCOLUMNWIDTH 405
1924 #define LB_SETCOUNT 423
1925 #define LB_SETCURSEL 390
1926 #define LB_SETHORIZONTALEXTENT 404
1927 #define LB_SETITEMDATA 410
1928 #define LB_SETITEMHEIGHT 416
1929 #define LB_SETLOCALE 421
1930 #define LB_SETSEL 389
1931 #define LB_SETTABSTOPS 402
1932 #define LB_SETTOPINDEX 407
1933 #define LBN_DBLCLK 2
1934 #define LBN_ERRSPACE (-2)
1935 #define LBN_KILLFOCUS 5
1936 #define LBN_SELCANCEL 3
1937 #define LBN_SELCHANGE 1
1938 #define LBN_SETFOCUS 4
1939 #define SBM_ENABLE_ARROWS 228
1940 #define SBM_GETPOS 225
1941 #define SBM_GETRANGE 227
1942 #define SBM_GETSCROLLINFO 234
1943 #define SBM_SETPOS 224
1944 #define SBM_SETRANGE 226
1945 #define SBM_SETRANGEREDRAW 230
1946 #define SBM_SETSCROLLINFO 233
1947 #define STM_GETICON 369
1948 #define STM_GETIMAGE 371
1949 #define STM_SETICON 368
1950 #define STM_SETIMAGE 370
1951 #define STN_CLICKED 0
1952 #define STN_DBLCLK 1
1953 #define STN_DISABLE 3
1954 #define STN_ENABLE 2
1955 #define DM_GETDEFID WM_USER
1956 #define DM_SETDEFID (WM_USER+1)
1957 #define DM_REPOSITION (WM_USER+2)
1958 #define PSM_PAGEINFO (WM_USER+100)
1959 #define PSM_SHEETINFO (WM_USER+101)
1960 #define PSI_SETACTIVE 1
1961 #define PSI_KILLACTIVE 2
1962 #define PSI_APPLY 3
1963 #define PSI_RESET 4
1964 #define PSI_HASHELP 5
1965 #define PSI_HELP 6
1966 #define PSI_CHANGED 1
1967 #define PSI_GUISTART 2
1968 #define PSI_REBOOT 3
1969 #define PSI_GETSIBLINGS 4
1970 #define DCX_WINDOW 1
1971 #define DCX_CACHE 2
1972 #define DCX_PARENTCLIP 32
1973 #define DCX_CLIPSIBLINGS 16
1974 #define DCX_CLIPCHILDREN 8
1975 #define DCX_NORESETATTRS 4
1976 #define DCX_INTERSECTUPDATE 0x200
1977 #define DCX_LOCKWINDOWUPDATE 0x400
1978 #define DCX_EXCLUDERGN 64
1979 #define DCX_INTERSECTRGN 128
1980 #define DCX_VALIDATE 0x200000
1981 #define DCX_EXCLUDEUPDATE 0x100
1982 #define GMDI_GOINTOPOPUPS 2
1983 #define GMDI_USEDISABLED 1
1984 #define FKF_AVAILABLE 2
1985 #define FKF_CLICKON 64
1986 #define FKF_FILTERKEYSON 1
1987 #define FKF_HOTKEYACTIVE 4
1988 #define FKF_HOTKEYSOUND 16
1989 #define FKF_CONFIRMHOTKEY 8
1990 #define FKF_INDICATOR 32
1991 #define HCF_HIGHCONTRASTON 1
1992 #define HCF_AVAILABLE 2
1993 #define HCF_HOTKEYACTIVE 4
1994 #define HCF_CONFIRMHOTKEY 8
1995 #define HCF_HOTKEYSOUND 16
1996 #define HCF_INDICATOR 32
1997 #define HCF_HOTKEYAVAILABLE 64
1998 #define MKF_AVAILABLE 2
1999 #define MKF_CONFIRMHOTKEY 8
2000 #define MKF_HOTKEYACTIVE 4
2001 #define MKF_HOTKEYSOUND 16
2002 #define MKF_INDICATOR 32
2003 #define MKF_MOUSEKEYSON 1
2004 #define MKF_MODIFIERS 64
2005 #define MKF_REPLACENUMBERS 128
2006 #define SERKF_ACTIVE 8 /* May be obsolete. Not in recent MS docs. */
2007 #define SERKF_AVAILABLE 2
2008 #define SERKF_INDICATOR 4
2009 #define SERKF_SERIALKEYSON 1
2010 #define SSF_AVAILABLE 2
2011 #define SSF_SOUNDSENTRYON 1
2012 #define SSTF_BORDER 2
2013 #define SSTF_CHARS 1
2014 #define SSTF_DISPLAY 3
2015 #define SSTF_NONE 0
2016 #define SSGF_DISPLAY 3
2017 #define SSGF_NONE 0
2018 #define SSWF_CUSTOM 4
2019 #define SSWF_DISPLAY 3
2020 #define SSWF_NONE 0
2021 #define SSWF_TITLE 1
2022 #define SSWF_WINDOW 2
2023 #define SKF_AUDIBLEFEEDBACK 64
2024 #define SKF_AVAILABLE 2
2025 #define SKF_CONFIRMHOTKEY 8
2026 #define SKF_HOTKEYACTIVE 4
2027 #define SKF_HOTKEYSOUND 16
2028 #define SKF_INDICATOR 32
2029 #define SKF_STICKYKEYSON 1
2030 #define SKF_TRISTATE 128
2031 #define SKF_TWOKEYSOFF 256
2032 #define TKF_AVAILABLE 2
2033 #define TKF_CONFIRMHOTKEY 8
2034 #define TKF_HOTKEYACTIVE 4
2035 #define TKF_HOTKEYSOUND 16
2036 #define TKF_TOGGLEKEYSON 1
2037 #define MDITILE_SKIPDISABLED 2
2038 #define MDITILE_HORIZONTAL 1
2039 #define MDITILE_VERTICAL 0
2040 #define VK_LBUTTON 1
2041 #define VK_RBUTTON 2
2042 #define VK_CANCEL 3
2043 #define VK_MBUTTON 4
2044 #if (_WIN32_WINNT >= 0x0500)
2045 #define VK_XBUTTON1 5
2046 #define VK_XBUTTON2 6
2047 #endif
2048 #define VK_BACK 8
2049 #define VK_TAB 9
2050 #define VK_CLEAR 12
2051 #define VK_RETURN 13
2052 #define VK_SHIFT 16
2053 #define VK_CONTROL 17
2054 #define VK_MENU 18
2055 #define VK_PAUSE 19
2056 #define VK_CAPITAL 20
2057 #define VK_KANA 0x15
2058 #define VK_HANGEUL 0x15
2059 #define VK_HANGUL 0x15
2060 #define VK_JUNJA 0x17
2061 #define VK_FINAL 0x18
2062 #define VK_HANJA 0x19
2063 #define VK_KANJI 0x19
2064 #define VK_ESCAPE 0x1B
2065 #define VK_CONVERT 0x1C
2066 #define VK_NONCONVERT 0x1D
2067 #define VK_ACCEPT 0x1E
2068 #define VK_MODECHANGE 0x1F
2069 #define VK_SPACE 32
2070 #define VK_PRIOR 33
2071 #define VK_NEXT 34
2072 #define VK_END 35
2073 #define VK_HOME 36
2074 #define VK_LEFT 37
2075 #define VK_UP 38
2076 #define VK_RIGHT 39
2077 #define VK_DOWN 40
2078 #define VK_SELECT 41
2079 #define VK_PRINT 42
2080 #define VK_EXECUTE 43
2081 #define VK_SNAPSHOT 44
2082 #define VK_INSERT 45
2083 #define VK_DELETE 46
2084 #define VK_HELP 47
2085 #define VK_LWIN 0x5B
2086 #define VK_RWIN 0x5C
2087 #define VK_APPS 0x5D
2088 #define VK_SLEEP 0x5F
2089 #define VK_NUMPAD0 0x60
2090 #define VK_NUMPAD1 0x61
2091 #define VK_NUMPAD2 0x62
2092 #define VK_NUMPAD3 0x63
2093 #define VK_NUMPAD4 0x64
2094 #define VK_NUMPAD5 0x65
2095 #define VK_NUMPAD6 0x66
2096 #define VK_NUMPAD7 0x67
2097 #define VK_NUMPAD8 0x68
2098 #define VK_NUMPAD9 0x69
2099 #define VK_MULTIPLY 0x6A
2100 #define VK_ADD 0x6B
2101 #define VK_SEPARATOR 0x6C
2102 #define VK_SUBTRACT 0x6D
2103 #define VK_DECIMAL 0x6E
2104 #define VK_DIVIDE 0x6F
2105 #define VK_F1 0x70
2106 #define VK_F2 0x71
2107 #define VK_F3 0x72
2108 #define VK_F4 0x73
2109 #define VK_F5 0x74
2110 #define VK_F6 0x75
2111 #define VK_F7 0x76
2112 #define VK_F8 0x77
2113 #define VK_F9 0x78
2114 #define VK_F10 0x79
2115 #define VK_F11 0x7A
2116 #define VK_F12 0x7B
2117 #define VK_F13 0x7C
2118 #define VK_F14 0x7D
2119 #define VK_F15 0x7E
2120 #define VK_F16 0x7F
2121 #define VK_F17 0x80
2122 #define VK_F18 0x81
2123 #define VK_F19 0x82
2124 #define VK_F20 0x83
2125 #define VK_F21 0x84
2126 #define VK_F22 0x85
2127 #define VK_F23 0x86
2128 #define VK_F24 0x87
2129 #define VK_NUMLOCK 0x90
2130 #define VK_SCROLL 0x91
2131 #define VK_LSHIFT 0xA0
2132 #define VK_RSHIFT 0xA1
2133 #define VK_LCONTROL 0xA2
2134 #define VK_RCONTROL 0xA3
2135 #define VK_LMENU 0xA4
2136 #define VK_RMENU 0xA5
2137 #if (_WIN32_WINNT >= 0x0500)
2138 #define VK_BROWSER_BACK 0xA6
2139 #define VK_BROWSER_FORWARD 0xA7
2140 #define VK_BROWSER_REFRESH 0xA8
2141 #define VK_BROWSER_STOP 0xA9
2142 #define VK_BROWSER_SEARCH 0xAA
2143 #define VK_BROWSER_FAVORITES 0xAB
2144 #define VK_BROWSER_HOME 0xAC
2145 #define VK_VOLUME_MUTE 0xAD
2146 #define VK_VOLUME_DOWN 0xAE
2147 #define VK_VOLUME_UP 0xAF
2148 #define VK_MEDIA_NEXT_TRACK 0xB0
2149 #define VK_MEDIA_PREV_TRACK 0xB1
2150 #define VK_MEDIA_STOP 0xB2
2151 #define VK_MEDIA_PLAY_PAUSE 0xB3
2152 #define VK_LAUNCH_MAIL 0xB4
2153 #define VK_LAUNCH_MEDIA_SELECT 0xB5
2154 #define VK_LAUNCH_APP1 0xB6
2155 #define VK_LAUNCH_APP2 0xB7
2156 #endif
2157 #define VK_OEM_1 0xBA
2158 #if (_WIN32_WINNT >= 0x0500)
2159 #define VK_OEM_PLUS 0xBB
2160 #define VK_OEM_COMMA 0xBC
2161 #define VK_OEM_MINUS 0xBD
2162 #define VK_OEM_PERIOD 0xBE
2163 #endif
2164 #define VK_OEM_2 0xBF
2165 #define VK_OEM_3 0xC0
2166 #define VK_OEM_4 0xDB
2167 #define VK_OEM_5 0xDC
2168 #define VK_OEM_6 0xDD
2169 #define VK_OEM_7 0xDE
2170 #define VK_OEM_8 0xDF
2171 #if (_WIN32_WINNT >= 0x0500)
2172 #define VK_OEM_102 0xE2
2173 #endif
2174 #define VK_PROCESSKEY 0xE5
2175 #if (_WIN32_WINNT >= 0x0500)
2176 #define VK_PACKET 0xE7
2177 #endif
2178 #define VK_OEM_RESET 0xE9
2179 #define VK_OEM_JUMP 0xEA
2180 #define VK_OEM_PA1 0xEB
2181 #define VK_OEM_PA2 0xEC
2182 #define VK_OEM_PA3 0xED
2183 #define VK_OEM_WSCTRL 0xEE
2184 #define VK_OEM_CUSEL 0xEF
2185 #define VK_OEM_ATTN 0xF0
2186 #define VK_OEM_FINISH 0xF1
2187 #define VK_OEM_COPY 0xF2
2188 #define VK_OEM_AUTO 0xF3
2189 #define VK_OEM_ENLW 0xF4
2190 #define VK_OEM_BACKTAB 0xF5
2191 #define VK_ATTN 0xF6
2192 #define VK_CRSEL 0xF7
2193 #define VK_EXSEL 0xF8
2194 #define VK_EREOF 0xF9
2195 #define VK_PLAY 0xFA
2196 #define VK_ZOOM 0xFB
2197 #define VK_NONAME 0xFC
2198 #define VK_PA1 0xFD
2199 #define VK_OEM_CLEAR 0xFE
2200
2201 /* MapVirtualKey translation types */
2202 #define MAPVK_VK_TO_VSC 0
2203 #define MAPVK_VSC_TO_VK 1
2204 #define MAPVK_VK_TO_CHAR 2
2205 #define MAPVK_VSC_TO_VK_EX 3
2206 #define MAPVK_VK_TO_VSC_EX 4
2207
2208 #define TME_HOVER 1
2209 #define TME_LEAVE 2
2210 #define TME_NONCLIENT 0x00000010
2211 #define TME_QUERY 0x40000000
2212 #define TME_CANCEL 0x80000000
2213 #define HOVER_DEFAULT 0xFFFFFFFF
2214 #define MK_LBUTTON 1
2215 #define MK_RBUTTON 2
2216 #define MK_SHIFT 4
2217 #define MK_CONTROL 8
2218 #define MK_MBUTTON 16
2219 #if(_WIN32_WINNT >= 0x0500)
2220 #define MK_XBUTTON1 0x0020
2221 #define MK_XBUTTON2 0x0040
2222 #endif
2223 #define TPM_CENTERALIGN 4
2224 #define TPM_LEFTALIGN 0
2225 #define TPM_RIGHTALIGN 8
2226 #define TPM_LEFTBUTTON 0
2227 #define TPM_RIGHTBUTTON 2
2228 #define TPM_HORIZONTAL 0
2229 #define TPM_VERTICAL 64
2230 #define TPM_TOPALIGN 0
2231 #define TPM_VCENTERALIGN 16
2232 #define TPM_BOTTOMALIGN 32
2233 #define TPM_NONOTIFY 128
2234 #define TPM_RETURNCMD 256
2235 #if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0410)
2236 #define TPM_RECURSE 0x0001
2237 #define TPM_HORPOSANIMATION 0x0400
2238 #define TPM_HORNEGANIMATION 0x0800
2239 #define TPM_VERPOSANIMATION 0x1000
2240 #define TPM_VERNEGANIMATION 0x2000
2241 #endif
2242 #define HELP_COMMAND 0x102
2243 #define HELP_CONTENTS 3
2244 #define HELP_CONTEXT 1
2245 #define HELP_CONTEXTPOPUP 8
2246 #define HELP_FORCEFILE 9
2247 #define HELP_HELPONHELP 4
2248 #define HELP_INDEX 3
2249 #define HELP_KEY 0x101
2250 #define HELP_MULTIKEY 0x201
2251 #define HELP_PARTIALKEY 0x105
2252 #define HELP_QUIT 2
2253 #define HELP_SETCONTENTS 5
2254 #define HELP_SETINDEX 5
2255 #define HELP_SETWINPOS 0x203
2256 #define HELP_CONTEXTMENU 0xa
2257 #define HELP_FINDER 0xb
2258 #define HELP_WM_HELP 0xc
2259 #define HELP_TCARD 0x8000
2260 #define HELP_TCARD_DATA 16
2261 #define HELP_TCARD_OTHER_CALLER 0x11
2262 #define IDH_NO_HELP 28440
2263 #define IDH_MISSING_CONTEXT 28441
2264 #define IDH_GENERIC_HELP_BUTTON 28442
2265 #define IDH_OK 28443
2266 #define IDH_CANCEL 28444
2267 #define IDH_HELP 28445
2268 #define LB_CTLCODE 0
2269 #define LB_OKAY 0
2270 #define LB_ERR (-1)
2271 #define LB_ERRSPACE (-2)
2272 #define CB_OKAY 0
2273 #define CB_ERR (-1)
2274 #define CB_ERRSPACE (-2)
2275 #define HIDE_WINDOW 0
2276 #define SHOW_OPENWINDOW 1
2277 #define SHOW_ICONWINDOW 2
2278 #define SHOW_FULLSCREEN 3
2279 #define SHOW_OPENNOACTIVATE 4
2280 #define SW_PARENTCLOSING 1
2281 #define SW_OTHERZOOM 2
2282 #define SW_PARENTOPENING 3
2283 #define SW_OTHERUNZOOM 4
2284 #define KF_EXTENDED 256
2285 #define KF_DLGMODE 2048
2286 #define KF_MENUMODE 4096
2287 #define KF_ALTDOWN 8192
2288 #define KF_REPEAT 16384
2289 #define KF_UP 32768
2290 #define WSF_VISIBLE 1
2291 #define PWR_OK 1
2292 #define PWR_FAIL (-1)
2293 #define PWR_SUSPENDREQUEST 1
2294 #define PWR_SUSPENDRESUME 2
2295 #define PWR_CRITICALRESUME 3
2296 #define NFR_ANSI 1
2297 #define NFR_UNICODE 2
2298 #define NF_QUERY 3
2299 #define NF_REQUERY 4
2300 #define MENULOOP_WINDOW 0
2301 #define MENULOOP_POPUP 1
2302 #define WMSZ_LEFT 1
2303 #define WMSZ_RIGHT 2
2304 #define WMSZ_TOP 3
2305 #define WMSZ_TOPLEFT 4
2306 #define WMSZ_TOPRIGHT 5
2307 #define WMSZ_BOTTOM 6
2308 #define WMSZ_BOTTOMLEFT 7
2309 #define WMSZ_BOTTOMRIGHT 8
2310 #define HTERROR (-2)
2311 #define HTTRANSPARENT (-1)
2312 #define HTNOWHERE 0
2313 #define HTCLIENT 1
2314 #define HTCAPTION 2
2315 #define HTSYSMENU 3
2316 #define HTGROWBOX 4
2317 #define HTSIZE 4
2318 #define HTMENU 5
2319 #define HTHSCROLL 6
2320 #define HTVSCROLL 7
2321 #define HTMINBUTTON 8
2322 #define HTMAXBUTTON 9
2323 #define HTREDUCE 8
2324 #define HTZOOM 9
2325 #define HTLEFT 10
2326 #define HTSIZEFIRST 10
2327 #define HTRIGHT 11
2328 #define HTTOP 12
2329 #define HTTOPLEFT 13
2330 #define HTTOPRIGHT 14
2331 #define HTBOTTOM 15
2332 #define HTBOTTOMLEFT 16
2333 #define HTBOTTOMRIGHT 17
2334 #define HTSIZELAST 17
2335 #define HTBORDER 18
2336 #define HTOBJECT 19
2337 #define HTCLOSE 20
2338 #define HTHELP 21
2339 #define MA_ACTIVATE 1
2340 #define MA_ACTIVATEANDEAT 2
2341 #define MA_NOACTIVATE 3
2342 #define MA_NOACTIVATEANDEAT 4
2343 #define SIZE_RESTORED 0
2344 #define SIZE_MINIMIZED 1
2345 #define SIZE_MAXIMIZED 2
2346 #define SIZE_MAXSHOW 3
2347 #define SIZE_MAXHIDE 4
2348 #define SIZENORMAL 0
2349 #define SIZEICONIC 1
2350 #define SIZEFULLSCREEN 2
2351 #define SIZEZOOMSHOW 3
2352 #define SIZEZOOMHIDE 4
2353 #define WVR_ALIGNTOP 16
2354 #define WVR_ALIGNLEFT 32
2355 #define WVR_ALIGNBOTTOM 64
2356 #define WVR_ALIGNRIGHT 128
2357 #define WVR_HREDRAW 256
2358 #define WVR_VREDRAW 512
2359 #define WVR_REDRAW (WVR_HREDRAW|WVR_VREDRAW)
2360 #define WVR_VALIDRECTS 1024
2361 #define PRF_CHECKVISIBLE 1
2362 #define PRF_NONCLIENT 2
2363 #define PRF_CLIENT 4
2364 #define PRF_ERASEBKGND 8
2365 #define PRF_CHILDREN 16
2366 #define PRF_OWNED 32
2367 #define IDANI_OPEN 1
2368 #define IDANI_CLOSE 2
2369 #define IDANI_CAPTION 3
2370 #define WPF_RESTORETOMAXIMIZED 2
2371 #define WPF_SETMINPOSITION 1
2372 #define ODT_MENU 1
2373 #define ODT_LISTBOX 2
2374 #define ODT_COMBOBOX 3
2375 #define ODT_BUTTON 4
2376 #define ODT_STATIC 5
2377 #define ODA_DRAWENTIRE 1
2378 #define ODA_SELECT 2
2379 #define ODA_FOCUS 4
2380 #define ODS_SELECTED 1
2381 #define ODS_GRAYED 2
2382 #define ODS_DISABLED 4
2383 #define ODS_CHECKED 8
2384 #define ODS_FOCUS 16
2385 #define ODS_DEFAULT 32
2386 #define ODS_COMBOBOXEDIT 4096
2387 #define IDHOT_SNAPWINDOW (-1)
2388 #define IDHOT_SNAPDESKTOP (-2)
2389 #define DBWF_LPARAMPOINTER 0x8000
2390 #define DLGWINDOWEXTRA 30
2391 #define MNC_IGNORE 0
2392 #define MNC_CLOSE 1
2393 #define MNC_EXECUTE 2
2394 #define MNC_SELECT 3
2395 #define DOF_EXECUTABLE 0x8001
2396 #define DOF_DOCUMENT 0x8002
2397 #define DOF_DIRECTORY 0x8003
2398 #define DOF_MULTIPLE 0x8004
2399 #define DOF_PROGMAN 1
2400 #define DOF_SHELLDATA 2
2401 #define DO_DROPFILE 0x454C4946
2402 #define DO_PRINTFILE 0x544E5250
2403 #define SW_SCROLLCHILDREN 1
2404 #define SW_INVALIDATE 2
2405 #define SW_ERASE 4
2406 #define SC_SIZE 0xF000
2407 #define SC_MOVE 0xF010
2408 #define SC_MINIMIZE 0xF020
2409 #define SC_ICON 0xf020
2410 #define SC_MAXIMIZE 0xF030
2411 #define SC_ZOOM 0xF030
2412 #define SC_NEXTWINDOW 0xF040
2413 #define SC_PREVWINDOW 0xF050
2414 #define SC_CLOSE 0xF060
2415 #define SC_VSCROLL 0xF070
2416 #define SC_HSCROLL 0xF080
2417 #define SC_MOUSEMENU 0xF090
2418 #define SC_KEYMENU 0xF100
2419 #define SC_ARRANGE 0xF110
2420 #define SC_RESTORE 0xF120
2421 #define SC_TASKLIST 0xF130
2422 #define SC_SCREENSAVE 0xF140
2423 #define SC_HOTKEY 0xF150
2424 #define SC_DEFAULT 0xF160
2425 #define SC_MONITORPOWER 0xF170
2426 #define SC_CONTEXTHELP 0xF180
2427 #define SC_SEPARATOR 0xF00F
2428 #define EC_LEFTMARGIN 1
2429 #define EC_RIGHTMARGIN 2
2430 #define EC_USEFONTINFO 0xffff
2431 #define DC_HASDEFID 0x534B
2432 #define DLGC_WANTARROWS 1
2433 #define DLGC_WANTTAB 2
2434 #define DLGC_WANTALLKEYS 4
2435 #define DLGC_WANTMESSAGE 4
2436 #define DLGC_HASSETSEL 8
2437 #define DLGC_DEFPUSHBUTTON 16
2438 #define DLGC_UNDEFPUSHBUTTON 32
2439 #define DLGC_RADIOBUTTON 64
2440 #define DLGC_WANTCHARS 128
2441 #define DLGC_STATIC 256
2442 #define DLGC_BUTTON 0x2000
2443 #define LB_CTLCODE 0
2444 #define WA_INACTIVE 0
2445 #define WA_ACTIVE 1
2446 #define WA_CLICKACTIVE 2
2447 #define ICON_SMALL 0
2448 #define ICON_BIG 1
2449 #if (_WIN32_WINNT >= 0x0501)
2450 #define ICON_SMALL2 2
2451 #endif
2452 #define HBMMENU_CALLBACK ((HBITMAP) -1)
2453 #define HBMMENU_SYSTEM ((HBITMAP)1)
2454 #define HBMMENU_MBAR_RESTORE ((HBITMAP)2)
2455 #define HBMMENU_MBAR_MINIMIZE ((HBITMAP)3)
2456 #define HBMMENU_MBAR_CLOSE ((HBITMAP)5)
2457 #define HBMMENU_MBAR_CLOSE_D ((HBITMAP)6)
2458 #define HBMMENU_MBAR_MINIMIZE_D ((HBITMAP)7)
2459 #define HBMMENU_POPUP_CLOSE ((HBITMAP)8)
2460 #define HBMMENU_POPUP_RESTORE ((HBITMAP)9)
2461 #define HBMMENU_POPUP_MAXIMIZE ((HBITMAP)10)
2462 #define HBMMENU_POPUP_MINIMIZE ((HBITMAP)11)
2463 #define MOD_ALT 0x0001
2464 #define MOD_CONTROL 0x0002
2465 #define MOD_SHIFT 0x0004
2466 #define MOD_WIN 0x0008
2467 #define LLKHF_EXTENDED 0x00000001
2468 #define LLKHF_INJECTED 0x00000010
2469 #define LLKHF_ALTDOWN 0x00000020
2470 #define LLKHF_UP 0x00000080
2471 #define LLMHF_INJECTED 0x00000001
2472 #if (WINVER >= 0x0500)
2473 #define FLASHW_STOP 0
2474 #define FLASHW_CAPTION 1
2475 #define FLASHW_TRAY 2
2476 #define FLASHW_ALL (FLASHW_CAPTION|FLASHW_TRAY)
2477 #define FLASHW_TIMER 4
2478 #define FLASHW_TIMERNOFG 12
2479 #endif /* (WINVER >= 0x0500) */
2480 #define CURSOR_SHOWING 0x00000001
2481 #define WS_ACTIVECAPTION 0x00000001
2482 #if (_WIN32_WINNT >= 0x0403)
2483 #define INPUT_MOUSE 0x00000000
2484 #define INPUT_KEYBOARD 0x00000001
2485 #define INPUT_HARDWARE 0x00000002
2486 #endif /* (_WIN32_WINNT >= 0x0403) */
2487 #if (WINVER >= 0x0400)
2488 #define ENDSESSION_LOGOFF 0x80000000
2489 #endif
2490 #if (WINVER >= 0x0500)
2491 #define CHILDID_SELF 0
2492 #define OBJID_WINDOW 0x00000000
2493 #define OBJID_SYSMENU 0xFFFFFFFF
2494 #define OBJID_TITLEBAR 0xFFFFFFFE
2495 #define OBJID_MENU 0xFFFFFFFD
2496 #define OBJID_CLIENT 0xFFFFFFFC
2497 #define OBJID_VSCROLL 0xFFFFFFFB
2498 #define OBJID_HSCROLL 0xFFFFFFFA
2499 #define OBJID_SIZEGRIP 0xFFFFFFF9
2500 #define OBJID_CARET 0xFFFFFFF8
2501 #define OBJID_CURSOR 0xFFFFFFF7
2502 #define OBJID_ALERT 0xFFFFFFF6
2503 #define OBJID_SOUND 0xFFFFFFF5
2504 #define OBJID_QUERYCLASSNAMEIDX 0xFFFFFFF4
2505 #define OBJID_NATIVEOM 0xFFFFFF0
2506 #define GUI_CARETBLINKING 0x00000001
2507 #define GUI_INMOVESIZE 0x00000002
2508 #define GUI_INMENUMODE 0x00000004
2509 #define GUI_SYSTEMMENUMODE 0x00000008
2510 #define GUI_POPUPMENUMODE 0x00000010
2511 #if (_WIN32_WINNT >= 0x0501)
2512 #define GUI_16BITTASK 0x00000020
2513 #endif
2514 #define WINEVENT_OUTOFCONTEXT 0x0000
2515 #define WINEVENT_SKIPOWNTHREAD 0x0001
2516 #define WINEVENT_SKIPOWNPROCESS 0x0002
2517 #define WINEVENT_INCONTEXT 0x0004
2518 #define AW_HOR_POSITIVE 0x00000001
2519 #define AW_HOR_NEGATIVE 0x00000002
2520 #define AW_VER_POSITIVE 0x00000004
2521 #define AW_VER_NEGATIVE 0x00000008
2522 #define AW_CENTER 0x00000010
2523 #define AW_HIDE 0x00010000
2524 #define AW_ACTIVATE 0x00020000
2525 #define AW_SLIDE 0x00040000
2526 #define AW_BLEND 0x00080000
2527 #define DEVICE_NOTIFY_WINDOW_HANDLE 0x00000000
2528 #define DEVICE_NOTIFY_SERVICE_HANDLE 0x00000001
2529 #if (_WIN32_WINNT >= 0x0501)
2530 #define DEVICE_NOTIFY_ALL_INTERFACE_CLASSES 0x00000004
2531 #endif
2532 #define EVENT_MIN 0x00000001
2533 #define EVENT_SYSTEM_SOUND 0x00000001
2534 #define EVENT_SYSTEM_ALERT 0x00000002
2535 #define EVENT_SYSTEM_FOREGROUND 0x00000003
2536 #define EVENT_SYSTEM_MENUSTART 0x00000004
2537 #define EVENT_SYSTEM_MENUEND 0x00000005
2538 #define EVENT_SYSTEM_MENUPOPUPSTART 0x00000006
2539 #define EVENT_SYSTEM_MENUPOPUPEND 0x00000007
2540 #define EVENT_SYSTEM_CAPTURESTART 0x00000008
2541 #define EVENT_SYSTEM_CAPTUREEND 0x00000009
2542 #define EVENT_SYSTEM_MOVESIZESTART 0x0000000a
2543 #define EVENT_SYSTEM_MOVESIZEEND 0x0000000b
2544 #define EVENT_SYSTEM_CONTEXTHELPSTART 0x0000000c
2545 #define EVENT_SYSTEM_CONTEXTHELPEND 0x0000000d
2546 #define EVENT_SYSTEM_DRAGDROPSTART 0x0000000e
2547 #define EVENT_SYSTEM_DRAGDROPEND 0x0000000f
2548 #define EVENT_SYSTEM_DIALOGSTART 0x00000010
2549 #define EVENT_SYSTEM_DIALOGEND 0x00000011
2550 #define EVENT_SYSTEM_SCROLLINGSTART 0x00000012
2551 #define EVENT_SYSTEM_SCROLLINGEND 0x00000013
2552 #define EVENT_SYSTEM_SWITCHSTART 0x00000014
2553 #define EVENT_SYSTEM_SWITCHEND 0x00000015
2554 #define EVENT_SYSTEM_MINIMIZESTART 0x00000016
2555 #define EVENT_SYSTEM_MINIMIZEEND 0x00000017
2556 #define EVENT_OBJECT_CREATE 0x00008000
2557 #define EVENT_OBJECT_DESTROY 0x00008001
2558 #define EVENT_OBJECT_SHOW 0x00008002
2559 #define EVENT_OBJECT_HIDE 0x00008003
2560 #define EVENT_OBJECT_REORDER 0x00008004
2561 #define EVENT_OBJECT_FOCUS 0x00008005
2562 #define EVENT_OBJECT_SELECTION 0x00008006
2563 #define EVENT_OBJECT_SELECTIONADD 0x00008007
2564 #define EVENT_OBJECT_SELECTIONREMOVE 0x00008008
2565 #define EVENT_OBJECT_SELECTIONWITHIN 0x00008009
2566 #define EVENT_OBJECT_STATECHANGE 0x0000800a
2567 #define EVENT_OBJECT_LOCATIONCHANGE 0x0000800b
2568 #define EVENT_OBJECT_NAMECHANGE 0x0000800c
2569 #define EVENT_OBJECT_DESCRIPTIONCHANGE 0x0000800d
2570 #define EVENT_OBJECT_VALUECHANGE 0x0000800e
2571 #define EVENT_OBJECT_PARENTCHANGE 0x0000800f
2572 #define EVENT_OBJECT_HELPCHANGE 0x00008010
2573 #define EVENT_OBJECT_DEFACTIONCHANGE 0x00008011
2574 #define EVENT_OBJECT_ACCELERATORCHANGE 0x00008012
2575 #if (_WIN32_WINNT >= 0x0501)
2576 #define EVENT_CONSOLE_CARET 0x00004001
2577 #define CONSOLE_CARET_SELECTION 0x00000001
2578 #define CONSOLE_CARET_VISIBLE 0x00000002
2579 #define EVENT_CONSOLE_UPDATE_REGION 0x00004002
2580 #define EVENT_CONSOLE_UPDATE_SIMPLE 0x00004003
2581 #define EVENT_CONSOLE_UPDATE_SCROLL 0x00004004
2582 #define EVENT_CONSOLE_LAYOUT 0x00004005
2583 #define EVENT_CONSOLE_START_APPLICATION 0x00004006
2584 #define CONSOLE_APPLICATION_16BIT 0x00000001
2585 #define EVENT_CONSOLE_END_APPLICATION 0x00004007
2586 #endif /* (_WIN32_WINNT >= 0x0501) */
2587 #define EVENT_MAX 0x7fffffff
2588 #endif /* (WINVER >= 0x0500) */
2589 #if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0490)
2590 #define ASFW_ANY ((DWORD)-1)
2591 #define LSFW_LOCK 1
2592 #define LSFW_UNLOCK 2
2593 #endif
2594 #if (_WIN32_WINNT >= 0x0500)
2595 #define LWA_COLORKEY 1
2596 #define LWA_ALPHA 2
2597 #endif
2598 #define ULW_COLORKEY 0x00000001
2599 #define ULW_ALPHA 0x00000002
2600 #define ULW_OPAQUE 0x00000004
2601 #define ULW_EX_NORESIZE 0x00000008
2602 #define GA_PARENT 1
2603 #define GA_ROOT 2
2604 #define GA_ROOTOWNER 3
2605 #if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0410)
2606 #define MONITOR_DEFAULTTONULL 0
2607 #define MONITOR_DEFAULTTOPRIMARY 1
2608 #define MONITOR_DEFAULTTONEAREST 2
2609 #define MONITORINFOF_PRIMARY 1
2610 #define EDS_RAWMODE 0x00000002
2611 #define ISMEX_NOSEND 0x00000000
2612 #define ISMEX_CALLBACK 0x00000004
2613 #define ISMEX_NOTIFY 0x00000002
2614 #define ISMEX_REPLIED 0x00000008
2615 #define ISMEX_SEND 0x00000001
2616 #endif
2617 #if (_WIN32_WINNT >= 0x0500)
2618 #define GR_GDIOBJECTS 0
2619 #define GR_USEROBJECTS 1
2620 #endif
2621 #if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0490)
2622 #define GMMP_USE_DISPLAY_POINTS 1
2623 #define GMMP_USE_HIGH_RESOLUTION_POINTS 2
2624 #endif
2625 #if (_WIN32_WINNT >= 0x0501)
2626 #define PW_CLIENTONLY 0x00000001
2627 #define RIM_INPUT 0x00000000
2628 #define RIM_INPUTSINK 0x00000001
2629 #define RIM_TYPEMOUSE 0x00000000
2630 #define RIM_TYPEKEYBOARD 0x00000001
2631 #define RIM_TYPEHID 0x00000002
2632 #define MOUSE_MOVE_RELATIVE 0
2633 #define MOUSE_MOVE_ABSOLUTE 1
2634 #define MOUSE_VIRTUAL_DESKTOP 0x02
2635 #define MOUSE_ATTRIBUTES_CHANGED 0x04
2636 #define RI_MOUSE_LEFT_BUTTON_DOWN 0x0001
2637 #define RI_MOUSE_LEFT_BUTTON_UP 0x0002
2638 #define RI_MOUSE_RIGHT_BUTTON_DOWN 0x0004
2639 #define RI_MOUSE_RIGHT_BUTTON_UP 0x0008
2640 #define RI_MOUSE_MIDDLE_BUTTON_DOWN 0x0010
2641 #define RI_MOUSE_MIDDLE_BUTTON_UP 0x0020
2642 #define RI_MOUSE_BUTTON_1_DOWN RI_MOUSE_LEFT_BUTTON_DOWN
2643 #define RI_MOUSE_BUTTON_1_UP RI_MOUSE_LEFT_BUTTON_UP
2644 #define RI_MOUSE_BUTTON_2_DOWN RI_MOUSE_RIGHT_BUTTON_DOWN
2645 #define RI_MOUSE_BUTTON_2_UP RI_MOUSE_RIGHT_BUTTON_UP
2646 #define RI_MOUSE_BUTTON_3_DOWN RI_MOUSE_MIDDLE_BUTTON_DOWN
2647 #define RI_MOUSE_BUTTON_3_UP RI_MOUSE_MIDDLE_BUTTON_UP
2648 #define RI_MOUSE_BUTTON_4_DOWN 0x0040
2649 #define RI_MOUSE_BUTTON_4_UP 0x0080
2650 #define RI_MOUSE_BUTTON_5_DOWN 0x0100
2651 #define RI_MOUSE_BUTTON_5_UP 0x0200
2652 #define RI_MOUSE_WHEEL 0x0400
2653 #define KEYBOARD_OVERRUN_MAKE_CODE 0x00ff
2654 #define RI_KEY_MAKE 0x0000
2655 #define RI_KEY_BREAK 0x0001
2656 #define RI_KEY_E0 0x0002
2657 #define RI_KEY_E1 0x0004
2658 #define RI_KEY_TERMSRV_SET_LED 0x0008
2659 #define RI_KEY_TERMSRV_SHADOW 0x0010
2660 #define RID_INPUT 0x10000003
2661 #define RID_HEADER 0x10000005
2662 #define RIDI_PREPARSEDDATA 0x20000005
2663 #define RIDI_DEVICENAME 0x20000007
2664 #define RIDI_DEVICEINFO 0x2000000b
2665 #define RIDEV_REMOVE 0x00000001
2666 #define RIDEV_EXCLUDE 0x00000010
2667 #define RIDEV_PAGEONLY 0x00000020
2668 #define RIDEV_NOLEGACY 0x00000030
2669 #define RIDEV_INPUTSINK 0x00000100
2670 #define RIDEV_CAPTUREMOUSE 0x00000200
2671 #define RIDEV_NOHOTKEYS 0x00000200
2672 #define RIDEV_APPKEYS 0x00000400
2673 #endif
2674 #define STATE_SYSTEM_UNAVAILABLE 0x00000001
2675 #define STATE_SYSTEM_SELECTED 0x00000002
2676 #define STATE_SYSTEM_FOCUSED 0x00000004
2677 #define STATE_SYSTEM_PRESSED 0x00000008
2678 #define STATE_SYSTEM_CHECKED 0x00000010
2679 #define STATE_SYSTEM_MIXED 0x00000020
2680 #define STATE_SYSTEM_READONLY 0x00000040
2681 #define STATE_SYSTEM_HOTTRACKED 0x00000080
2682 #define STATE_SYSTEM_DEFAULT 0x00000100
2683 #define STATE_SYSTEM_EXPANDED 0x00000200
2684 #define STATE_SYSTEM_COLLAPSED 0x00000400
2685 #define STATE_SYSTEM_BUSY 0x00000800
2686 #define STATE_SYSTEM_FLOATING 0x00001000
2687 #define STATE_SYSTEM_MARQUEED 0x00002000
2688 #define STATE_SYSTEM_ANIMATED 0x00004000
2689 #define STATE_SYSTEM_INVISIBLE 0x00008000
2690 #define STATE_SYSTEM_OFFSCREEN 0x00010000
2691 #define STATE_SYSTEM_SIZEABLE 0x00020000
2692 #define STATE_SYSTEM_MOVEABLE 0x00040000
2693 #define STATE_SYSTEM_SELFVOICING 0x00080000
2694 #define STATE_SYSTEM_FOCUSABLE 0x00100000
2695 #define STATE_SYSTEM_SELECTABLE 0x00200000
2696 #define STATE_SYSTEM_LINKED 0x00400000
2697 #define STATE_SYSTEM_TRAVERSED 0x00800000
2698 #define STATE_SYSTEM_MULTISELECTABLE 0x01000000
2699 #define STATE_SYSTEM_EXTSELECTABLE 0x02000000
2700 #define STATE_SYSTEM_ALERT_LOW 0x04000000
2701 #define STATE_SYSTEM_ALERT_MEDIUM 0x08000000
2702 #define STATE_SYSTEM_ALERT_HIGH 0x10000000
2703 #define STATE_SYSTEM_VALID 0x1fffffff
2704
2705 #ifndef RC_INVOKED
2706 typedef BOOL(CALLBACK *DLGPROC)(HWND,UINT,WPARAM,LPARAM);
2707 typedef VOID(CALLBACK *TIMERPROC)(HWND,UINT,UINT,DWORD);
2708 typedef BOOL(CALLBACK *GRAYSTRINGPROC)(HDC,LPARAM,int);
2709 typedef LRESULT(CALLBACK *HOOKPROC)(int,WPARAM,LPARAM);
2710 typedef BOOL(CALLBACK *PROPENUMPROCA)(HWND,LPCSTR,HANDLE);
2711 typedef BOOL(CALLBACK *PROPENUMPROCW)(HWND,LPCWSTR,HANDLE);
2712 typedef BOOL(CALLBACK *PROPENUMPROCEXA)(HWND,LPSTR,HANDLE,DWORD);
2713 typedef BOOL(CALLBACK *PROPENUMPROCEXW)(HWND,LPWSTR,HANDLE,DWORD);
2714 typedef int(CALLBACK *EDITWORDBREAKPROCA)(LPSTR,int,int,int);
2715 typedef int(CALLBACK *EDITWORDBREAKPROCW)(LPWSTR,int,int,int);
2716 typedef LRESULT(CALLBACK *WNDPROC)(HWND,UINT,WPARAM,LPARAM);
2717 typedef BOOL(CALLBACK *DRAWSTATEPROC)(HDC,LPARAM,WPARAM,int,int);
2718 typedef BOOL(CALLBACK *WNDENUMPROC)(HWND,LPARAM);
2719 typedef BOOL(CALLBACK* MONITORENUMPROC)(HMONITOR,HDC,LPRECT,LPARAM);
2720 typedef BOOL(CALLBACK *NAMEENUMPROCA)(LPSTR,LPARAM);
2721 typedef BOOL(CALLBACK *NAMEENUMPROCW)(LPWSTR,LPARAM);
2722 typedef NAMEENUMPROCA DESKTOPENUMPROCA;
2723 typedef NAMEENUMPROCW DESKTOPENUMPROCW;
2724 typedef NAMEENUMPROCA WINSTAENUMPROCA;
2725 typedef NAMEENUMPROCW WINSTAENUMPROCW;
2726 typedef void(CALLBACK *SENDASYNCPROC)(HWND,UINT,DWORD,LRESULT);
2727 DECLARE_HANDLE(HHOOK);
2728 DECLARE_HANDLE(HDWP);
2729 DECLARE_HANDLE(HDEVNOTIFY);
2730 typedef struct tagACCEL {
2731 BYTE fVirt;
2732 WORD key;
2733 WORD cmd;
2734 } ACCEL,*LPACCEL;
2735 typedef struct tagACCESSTIMEOUT {
2736 UINT cbSize;
2737 DWORD dwFlags;
2738 DWORD iTimeOutMSec;
2739 } ACCESSTIMEOUT, *LPACCESSTIMEOUT;
2740 typedef struct tagANIMATIONINFO {
2741 UINT cbSize;
2742 int iMinAnimate;
2743 } ANIMATIONINFO,*LPANIMATIONINFO;
2744 typedef struct tagCREATESTRUCTA {
2745 LPVOID lpCreateParams;
2746 HINSTANCE hInstance;
2747 HMENU hMenu;
2748 HWND hwndParent;
2749 int cy;
2750 int cx;
2751 int y;
2752 int x;
2753 LONG style;
2754 LPCSTR lpszName;
2755 LPCSTR lpszClass;
2756 DWORD dwExStyle;
2757 } CREATESTRUCTA,*LPCREATESTRUCTA;
2758 typedef struct tagCREATESTRUCTW {
2759 LPVOID lpCreateParams;
2760 HINSTANCE hInstance;
2761 HMENU hMenu;
2762 HWND hwndParent;
2763 int cy;
2764 int cx;
2765 int y;
2766 int x;
2767 LONG style;
2768 LPCWSTR lpszName;
2769 LPCWSTR lpszClass;
2770 DWORD dwExStyle;
2771 } CREATESTRUCTW,*LPCREATESTRUCTW;
2772 typedef struct tagCBT_CREATEWNDA {
2773 LPCREATESTRUCTA lpcs;
2774 HWND hwndInsertAfter;
2775 } CBT_CREATEWNDA, *LPCBT_CREATEWNDA;
2776 typedef struct tagCBT_CREATEWNDW {
2777 LPCREATESTRUCTW lpcs;
2778 HWND hwndInsertAfter;
2779 } CBT_CREATEWNDW, *LPCBT_CREATEWNDW;
2780 typedef struct tagCBTACTIVATESTRUCT {
2781 BOOL fMouse;
2782 HWND hWndActive;
2783 } CBTACTIVATESTRUCT,*LPCBTACTIVATESTRUCT;
2784 typedef struct tagCLIENTCREATESTRUCT {
2785 HANDLE hWindowMenu;
2786 UINT idFirstChild;
2787 } CLIENTCREATESTRUCT,*LPCLIENTCREATESTRUCT;
2788 typedef struct tagCOMPAREITEMSTRUCT {
2789 UINT CtlType;
2790 UINT CtlID;
2791 HWND hwndItem;
2792 UINT itemID1;
2793 DWORD itemData1;
2794 UINT itemID2;
2795 DWORD itemData2;
2796 DWORD dwLocaleId;
2797 } COMPAREITEMSTRUCT,*LPCOMPAREITEMSTRUCT;
2798 typedef struct tagCOPYDATASTRUCT {
2799 DWORD dwData;
2800 DWORD cbData;
2801 PVOID lpData;
2802 } COPYDATASTRUCT,*PCOPYDATASTRUCT;
2803 typedef struct tagCURSORSHAPE {
2804 int xHotSpot;
2805 int yHotSpot;
2806 int cx;
2807 int cy;
2808 int cbWidth;
2809 BYTE Planes;
2810 BYTE BitsPixel;
2811 } CURSORSHAPE,*LPCURSORSHAPE;
2812 typedef struct tagCWPRETSTRUCT {
2813 LRESULT lResult;
2814 LPARAM lParam;
2815 WPARAM wParam;
2816 DWORD message;
2817 HWND hwnd;
2818 } CWPRETSTRUCT,*PCWPRETSTRUCT, *LPCWPRETSTRUCT;
2819 typedef struct tagCWPSTRUCT {
2820 LPARAM lParam;
2821 WPARAM wParam;
2822 UINT message;
2823 HWND hwnd;
2824 } CWPSTRUCT,*PCWPSTRUCT, *LPCWPSTRUCT;
2825 typedef struct tagDEBUGHOOKINFO {
2826 DWORD idThread;
2827 DWORD idThreadInstaller;
2828 LPARAM lParam;
2829 WPARAM wParam;
2830 int code;
2831 } DEBUGHOOKINFO,*PDEBUGHOOKINFO,*LPDEBUGHOOKINFO;
2832 typedef struct tagDELETEITEMSTRUCT {
2833 UINT CtlType;
2834 UINT CtlID;
2835 UINT itemID;
2836 HWND hwndItem;
2837 UINT itemData;
2838 } DELETEITEMSTRUCT,*PDELETEITEMSTRUCT,*LPDELETEITEMSTRUCT;
2839 #pragma pack(push,2)
2840 typedef struct {
2841 DWORD style;
2842 DWORD dwExtendedStyle;
2843 short x;
2844 short y;
2845 short cx;
2846 short cy;
2847 WORD id;
2848 } DLGITEMTEMPLATE,*LPDLGITEMTEMPLATE;
2849 typedef struct {
2850 DWORD style;
2851 DWORD dwExtendedStyle;
2852 WORD cdit;
2853 short x;
2854 short y;
2855 short cx;
2856 short cy;
2857 } DLGTEMPLATE,*LPDLGTEMPLATE,*LPDLGTEMPLATEA,*LPDLGTEMPLATEW;
2858 typedef const DLGTEMPLATE *LPCDLGTEMPLATEA;
2859 typedef const DLGTEMPLATE *LPCDLGTEMPLATEW;
2860 #ifdef UNICODE
2861 typedef LPCDLGTEMPLATEW LPCDLGTEMPLATE;
2862 #else
2863 typedef LPCDLGTEMPLATEA LPCDLGTEMPLATE;
2864 #endif // UNICODE
2865 #pragma pack(pop)
2866 typedef struct tagDRAWITEMSTRUCT {
2867 UINT CtlType;
2868 UINT CtlID;
2869 UINT itemID;
2870 UINT itemAction;
2871 UINT itemState;
2872 HWND hwndItem;
2873 HDC hDC;
2874 RECT rcItem;
2875 DWORD itemData;
2876 } DRAWITEMSTRUCT,*LPDRAWITEMSTRUCT,*PDRAWITEMSTRUCT;
2877 typedef struct {
2878 UINT cbSize;
2879 int iTabLength;
2880 int iLeftMargin;
2881 int iRightMargin;
2882 UINT uiLengthDrawn;
2883 } DRAWTEXTPARAMS,*LPDRAWTEXTPARAMS;
2884 typedef struct tagPAINTSTRUCT {
2885 HDC hdc;
2886 BOOL fErase;
2887 RECT rcPaint;
2888 BOOL fRestore;
2889 BOOL fIncUpdate;
2890 BYTE rgbReserved[32];
2891 } PAINTSTRUCT,*LPPAINTSTRUCT;
2892 typedef struct tagMSG {
2893 HWND hwnd;
2894 UINT message;
2895 WPARAM wParam;
2896 LPARAM lParam;
2897 DWORD time;
2898 POINT pt;
2899 } MSG,*LPMSG,*PMSG;
2900 typedef struct _ICONINFO {
2901 BOOL fIcon;
2902 DWORD xHotspot;
2903 DWORD yHotspot;
2904 HBITMAP hbmMask;
2905 HBITMAP hbmColor;
2906 } ICONINFO,*PICONINFO;
2907 typedef struct tagNMHDR {
2908 HWND hwndFrom;
2909 UINT idFrom;
2910 UINT code;
2911 } NMHDR,*LPNMHDR;
2912 typedef struct _WNDCLASSA {
2913 UINT style;
2914 WNDPROC lpfnWndProc;
2915 int cbClsExtra;
2916 int cbWndExtra;
2917 HINSTANCE hInstance;
2918 HICON hIcon;
2919 HCURSOR hCursor;
2920 HBRUSH hbrBackground;
2921 LPCSTR lpszMenuName;
2922 LPCSTR lpszClassName;
2923 } WNDCLASSA,*LPWNDCLASSA,*PWNDCLASSA;
2924 typedef struct _WNDCLASSW {
2925 UINT style;
2926 WNDPROC lpfnWndProc;
2927 int cbClsExtra;
2928 int cbWndExtra;
2929 HINSTANCE hInstance;
2930 HICON hIcon;
2931 HCURSOR hCursor;
2932 HBRUSH hbrBackground;
2933 LPCWSTR lpszMenuName;
2934 LPCWSTR lpszClassName;
2935 } WNDCLASSW,*LPWNDCLASSW,*PWNDCLASSW;
2936 typedef struct _WNDCLASSEXA {
2937 UINT cbSize;
2938 UINT style;
2939 WNDPROC lpfnWndProc;
2940 int cbClsExtra;
2941 int cbWndExtra;
2942 HINSTANCE hInstance;
2943 HICON hIcon;
2944 HCURSOR hCursor;
2945 HBRUSH hbrBackground;
2946 LPCSTR lpszMenuName;
2947 LPCSTR lpszClassName;
2948 HICON hIconSm;
2949 } WNDCLASSEXA,*LPWNDCLASSEXA,*PWNDCLASSEXA;
2950 typedef struct _WNDCLASSEXW {
2951 UINT cbSize;
2952 UINT style;
2953 WNDPROC lpfnWndProc;
2954 int cbClsExtra;
2955 int cbWndExtra;
2956 HINSTANCE hInstance;
2957 HICON hIcon;
2958 HCURSOR hCursor;
2959 HBRUSH hbrBackground;
2960 LPCWSTR lpszMenuName;
2961 LPCWSTR lpszClassName;
2962 HICON hIconSm;
2963 } WNDCLASSEXW,*LPWNDCLASSEXW,*PWNDCLASSEXW;
2964 typedef struct tagMENUITEMINFOA {
2965 UINT cbSize;
2966 UINT fMask;
2967 UINT fType;
2968 UINT fState;
2969 UINT wID;
2970 HMENU hSubMenu;
2971 HBITMAP hbmpChecked;
2972 HBITMAP hbmpUnchecked;
2973 DWORD dwItemData;
2974 LPSTR dwTypeData;
2975 UINT cch;
2976 #if (_WIN32_WINNT >= 0x0500)
2977 HBITMAP hbmpItem;
2978 #endif
2979 } MENUITEMINFOA,*LPMENUITEMINFOA;
2980 typedef const MENUITEMINFOA *LPCMENUITEMINFOA;
2981 typedef struct tagMENUITEMINFOW {
2982 UINT cbSize;
2983 UINT fMask;
2984 UINT fType;
2985 UINT fState;
2986 UINT wID;
2987 HMENU hSubMenu;
2988 HBITMAP hbmpChecked;
2989 HBITMAP hbmpUnchecked;
2990 DWORD dwItemData;
2991 LPWSTR dwTypeData;
2992 UINT cch;
2993 #if (_WIN32_WINNT >= 0x0500)
2994 HBITMAP hbmpItem;
2995 #endif
2996 } MENUITEMINFOW,*LPMENUITEMINFOW;
2997 typedef const MENUITEMINFOW *LPCMENUITEMINFOW;
2998 typedef struct tagSCROLLINFO {
2999 UINT cbSize;
3000 UINT fMask;
3001 int nMin;
3002 int nMax;
3003 UINT nPage;
3004 int nPos;
3005 int nTrackPos;
3006 } SCROLLINFO,*LPSCROLLINFO;
3007 typedef const SCROLLINFO *LPCSCROLLINFO;
3008 typedef struct _WINDOWPLACEMENT {
3009 UINT length;
3010 UINT flags;
3011 UINT showCmd;
3012 POINT ptMinPosition;
3013 POINT ptMaxPosition;
3014 RECT rcNormalPosition;
3015 } WINDOWPLACEMENT,*LPWINDOWPLACEMENT,*PWINDOWPLACEMENT;
3016 typedef struct {
3017 WORD versionNumber;
3018 WORD offset;
3019 } MENUITEMTEMPLATEHEADER;
3020 typedef struct {
3021 WORD mtOption;
3022 WORD mtID;
3023 WCHAR mtString[1];
3024 } MENUITEMTEMPLATE;
3025 typedef void MENUTEMPLATE,MENUTEMPLATEA,MENUTEMPLATEW,*LPMENUTEMPLATEA,*LPMENUTEMPLATEW,*LPMENUTEMPLATE;
3026 typedef struct tagHELPINFO {
3027 UINT cbSize;
3028 int iContextType;
3029 int iCtrlId;
3030 HANDLE hItemHandle;
3031 DWORD dwContextId;
3032 POINT MousePos;
3033 } HELPINFO,*LPHELPINFO;
3034 typedef void(CALLBACK *MSGBOXCALLBACK)(LPHELPINFO);
3035 typedef struct {
3036 UINT cbSize;
3037 HWND hwndOwner;
3038 HINSTANCE hInstance;
3039 LPCSTR lpszText;
3040 LPCSTR lpszCaption;
3041 DWORD dwStyle;
3042 LPCSTR lpszIcon;
3043 DWORD dwContextHelpId;
3044 MSGBOXCALLBACK lpfnMsgBoxCallback;
3045 DWORD dwLanguageId;
3046 } MSGBOXPARAMSA,*PMSGBOXPARAMSA,*LPMSGBOXPARAMSA;
3047 typedef struct {
3048 UINT cbSize;
3049 HWND hwndOwner;
3050 HINSTANCE hInstance;
3051 LPCWSTR lpszText;
3052 LPCWSTR lpszCaption;
3053 DWORD dwStyle;
3054 LPCWSTR lpszIcon;
3055 DWORD dwContextHelpId;
3056 MSGBOXCALLBACK lpfnMsgBoxCallback;
3057 DWORD dwLanguageId;
3058 } MSGBOXPARAMSW,*PMSGBOXPARAMSW,*LPMSGBOXPARAMSW;
3059 typedef struct tagUSEROBJECTFLAGS {
3060 BOOL fInherit;
3061 BOOL fReserved;
3062 DWORD dwFlags;
3063 } USEROBJECTFLAGS;
3064 typedef struct tagFILTERKEYS {
3065 UINT cbSize;
3066 DWORD dwFlags;
3067 DWORD iWaitMSec;
3068 DWORD iDelayMSec;
3069 DWORD iRepeatMSec;
3070 DWORD iBounceMSec;
3071 } FILTERKEYS, *LPFILTERKEYS;
3072 typedef struct tagHIGHCONTRASTA {
3073 UINT cbSize;
3074 DWORD dwFlags;
3075 LPSTR lpszDefaultScheme;
3076 } HIGHCONTRASTA,*LPHIGHCONTRASTA;
3077 typedef struct tagHIGHCONTRASTW {
3078 UINT cbSize;
3079 DWORD dwFlags;
3080 LPWSTR lpszDefaultScheme;
3081 } HIGHCONTRASTW,*LPHIGHCONTRASTW;
3082 #if defined(_WINGDI_) && !defined(NOGDI)
3083 typedef struct tagICONMETRICSA {
3084 UINT cbSize;
3085 int iHorzSpacing;
3086 int iVertSpacing;
3087 int iTitleWrap;
3088 LOGFONTA lfFont;
3089 } ICONMETRICSA,*LPICONMETRICSA;
3090 typedef struct tagICONMETRICSW {
3091 UINT cbSize;
3092 int iHorzSpacing;
3093 int iVertSpacing;
3094 int iTitleWrap;
3095 LOGFONTW lfFont;
3096 } ICONMETRICSW,*LPICONMETRICSW;
3097 #endif /* NOGDI */
3098 typedef struct tagMINIMIZEDMETRICS {
3099 UINT cbSize;
3100 int iWidth;
3101 int iHorzGap;
3102 int iVertGap;
3103 int iArrange;
3104 } MINIMIZEDMETRICS,*LPMINIMIZEDMETRICS;
3105 typedef struct tagMOUSEKEYS{
3106 UINT cbSize;
3107 DWORD dwFlags;
3108 DWORD iMaxSpeed;
3109 DWORD iTimeToMaxSpeed;
3110 DWORD iCtrlSpeed;
3111 DWORD dwReserved1;
3112 DWORD dwReserved2;
3113 } MOUSEKEYS,*LPMOUSEKEYS;
3114 #if defined(_WINGDI_) && !defined(NOGDI)
3115 typedef struct tagNONCLIENTMETRICSA {
3116 UINT cbSize;
3117 int iBorderWidth;
3118 int iScrollWidth;
3119 int iScrollHeight;
3120 int iCaptionWidth;
3121 int iCaptionHeight;
3122 LOGFONTA lfCaptionFont;
3123 int iSmCaptionWidth;
3124 int iSmCaptionHeight;
3125 LOGFONTA lfSmCaptionFont;
3126 int iMenuWidth;
3127 int iMenuHeight;
3128 LOGFONTA lfMenuFont;
3129 LOGFONTA lfStatusFont;
3130 LOGFONTA lfMessageFont;
3131 } NONCLIENTMETRICSA,*LPNONCLIENTMETRICSA;
3132 typedef struct tagNONCLIENTMETRICSW {
3133 UINT cbSize;
3134 int iBorderWidth;
3135 int iScrollWidth;
3136 int iScrollHeight;
3137 int iCaptionWidth;
3138 int iCaptionHeight;
3139 LOGFONTW lfCaptionFont;
3140 int iSmCaptionWidth;
3141 int iSmCaptionHeight;
3142 LOGFONTW lfSmCaptionFont;
3143 int iMenuWidth;
3144 int iMenuHeight;
3145 LOGFONTW lfMenuFont;
3146 LOGFONTW lfStatusFont;
3147 LOGFONTW lfMessageFont;
3148 } NONCLIENTMETRICSW,*LPNONCLIENTMETRICSW;
3149 #endif
3150 typedef struct tagSERIALKEYSA {
3151 UINT cbSize;
3152 DWORD dwFlags;
3153 LPSTR lpszActivePort;
3154 LPSTR lpszPort;
3155 UINT iBaudRate;
3156 UINT iPortState;
3157 UINT iActive;
3158 } SERIALKEYSA,*LPSERIALKEYSA;
3159 typedef struct tagSERIALKEYSW {
3160 UINT cbSize;
3161 DWORD dwFlags;
3162 LPWSTR lpszActivePort;
3163 LPWSTR lpszPort;
3164 UINT iBaudRate;
3165 UINT iPortState;
3166 UINT iActive;
3167 } SERIALKEYSW,*LPSERIALKEYSW;
3168 typedef struct tagSOUNDSENTRYA {
3169 UINT cbSize;
3170 DWORD dwFlags;
3171 DWORD iFSTextEffect;
3172 DWORD iFSTextEffectMSec;
3173 DWORD iFSTextEffectColorBits;
3174 DWORD iFSGrafEffect;
3175 DWORD iFSGrafEffectMSec;
3176 DWORD iFSGrafEffectColor;
3177 DWORD iWindowsEffect;
3178 DWORD iWindowsEffectMSec;
3179 LPSTR lpszWindowsEffectDLL;
3180 DWORD iWindowsEffectOrdinal;
3181 } SOUNDSENTRYA,*LPSOUNDSENTRYA;
3182 typedef struct tagSOUNDSENTRYW {
3183 UINT cbSize;
3184 DWORD dwFlags;
3185 DWORD iFSTextEffect;
3186 DWORD iFSTextEffectMSec;
3187 DWORD iFSTextEffectColorBits;
3188 DWORD iFSGrafEffect;
3189 DWORD iFSGrafEffectMSec;
3190 DWORD iFSGrafEffectColor;
3191 DWORD iWindowsEffect;
3192 DWORD iWindowsEffectMSec;
3193 LPWSTR lpszWindowsEffectDLL;
3194 DWORD iWindowsEffectOrdinal;
3195 } SOUNDSENTRYW,*LPSOUNDSENTRYW;
3196 typedef struct tagSTICKYKEYS {
3197 DWORD cbSize;
3198 DWORD dwFlags;
3199 } STICKYKEYS,*LPSTICKYKEYS;
3200 typedef struct tagTOGGLEKEYS {
3201 DWORD cbSize;
3202 DWORD dwFlags;
3203 } TOGGLEKEYS, *LPTOGGLEKEYS;
3204 typedef struct tagMOUSEHOOKSTRUCT {
3205 POINT pt;
3206 HWND hwnd;
3207 UINT wHitTestCode;
3208 DWORD dwExtraInfo;
3209 } MOUSEHOOKSTRUCT,*LPMOUSEHOOKSTRUCT,*PMOUSEHOOKSTRUCT;
3210 #if ( _WIN32_WINNT >= 0x0500 )
3211 #ifdef __cplusplus
3212 typedef struct tagMOUSEHOOKSTRUCTEX : public tagMOUSEHOOKSTRUCT
3213 {
3214 DWORD mouseData;
3215 } MOUSEHOOKSTRUCTEX, *LPMOUSEHOOKSTRUCTEX, *PMOUSEHOOKSTRUCTEX;
3216 #else
3217 typedef struct tagMOUSEHOOKSTRUCTEX
3218 {
3219 MOUSEHOOKSTRUCT MOUSEHOOKSTRUCT;
3220 DWORD mouseData;
3221 } MOUSEHOOKSTRUCTEX, *LPMOUSEHOOKSTRUCTEX, *PMOUSEHOOKSTRUCTEX;
3222 #endif
3223 #endif
3224 typedef struct tagTRACKMOUSEEVENT {
3225 DWORD cbSize;
3226 DWORD dwFlags;
3227 HWND hwndTrack;
3228 DWORD dwHoverTime;
3229 } TRACKMOUSEEVENT,*LPTRACKMOUSEEVENT;
3230 typedef struct tagTPMPARAMS {
3231 UINT cbSize;
3232 RECT rcExclude;
3233 } TPMPARAMS,*LPTPMPARAMS;
3234 typedef struct tagEVENTMSG {
3235 UINT message;
3236 UINT paramL;
3237 UINT paramH;
3238 DWORD time;
3239 HWND hwnd;
3240 } EVENTMSG,*PEVENTMSGMSG,*LPEVENTMSGMSG,*PEVENTMSG,*LPEVENTMSG;
3241 typedef struct _WINDOWPOS {
3242 HWND hwnd;
3243 HWND hwndInsertAfter;
3244 int x;
3245 int y;
3246 int cx;
3247 int cy;
3248 UINT flags;
3249 } WINDOWPOS,*PWINDOWPOS,*LPWINDOWPOS;
3250 typedef struct tagNCCALCSIZE_PARAMS {
3251 RECT rgrc[3];
3252 PWINDOWPOS lppos;
3253 } NCCALCSIZE_PARAMS, *LPNCCALCSIZE_PARAMS;
3254 typedef struct tagMDICREATESTRUCTA {
3255 LPCSTR szClass;
3256 LPCSTR szTitle;
3257 HANDLE hOwner;
3258 int x;
3259 int y;
3260 int cx;
3261 int cy;
3262 DWORD style;
3263 LPARAM lParam;
3264 } MDICREATESTRUCTA,*LPMDICREATESTRUCTA;
3265 typedef struct tagMDICREATESTRUCTW {
3266 LPCWSTR szClass;
3267 LPCWSTR szTitle;
3268 HANDLE hOwner;
3269 int x;
3270 int y;
3271 int cx;
3272 int cy;
3273 DWORD style;
3274 LPARAM lParam;
3275 } MDICREATESTRUCTW,*LPMDICREATESTRUCTW;
3276 typedef struct tagMINMAXINFO {
3277 POINT ptReserved;
3278 POINT ptMaxSize;
3279 POINT ptMaxPosition;
3280 POINT ptMinTrackSize;
3281 POINT ptMaxTrackSize;
3282 } MINMAXINFO,*PMINMAXINFO,*LPMINMAXINFO;
3283 typedef struct tagMDINEXTMENU {
3284 HMENU hmenuIn;
3285 HMENU hmenuNext;
3286 HWND hwndNext;
3287 } MDINEXTMENU,*PMDINEXTMENU,*LPMDINEXTMENU;
3288 typedef struct tagMEASUREITEMSTRUCT {
3289 UINT CtlType;
3290 UINT CtlID;
3291 UINT itemID;
3292 UINT itemWidth;
3293 UINT itemHeight;
3294 DWORD itemData;
3295 } MEASUREITEMSTRUCT,*PMEASUREITEMSTRUCT,*LPMEASUREITEMSTRUCT;
3296 typedef struct tagDROPSTRUCT {
3297 HWND hwndSource;
3298 HWND hwndSink;
3299 DWORD wFmt;
3300 DWORD dwData;
3301 POINT ptDrop;
3302 DWORD dwControlData;
3303 } DROPSTRUCT,*PDROPSTRUCT,*LPDROPSTRUCT;
3304 typedef DWORD HELPPOLY;
3305 typedef struct tagMULTIKEYHELPA {
3306 DWORD mkSize;
3307 CHAR mkKeylist;
3308 CHAR szKeyphrase[1];
3309 } MULTIKEYHELPA,*PMULTIKEYHELPA,*LPMULTIKEYHELPA;
3310 typedef struct tagMULTIKEYHELPW {
3311 DWORD mkSize;
3312 WCHAR mkKeylist;
3313 WCHAR szKeyphrase[1];
3314 } MULTIKEYHELPW,*PMULTIKEYHELPW,*LPMULTIKEYHELPW;
3315 typedef struct tagHELPWININFOA {
3316 int wStructSize;
3317 int x;
3318 int y;
3319 int dx;
3320 int dy;
3321 int wMax;
3322 CHAR rgchMember[2];
3323 } HELPWININFOA,*PHELPWININFOA,*LPHELPWININFOA;
3324 typedef struct tagHELPWININFOW {
3325 int wStructSize;
3326 int x;
3327 int y;
3328 int dx;
3329 int dy;
3330 int wMax;
3331 WCHAR rgchMember[2];
3332 } HELPWININFOW,*PHELPWININFOW,*LPHELPWININFOW;
3333 typedef struct tagSTYLESTRUCT {
3334 DWORD styleOld;
3335 DWORD styleNew;
3336 } STYLESTRUCT,*LPSTYLESTRUCT;
3337 typedef struct tagALTTABINFO {
3338 DWORD cbSize;
3339 int cItems;
3340 int cColumns;
3341 int cRows;
3342 int iColFocus;
3343 int iRowFocus;
3344 int cxItem;
3345 int cyItem;
3346 POINT ptStart;
3347 } ALTTABINFO,*PALTTABINFO,*LPALTTABINFO;
3348 typedef struct tagCOMBOBOXINFO {
3349 DWORD cbSize;
3350 RECT rcItem;
3351 RECT rcButton;
3352 DWORD stateButton;
3353 HWND hwndCombo;
3354 HWND hwndItem;
3355 HWND hwndList;
3356 } COMBOBOXINFO,*PCOMBOBOXINFO,*LPCOMBOBOXINFO;
3357 typedef struct tagCURSORINFO {
3358 DWORD cbSize;
3359 DWORD flags;
3360 HCURSOR hCursor;
3361 POINT ptScreenPos;
3362 } CURSORINFO,*PCURSORINFO,*LPCURSORINFO;
3363 typedef struct tagMENUBARINFO {
3364 DWORD cbSize;
3365 RECT rcBar;
3366 HMENU hMenu;
3367 HWND hwndMenu;
3368 BOOL fBarFocused:1;
3369 BOOL fFocused:1;
3370 } MENUBARINFO,*PMENUBARINFO;
3371 typedef struct tagMENUINFO {
3372 DWORD cbSize;
3373 DWORD fMask;
3374 DWORD dwStyle;
3375 UINT cyMax;
3376 HBRUSH hbrBack;
3377 DWORD dwContextHelpID;
3378 ULONG_PTR dwMenuData;
3379 } MENUINFO,*LPMENUINFO;
3380 typedef MENUINFO CONST *LPCMENUINFO;
3381 #define CCHILDREN_SCROLLBAR 5
3382 typedef struct tagSCROLLBARINFO {
3383 DWORD cbSize;
3384 RECT rcScrollBar;
3385 int dxyLineButton;
3386 int xyThumbTop;
3387 int xyThumbBottom;
3388 int reserved;
3389 DWORD rgstate[CCHILDREN_SCROLLBAR+1];
3390 } SCROLLBARINFO,*PSCROLLBARINFO,*LPSCROLLBARINFO;
3391 #define CCHILDREN_TITLEBAR 5
3392 typedef struct tagTITLEBARINFO {
3393 DWORD cbSize;
3394 RECT rcTitleBar;
3395 DWORD rgstate[CCHILDREN_TITLEBAR+1];
3396 } TITLEBARINFO,*PTITLEBARINFO,*LPTITLEBARINFO;
3397 typedef struct tagWINDOWINFO {
3398 DWORD cbSize;
3399 RECT rcWindow;
3400 RECT rcClient;
3401 DWORD dwStyle;
3402 DWORD dwExStyle;
3403 DWORD dwWindowStatus;
3404 UINT cxWindowBorders;
3405 UINT cyWindowBorders;
3406 ATOM atomWindowType;
3407 WORD wCreatorVersion;
3408 } WINDOWINFO,*PWINDOWINFO,*LPWINDOWINFO;
3409 typedef struct tagLASTINPUTINFO {
3410 UINT cbSize;
3411 DWORD dwTime;
3412 } LASTINPUTINFO,*PLASTINPUTINFO;
3413 typedef struct tagMONITORINFO {
3414 DWORD cbSize;
3415 RECT rcMonitor;
3416 RECT rcWork;
3417 DWORD dwFlags;
3418 } MONITORINFO,*LPMONITORINFO;
3419 #define CCHDEVICENAME 32
3420 typedef struct tagMONITORINFOEXA {
3421 DWORD cbSize;
3422 RECT rcMonitor;
3423 RECT rcWork;
3424 DWORD dwFlags;
3425 CHAR szDevice[CCHDEVICENAME];
3426 } MONITORINFOEXA,*LPMONITORINFOEXA;
3427 typedef struct tagMONITORINFOEXW {
3428 DWORD cbSize;
3429 RECT rcMonitor;
3430 RECT rcWork;
3431 DWORD dwFlags;
3432 WCHAR szDevice[CCHDEVICENAME];
3433 } MONITORINFOEXW,*LPMONITORINFOEXW;
3434 typedef struct tagKBDLLHOOKSTRUCT {
3435 DWORD vkCode;
3436 DWORD scanCode;
3437 DWORD flags;
3438 DWORD time;
3439 DWORD dwExtraInfo;
3440 } KBDLLHOOKSTRUCT,*LPKBDLLHOOKSTRUCT,*PKBDLLHOOKSTRUCT;
3441 typedef struct tagMSLLHOOKSTRUCT
3442 {
3443 POINT pt;
3444 DWORD mouseData;
3445 DWORD flags;
3446 DWORD time;
3447 ULONG_PTR dwExtraInfo;
3448 } MSLLHOOKSTRUCT, *LPMSLLHOOKSTRUCT, *PMSLLHOOKSTRUCT;
3449 #if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0410)
3450 typedef struct {
3451 UINT cbSize;
3452 HWND hwnd;
3453 DWORD dwFlags;
3454 UINT uCount;
3455 DWORD dwTimeout;
3456 } FLASHWINFO,*PFLASHWINFO;
3457 #endif /* (WINVER >= 0x0500 || _WIN32_WINDOWS >= 0x0410) */
3458 #if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0490)
3459 typedef struct tagMOUSEMOVEPOINT {
3460 int x;
3461 int y;
3462 DWORD time;
3463 ULONG_PTR dwExtraInfo;
3464 } MOUSEMOVEPOINT,*PMOUSEMOVEPOINT,*LPMOUSEMOVEPOINT;
3465 #endif
3466 #if (_WIN32_WINNT >= 0x0403)
3467 typedef struct tagMOUSEINPUT {
3468 LONG dx;
3469 LONG dy;
3470 DWORD mouseData;
3471 DWORD dwFlags;
3472 DWORD time;
3473 ULONG_PTR dwExtraInfo;
3474 } MOUSEINPUT,*PMOUSEINPUT;
3475 typedef struct tagKEYBDINPUT {
3476 WORD wVk;
3477 WORD wScan;
3478 DWORD dwFlags;
3479 DWORD time;
3480 ULONG_PTR dwExtraInfo;
3481 } KEYBDINPUT,*PKEYBDINPUT;
3482 typedef struct tagHARDWAREINPUT {
3483 DWORD uMsg;
3484 WORD wParamL;
3485 WORD wParamH;
3486 } HARDWAREINPUT,*PHARDWAREINPUT;
3487 typedef struct tagINPUT {
3488 DWORD type;
3489 _ANONYMOUS_UNION union {
3490 MOUSEINPUT mi;
3491 KEYBDINPUT ki;
3492 HARDWAREINPUT hi;
3493 } DUMMYUNIONNAME;
3494 } INPUT,*PINPUT,*LPINPUT;
3495 #endif /* (_WIN32_WINNT >= 0x0403) */
3496 #if (WINVER >= 0x0500)
3497 typedef struct tagGUITHREADINFO {
3498 DWORD cbSize;
3499 DWORD flags;
3500 HWND hwndActive;
3501 HWND hwndFocus;
3502 HWND hwndCapture;
3503 HWND hwndMenuOwner;
3504 HWND hwndMoveSize;
3505 HWND hwndCaret;
3506 RECT rcCaret;
3507 } GUITHREADINFO,*PGUITHREADINFO,*LPGUITHREADINFO;
3508 typedef VOID (*WINEVENTPROC)(HWINEVENTHOOK,DWORD,HWND,LONG,LONG,DWORD,DWORD);
3509 #endif /* (WINVER >= 0x0500) */
3510 #if (_WIN32_WINNT >= 0x0501)
3511 typedef struct {
3512 UINT cbSize;
3513 HDESK hdesk;
3514 HWND hwnd;
3515 LUID luid;
3516 } BSMINFO,*PBSMINFO;
3517 DECLARE_HANDLE(HRAWINPUT);
3518 typedef struct tagRAWINPUTHEADER {
3519 DWORD dwType;
3520 DWORD dwSize;
3521 HANDLE hDevice;
3522 WPARAM wParam;
3523 } RAWINPUTHEADER,*PRAWINPUTHEADER;
3524 typedef struct tagRAWMOUSE {
3525 USHORT usFlags;
3526 _ANONYMOUS_UNION union {
3527 ULONG ulButtons;
3528 _ANONYMOUS_STRUCT struct {
3529 USHORT usButtonFlags;
3530 USHORT usButtonData;
3531 };
3532 };
3533 ULONG ulRawButtons;
3534 LONG lLastX;
3535 LONG lLastY;
3536 ULONG ulExtraInformation;
3537 } RAWMOUSE,*PRAWMOUSE,*LPRAWMOUSE;
3538 typedef struct tagRAWKEYBOARD {
3539 USHORT MakeCode;
3540 USHORT Flags;
3541 USHORT Reserved;
3542 USHORT VKey;
3543 UINT Message;
3544 ULONG ExtraInformation;
3545 } RAWKEYBOARD,*PRAWKEYBOARD,*LPRAWKEYBOARD;
3546 typedef struct tagRAWHID {
3547 DWORD dwSizeHid;
3548 DWORD dwCount;
3549 BYTE bRawData;
3550 } RAWHID,*PRAWHID,*LPRAWHID;
3551 typedef struct tagRAWINPUT {
3552 RAWINPUTHEADER header;
3553 union {
3554 RAWMOUSE mouse;
3555 RAWKEYBOARD keyboard;
3556 RAWHID hid;
3557 } data;
3558 } RAWINPUT,*PRAWINPUT,*LPRAWINPUT;
3559 typedef struct tagRAWINPUTDEVICE {
3560 USHORT usUsagePage;
3561 USHORT usUsage;
3562 DWORD dwFlags;
3563 HWND hwndTarget;
3564 } RAWINPUTDEVICE,*PRAWINPUTDEVICE,*LPRAWINPUTDEVICE;
3565 typedef const RAWINPUTDEVICE *PCRAWINPUTDEVICE;
3566 typedef struct tagRAWINPUTDEVICELIST {
3567 HANDLE hDevice;
3568 DWORD dwType;
3569 } RAWINPUTDEVICELIST,*PRAWINPUTDEVICELIST;
3570 #endif /* (_WIN32_WINNT >= 0x0501) */
3571
3572 #define AnsiToOem CharToOemA
3573 #define OemToAnsi OemToCharA
3574 #define AnsiToOemBuff CharToOemBuffA
3575 #define OemToAnsiBuff OemToCharBuffA
3576 #define AnsiUpper CharUpperA
3577 #define AnsiUpperBuff CharUpperBuffA
3578 #define AnsiLower CharLowerA
3579 #define AnsiLowerBuff CharLowerBuffA
3580 #define AnsiNext CharNextA
3581 #define AnsiPrev CharPrevA
3582 #define MAKELPARAM(l,h) ((LPARAM)MAKELONG(l,h))
3583 #define MAKEWPARAM(l,h) ((WPARAM)MAKELONG(l,h))
3584 #define MAKELRESULT(l,h) ((LRESULT)MAKELONG(l,h))
3585 #define POINTSTOPOINT(p,ps) { \
3586 (p).x=LOWORD(*(DWORD *)&ps); \
3587 (p).y=HIWORD(*(DWORD *)&ps); \
3588 }
3589 #define POINTTOPOINTS(p) ((POINTS)MAKELONG((p).x,(p).y))
3590
3591 HKL WINAPI ActivateKeyboardLayout(HKL,UINT);
3592 BOOL WINAPI AdjustWindowRect(LPRECT,DWORD,BOOL);
3593 BOOL WINAPI AdjustWindowRectEx(LPRECT,DWORD,BOOL,DWORD);
3594 #if (_WIN32_WINNT >= 0x0500)
3595 BOOL WINAPI AnimateWindow(HWND,DWORD,DWORD);
3596 #endif /* (_WIN32_WINNT >= 0x0500) */
3597 BOOL WINAPI AnyPopup(void);
3598 BOOL WINAPI AppendMenuA(HMENU,UINT,UINT_PTR,LPCSTR);
3599 BOOL WINAPI AppendMenuW(HMENU,UINT,UINT_PTR,LPCWSTR);
3600 UINT WINAPI ArrangeIconicWindows(HWND);
3601 BOOL WINAPI AttachThreadInput(DWORD,DWORD,BOOL);
3602 HDWP WINAPI BeginDeferWindowPos(int);
3603 HDC WINAPI BeginPaint(HWND,LPPAINTSTRUCT);
3604 BOOL WINAPI BringWindowToTop(HWND);
3605 long WINAPI BroadcastSystemMessage(DWORD,LPDWORD,UINT,WPARAM,LPARAM);
3606 #if (_WIN32_WINNT >= 0x0400)
3607 long WINAPI BroadcastSystemMessageA(DWORD,LPDWORD,UINT,WPARAM,LPARAM);
3608 long WINAPI BroadcastSystemMessageW(DWORD,LPDWORD,UINT,WPARAM,LPARAM);
3609 #endif /* (_WIN32_WINNT >= 0x0400) */
3610 #if (_WIN32_WINNT >= 0x0501)
3611 long WINAPI BroadcastSystemMessageExA(DWORD,LPDWORD,UINT,WPARAM,LPARAM,PBSMINFO);
3612 long WINAPI BroadcastSystemMessageExW(DWORD,LPDWORD,UINT,WPARAM,LPARAM,PBSMINFO);
3613 #endif /* (_WIN32_WINNT >= 0x0501) */
3614 BOOL WINAPI CallMsgFilterA(LPMSG,INT);
3615 BOOL WINAPI CallMsgFilterW(LPMSG,INT);
3616 LRESULT WINAPI CallNextHookEx(HHOOK,int,WPARAM,LPARAM);
3617 LRESULT WINAPI CallWindowProcA(WNDPROC,HWND,UINT,WPARAM,LPARAM);
3618 LRESULT WINAPI CallWindowProcW(WNDPROC,HWND,UINT,WPARAM,LPARAM);
3619 WORD WINAPI CascadeWindows(HWND,UINT,LPCRECT,UINT,const HWND*);
3620 BOOL WINAPI ChangeClipboardChain(HWND,HWND);
3621 #if defined(_WINGDI_) && !defined(NOGDI)
3622 LONG WINAPI ChangeDisplaySettingsA(PDEVMODEA,DWORD);
3623 LONG WINAPI ChangeDisplaySettingsW(PDEVMODEW,DWORD);
3624 LONG WINAPI ChangeDisplaySettingsExA(LPCSTR,LPDEVMODEA,HWND,DWORD,LPVOID);
3625 LONG WINAPI ChangeDisplaySettingsExW(LPCWSTR,LPDEVMODEW,HWND,DWORD,LPVOID);
3626 #endif
3627 BOOL WINAPI ChangeMenuA(HMENU,UINT,LPCSTR,UINT,UINT);
3628 BOOL WINAPI ChangeMenuW(HMENU,UINT,LPCWSTR,UINT,UINT);
3629 LPSTR WINAPI CharLowerA(LPSTR);
3630 LPWSTR WINAPI CharLowerW(LPWSTR);
3631 DWORD WINAPI CharLowerBuffA(LPSTR,DWORD);
3632 DWORD WINAPI CharLowerBuffW(LPWSTR,DWORD);
3633 LPSTR WINAPI CharNextA(LPCSTR);
3634 LPWSTR WINAPI CharNextW(LPCWSTR);
3635 LPSTR WINAPI CharNextExA(WORD,LPCSTR,DWORD);
3636 LPWSTR WINAPI CharNextExW(WORD,LPCWSTR,DWORD);
3637 LPSTR WINAPI CharPrevA(LPCSTR,LPCSTR);
3638 LPWSTR WINAPI CharPrevW(LPCWSTR,LPCWSTR);
3639 LPSTR WINAPI CharPrevExA(WORD,LPCSTR,LPCSTR,DWORD);
3640 LPWSTR WINAPI CharPrevExW(WORD,LPCWSTR,LPCWSTR,DWORD);
3641 BOOL WINAPI CharToOemA(LPCSTR,LPSTR);
3642 BOOL WINAPI CharToOemW(LPCWSTR,LPSTR);
3643 BOOL WINAPI CharToOemBuffA(LPCSTR,LPSTR,DWORD);
3644 BOOL WINAPI CharToOemBuffW(LPCWSTR,LPSTR,DWORD);
3645 LPSTR WINAPI CharUpperA(LPSTR);
3646 LPWSTR WINAPI CharUpperW(LPWSTR);
3647 DWORD WINAPI CharUpperBuffA(LPSTR,DWORD);
3648 DWORD WINAPI CharUpperBuffW(LPWSTR,DWORD);
3649 BOOL WINAPI CheckDlgButton(HWND,int,UINT);
3650 DWORD WINAPI CheckMenuItem(HMENU,UINT,UINT);
3651 BOOL WINAPI CheckMenuRadioItem(HMENU,UINT,UINT,UINT,UINT);
3652 BOOL WINAPI CheckRadioButton(HWND,int,int,int);
3653 HWND WINAPI ChildWindowFromPoint(HWND,POINT);
3654 HWND WINAPI ChildWindowFromPointEx(HWND,POINT,UINT);
3655 BOOL WINAPI ClientToScreen(HWND,LPPOINT);
3656 BOOL WINAPI ClipCursor(LPCRECT);
3657 BOOL WINAPI CloseClipboard(void);
3658 BOOL WINAPI CloseDesktop(HDESK);
3659 BOOL WINAPI CloseWindow(HWND);
3660 BOOL WINAPI CloseWindowStation(HWINSTA);
3661 int WINAPI CopyAcceleratorTableA(HACCEL,LPACCEL,int);
3662 int WINAPI CopyAcceleratorTableW(HACCEL,LPACCEL,int);
3663 #define CopyCursor(c) ((HCURSOR)CopyIcon((HICON)(c)))
3664 HICON WINAPI CopyIcon(HICON);
3665 HANDLE WINAPI CopyImage(HANDLE,UINT,int,int,UINT);
3666 BOOL WINAPI CopyRect(LPRECT,LPCRECT);
3667 int WINAPI CountClipboardFormats(void);
3668 HACCEL WINAPI CreateAcceleratorTableA(LPACCEL,int);
3669 HACCEL WINAPI CreateAcceleratorTableW(LPACCEL,int);
3670 BOOL WINAPI CreateCaret(HWND,HBITMAP,int,int);
3671 HCURSOR WINAPI CreateCursor(HINSTANCE,int,int,int,int,PCVOID,PCVOID);
3672 #if defined(_WINGDI_) && !defined(NOGDI)
3673 HDESK WINAPI CreateDesktopA(LPCSTR,LPCSTR,LPDEVMODEA,DWORD,ACCESS_MASK,LPSECURITY_ATTRIBUTES);
3674 HDESK WINAPI CreateDesktopW(LPCWSTR,LPCWSTR,LPDEVMODEW,DWORD,ACCESS_MASK,LPSECURITY_ATTRIBUTES);
3675 #endif
3676 #define CreateDialogA(h,n,w,f) CreateDialogParamA(h,n,w,f,0)
3677 #define CreateDialogW(h,n,w,f) CreateDialogParamW(h,n,w,f,0)
3678 #define CreateDialogIndirectA(h,t,w,f) CreateDialogIndirectParamA(h,t,w,f,0)
3679 #define CreateDialogIndirectW(h,t,w,f) CreateDialogIndirectParamW(h,t,w,f,0)
3680 HWND WINAPI CreateDialogIndirectParamA(HINSTANCE,LPCDLGTEMPLATE,HWND,DLGPROC,LPARAM);
3681 HWND WINAPI CreateDialogIndirectParamW(HINSTANCE,LPCDLGTEMPLATE,HWND,DLGPROC,LPARAM);
3682 HWND WINAPI CreateDialogParamA(HINSTANCE,LPCSTR,HWND,DLGPROC,LPARAM);
3683 HWND WINAPI CreateDialogParamW(HINSTANCE,LPCWSTR,HWND,DLGPROC,LPARAM);
3684 HICON WINAPI CreateIcon(HINSTANCE,int,int,BYTE,BYTE,const BYTE*,const BYTE*);
3685 HICON WINAPI CreateIconFromResource(PBYTE,DWORD,BOOL,DWORD);
3686 HICON WINAPI CreateIconFromResourceEx(PBYTE,DWORD,BOOL,DWORD,int,int,UINT);
3687 HICON WINAPI CreateIconIndirect(PICONINFO);
3688 HWND WINAPI CreateMDIWindowA(LPCSTR,LPCSTR,DWORD,int,int,int,int,HWND,HINSTANCE,LPARAM);
3689 HWND WINAPI CreateMDIWindowW(LPCWSTR,LPCWSTR,DWORD,int,int,int,int,HWND,HINSTANCE,LPARAM);