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