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