po: Add message contexts for 'Desktop' and update Japanese translation.
[wine/multimedia.git] / include / winuser.h
bloba6ff3db980465868244c2bfcb0c25751afda99c3
1 /*
2 * Copyright (C) the Wine project
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #ifndef _WINUSER_
20 #define _WINUSER_
22 #if !defined(_USER32_)
23 #define WINUSERAPI DECLSPEC_IMPORT
24 #else
25 #define WINUSERAPI
26 #endif
28 #ifndef RC_INVOKED
29 #include <stdarg.h>
30 #endif
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
36 /* Define a bunch of callback types */
38 #if defined(STRICT)
39 typedef INT_PTR (CALLBACK *DLGPROC)(HWND,UINT,WPARAM,LPARAM);
40 typedef BOOL (CALLBACK *DRAWSTATEPROC)(HDC,LPARAM,WPARAM,int,int);
41 typedef INT (CALLBACK *EDITWORDBREAKPROCA)(LPSTR,INT,INT,INT);
42 typedef INT (CALLBACK *EDITWORDBREAKPROCW)(LPWSTR,INT,INT,INT);
43 typedef BOOL (CALLBACK *GRAYSTRINGPROC)(HDC,LPARAM,INT);
44 typedef LRESULT (CALLBACK *HOOKPROC)(INT,WPARAM,LPARAM);
45 typedef BOOL (CALLBACK *NAMEENUMPROCA)(LPSTR,LPARAM);
46 typedef BOOL (CALLBACK *NAMEENUMPROCW)(LPWSTR,LPARAM);
47 typedef BOOL (CALLBACK *PROPENUMPROCA)(HWND,LPCSTR,HANDLE);
48 typedef BOOL (CALLBACK *PROPENUMPROCW)(HWND,LPCWSTR,HANDLE);
49 typedef BOOL (CALLBACK *PROPENUMPROCEXA)(HWND,LPSTR,HANDLE,ULONG_PTR);
50 typedef BOOL (CALLBACK *PROPENUMPROCEXW)(HWND,LPWSTR,HANDLE,ULONG_PTR);
51 typedef VOID (CALLBACK *SENDASYNCPROC)(HWND,UINT,ULONG_PTR,LRESULT);
52 typedef VOID (CALLBACK *TIMERPROC)(HWND,UINT,UINT_PTR,DWORD);
53 typedef VOID (CALLBACK *WINEVENTPROC)(HWINEVENTHOOK,DWORD,HWND,LONG,LONG,
54 DWORD,DWORD);
55 typedef BOOL (CALLBACK *WNDENUMPROC)(HWND,LPARAM);
57 #else
58 typedef FARPROC DLGPROC;
59 typedef FARPROC DRAWSTATEPROC;
60 typedef FARPROC EDITWORDBREAKPROCA;
61 typedef FARPROC EDITWORDBREAKPROCW;
62 typedef FARPROC GRAYSTRINGPROC;
63 typedef FARPROC HOOKPROC;
64 typedef FARPROC NAMEENUMPROCA;
65 typedef FARPROC NAMEENUMPROCW;
66 typedef FARPROC PROPENUMPROCA;
67 typedef FARPROC PROPENUMPROCW;
68 typedef FARPROC PROPENUMPROCEXA;
69 typedef FARPROC PROPENUMPROCEXW;
70 typedef FARPROC SENDASYNCPROC;
71 typedef FARPROC TIMERPROC;
72 typedef FARPROC WINEVENTPROC;
73 typedef FARPROC WNDENUMPROC;
74 #endif /* STRICT */
76 typedef NAMEENUMPROCA WINSTAENUMPROCA;
77 typedef NAMEENUMPROCA DESKTOPENUMPROCA;
78 typedef NAMEENUMPROCW WINSTAENUMPROCW;
79 typedef NAMEENUMPROCW DESKTOPENUMPROCW;
81 typedef LRESULT (CALLBACK *WNDPROC)(HWND,UINT,WPARAM,LPARAM);
83 DECL_WINELIB_TYPE_AW(DESKTOPENUMPROC)
84 DECL_WINELIB_TYPE_AW(EDITWORDBREAKPROC)
85 DECL_WINELIB_TYPE_AW(NAMEENUMPROC)
86 DECL_WINELIB_TYPE_AW(PROPENUMPROC)
87 DECL_WINELIB_TYPE_AW(PROPENUMPROCEX)
88 DECL_WINELIB_TYPE_AW(WINSTAENUMPROC)
91 typedef HANDLE HDWP;
93 #define UOI_FLAGS 1
94 #define UOI_NAME 2
95 #define UOI_TYPE 3
96 #define UOI_USER_SID 4
98 #define WSF_VISIBLE 1
99 #define DF_ALLOWOTHERACCOUNTHOOK 1
101 typedef struct tagUSEROBJECTFLAGS {
102 BOOL fInherit;
103 BOOL fReserved;
104 DWORD dwFlags;
105 } USEROBJECTFLAGS, *PUSEROBJECTFLAGS;
107 typedef struct tagBSMINFO {
108 UINT cbSize;
109 HDESK hdesk;
110 HWND hwnd;
111 LUID luid;
112 } BSMINFO, *PBSMINFO;
114 /* Window stations */
115 #define WINSTA_ENUMDESKTOPS 0x0001
116 #define WINSTA_READATTRIBUTES 0x0002
117 #define WINSTA_ACCESSCLIPBOARD 0x0004
118 #define WINSTA_CREATEDESKTOP 0x0008
119 #define WINSTA_WRITEATTRIBUTES 0x0010
120 #define WINSTA_ACCESSGLOBALATOMS 0x0020
121 #define WINSTA_EXITWINDOWS 0x0040
122 #define WINSTA_ENUMERATE 0x0100
123 #define WINSTA_READSCREEN 0x0200
124 #define WINSTA_ALL_ACCESS 0x037f
126 /* Desktops */
127 #define DESKTOP_READOBJECTS 0x0001
128 #define DESKTOP_CREATEWINDOW 0x0002
129 #define DESKTOP_CREATEMENU 0x0004
130 #define DESKTOP_HOOKCONTROL 0x0008
131 #define DESKTOP_JOURNALRECORD 0x0010
132 #define DESKTOP_JOURNALPLAYBACK 0x0020
133 #define DESKTOP_ENUMERATE 0x0040
134 #define DESKTOP_WRITEOBJECTS 0x0080
135 #define DESKTOP_SWITCHDESKTOP 0x0100
138 /* flags for FILTERKEYS dwFlags field */
139 #define FKF_AVAILABLE 0x00000002
140 #define FKF_CLICKON 0x00000040
141 #define FKF_FILTERKEYSON 0x00000001
142 #define FKF_HOTKEYACTIVE 0x00000004
143 #define FKF_HOTKEYSOUND 0x00000010
144 #define FKF_CONFIRMHOTKEY 0x00000008
145 #define FKF_INDICATOR 0x00000020
147 typedef struct tagFILTERKEYS
149 UINT cbSize;
150 DWORD dwFlags;
151 DWORD iWaitMSec;
152 DWORD iDelayMSec;
153 DWORD iRepeatMSec;
154 DWORD iBounceMSec;
155 } FILTERKEYS, *LPFILTERKEYS;
157 /* flags for TOGGLEKEYS dwFlags field */
158 #define TKF_AVAILABLE 0x00000002
159 #define TKF_CONFIRMHOTKEY 0x00000008
160 #define TKF_HOTKEYACTIVE 0x00000004
161 #define TKF_HOTKEYSOUND 0x00000010
162 #define TKF_TOGGLEKEYSON 0x00000001
164 typedef struct tagTOGGLEKEYS
166 DWORD cbSize;
167 DWORD dwFlags;
168 } TOGGLEKEYS, *LPTOGGLEKEYS;
170 /* flags for MOUSEKEYS dwFlags field */
171 #define MKF_AVAILABLE 0x00000002
172 #define MKF_CONFIRMHOTKEY 0x00000008
173 #define MKF_HOTKEYACTIVE 0x00000004
174 #define MKF_HOTKEYSOUND 0x00000010
175 #define MKF_INDICATOR 0x00000020
176 #define MKF_MOUSEKEYSON 0x00000001
177 #define MKF_MODIFIERS 0x00000040
178 #define MKF_REPLACENUMBERS 0x00000080
180 typedef struct tagMOUSEKEYS
182 UINT cbSize;
183 DWORD dwFlags;
184 DWORD iMaxSpeed;
185 DWORD iTimeToMaxSpeed;
186 DWORD iCtrlSpeed;
187 DWORD dwReserved1;
188 DWORD dwReserved2;
189 } MOUSEKEYS, *LPMOUSEKEYS;
191 /* struct and defines for GetMouseMovePointsEx */
192 #define GMMP_USE_DISPLAY_POINTS 1
193 #define GMMP_USE_HIGH_RESOLUTION_POINTS 2
195 typedef struct tagMOUSEMOVEPOINT {
196 int x;
197 int y;
198 DWORD time;
199 ULONG_PTR dwExtraInfo;
200 } MOUSEMOVEPOINT,*PMOUSEMOVEPOINT,*LPMOUSEMOVEPOINT;
202 /* flags for STICKYKEYS dwFlags field */
203 #define SKF_AUDIBLEFEEDBACK 0x00000040
204 #define SKF_AVAILABLE 0x00000002
205 #define SKF_CONFIRMHOTKEY 0x00000008
206 #define SKF_HOTKEYACTIVE 0x00000004
207 #define SKF_HOTKEYSOUND 0x00000010
208 #define SKF_INDICATOR 0x00000020
209 #define SKF_STICKYKEYSON 0x00000001
210 #define SKF_TRISTATE 0x00000080
211 #define SKF_TWOKEYSOFF 0x00000100
213 typedef struct tagSTICKYKEYS
215 DWORD cbSize;
216 DWORD dwFlags;
217 } STICKYKEYS, *LPSTICKYKEYS;
219 /* flags for ACCESSTIMEOUT dwFlags field */
220 #define ATF_ONOFFFEEDBACK 0x00000002
221 #define ATF_AVAILABLE 0x00000004
222 #define ATF_TIMEOUTON 0x00000001
224 typedef struct tagACCESSTIMEOUT
226 UINT cbSize;
227 DWORD dwFlags;
228 DWORD iTimeOutMSec;
229 } ACCESSTIMEOUT, *LPACCESSTIMEOUT;
231 /* flags for SERIALKEYS dwFlags field */
232 #define SERKF_ACTIVE 0x00000008
233 #define SERKF_AVAILABLE 0x00000002
234 #define SERKF_INDICATOR 0x00000004
235 #define SERKF_SERIALKEYSON 0x00000001
237 typedef struct tagSERIALKEYSA
239 UINT cbSize;
240 DWORD dwFlags;
241 LPSTR lpszActivePort;
242 LPSTR lpszPort;
243 UINT iBaudRate;
244 UINT iPortState;
245 UINT iActive;
246 } SERIALKEYSA, *LPSERIALKEYSA;
248 typedef struct tagSERIALKEYSW {
249 UINT cbSize;
250 DWORD dwFlags;
251 LPWSTR lpszActivePort;
252 LPWSTR lpszPort;
253 UINT iBaudRate;
254 UINT iPortState;
255 UINT iActive;
256 } SERIALKEYSW,*LPSERIALKEYSW;
258 DECL_WINELIB_TYPE_AW(SERIALKEYS)
259 DECL_WINELIB_TYPE_AW(LPSERIALKEYS)
261 /* flags for SOUNDSENTRY dwFlags field */
262 #define SSF_AVAILABLE 0x00000002
263 #define SSF_SOUNDSENTRYON 0x00000001
265 #define SSTF_BORDER 0x00000002
266 #define SSTF_CHARS 0x00000001
267 #define SSTF_DISPLAY 0x00000003
268 #define SSTF_NONE 0x00000000
270 #define SSGF_DISPLAY 0x00000003
271 #define SSGF_NONE 0x00000000
273 #define SSWF_DISPLAY 0x00000003
274 #define SSWF_NONE 0x00000000
275 #define SSWF_TITLE 0x00000001
276 #define SSWF_WINDOW 0x00000002
278 typedef struct tagSOUNDSENTRYA
280 UINT cbSize;
281 DWORD dwFlags;
282 DWORD iFSTextEffect;
283 DWORD iFSTextEffectMSec;
284 DWORD iFSTextEffectColorBits;
285 DWORD iFSGrafEffect;
286 DWORD iFSGrafEffectMSec;
287 DWORD iFSGrafEffectColor;
288 DWORD iWindowsEffect;
289 DWORD iWindowsEffectMSec;
290 LPSTR lpszWindowsEffectDLL;
291 DWORD iWindowsEffectOrdinal;
292 } SOUNDSENTRYA, *LPSOUNDSENTRYA;
294 typedef struct tagSOUNDSENTRYW
296 UINT cbSize;
297 DWORD dwFlags;
298 DWORD iFSTextEffect;
299 DWORD iFSTextEffectMSec;
300 DWORD iFSTextEffectColorBits;
301 DWORD iFSGrafEffect;
302 DWORD iFSGrafEffectMSec;
303 DWORD iFSGrafEffectColor;
304 DWORD iWindowsEffect;
305 DWORD iWindowsEffectMSec;
306 LPWSTR lpszWindowsEffectDLL;
307 DWORD iWindowsEffectOrdinal;
308 } SOUNDSENTRYW, *LPSOUNDSENTRYW;
310 DECL_WINELIB_TYPE_AW(SOUNDSENTRY)
311 DECL_WINELIB_TYPE_AW(LPSOUNDSENTRY)
313 /* flags for HIGHCONTRAST dwFlags field */
314 #define HCF_HIGHCONTRASTON 0x00000001
315 #define HCF_AVAILABLE 0x00000002
316 #define HCF_HOTKEYACTIVE 0x00000004
317 #define HCF_CONFIRMHOTKEY 0x00000008
318 #define HCF_HOTKEYSOUND 0x00000010
319 #define HCF_INDICATOR 0x00000020
320 #define HCF_HOTKEYAVAILABLE 0x00000040
322 typedef struct tagHIGHCONTRASTA
324 UINT cbSize;
325 DWORD dwFlags;
326 LPSTR lpszDefaultScheme;
327 } HIGHCONTRASTA, *LPHIGHCONTRASTA;
329 typedef struct tagHIGHCONTRASTW
331 UINT cbSize;
332 DWORD dwFlags;
333 LPWSTR lpszDefaultScheme;
334 } HIGHCONTRASTW, *LPHIGHCONTRASTW;
336 DECL_WINELIB_TYPE_AW(HIGHCONTRAST)
337 DECL_WINELIB_TYPE_AW(LPHIGHCONTRAST)
339 typedef struct tagEVENTMSG
341 UINT message;
342 UINT paramL;
343 UINT paramH;
344 DWORD time;
345 HWND hwnd;
346 } EVENTMSG, *PEVENTMSG, *LPEVENTMSG;
348 /* WH_KEYBOARD_LL structure */
349 typedef struct tagKBDLLHOOKSTRUCT
351 DWORD vkCode;
352 DWORD scanCode;
353 DWORD flags;
354 DWORD time;
355 ULONG_PTR dwExtraInfo;
356 } KBDLLHOOKSTRUCT, *LPKBDLLHOOKSTRUCT, *PKBDLLHOOKSTRUCT;
358 #define LLKHF_EXTENDED (KF_EXTENDED >> 8)
359 #define LLKHF_INJECTED 0x00000010
360 #define LLKHF_ALTDOWN (KF_ALTDOWN >> 8)
361 #define LLKHF_UP (KF_UP >> 8)
363 /* WH_MOUSE_LL structure */
364 typedef struct tagMSLLHOOKSTRUCT
366 POINT pt;
367 DWORD mouseData;
368 DWORD flags;
369 DWORD time;
370 ULONG_PTR dwExtraInfo;
371 } MSLLHOOKSTRUCT, *LPMSLLHOOKSTRUCT, *PMSLLHOOKSTRUCT;
373 #define LLMHF_INJECTED 0x00000001
375 /* Mouse hook structure */
377 typedef struct
379 POINT pt;
380 HWND hwnd;
381 UINT wHitTestCode;
382 ULONG_PTR dwExtraInfo;
383 } MOUSEHOOKSTRUCT, *PMOUSEHOOKSTRUCT, *LPMOUSEHOOKSTRUCT;
386 /* Hardware hook structure */
388 typedef struct
390 HWND hwnd;
391 UINT message;
392 WPARAM wParam;
393 LPARAM lParam;
394 } HARDWAREHOOKSTRUCT, *PHARDWAREHOOKSTRUCT, *LPHARDWAREHOOKSTRUCT;
397 /* Debug hook structure */
399 typedef struct tagDEBUGHOOKINFO
401 DWORD idThread;
402 DWORD idThreadInstaller;
403 LPARAM lParam;
404 WPARAM wParam;
405 INT code;
406 } DEBUGHOOKINFO, *PDEBUGHOOKINFO, *LPDEBUGHOOKINFO;
408 #define HKL_PREV 0
409 #define HKL_NEXT 1
411 #define KLF_ACTIVATE 0x00000001
412 #define KLF_SUBSTITUTE_OK 0x00000002
413 #define KLF_UNLOADPREVIOUS 0x00000004
414 #define KLF_REORDER 0x00000008
415 #define KLF_REPLACELANG 0x00000010
416 #define KLF_NOTELLSHELL 0x00000080
417 #define KLF_SETFORPROCESS 0x00000100
418 #define KLF_SHIFTLOCK 0x00010000
419 #define KLF_RESET 0x40000000
421 #define KL_NAMELENGTH 9
423 typedef struct tagMOUSEINPUT
425 LONG dx;
426 LONG dy;
427 DWORD mouseData;
428 DWORD dwFlags;
429 DWORD time;
430 ULONG_PTR dwExtraInfo;
431 } MOUSEINPUT, *PMOUSEINPUT, *LPMOUSEINPUT;
433 typedef struct tagKEYBDINPUT
435 WORD wVk;
436 WORD wScan;
437 DWORD dwFlags;
438 DWORD time;
439 ULONG_PTR dwExtraInfo;
440 } KEYBDINPUT, *PKEYBDINPUT, *LPKEYBDINPUT;
442 typedef struct tagHARDWAREINPUT
444 DWORD uMsg;
445 WORD wParamL;
446 WORD wParamH;
447 } HARDWAREINPUT, *PHARDWAREINPUT, *LPHARDWAREINPUT;
449 #define INPUT_MOUSE 0
450 #define INPUT_KEYBOARD 1
451 #define INPUT_HARDWARE 2
453 typedef struct tagINPUT
455 DWORD type;
456 union
458 MOUSEINPUT mi;
459 KEYBDINPUT ki;
460 HARDWAREINPUT hi;
461 } DUMMYUNIONNAME;
462 } INPUT, *PINPUT, *LPINPUT;
464 DECLARE_HANDLE(HRAWINPUT);
466 typedef struct tagRAWINPUTDEVICELIST
468 HANDLE hDevice;
469 DWORD dwType;
470 } RAWINPUTDEVICELIST, *PRAWINPUTDEVICELIST;
472 typedef struct tagRAWHID {
473 DWORD dwSizeHid;
474 DWORD dwCount;
475 BYTE bRawData;
476 } RAWHID, *LPRAWHID;
478 typedef struct tagRAWKEYBOARD {
479 USHORT MakeCode;
480 USHORT Flags;
481 USHORT Reserved;
482 USHORT VKey;
483 UINT Message;
484 ULONG ExtraInformation;
485 } RAWKEYBOARD, *PRAWKEYBOARD, *LPRAWKEYBOARD;
487 typedef struct tagRAWMOUSE {
488 USHORT usFlags;
489 union {
490 ULONG ulButtons;
491 struct {
492 USHORT usButtonFlags;
493 USHORT usButtonData;
494 } DUMMYSTRUCTNAME;
495 } DUMMYUNIONNAME;
496 ULONG ulRawButtons;
497 LONG lLastX;
498 LONG lLastY;
499 ULONG ulExtraInformation;
500 } RAWMOUSE, *PRAWMOUSE, *LPRAWMOUSE;
502 typedef struct tagRAWINPUTHEADER {
503 DWORD dwType;
504 DWORD dwSize;
505 HANDLE hDevice;
506 WPARAM wParam;
507 } RAWINPUTHEADER, *PRAWINPUTHEADER;
509 typedef struct tagRAWINPUT {
510 RAWINPUTHEADER header;
511 union {
512 RAWMOUSE mouse;
513 RAWKEYBOARD keyboard;
514 RAWHID hid;
515 } data;
516 } RAWINPUT, *PRAWINPUT, *LPRAWINPUT;
518 typedef struct tagRAWINPUTDEVICE {
519 USHORT usUsagePage;
520 USHORT usUsage;
521 DWORD dwFlags;
522 HWND hwndTarget;
523 } RAWINPUTDEVICE, *PRAWINPUTDEVICE, *LPRAWINPUTDEVICE;
525 typedef struct tagRID_DEVICE_INFO_MOUSE {
526 DWORD dwId;
527 DWORD dwNumberOfButtons;
528 DWORD dwSampleRate;
529 BOOL fHasHorizontalWheel;
530 } RID_DEVICE_INFO_MOUSE, *PRID_DEVICE_INFO_MOUSE;
532 typedef struct tagRID_DEVICE_INFO_KEYBOARD {
533 DWORD dwType;
534 DWORD dwSubType;
535 DWORD dwKeyboardMode;
536 DWORD dwNumberOfFunctionKeys;
537 DWORD dwNumberOfIndicators;
538 DWORD dwNumberOfKeysTotal;
539 } RID_DEVICE_INFO_KEYBOARD, *PRID_DEVICE_INFO_KEYBOARD;
541 typedef struct tagRID_DEVICE_INFO_HID {
542 DWORD dwVendorId;
543 DWORD dwProductId;
544 DWORD dwVersionNumber;
545 USHORT usUsagePage;
546 USHORT usUsage;
547 } RID_DEVICE_INFO_HID, *PRID_DEVICE_INFO_HID;
549 typedef struct tagRID_DEVICE_INFO {
550 DWORD cbSize;
551 DWORD dwType;
552 union {
553 RID_DEVICE_INFO_MOUSE mouse;
554 RID_DEVICE_INFO_KEYBOARD keyboard;
555 RID_DEVICE_INFO_HID hid;
556 } DUMMYUNIONNAME;
557 } RID_DEVICE_INFO, *PRID_DEVICE_INFO, *LPRID_DEVICE_INFO;
559 #define GET_RAWINPUT_CODE_WPARAM(wParam) ((wParam) & 0xff)
561 #define RIM_INPUT 0
562 #define RIM_INPUTSINK 1
564 #define RIM_TYPEMOUSE 0
565 #define RIM_TYPEKEYBOARD 1
566 #define RIM_TYPEHID 2
568 #define RI_MOUSE_LEFT_BUTTON_DOWN 0x0001
569 #define RI_MOUSE_LEFT_BUTTON_UP 0x0002
570 #define RI_MOUSE_RIGHT_BUTTON_DOWN 0x0004
571 #define RI_MOUSE_RIGHT_BUTTON_UP 0x0008
572 #define RI_MOUSE_MIDDLE_BUTTON_DOWN 0x0010
573 #define RI_MOUSE_MIDDLE_BUTTON_UP 0x0020
575 #define RI_MOUSE_BUTTON_1_DOWN RI_MOUSE_LEFT_BUTTON_DOWN
576 #define RI_MOUSE_BUTTON_1_UP RI_MOUSE_LEFT_BUTTON_UP
577 #define RI_MOUSE_BUTTON_2_DOWN RI_MOUSE_RIGHT_BUTTON_DOWN
578 #define RI_MOUSE_BUTTON_2_UP RI_MOUSE_RIGHT_BUTTON_UP
579 #define RI_MOUSE_BUTTON_3_DOWN RI_MOUSE_MIDDLE_BUTTON_DOWN
580 #define RI_MOUSE_BUTTON_3_UP RI_MOUSE_MIDDLE_BUTTON_UP
582 #define RI_MOUSE_BUTTON_4_DOWN 0x0040
583 #define RI_MOUSE_BUTTON_4_UP 0x0080
584 #define RI_MOUSE_BUTTON_5_DOWN 0x0100
585 #define RI_MOUSE_BUTTON_5_UP 0x0200
586 #define RI_MOUSE_WHEEL 0x0400
587 #define RI_MOUSE_HORIZONTAL_WHEEL 0x0800
589 #define MOUSE_MOVE_RELATIVE 0x00
590 #define MOUSE_MOVE_ABSOLUTE 0x01
591 #define MOUSE_VIRTUAL_DESKTOP 0x02
592 #define MOUSE_ATTRIBUTES_CHANGED 0x04
593 #define MOUSE_MOVE_NOCOALESCE 0x08
595 #define KEYBOARD_OVERRUN_MAKE_CODE 0xFF
597 #define RI_KEY_MAKE 0x00
598 #define RI_KEY_BREAK 0x01
599 #define RI_KEY_E0 0x02
600 #define RI_KEY_E1 0x04
601 #define RI_KEY_TERMSRV_SET_LED 0x08
602 #define RI_KEY_TERMSRV_SHADOW 0x10
604 #define RAWINPUT_ALIGN(x) (((x) + sizeof(DWORD_PTR) - 1) & ~(sizeof(DWORD_PTR) - 1))
605 #define NEXTRAWINPUTBLOCK(ptr) ((PRAWINPUT)RAWINPUT_ALIGN((ULONG_PTR)((PBYTE)(ptr) + (ptr)->header.dwSize)))
607 #define RID_INPUT 0x10000003
608 #define RID_HEADER 0x10000005
610 #define RIDI_PREPARSEDDATA 0x20000005
611 #define RIDI_DEVICENAME 0x20000007
612 #define RIDI_DEVICEINFO 0x2000000b
614 #define RIDEV_REMOVE 0x00000001
615 #define RIDEV_EXCLUDE 0x00000010
616 #define RIDEV_PAGEONLY 0x00000020
617 #define RIDEV_NOLEGACY 0x00000030
618 #define RIDEV_INPUTSINK 0x00000100
619 #define RIDEV_CAPTUREMOUSE 0x00000200
620 #define RIDEV_NOHOTKEYS 0x00000200
621 #define RIDEV_APPKEYS 0x00000400
622 #define RIDEV_EXINPUTSINK 0x00001000
623 #define RIDEV_DEVNOTIFY 0x00002000
624 #define RIDEV_EXMODEMASK 0x000000F0
626 #define RIDEV_EXMODE(mode) ((mode) & RIDEV_EXMODEMASK)
628 #define GIDC_ARRIVAL 1
629 #define GIDC_REMOVAL 2
631 #if (_WIN32_WINNT >= 0x0601)
632 #define GET_DEVICE_CHANGE_WPARAM(wParam) (LOWORD(wParam))
633 #elif (_WIN32_WINNT >= 0x0501)
634 #define GET_DEVICE_CHANGE_LPARAM(lParam) (LOWORD(lParam))
635 #endif
637 typedef struct tagGUITHREADINFO
639 DWORD cbSize;
640 DWORD flags;
641 HWND hwndActive;
642 HWND hwndFocus;
643 HWND hwndCapture;
644 HWND hwndMenuOwner;
645 HWND hwndMoveSize;
646 HWND hwndCaret;
647 RECT rcCaret;
648 } GUITHREADINFO, *PGUITHREADINFO, *LPGUITHREADINFO;
650 #define GUI_CARETBLINKING 0x00000001
651 #define GUI_INMOVESIZE 0x00000002
652 #define GUI_INMENUMODE 0x00000004
653 #define GUI_SYSTEMMENUMODE 0x00000008
654 #define GUI_POPUPMENUMODE 0x00000010
655 #define GUI_16BITTASK 0x00000020
658 /***** Dialogs *****/
660 /* Gcc on Solaris has a version of this that we don't care about */
661 #undef FSHIFT
663 #define FVIRTKEY TRUE /* Assumed to be == TRUE */
664 #define FNOINVERT 0x02
665 #define FSHIFT 0x04
666 #define FCONTROL 0x08
667 #define FALT 0x10
670 typedef struct tagANIMATIONINFO
672 UINT cbSize;
673 INT iMinAnimate;
674 } ANIMATIONINFO, *LPANIMATIONINFO;
676 typedef struct tagNMHDR
678 HWND hwndFrom;
679 UINT_PTR idFrom;
680 UINT code;
681 } NMHDR, *LPNMHDR;
683 typedef struct tagDRAWTEXTPARAMS
685 UINT cbSize;
686 INT iTabLength;
687 INT iLeftMargin;
688 INT iRightMargin;
689 UINT uiLengthDrawn;
690 } DRAWTEXTPARAMS,*LPDRAWTEXTPARAMS;
692 #define WM_USER 0x0400
694 typedef struct
696 LPARAM lParam;
697 WPARAM wParam;
698 UINT message;
699 HWND hwnd;
700 } CWPSTRUCT, *PCWPSTRUCT, *LPCWPSTRUCT;
702 typedef struct
704 LRESULT lResult;
705 LPARAM lParam;
706 WPARAM wParam;
707 DWORD message;
708 HWND hwnd;
709 } CWPRETSTRUCT, *PCWPRETSTRUCT, *LPCWPRETSTRUCT;
711 typedef struct tagWINDOWPLACEMENT
713 UINT length;
714 UINT flags;
715 UINT showCmd;
716 POINT ptMinPosition;
717 POINT ptMaxPosition;
718 RECT rcNormalPosition;
719 } WINDOWPLACEMENT, *PWINDOWPLACEMENT, *LPWINDOWPLACEMENT;
722 /* WINDOWPLACEMENT flags */
723 #define WPF_SETMINPOSITION 0x0001
724 #define WPF_RESTORETOMAXIMIZED 0x0002
726 /***** Dialogs *****/
728 #define IS_INTRESOURCE(x) (((ULONG_PTR)(x) >> 16) == 0)
729 #define MAKEINTRESOURCEA(i) (LPSTR)((ULONG_PTR)((WORD)(i)))
730 #define MAKEINTRESOURCEW(i) (LPWSTR)((ULONG_PTR)((WORD)(i)))
732 #ifdef WINE_NO_UNICODE_MACROS /* force using a cast */
733 #define MAKEINTRESOURCE(i) ((ULONG_PTR)((WORD)(i)))
734 #else
735 #define MAKEINTRESOURCE WINELIB_NAME_AW(MAKEINTRESOURCE)
736 #endif
738 /* Predefined resource types */
739 #define RT_CURSOR MAKEINTRESOURCE(1)
740 #define RT_BITMAP MAKEINTRESOURCE(2)
741 #define RT_ICON MAKEINTRESOURCE(3)
742 #define RT_MENU MAKEINTRESOURCE(4)
743 #define RT_DIALOG MAKEINTRESOURCE(5)
744 #define RT_STRING MAKEINTRESOURCE(6)
745 #define RT_FONTDIR MAKEINTRESOURCE(7)
746 #define RT_FONT MAKEINTRESOURCE(8)
747 #define RT_ACCELERATOR MAKEINTRESOURCE(9)
748 #define RT_RCDATA MAKEINTRESOURCE(10)
749 #define RT_MESSAGETABLE MAKEINTRESOURCE(11)
750 #define RT_GROUP_CURSOR MAKEINTRESOURCE(12)
751 #define RT_GROUP_ICON MAKEINTRESOURCE(14)
752 #define RT_VERSION MAKEINTRESOURCE(16)
753 #define RT_DLGINCLUDE MAKEINTRESOURCE(17)
754 #define RT_PLUGPLAY MAKEINTRESOURCE(19)
755 #define RT_VXD MAKEINTRESOURCE(20)
756 #define RT_ANICURSOR MAKEINTRESOURCE(21)
757 #define RT_ANIICON MAKEINTRESOURCE(22)
758 #define RT_HTML MAKEINTRESOURCE(23)
760 #ifndef RC_INVOKED
761 #define RT_MANIFEST MAKEINTRESOURCE(24)
762 #define CREATEPROCESS_MANIFEST_RESOURCE_ID MAKEINTRESOURCE(1)
763 #define ISOLATIONAWARE_MANIFEST_RESOURCE_ID MAKEINTRESOURCE(2)
764 #define ISOLATIONAWARE_NOSTATICIMPORT_MANIFEST_RESOURCE_ID MAKEINTRESOURCE(3)
765 #define MINIMUM_RESERVED_MANIFEST_RESOURCE_ID MAKEINTRESOURCE(1)
766 #define MAXIMUM_RESERVED_MANIFEST_RESOURCE_ID MAKEINTRESOURCE(16)
767 #else
768 #define RT_MANIFEST 24
769 #define CREATEPROCESS_MANIFEST_RESOURCE_ID 1
770 #define ISOLATIONAWARE_MANIFEST_RESOURCE_ID 2
771 #define ISOLATIONAWARE_NOSTATICIMPORT_MANIFEST_RESOURCE_ID 3
772 #define MINIMUM_RESERVED_MANIFEST_RESOURCE_ID 1
773 #define MAXIMUM_RESERVED_MANIFEST_RESOURCE_ID 16
774 #endif
776 /* cbWndExtra bytes for dialog class */
777 #define DLGWINDOWEXTRA 30
779 /* Button control styles */
780 #define BS_PUSHBUTTON 0x00000000L
781 #define BS_DEFPUSHBUTTON 0x00000001L
782 #define BS_CHECKBOX 0x00000002L
783 #define BS_AUTOCHECKBOX 0x00000003L
784 #define BS_RADIOBUTTON 0x00000004L
785 #define BS_3STATE 0x00000005L
786 #define BS_AUTO3STATE 0x00000006L
787 #define BS_GROUPBOX 0x00000007L
788 #define BS_USERBUTTON 0x00000008L
789 #define BS_AUTORADIOBUTTON 0x00000009L
790 #define BS_PUSHBOX 0x0000000AL
791 #define BS_OWNERDRAW 0x0000000BL
792 #define BS_TYPEMASK 0x0000000FL
793 #define BS_LEFTTEXT 0x00000020L
794 #define BS_RIGHTBUTTON BS_LEFTTEXT
796 #define BS_TEXT 0x00000000L
797 #define BS_ICON 0x00000040L
798 #define BS_BITMAP 0x00000080L
799 #define BS_LEFT 0x00000100L
800 #define BS_RIGHT 0x00000200L
801 #define BS_CENTER 0x00000300L
802 #define BS_TOP 0x00000400L
803 #define BS_BOTTOM 0x00000800L
804 #define BS_VCENTER 0x00000C00L
805 #define BS_PUSHLIKE 0x00001000L
806 #define BS_MULTILINE 0x00002000L
807 #define BS_NOTIFY 0x00004000L
808 #define BS_FLAT 0x00008000L
810 /* Dialog styles */
811 #define DS_ABSALIGN 0x0001
812 #define DS_SYSMODAL 0x0002
813 #define DS_3DLOOK 0x0004 /* win95 */
814 #define DS_FIXEDSYS 0x0008 /* win95 */
815 #define DS_NOFAILCREATE 0x0010 /* win95 */
816 #define DS_LOCALEDIT 0x0020
817 #define DS_SETFONT 0x0040
818 #define DS_MODALFRAME 0x0080
819 #define DS_NOIDLEMSG 0x0100
820 #define DS_SETFOREGROUND 0x0200 /* win95 */
821 #define DS_CONTROL 0x0400 /* win95 */
822 #define DS_CENTER 0x0800 /* win95 */
823 #define DS_CENTERMOUSE 0x1000 /* win95 */
824 #define DS_CONTEXTHELP 0x2000 /* win95 */
825 #define DS_USEPIXELS 0x8000
826 #define DS_SHELLFONT (DS_SETFONT | DS_FIXEDSYS)
829 /* Dialog messages */
830 #define DM_GETDEFID (WM_USER+0)
831 #define DM_SETDEFID (WM_USER+1)
832 #define DM_REPOSITION (WM_USER+2)
834 #define DC_HASDEFID 0x534b
836 /* Bit flags for DRAWITEMSTRUCT.CtlType */
837 #define ODT_MENU 1
838 #define ODT_LISTBOX 2
839 #define ODT_COMBOBOX 3
840 #define ODT_BUTTON 4
841 #define ODT_STATIC 5
843 /* Bit flags for DRAWITEMSTRUCT.itemAction */
844 #define ODA_DRAWENTIRE 0x1
845 #define ODA_SELECT 0x2
846 #define ODA_FOCUS 0x4
848 /* Bit flags for DRAWITEMSTRUCT.itemState */
849 #define ODS_SELECTED 0x0001 /* Selected */
850 #define ODS_GRAYED 0x0002 /* Grayed (Menus only) */
851 #define ODS_DISABLED 0x0004 /* Disabled */
852 #define ODS_CHECKED 0x0008 /* Checked (Menus only) */
853 #define ODS_FOCUS 0x0010 /* Has focus */
854 #define ODS_DEFAULT 0x0020 /* Default */
855 #define ODS_HOTLIGHT 0x0040 /* Highlighted when under mouse */
856 #define ODS_INACTIVE 0x0080 /* Inactive */
857 #define ODS_NOACCEL 0x0100 /* No keyboard accelerator */
858 #define ODS_NOFOCUSRECT 0x0200 /* No focus rectangle */
859 #define ODS_COMBOBOXEDIT 0x1000 /* Edit of a combo box */
861 /* Edit control styles */
862 #ifndef NOWINSTYLES
863 #define ES_LEFT 0x00000000
864 #define ES_CENTER 0x00000001
865 #define ES_RIGHT 0x00000002
866 #define ES_MULTILINE 0x00000004
867 #define ES_UPPERCASE 0x00000008
868 #define ES_LOWERCASE 0x00000010
869 #define ES_PASSWORD 0x00000020
870 #define ES_AUTOVSCROLL 0x00000040
871 #define ES_AUTOHSCROLL 0x00000080
872 #define ES_NOHIDESEL 0x00000100
873 #define ES_COMBO 0x00000200 /* Undocumented. Parent is a combobox */
874 #define ES_OEMCONVERT 0x00000400
875 #define ES_READONLY 0x00000800
876 #define ES_WANTRETURN 0x00001000
877 #define ES_NUMBER 0x00002000
878 #endif /* NOWINSTYLES */
880 /* OEM Resource Ordinal Numbers */
881 #ifdef OEMRESOURCE
882 #define OBM_TRTYPE 32732
883 #define OBM_LFARROWI 32734
884 #define OBM_RGARROWI 32735
885 #define OBM_DNARROWI 32736
886 #define OBM_UPARROWI 32737
887 #define OBM_COMBO 32738
888 #define OBM_MNARROW 32739
889 #define OBM_LFARROWD 32740
890 #define OBM_RGARROWD 32741
891 #define OBM_DNARROWD 32742
892 #define OBM_UPARROWD 32743
893 #define OBM_RESTORED 32744
894 #define OBM_ZOOMD 32745
895 #define OBM_REDUCED 32746
896 #define OBM_RESTORE 32747
897 #define OBM_ZOOM 32748
898 #define OBM_REDUCE 32749
899 #define OBM_LFARROW 32750
900 #define OBM_RGARROW 32751
901 #define OBM_DNARROW 32752
902 #define OBM_UPARROW 32753
903 #define OBM_CLOSE 32754
904 #define OBM_OLD_RESTORE 32755
905 #define OBM_OLD_ZOOM 32756
906 #define OBM_OLD_REDUCE 32757
907 #define OBM_BTNCORNERS 32758
908 #define OBM_CHECKBOXES 32759
909 #define OBM_CHECK 32760
910 #define OBM_BTSIZE 32761
911 #define OBM_OLD_LFARROW 32762
912 #define OBM_OLD_RGARROW 32763
913 #define OBM_OLD_DNARROW 32764
914 #define OBM_OLD_UPARROW 32765
915 #define OBM_SIZE 32766
916 #define OBM_OLD_CLOSE 32767
918 #define OCR_NORMAL 32512
919 #define OCR_IBEAM 32513
920 #define OCR_WAIT 32514
921 #define OCR_CROSS 32515
922 #define OCR_UP 32516
923 #define OCR_SIZE 32640
924 #define OCR_ICON 32641
925 #define OCR_SIZENWSE 32642
926 #define OCR_SIZENESW 32643
927 #define OCR_SIZEWE 32644
928 #define OCR_SIZENS 32645
929 #define OCR_SIZEALL 32646
930 #define OCR_ICOCUR 32647
931 #define OCR_NO 32648
932 #define OCR_HAND 32649
933 #define OCR_APPSTARTING 32650
934 #define OCR_HELP 32651
936 /* only defined in wine (FIXME) */
937 #define OCR_DRAGOBJECT 32653
939 #define OIC_SAMPLE 32512
940 #define OIC_HAND 32513
941 #define OIC_QUES 32514
942 #define OIC_BANG 32515
943 #define OIC_NOTE 32516
944 #define OIC_WINLOGO 32517
945 #define OIC_WARNING OIC_BANG
946 #define OIC_ERROR OIC_HAND
947 #define OIC_INFORMATION OIC_NOTE
948 #endif /* OEMRESOURCE */
950 #ifndef NOCOLOR
952 #define COLOR_SCROLLBAR 0
953 #define COLOR_BACKGROUND 1
954 #define COLOR_ACTIVECAPTION 2
955 #define COLOR_INACTIVECAPTION 3
956 #define COLOR_MENU 4
957 #define COLOR_WINDOW 5
958 #define COLOR_WINDOWFRAME 6
959 #define COLOR_MENUTEXT 7
960 #define COLOR_WINDOWTEXT 8
961 #define COLOR_CAPTIONTEXT 9
962 #define COLOR_ACTIVEBORDER 10
963 #define COLOR_INACTIVEBORDER 11
964 #define COLOR_APPWORKSPACE 12
965 #define COLOR_HIGHLIGHT 13
966 #define COLOR_HIGHLIGHTTEXT 14
967 #define COLOR_BTNFACE 15
968 #define COLOR_BTNSHADOW 16
969 #define COLOR_GRAYTEXT 17
970 #define COLOR_BTNTEXT 18
971 #define COLOR_INACTIVECAPTIONTEXT 19
972 #define COLOR_BTNHIGHLIGHT 20
973 /* win95 colors */
974 #define COLOR_3DDKSHADOW 21
975 #define COLOR_3DLIGHT 22
976 #define COLOR_INFOTEXT 23
977 #define COLOR_INFOBK 24
978 #define COLOR_DESKTOP COLOR_BACKGROUND
979 #define COLOR_3DFACE COLOR_BTNFACE
980 #define COLOR_3DSHADOW COLOR_BTNSHADOW
981 #define COLOR_3DHIGHLIGHT COLOR_BTNHIGHLIGHT
982 #define COLOR_3DHILIGHT COLOR_BTNHIGHLIGHT
983 #define COLOR_BTNHILIGHT COLOR_BTNHIGHLIGHT
984 /* win98 colors */
985 #define COLOR_ALTERNATEBTNFACE 25 /* undocumented, constant's name unknown */
986 #define COLOR_HOTLIGHT 26
987 #define COLOR_GRADIENTACTIVECAPTION 27
988 #define COLOR_GRADIENTINACTIVECAPTION 28
989 /* win2k/xp colors */
990 #define COLOR_MENUHILIGHT 29
991 #define COLOR_MENUBAR 30
993 /* WM_CTLCOLOR values */
994 #define CTLCOLOR_MSGBOX 0
995 #define CTLCOLOR_EDIT 1
996 #define CTLCOLOR_LISTBOX 2
997 #define CTLCOLOR_BTN 3
998 #define CTLCOLOR_DLG 4
999 #define CTLCOLOR_SCROLLBAR 5
1000 #define CTLCOLOR_STATIC 6
1002 WINUSERAPI COLORREF WINAPI GetSysColor(INT);
1003 WINUSERAPI BOOL WINAPI SetSysColors(INT,const INT*,const COLORREF*);
1005 #endif /* NOCOLOR */
1007 /* Edit control messages */
1008 #define EM_GETSEL 0x00b0
1009 #define EM_SETSEL 0x00b1
1010 #define EM_GETRECT 0x00b2
1011 #define EM_SETRECT 0x00b3
1012 #define EM_SETRECTNP 0x00b4
1013 #define EM_SCROLL 0x00b5
1014 #define EM_LINESCROLL 0x00b6
1015 #define EM_SCROLLCARET 0x00b7
1016 #define EM_GETMODIFY 0x00b8
1017 #define EM_SETMODIFY 0x00b9
1018 #define EM_GETLINECOUNT 0x00ba
1019 #define EM_LINEINDEX 0x00bb
1020 #define EM_SETHANDLE 0x00bc
1021 #define EM_GETHANDLE 0x00bd
1022 #define EM_GETTHUMB 0x00be
1023 /* FIXME : missing from specs 0x00bf and 0x00c0 */
1024 #define EM_LINELENGTH 0x00c1
1025 #define EM_REPLACESEL 0x00c2
1026 /* FIXME : missing from specs 0x00c3 */
1027 #define EM_GETLINE 0x00c4
1028 #define EM_LIMITTEXT 0x00c5
1029 #define EM_CANUNDO 0x00c6
1030 #define EM_UNDO 0x00c7
1031 #define EM_FMTLINES 0x00c8
1032 #define EM_LINEFROMCHAR 0x00c9
1033 /* FIXME : missing from specs 0x00ca */
1034 #define EM_SETTABSTOPS 0x00cb
1035 #define EM_SETPASSWORDCHAR 0x00cc
1036 #define EM_EMPTYUNDOBUFFER 0x00cd
1037 #define EM_GETFIRSTVISIBLELINE 0x00ce
1038 #define EM_SETREADONLY 0x00cf
1039 #define EM_SETWORDBREAKPROC 0x00d0
1040 #define EM_GETWORDBREAKPROC 0x00d1
1041 #define EM_GETPASSWORDCHAR 0x00d2
1042 #define EM_SETMARGINS 0x00d3
1043 #define EM_GETMARGINS 0x00d4
1044 #define EM_GETLIMITTEXT 0x00d5
1045 #define EM_POSFROMCHAR 0x00d6
1046 #define EM_CHARFROMPOS 0x00d7
1047 #define EM_SETIMESTATUS 0x00d8
1048 #define EM_GETIMESTATUS 0x00d9
1049 /* a name change since win95 */
1050 #define EM_SETLIMITTEXT EM_LIMITTEXT
1052 /* IMESTATUS type */
1053 #define EMSIS_COMPOSITIONSTRING 1
1055 /* IMESTATUS type specific data */
1056 #define EIMES_GETCOMPSTRATONCE 0x0001
1057 #define EIMES_CANCELCOMPSTRINFOCUS 0x0002
1058 #define EIMES_COMPLETECOMPSTRKILLFOCUS 0x0004
1060 /* EDITWORDBREAKPROC code values */
1061 #define WB_LEFT 0
1062 #define WB_RIGHT 1
1063 #define WB_ISDELIMITER 2
1065 /* Edit control notification codes */
1066 #define EN_SETFOCUS 0x0100
1067 #define EN_KILLFOCUS 0x0200
1068 #define EN_CHANGE 0x0300
1069 #define EN_UPDATE 0x0400
1070 #define EN_ERRSPACE 0x0500
1071 #define EN_MAXTEXT 0x0501
1072 #define EN_HSCROLL 0x0601
1073 #define EN_VSCROLL 0x0602
1075 /* New since win95 : EM_SETMARGIN parameters */
1076 #define EC_LEFTMARGIN 0x0001
1077 #define EC_RIGHTMARGIN 0x0002
1078 #define EC_USEFONTINFO 0xffff
1081 /* GetSystemMetrics() codes */
1082 #define SM_CXSCREEN 0
1083 #define SM_CYSCREEN 1
1084 #define SM_CXVSCROLL 2
1085 #define SM_CYHSCROLL 3
1086 #define SM_CYCAPTION 4
1087 #define SM_CXBORDER 5
1088 #define SM_CYBORDER 6
1089 #define SM_CXDLGFRAME 7
1090 #define SM_CYDLGFRAME 8
1091 #define SM_CYVTHUMB 9
1092 #define SM_CXHTHUMB 10
1093 #define SM_CXICON 11
1094 #define SM_CYICON 12
1095 #define SM_CXCURSOR 13
1096 #define SM_CYCURSOR 14
1097 #define SM_CYMENU 15
1098 #define SM_CXFULLSCREEN 16
1099 #define SM_CYFULLSCREEN 17
1100 #define SM_CYKANJIWINDOW 18
1101 #define SM_MOUSEPRESENT 19
1102 #define SM_CYVSCROLL 20
1103 #define SM_CXHSCROLL 21
1104 #define SM_DEBUG 22
1105 #define SM_SWAPBUTTON 23
1106 #define SM_RESERVED1 24
1107 #define SM_RESERVED2 25
1108 #define SM_RESERVED3 26
1109 #define SM_RESERVED4 27
1110 #define SM_CXMIN 28
1111 #define SM_CYMIN 29
1112 #define SM_CXSIZE 30
1113 #define SM_CYSIZE 31
1114 #define SM_CXFRAME 32
1115 #define SM_CYFRAME 33
1116 #define SM_CXMINTRACK 34
1117 #define SM_CYMINTRACK 35
1118 #define SM_CXDOUBLECLK 36
1119 #define SM_CYDOUBLECLK 37
1120 #define SM_CXICONSPACING 38
1121 #define SM_CYICONSPACING 39
1122 #define SM_MENUDROPALIGNMENT 40
1123 #define SM_PENWINDOWS 41
1124 #define SM_DBCSENABLED 42
1125 #define SM_CMOUSEBUTTONS 43
1126 #define SM_CXFIXEDFRAME SM_CXDLGFRAME
1127 #define SM_CYFIXEDFRAME SM_CYDLGFRAME
1128 #define SM_CXSIZEFRAME SM_CXFRAME
1129 #define SM_CYSIZEFRAME SM_CYFRAME
1130 #define SM_SECURE 44
1131 #define SM_CXEDGE 45
1132 #define SM_CYEDGE 46
1133 #define SM_CXMINSPACING 47
1134 #define SM_CYMINSPACING 48
1135 #define SM_CXSMICON 49
1136 #define SM_CYSMICON 50
1137 #define SM_CYSMCAPTION 51
1138 #define SM_CXSMSIZE 52
1139 #define SM_CYSMSIZE 53
1140 #define SM_CXMENUSIZE 54
1141 #define SM_CYMENUSIZE 55
1142 #define SM_ARRANGE 56
1143 #define SM_CXMINIMIZED 57
1144 #define SM_CYMINIMIZED 58
1145 #define SM_CXMAXTRACK 59
1146 #define SM_CYMAXTRACK 60
1147 #define SM_CXMAXIMIZED 61
1148 #define SM_CYMAXIMIZED 62
1149 #define SM_NETWORK 63
1150 #define SM_CLEANBOOT 67
1151 #define SM_CXDRAG 68
1152 #define SM_CYDRAG 69
1153 #define SM_SHOWSOUNDS 70
1154 #define SM_CXMENUCHECK 71
1155 #define SM_CYMENUCHECK 72
1156 #define SM_SLOWMACHINE 73
1157 #define SM_MIDEASTENABLED 74
1158 #define SM_MOUSEWHEELPRESENT 75
1159 #define SM_XVIRTUALSCREEN 76
1160 #define SM_YVIRTUALSCREEN 77
1161 #define SM_CXVIRTUALSCREEN 78
1162 #define SM_CYVIRTUALSCREEN 79
1163 #define SM_CMONITORS 80
1164 #define SM_SAMEDISPLAYFORMAT 81
1165 #define SM_IMMENABLED 82
1166 #define SM_CXFOCUSBORDER 83
1167 #define SM_CYFOCUSBORDER 84
1168 #define SM_TABLETPC 86
1169 #define SM_MEDIACENTER 87
1170 #define SM_STARTER 88
1171 #define SM_SERVERR2 89
1172 #define SM_CMETRICS 90
1173 #define SM_MOUSEHORIZONTALWHEELPRESENT 91
1175 #define SM_REMOTESESSION 0x1000
1176 #define SM_SHUTTINGDOWN 0x2000
1177 #define SM_REMOTECONTROL 0x2001
1178 #define SM_CARETBLINKINGENABLED 0x2002
1180 #define PMB_ACTIVE 0x00000001
1182 /* Messages */
1183 #define WM_NULL 0x0000
1184 #define WM_CREATE 0x0001
1185 #define WM_DESTROY 0x0002
1186 #define WM_MOVE 0x0003
1187 #define WM_SIZEWAIT 0x0004
1188 #define WM_SIZE 0x0005
1189 #define WM_ACTIVATE 0x0006
1190 #define WM_SETFOCUS 0x0007
1191 #define WM_KILLFOCUS 0x0008
1192 #define WM_SETVISIBLE 0x0009
1193 #define WM_ENABLE 0x000a
1194 #define WM_SETREDRAW 0x000b
1195 #define WM_SETTEXT 0x000c
1196 #define WM_GETTEXT 0x000d
1197 #define WM_GETTEXTLENGTH 0x000e
1198 #define WM_PAINT 0x000f
1199 #define WM_CLOSE 0x0010
1200 #define WM_QUERYENDSESSION 0x0011
1201 #define WM_QUIT 0x0012
1202 #define WM_QUERYOPEN 0x0013
1203 #define WM_ERASEBKGND 0x0014
1204 #define WM_SYSCOLORCHANGE 0x0015
1205 #define WM_ENDSESSION 0x0016
1206 #define WM_SYSTEMERROR 0x0017
1207 #define WM_SHOWWINDOW 0x0018
1208 #define WM_CTLCOLOR 0x0019
1209 #define WM_WININICHANGE 0x001a
1210 #define WM_SETTINGCHANGE WM_WININICHANGE
1211 #define WM_DEVMODECHANGE 0x001b
1212 #define WM_ACTIVATEAPP 0x001c
1213 #define WM_FONTCHANGE 0x001d
1214 #define WM_TIMECHANGE 0x001e
1215 #define WM_CANCELMODE 0x001f
1216 #define WM_SETCURSOR 0x0020
1217 #define WM_MOUSEACTIVATE 0x0021
1218 #define WM_CHILDACTIVATE 0x0022
1219 #define WM_QUEUESYNC 0x0023
1220 #define WM_GETMINMAXINFO 0x0024
1222 #define WM_PAINTICON 0x0026
1223 #define WM_ICONERASEBKGND 0x0027
1224 #define WM_NEXTDLGCTL 0x0028
1225 #define WM_ALTTABACTIVE 0x0029
1226 #define WM_SPOOLERSTATUS 0x002a
1227 #define WM_DRAWITEM 0x002b
1228 #define WM_MEASUREITEM 0x002c
1229 #define WM_DELETEITEM 0x002d
1230 #define WM_VKEYTOITEM 0x002e
1231 #define WM_CHARTOITEM 0x002f
1232 #define WM_SETFONT 0x0030
1233 #define WM_GETFONT 0x0031
1234 #define WM_SETHOTKEY 0x0032
1235 #define WM_GETHOTKEY 0x0033
1236 #define WM_FILESYSCHANGE 0x0034
1237 #define WM_ISACTIVEICON 0x0035
1238 #define WM_QUERYPARKICON 0x0036
1239 #define WM_QUERYDRAGICON 0x0037
1240 #define WM_QUERYSAVESTATE 0x0038
1241 #define WM_COMPAREITEM 0x0039
1242 #define WM_TESTING 0x003a
1244 #define WM_GETOBJECT 0x003d
1246 #define WM_ACTIVATESHELLWINDOW 0x003e
1248 #define WM_COMPACTING 0x0041
1250 #define WM_COMMNOTIFY 0x0044
1251 #define WM_WINDOWPOSCHANGING 0x0046
1252 #define WM_WINDOWPOSCHANGED 0x0047
1253 #define WM_POWER 0x0048
1255 /* Win32 4.0 messages */
1256 #define WM_COPYDATA 0x004a
1257 #define WM_CANCELJOURNAL 0x004b
1258 #define WM_KEYF1 0x004d
1259 #define WM_NOTIFY 0x004e
1260 #define WM_INPUTLANGCHANGEREQUEST 0x0050
1261 #define WM_INPUTLANGCHANGE 0x0051
1262 #define WM_TCARD 0x0052
1263 #define WM_HELP 0x0053
1264 #define WM_USERCHANGED 0x0054
1265 #define WM_NOTIFYFORMAT 0x0055
1267 #define WM_CONTEXTMENU 0x007b
1268 #define WM_STYLECHANGING 0x007c
1269 #define WM_STYLECHANGED 0x007d
1270 #define WM_DISPLAYCHANGE 0x007e
1271 #define WM_GETICON 0x007f
1272 #define WM_SETICON 0x0080
1274 /* Non-client system messages */
1275 #define WM_NCCREATE 0x0081
1276 #define WM_NCDESTROY 0x0082
1277 #define WM_NCCALCSIZE 0x0083
1278 #define WM_NCHITTEST 0x0084
1279 #define WM_NCPAINT 0x0085
1280 #define WM_NCACTIVATE 0x0086
1282 #define WM_GETDLGCODE 0x0087
1283 #define WM_SYNCPAINT 0x0088
1284 #define WM_SYNCTASK 0x0089
1286 /* Non-client mouse messages */
1287 #define WM_NCMOUSEMOVE 0x00a0
1288 #define WM_NCLBUTTONDOWN 0x00a1
1289 #define WM_NCLBUTTONUP 0x00a2
1290 #define WM_NCLBUTTONDBLCLK 0x00a3
1291 #define WM_NCRBUTTONDOWN 0x00a4
1292 #define WM_NCRBUTTONUP 0x00a5
1293 #define WM_NCRBUTTONDBLCLK 0x00a6
1294 #define WM_NCMBUTTONDOWN 0x00a7
1295 #define WM_NCMBUTTONUP 0x00a8
1296 #define WM_NCMBUTTONDBLCLK 0x00a9
1298 #define WM_NCXBUTTONDOWN 0x00ab
1299 #define WM_NCXBUTTONUP 0x00ac
1300 #define WM_NCXBUTTONDBLCLK 0x00ad
1302 /* Raw input */
1303 #define WM_INPUT_DEVICE_CHANGE 0x00fe
1304 #define WM_INPUT 0x00ff
1306 /* Keyboard messages */
1307 #define WM_KEYDOWN 0x0100
1308 #define WM_KEYUP 0x0101
1309 #define WM_CHAR 0x0102
1310 #define WM_DEADCHAR 0x0103
1311 #define WM_SYSKEYDOWN 0x0104
1312 #define WM_SYSKEYUP 0x0105
1313 #define WM_SYSCHAR 0x0106
1314 #define WM_SYSDEADCHAR 0x0107
1315 #define WM_UNICHAR 0x0109
1316 #define WM_KEYFIRST WM_KEYDOWN
1317 #define WM_KEYLAST 0x0109
1319 /* Win32 4.0 messages for IME */
1320 #define WM_IME_STARTCOMPOSITION 0x010d
1321 #define WM_IME_ENDCOMPOSITION 0x010e
1322 #define WM_IME_COMPOSITION 0x010f
1323 #define WM_IME_KEYLAST 0x010f
1325 #define WM_INITDIALOG 0x0110
1326 #define WM_COMMAND 0x0111
1327 #define WM_SYSCOMMAND 0x0112
1328 #define WM_TIMER 0x0113
1330 /* scroll messages */
1331 #define WM_HSCROLL 0x0114
1332 #define WM_VSCROLL 0x0115
1334 /* Menu messages */
1335 #define WM_INITMENU 0x0116
1336 #define WM_INITMENUPOPUP 0x0117
1338 #define WM_MENUSELECT 0x011F
1339 #define WM_MENUCHAR 0x0120
1340 #define WM_ENTERIDLE 0x0121
1342 #define WM_MENURBUTTONUP 0x0122
1343 #define WM_MENUDRAG 0x0123
1344 #define WM_MENUGETOBJECT 0x0124
1345 #define WM_UNINITMENUPOPUP 0x0125
1346 #define WM_MENUCOMMAND 0x0126
1348 #define WM_CHANGEUISTATE 0x0127
1349 #define WM_UPDATEUISTATE 0x0128
1350 #define WM_QUERYUISTATE 0x0129
1352 /* UI flags for WM_*UISTATE */
1353 /* for low-order word of wparam */
1354 #define UIS_SET 1
1355 #define UIS_CLEAR 2
1356 #define UIS_INITIALIZE 3
1357 /* for hi-order word of wparam */
1358 #define UISF_HIDEFOCUS 0x1
1359 #define UISF_HIDEACCEL 0x2
1360 #define UISF_ACTIVE 0x4
1362 #define WM_LBTRACKPOINT 0x0131
1364 /* Win32 CTLCOLOR messages */
1365 #define WM_CTLCOLORMSGBOX 0x0132
1366 #define WM_CTLCOLOREDIT 0x0133
1367 #define WM_CTLCOLORLISTBOX 0x0134
1368 #define WM_CTLCOLORBTN 0x0135
1369 #define WM_CTLCOLORDLG 0x0136
1370 #define WM_CTLCOLORSCROLLBAR 0x0137
1371 #define WM_CTLCOLORSTATIC 0x0138
1373 #define MN_GETHMENU 0x01E1
1375 /* Mouse messages */
1376 #define WM_MOUSEMOVE 0x0200
1377 #define WM_LBUTTONDOWN 0x0201
1378 #define WM_LBUTTONUP 0x0202
1379 #define WM_LBUTTONDBLCLK 0x0203
1380 #define WM_RBUTTONDOWN 0x0204
1381 #define WM_RBUTTONUP 0x0205
1382 #define WM_RBUTTONDBLCLK 0x0206
1383 #define WM_MBUTTONDOWN 0x0207
1384 #define WM_MBUTTONUP 0x0208
1385 #define WM_MBUTTONDBLCLK 0x0209
1386 #define WM_MOUSEWHEEL 0x020A
1387 #define WM_XBUTTONDOWN 0x020B
1388 #define WM_XBUTTONUP 0x020C
1389 #define WM_XBUTTONDBLCLK 0x020D
1390 #define WM_MOUSEHWHEEL 0x020E
1392 #define XBUTTON1 0x0001
1393 #define XBUTTON2 0x0002
1395 #define WM_MOUSEFIRST 0x0200
1396 #define WM_MOUSELAST 0x020E
1398 #define WHEEL_DELTA 120
1399 #define WHEEL_PAGESCROLL (UINT_MAX)
1400 #define GET_WHEEL_DELTA_WPARAM(wParam) ((short)HIWORD(wParam))
1402 #define WM_PARENTNOTIFY 0x0210
1403 #define WM_ENTERMENULOOP 0x0211
1404 #define WM_EXITMENULOOP 0x0212
1405 #define WM_NEXTMENU 0x0213
1407 /* Win32 4.0 messages */
1408 #define WM_SIZING 0x0214
1409 #define WM_CAPTURECHANGED 0x0215
1410 #define WM_MOVING 0x0216
1411 #define WM_POWERBROADCAST 0x0218
1412 #define WM_DEVICECHANGE 0x0219
1414 /* wParam for WM_SIZING message */
1415 #define WMSZ_LEFT 1
1416 #define WMSZ_RIGHT 2
1417 #define WMSZ_TOP 3
1418 #define WMSZ_TOPLEFT 4
1419 #define WMSZ_TOPRIGHT 5
1420 #define WMSZ_BOTTOM 6
1421 #define WMSZ_BOTTOMLEFT 7
1422 #define WMSZ_BOTTOMRIGHT 8
1424 /* wParam for WM_POWERBROADCAST */
1425 #define PBT_APMQUERYSUSPEND 0x0000
1426 #define PBT_APMQUERYSTANDBY 0x0001
1427 #define PBT_APMQUERYSUSPENDFAILED 0x0002
1428 #define PBT_APMQUERYSTANDBYFAILED 0x0003
1429 #define PBT_APMSUSPEND 0x0004
1430 #define PBT_APMSTANDBY 0x0005
1431 #define PBT_APMRESUMECRITICAL 0x0006
1432 #define PBT_APMRESUMESUSPEND 0x0007
1433 #define PBT_APMRESUMESTANDBY 0x0008
1434 #define PBT_APMBATTERYLOW 0x0009
1435 #define PBT_APMPOWERSTATUSCHANGE 0x000A
1436 #define PBT_APMOEMEVENT 0x000B
1437 #define PBT_APMRESUMEAUTOMATIC 0x0012
1439 #define PBTF_APMRESUMEFROMFAILURE 0x00000001
1441 /* MDI messages */
1442 #define WM_MDICREATE 0x0220
1443 #define WM_MDIDESTROY 0x0221
1444 #define WM_MDIACTIVATE 0x0222
1445 #define WM_MDIRESTORE 0x0223
1446 #define WM_MDINEXT 0x0224
1447 #define WM_MDIMAXIMIZE 0x0225
1448 #define WM_MDITILE 0x0226
1449 #define WM_MDICASCADE 0x0227
1450 #define WM_MDIICONARRANGE 0x0228
1451 #define WM_MDIGETACTIVE 0x0229
1452 #define WM_MDIREFRESHMENU 0x0234
1454 /* D&D messages */
1455 #define WM_DROPOBJECT 0x022A
1456 #define WM_QUERYDROPOBJECT 0x022B
1457 #define WM_BEGINDRAG 0x022C
1458 #define WM_DRAGLOOP 0x022D
1459 #define WM_DRAGSELECT 0x022E
1460 #define WM_DRAGMOVE 0x022F
1461 #define WM_MDISETMENU 0x0230
1463 #define WM_ENTERSIZEMOVE 0x0231
1464 #define WM_EXITSIZEMOVE 0x0232
1465 #define WM_DROPFILES 0x0233
1468 /* Win32 4.0 messages for IME */
1469 #define WM_IME_SETCONTEXT 0x0281
1470 #define WM_IME_NOTIFY 0x0282
1471 #define WM_IME_CONTROL 0x0283
1472 #define WM_IME_COMPOSITIONFULL 0x0284
1473 #define WM_IME_SELECT 0x0285
1474 #define WM_IME_CHAR 0x0286
1475 /* Win32 5.0 messages for IME */
1476 #define WM_IME_REQUEST 0x0288
1478 /* Win32 4.0 messages for IME */
1479 #define WM_IME_KEYDOWN 0x0290
1480 #define WM_IME_KEYUP 0x0291
1482 #define WM_NCMOUSEHOVER 0x02A0
1483 #define WM_MOUSEHOVER 0x02A1
1484 #define WM_MOUSELEAVE 0x02A3
1485 #define WM_NCMOUSELEAVE 0x02A2
1487 #define WM_WTSSESSION_CHANGE 0x02B1
1489 #define WM_TABLET_FIRST 0x02c0
1490 #define WM_TABLET_LAST 0x02df
1492 /* Clipboard command messages */
1493 #define WM_CUT 0x0300
1494 #define WM_COPY 0x0301
1495 #define WM_PASTE 0x0302
1496 #define WM_CLEAR 0x0303
1497 #define WM_UNDO 0x0304
1499 /* Clipboard owner messages */
1500 #define WM_RENDERFORMAT 0x0305
1501 #define WM_RENDERALLFORMATS 0x0306
1502 #define WM_DESTROYCLIPBOARD 0x0307
1504 /* Clipboard viewer messages */
1505 #define WM_DRAWCLIPBOARD 0x0308
1506 #define WM_PAINTCLIPBOARD 0x0309
1507 #define WM_VSCROLLCLIPBOARD 0x030A
1508 #define WM_SIZECLIPBOARD 0x030B
1509 #define WM_ASKCBFORMATNAME 0x030C
1510 #define WM_CHANGECBCHAIN 0x030D
1511 #define WM_HSCROLLCLIPBOARD 0x030E
1513 #define WM_QUERYNEWPALETTE 0x030F
1514 #define WM_PALETTEISCHANGING 0x0310
1515 #define WM_PALETTECHANGED 0x0311
1516 #define WM_HOTKEY 0x0312
1518 #define WM_PRINT 0x0317
1519 #define WM_PRINTCLIENT 0x0318
1520 #define WM_APPCOMMAND 0x0319
1521 #define WM_THEMECHANGED 0x031A
1522 #define WM_CLIPBOARDUPDATE 0x031D
1524 #define WM_DWMCOMPOSITIONCHANGED 0x031E
1525 #define WM_DWMNCRENDERINGCHANGED 0x031F
1526 #define WM_DWMCOLORIZATIONCOLORCHANGED 0x0320
1527 #define WM_DWMWINDOWMAXIMIZEDCHANGE 0x0321
1529 #define WM_GETTITLEBARINFOEX 0x033F
1531 #define WM_HANDHELDFIRST 0x0358
1532 #define WM_HANDHELDLAST 0x035F
1534 #define WM_AFXFIRST 0x0360
1535 #define WM_AFXLAST 0x037F
1537 #define WM_PENWINFIRST 0x0380
1538 #define WM_PENWINLAST 0x038F
1540 #define WM_APP 0x8000
1542 #define UNICODE_NOCHAR 0xFFFF
1544 /* MsgWaitForMultipleObjectsEx flags */
1545 #define MWMO_WAITALL 0x0001
1546 #define MWMO_ALERTABLE 0x0002
1547 #define MWMO_INPUTAVAILABLE 0x0004
1549 /* WM_GETDLGCODE values */
1550 #define DLGC_WANTARROWS 0x0001
1551 #define DLGC_WANTTAB 0x0002
1552 #define DLGC_WANTALLKEYS 0x0004
1553 #define DLGC_WANTMESSAGE 0x0004
1554 #define DLGC_HASSETSEL 0x0008
1555 #define DLGC_DEFPUSHBUTTON 0x0010
1556 #define DLGC_UNDEFPUSHBUTTON 0x0020
1557 #define DLGC_RADIOBUTTON 0x0040
1558 #define DLGC_WANTCHARS 0x0080
1559 #define DLGC_STATIC 0x0100
1560 #define DLGC_BUTTON 0x2000
1562 /* Standard dialog button IDs */
1563 #define IDOK 1
1564 #define IDCANCEL 2
1565 #define IDABORT 3
1566 #define IDRETRY 4
1567 #define IDIGNORE 5
1568 #define IDYES 6
1569 #define IDNO 7
1570 #define IDCLOSE 8
1571 #define IDHELP 9
1572 #define IDTRYAGAIN 10
1573 #define IDCONTINUE 11
1575 #ifndef IDTIMEOUT
1576 #define IDTIMEOUT 32000
1577 #endif
1579 /* Used for EnumDisplaySettingsEx */
1580 #define ENUM_CURRENT_SETTINGS ((DWORD) -1)
1581 #define ENUM_REGISTRY_SETTINGS ((DWORD) -2)
1583 #define EDS_RAWMODE 0x00000002
1584 #define EDS_ROTATEDMODE 0x00000004
1586 /* Used for PrintWindow */
1587 #define PW_CLIENTONLY 0x00000001
1589 /****** Window classes ******/
1591 typedef struct tagCREATESTRUCTA
1593 LPVOID lpCreateParams;
1594 HINSTANCE hInstance;
1595 HMENU hMenu;
1596 HWND hwndParent;
1597 INT cy;
1598 INT cx;
1599 INT y;
1600 INT x;
1601 LONG style;
1602 LPCSTR lpszName;
1603 LPCSTR lpszClass;
1604 DWORD dwExStyle;
1605 } CREATESTRUCTA, *LPCREATESTRUCTA;
1607 typedef struct tagCREATESTRUCTW
1609 LPVOID lpCreateParams;
1610 HINSTANCE hInstance;
1611 HMENU hMenu;
1612 HWND hwndParent;
1613 INT cy;
1614 INT cx;
1615 INT y;
1616 INT x;
1617 LONG style;
1618 LPCWSTR lpszName;
1619 LPCWSTR lpszClass;
1620 DWORD dwExStyle;
1621 } CREATESTRUCTW, *LPCREATESTRUCTW;
1623 DECL_WINELIB_TYPE_AW(CREATESTRUCT)
1624 DECL_WINELIB_TYPE_AW(LPCREATESTRUCT)
1626 typedef struct tagPAINTSTRUCT
1628 HDC hdc;
1629 BOOL fErase;
1630 RECT rcPaint;
1631 BOOL fRestore;
1632 BOOL fIncUpdate;
1633 BYTE rgbReserved[32];
1634 } PAINTSTRUCT, *PPAINTSTRUCT, *LPPAINTSTRUCT;
1636 typedef struct tagCLIENTCREATESTRUCT
1638 HMENU hWindowMenu;
1639 UINT idFirstChild;
1640 } CLIENTCREATESTRUCT, *LPCLIENTCREATESTRUCT;
1643 typedef struct tagMDICREATESTRUCTA
1645 LPCSTR szClass;
1646 LPCSTR szTitle;
1647 HINSTANCE hOwner;
1648 INT x;
1649 INT y;
1650 INT cx;
1651 INT cy;
1652 DWORD style;
1653 LPARAM lParam;
1654 } MDICREATESTRUCTA, *LPMDICREATESTRUCTA;
1656 typedef struct tagMDICREATESTRUCTW
1658 LPCWSTR szClass;
1659 LPCWSTR szTitle;
1660 HINSTANCE hOwner;
1661 INT x;
1662 INT y;
1663 INT cx;
1664 INT cy;
1665 DWORD style;
1666 LPARAM lParam;
1667 } MDICREATESTRUCTW, *LPMDICREATESTRUCTW;
1669 DECL_WINELIB_TYPE_AW(MDICREATESTRUCT)
1670 DECL_WINELIB_TYPE_AW(LPMDICREATESTRUCT)
1672 #define MDITILE_VERTICAL 0x0000
1673 #define MDITILE_HORIZONTAL 0x0001
1674 #define MDITILE_SKIPDISABLED 0x0002
1675 #define MDITILE_ZORDER 0x0004
1677 #define MDIS_ALLCHILDSTYLES 0x0001
1679 typedef struct tagSTYLESTRUCT {
1680 DWORD styleOld;
1681 DWORD styleNew;
1682 } STYLESTRUCT, *LPSTYLESTRUCT;
1684 #define WC_DIALOG MAKEINTATOM(0x8002)
1686 /* Offsets for GetWindowLong() and GetWindowWord() */
1687 #define GWL_EXSTYLE (-20)
1688 #define GWL_STYLE (-16)
1689 #if !defined _WIN64 && !defined __WINESRC__
1690 # define GWL_USERDATA (-21)
1691 # define GWL_ID (-12)
1692 # define GWL_HWNDPARENT (-8)
1693 # define GWL_HINSTANCE (-6)
1694 # define GWL_WNDPROC (-4)
1695 # define DWL_MSGRESULT 0
1696 # define DWL_DLGPROC 4
1697 # define DWL_USER 8
1698 #endif /* _WIN64 && __WINESRC__ */
1700 /* Offsets for GetWindowLongPtr() and SetWindowLongPtr() */
1701 #define GWLP_USERDATA (-21)
1702 #define GWLP_ID (-12)
1703 #define GWLP_HWNDPARENT (-8)
1704 #define GWLP_HINSTANCE (-6)
1705 #define GWLP_WNDPROC (-4)
1706 #define DWLP_MSGRESULT 0
1707 #define DWLP_DLGPROC DWLP_MSGRESULT + sizeof(LRESULT)
1708 #define DWLP_USER DWLP_DLGPROC + sizeof(DLGPROC)
1710 /* GetWindow() constants */
1711 #define GW_HWNDFIRST 0
1712 #define GW_HWNDLAST 1
1713 #define GW_HWNDNEXT 2
1714 #define GW_HWNDPREV 3
1715 #define GW_OWNER 4
1716 #define GW_CHILD 5
1718 /* GetAncestor() constants */
1719 #define GA_PARENT 1
1720 #define GA_ROOT 2
1721 #define GA_ROOTOWNER 3
1723 /* WM_GETMINMAXINFO struct */
1724 typedef struct tagMINMAXINFO
1726 POINT ptReserved;
1727 POINT ptMaxSize;
1728 POINT ptMaxPosition;
1729 POINT ptMinTrackSize;
1730 POINT ptMaxTrackSize;
1731 } MINMAXINFO, *PMINMAXINFO, *LPMINMAXINFO;
1734 /* RedrawWindow() flags */
1735 #define RDW_INVALIDATE 0x0001
1736 #define RDW_INTERNALPAINT 0x0002
1737 #define RDW_ERASE 0x0004
1738 #define RDW_VALIDATE 0x0008
1739 #define RDW_NOINTERNALPAINT 0x0010
1740 #define RDW_NOERASE 0x0020
1741 #define RDW_NOCHILDREN 0x0040
1742 #define RDW_ALLCHILDREN 0x0080
1743 #define RDW_UPDATENOW 0x0100
1744 #define RDW_ERASENOW 0x0200
1745 #define RDW_FRAME 0x0400
1746 #define RDW_NOFRAME 0x0800
1748 /* debug flags */
1749 #define DBGFILL_ALLOC 0xfd
1750 #define DBGFILL_FREE 0xfb
1751 #define DBGFILL_BUFFER 0xf9
1752 #define DBGFILL_STACK 0xf7
1754 /* WM_WINDOWPOSCHANGING/CHANGED struct */
1755 typedef struct tagWINDOWPOS
1757 HWND hwnd;
1758 HWND hwndInsertAfter;
1759 INT x;
1760 INT y;
1761 INT cx;
1762 INT cy;
1763 UINT flags;
1764 } WINDOWPOS, *PWINDOWPOS, *LPWINDOWPOS;
1767 /* WM_MOUSEACTIVATE return values */
1768 #define MA_ACTIVATE 1
1769 #define MA_ACTIVATEANDEAT 2
1770 #define MA_NOACTIVATE 3
1771 #define MA_NOACTIVATEANDEAT 4
1773 /* WM_ACTIVATE wParam values */
1774 #define WA_INACTIVE 0
1775 #define WA_ACTIVE 1
1776 #define WA_CLICKACTIVE 2
1778 /* WM_GETICON/WM_SETICON params values */
1779 #define ICON_SMALL 0
1780 #define ICON_BIG 1
1781 #define ICON_SMALL2 2
1783 /* WM_NCCALCSIZE parameter structure */
1784 typedef struct
1786 RECT rgrc[3];
1787 WINDOWPOS *lppos;
1788 } NCCALCSIZE_PARAMS, *LPNCCALCSIZE_PARAMS;
1791 /* WM_NCCALCSIZE return flags */
1792 #define WVR_ALIGNTOP 0x0010
1793 #define WVR_ALIGNLEFT 0x0020
1794 #define WVR_ALIGNBOTTOM 0x0040
1795 #define WVR_ALIGNRIGHT 0x0080
1796 #define WVR_HREDRAW 0x0100
1797 #define WVR_VREDRAW 0x0200
1798 #define WVR_REDRAW (WVR_HREDRAW | WVR_VREDRAW)
1799 #define WVR_VALIDRECTS 0x0400
1801 /* WM_NCHITTEST return codes */
1802 #define HTERROR (-2)
1803 #define HTTRANSPARENT (-1)
1804 #define HTNOWHERE 0
1805 #define HTCLIENT 1
1806 #define HTCAPTION 2
1807 #define HTSYSMENU 3
1808 #define HTSIZE 4
1809 #define HTMENU 5
1810 #define HTHSCROLL 6
1811 #define HTVSCROLL 7
1812 #define HTMINBUTTON 8
1813 #define HTMAXBUTTON 9
1814 #define HTLEFT 10
1815 #define HTRIGHT 11
1816 #define HTTOP 12
1817 #define HTTOPLEFT 13
1818 #define HTTOPRIGHT 14
1819 #define HTBOTTOM 15
1820 #define HTBOTTOMLEFT 16
1821 #define HTBOTTOMRIGHT 17
1822 #define HTBORDER 18
1823 #define HTGROWBOX HTSIZE
1824 #define HTREDUCE HTMINBUTTON
1825 #define HTZOOM HTMAXBUTTON
1826 #define HTOBJECT 19
1827 #define HTCLOSE 20
1828 #define HTHELP 21
1829 #define HTSIZEFIRST HTLEFT
1830 #define HTSIZELAST HTBOTTOMRIGHT
1832 /* SendMessageTimeout flags */
1833 #define SMTO_NORMAL 0x0000
1834 #define SMTO_BLOCK 0x0001
1835 #define SMTO_ABORTIFHUNG 0x0002
1836 #define SMTO_NOTIMEOUTIFNOTHUNG 0x0008
1838 /* WM_SYSCOMMAND parameters */
1839 #ifdef SC_SIZE /* at least HP-UX: already defined in /usr/include/sys/signal.h */
1840 #undef SC_SIZE
1841 #endif
1842 #define SC_SIZE 0xf000
1843 #define SC_MOVE 0xf010
1844 #define SC_MINIMIZE 0xf020
1845 #define SC_MAXIMIZE 0xf030
1846 #define SC_NEXTWINDOW 0xf040
1847 #define SC_PREVWINDOW 0xf050
1848 #define SC_CLOSE 0xf060
1849 #define SC_VSCROLL 0xf070
1850 #define SC_HSCROLL 0xf080
1851 #define SC_MOUSEMENU 0xf090
1852 #define SC_KEYMENU 0xf100
1853 #define SC_ARRANGE 0xf110
1854 #define SC_RESTORE 0xf120
1855 #define SC_TASKLIST 0xf130
1856 #define SC_SCREENSAVE 0xf140
1857 #define SC_HOTKEY 0xf150
1858 /* Win32 4.0 */
1859 #define SC_DEFAULT 0xf160
1860 #define SC_MONITORPOWER 0xf170
1861 #define SC_CONTEXTHELP 0xf180
1862 #define SC_SEPARATOR 0xf00f
1864 /* obsolete names(SC_ICON and SC_ZOOM) */
1865 #define SC_ICON SC_MINIMIZE
1866 #define SC_ZOOM SC_MAXIMIZE
1868 #ifndef NOWINSTYLES
1869 #define CS_VREDRAW 0x00000001
1870 #define CS_HREDRAW 0x00000002
1871 #define CS_KEYCVTWINDOW 0x00000004
1872 #define CS_DBLCLKS 0x00000008
1873 #define CS_OWNDC 0x00000020
1874 #define CS_CLASSDC 0x00000040
1875 #define CS_PARENTDC 0x00000080
1876 #define CS_NOKEYCVT 0x00000100
1877 #define CS_NOCLOSE 0x00000200
1878 #define CS_SAVEBITS 0x00000800
1879 #define CS_BYTEALIGNCLIENT 0x00001000
1880 #define CS_BYTEALIGNWINDOW 0x00002000
1881 #define CS_GLOBALCLASS 0x00004000
1882 #define CS_IME 0x00010000
1883 #define CS_DROPSHADOW 0x00020000
1884 #endif /* NOWINSTYLES */
1886 #define PRF_CHECKVISIBLE 0x00000001L
1887 #define PRF_NONCLIENT 0x00000002L
1888 #define PRF_CLIENT 0x00000004L
1889 #define PRF_ERASEBKGND 0x00000008L
1890 #define PRF_CHILDREN 0x00000010L
1891 #define PRF_OWNED 0x00000020L
1893 /* Offsets for GetClassLong() and GetClassWord() */
1894 #if !defined _WIN64 && !defined __WINESRC__
1895 # define GCL_MENUNAME (-8)
1896 # define GCL_HBRBACKGROUND (-10)
1897 # define GCL_HCURSOR (-12)
1898 # define GCL_HICON (-14)
1899 # define GCL_HMODULE (-16)
1900 # define GCL_WNDPROC (-24)
1901 # define GCL_HICONSM (-34)
1902 #endif /* _WIN64 && __WINESRC__ */
1904 #define GCL_CBWNDEXTRA (-18)
1905 #define GCL_CBCLSEXTRA (-20)
1906 #define GCL_STYLE (-26)
1907 #define GCW_ATOM (-32)
1909 #define GCLP_MENUNAME (-8)
1910 #define GCLP_HBRBACKGROUND (-10)
1911 #define GCLP_HCURSOR (-12)
1912 #define GCLP_HICON (-14)
1913 #define GCLP_HMODULE (-16)
1914 #define GCLP_WNDPROC (-24)
1915 #define GCLP_HICONSM (-34)
1917 /* BroadcastSystemMessage flags */
1918 #define BSM_ALLCOMPONENTS 0x00000000
1919 #define BSM_VXDS 0x00000001
1920 #define BSM_NETDRIVER 0x00000002
1921 #define BSM_INSTALLABLEDRIVERS 0x00000004
1922 #define BSM_APPLICATIONS 0x00000008
1923 #define BSM_ALLDESKTOPS 0x00000010
1925 #define BSF_QUERY 0x00000001
1926 #define BSF_IGNORECURRENTTASK 0x00000002
1927 #define BSF_FLUSHDISK 0x00000004
1928 #define BSF_NOHANG 0x00000008
1929 #define BSF_POSTMESSAGE 0x00000010
1930 #define BSF_FORCEIFHUNG 0x00000020
1931 #define BSF_NOTIMEOUTIFNOTHUNG 0x00000040
1932 #define BSF_ALLOWSFW 0x00000080
1933 #define BSF_SENDNOTIFYMESSAGE 0x00000100
1934 #define BSF_RETURNHDESK 0x00000200
1935 #define BSF_LUID 0x00000400
1937 #define BROADCAST_QUERY_DENY 0x424D5144
1939 /***** Window hooks *****/
1941 /* Hook values */
1942 #define WH_MIN (-1)
1943 #define WH_MSGFILTER (-1)
1944 #define WH_JOURNALRECORD 0
1945 #define WH_JOURNALPLAYBACK 1
1946 #define WH_KEYBOARD 2
1947 #define WH_GETMESSAGE 3
1948 #define WH_CALLWNDPROC 4
1949 #define WH_CBT 5
1950 #define WH_SYSMSGFILTER 6
1951 #define WH_MOUSE 7
1952 #define WH_HARDWARE 8
1953 #define WH_DEBUG 9
1954 #define WH_SHELL 10
1955 #define WH_FOREGROUNDIDLE 11
1956 #define WH_CALLWNDPROCRET 12
1957 #define WH_KEYBOARD_LL 13
1958 #define WH_MOUSE_LL 14
1959 #define WH_MAX 14
1961 #define WH_MINHOOK WH_MIN
1962 #define WH_MAXHOOK WH_MAX
1964 /* Hook action codes */
1965 #define HC_ACTION 0
1966 #define HC_GETNEXT 1
1967 #define HC_SKIP 2
1968 #define HC_NOREMOVE 3
1969 #define HC_NOREM HC_NOREMOVE
1970 #define HC_SYSMODALON 4
1971 #define HC_SYSMODALOFF 5
1973 /* CallMsgFilter() values */
1974 #define MSGF_DIALOGBOX 0
1975 #define MSGF_MESSAGEBOX 1
1976 #define MSGF_MENU 2
1977 #define MSGF_MOVE 3
1978 #define MSGF_SIZE 4
1979 #define MSGF_SCROLLBAR 5
1980 #define MSGF_NEXTWINDOW 6
1981 #define MSGF_MAX 8
1982 #define MSGF_USER 0x1000
1983 #define MSGF_DDEMGR 0x8001
1985 typedef struct tagWNDCLASSA
1987 UINT style;
1988 WNDPROC lpfnWndProc;
1989 INT cbClsExtra;
1990 INT cbWndExtra;
1991 HINSTANCE hInstance;
1992 HICON hIcon;
1993 HCURSOR hCursor;
1994 HBRUSH hbrBackground;
1995 LPCSTR lpszMenuName;
1996 LPCSTR lpszClassName;
1997 } WNDCLASSA, *PWNDCLASSA, *LPWNDCLASSA;
1999 typedef struct tagWNDCLASSW
2001 UINT style;
2002 WNDPROC lpfnWndProc;
2003 INT cbClsExtra;
2004 INT cbWndExtra;
2005 HINSTANCE hInstance;
2006 HICON hIcon;
2007 HCURSOR hCursor;
2008 HBRUSH hbrBackground;
2009 LPCWSTR lpszMenuName;
2010 LPCWSTR lpszClassName;
2011 } WNDCLASSW, *PWNDCLASSW, *LPWNDCLASSW;
2013 DECL_WINELIB_TYPE_AW(WNDCLASS)
2014 DECL_WINELIB_TYPE_AW(PWNDCLASS)
2015 DECL_WINELIB_TYPE_AW(LPWNDCLASS)
2017 typedef struct tagCOPYDATASTRUCT {
2018 ULONG_PTR dwData;
2019 DWORD cbData;
2020 PVOID lpData;
2021 } COPYDATASTRUCT, *PCOPYDATASTRUCT;
2023 typedef struct tagMDINEXTMENU {
2024 HMENU hmenuIn;
2025 HMENU hmenuNext;
2026 HWND hwndNext;
2027 } MDINEXTMENU, *PMDINEXTMENU, *LPMDINEXTMENU;
2029 typedef struct tagMULTIKEYHELPA
2031 DWORD mkSize;
2032 CHAR mkKeylist;
2033 CHAR szKeyphrase[1];
2034 } MULTIKEYHELPA, *PMULTIKEYHELPA, *LPMULTIKEYHELPA;
2036 typedef struct tagMULTIKEYHELPW
2038 DWORD mkSize;
2039 WCHAR mkKeylist;
2040 WCHAR szKeyphrase[1];
2041 } MULTIKEYHELPW, *PMULTIKEYHELPW, *LPMULTIKEYHELPW;
2043 DECL_WINELIB_TYPE_AW(MULTIKEYHELP)
2044 DECL_WINELIB_TYPE_AW(PMULTIKEYHELP)
2045 DECL_WINELIB_TYPE_AW(LPMULTIKEYHELP)
2047 typedef struct tagHELPWININFOA {
2048 int wStructSize;
2049 int x;
2050 int y;
2051 int dx;
2052 int dy;
2053 int wMax;
2054 CHAR rgchMember[2];
2055 } HELPWININFOA, *PHELPWININFOA, *LPHELPWININFOA;
2057 typedef struct tagHELPWININFOW {
2058 int wStructSize;
2059 int x;
2060 int y;
2061 int dx;
2062 int dy;
2063 int wMax;
2064 WCHAR rgchMember[2];
2065 } HELPWININFOW, *PHELPWININFOW, *LPHELPWININFOW;
2067 DECL_WINELIB_TYPE_AW(HELPWININFO)
2068 DECL_WINELIB_TYPE_AW(PHELPWININFO)
2069 DECL_WINELIB_TYPE_AW(LPHELPWININFO)
2071 #define HELP_CONTEXT 0x0001
2072 #define HELP_QUIT 0x0002
2073 #define HELP_INDEX 0x0003
2074 #define HELP_CONTENTS 0x0003
2075 #define HELP_HELPONHELP 0x0004
2076 #define HELP_SETINDEX 0x0005
2077 #define HELP_SETCONTENTS 0x0005
2078 #define HELP_CONTEXTPOPUP 0x0008
2079 #define HELP_FORCEFILE 0x0009
2080 #define HELP_KEY 0x0101
2081 #define HELP_COMMAND 0x0102
2082 #define HELP_PARTIALKEY 0x0105
2083 #define HELP_MULTIKEY 0x0201
2084 #define HELP_SETWINPOS 0x0203
2085 #define HELP_CONTEXTMENU 0x000a
2086 #define HELP_FINDER 0x000b
2087 #define HELP_WM_HELP 0x000c
2088 #define HELP_SETPOPUP_POS 0x000d
2090 #define HELP_TCARD 0x8000
2091 #define HELP_TCARD_DATA 0x0010
2092 #define HELP_TCARD_OTHER_CALLER 0x0011
2095 #define IDH_NO_HELP 28440
2096 #define IDH_MISSING_CONTEXT 28441
2097 #define IDH_GENERIC_HELP_BUTTON 28442
2098 #define IDH_OK 28443
2099 #define IDH_CANCEL 28444
2100 #define IDH_HELP 28445
2103 /* ChangeDisplaySettings return codes */
2105 #define DISP_CHANGE_SUCCESSFUL 0
2106 #define DISP_CHANGE_RESTART 1
2107 #define DISP_CHANGE_FAILED (-1)
2108 #define DISP_CHANGE_BADMODE (-2)
2109 #define DISP_CHANGE_NOTUPDATED (-3)
2110 #define DISP_CHANGE_BADFLAGS (-4)
2111 #define DISP_CHANGE_BADPARAM (-5)
2112 #define DISP_CHANGE_BADDUALVIEW (-6)
2114 /* ChangeDisplaySettings.dwFlags */
2115 #define CDS_UPDATEREGISTRY 0x00000001
2116 #define CDS_TEST 0x00000002
2117 #define CDS_FULLSCREEN 0x00000004
2118 #define CDS_GLOBAL 0x00000008
2119 #define CDS_SET_PRIMARY 0x00000010
2120 #define CDS_VIDEOPARAMETERS 0x00000020
2121 #define CDS_NORESET 0x10000000
2122 #define CDS_SETRECT 0x20000000
2123 #define CDS_RESET 0x40000000
2125 typedef struct tagWNDCLASSEXA
2127 UINT cbSize;
2128 UINT style;
2129 WNDPROC lpfnWndProc;
2130 INT cbClsExtra;
2131 INT cbWndExtra;
2132 HINSTANCE hInstance;
2133 HICON hIcon;
2134 HCURSOR hCursor;
2135 HBRUSH hbrBackground;
2136 LPCSTR lpszMenuName;
2137 LPCSTR lpszClassName;
2138 HICON hIconSm;
2139 } WNDCLASSEXA, *PWNDCLASSEXA, *LPWNDCLASSEXA;
2141 typedef struct tagWNDCLASSEXW
2143 UINT cbSize;
2144 UINT style;
2145 WNDPROC lpfnWndProc;
2146 INT cbClsExtra;
2147 INT cbWndExtra;
2148 HINSTANCE hInstance;
2149 HICON hIcon;
2150 HCURSOR hCursor;
2151 HBRUSH hbrBackground;
2152 LPCWSTR lpszMenuName;
2153 LPCWSTR lpszClassName;
2154 HICON hIconSm;
2155 } WNDCLASSEXW, *PWNDCLASSEXW, *LPWNDCLASSEXW;
2157 DECL_WINELIB_TYPE_AW(WNDCLASSEX)
2158 DECL_WINELIB_TYPE_AW(PWNDCLASSEX)
2159 DECL_WINELIB_TYPE_AW(LPWNDCLASSEX)
2161 typedef struct tagMSG
2163 HWND hwnd;
2164 UINT message;
2165 WPARAM wParam;
2166 LPARAM lParam;
2167 DWORD time;
2168 POINT pt;
2169 } MSG, *PMSG, *LPMSG;
2171 #define POINTSTOPOINT(pt, pts) { (pt).x = (pts).x; (pt).y = (pts).y; }
2172 #define POINTTOPOINTS(pt) (MAKELONG((short)((pt).x), (short)((pt).y)))
2174 #define MAKELPARAM(low,high) ((LPARAM)(DWORD)MAKELONG(low,high))
2175 #define MAKEWPARAM(low,high) ((WPARAM)(DWORD)MAKELONG(low,high))
2176 #define MAKELRESULT(low,high) ((LRESULT)(DWORD)MAKELONG(low,high))
2178 /* Cursors / Icons */
2180 typedef struct _ICONINFO {
2181 BOOL fIcon;
2182 DWORD xHotspot;
2183 DWORD yHotspot;
2184 HBITMAP hbmMask;
2185 HBITMAP hbmColor;
2186 } ICONINFO, *PICONINFO;
2188 typedef struct _ICONINFOEXA
2190 DWORD cbSize;
2191 BOOL fIcon;
2192 DWORD xHotspot;
2193 DWORD yHotspot;
2194 HBITMAP hbmMask;
2195 HBITMAP hbmColor;
2196 WORD wResID;
2197 CHAR szModName[MAX_PATH];
2198 CHAR szResName[MAX_PATH];
2199 } ICONINFOEXA, *PICONINFOEXA;
2201 typedef struct _ICONINFOEXW
2203 DWORD cbSize;
2204 BOOL fIcon;
2205 DWORD xHotspot;
2206 DWORD yHotspot;
2207 HBITMAP hbmMask;
2208 HBITMAP hbmColor;
2209 WORD wResID;
2210 WCHAR szModName[MAX_PATH];
2211 WCHAR szResName[MAX_PATH];
2212 } ICONINFOEXW, *PICONINFOEXW;
2214 DECL_WINELIB_TYPE_AW(ICONINFOEX)
2215 DECL_WINELIB_TYPE_AW(PICONINFOEX)
2217 typedef struct tagCURSORINFO
2219 DWORD cbSize;
2220 DWORD flags;
2221 HCURSOR hCursor;
2222 POINT ptScreenPos;
2223 } CURSORINFO, *PCURSORINFO, *LPCURSORINFO;
2225 #define CURSOR_SHOWING 0x00000001
2227 /* this is the 6 byte accel struct used in Win32 when presented to the user */
2228 typedef struct tagACCEL
2230 #ifdef WORDS_BIGENDIAN
2231 WORD fVirt;
2232 WORD key;
2233 DWORD cmd;
2234 #else
2235 BYTE fVirt;
2236 WORD key;
2237 WORD cmd;
2238 #endif
2239 } ACCEL, *LPACCEL;
2242 /* Flags for TrackPopupMenu */
2243 #define TPM_LEFTBUTTON 0x0000
2244 #define TPM_RECURSE 0x0001
2245 #define TPM_RIGHTBUTTON 0x0002
2246 #define TPM_LEFTALIGN 0x0000
2247 #define TPM_CENTERALIGN 0x0004
2248 #define TPM_RIGHTALIGN 0x0008
2249 #define TPM_TOPALIGN 0x0000
2250 #define TPM_VCENTERALIGN 0x0010
2251 #define TPM_BOTTOMALIGN 0x0020
2252 #define TPM_HORIZONTAL 0x0000
2253 #define TPM_VERTICAL 0x0040
2254 #define TPM_NONOTIFY 0x0080
2255 #define TPM_RETURNCMD 0x0100
2256 #define TPM_HORPOSANIMATION 0x0400
2257 #define TPM_HORNEGANIMATION 0x0800
2258 #define TPM_VERPOSANIMATION 0x1000
2259 #define TPM_VERNEGANIMATION 0x2000
2260 #define TPM_NOANIMATION 0x4000
2261 #define TPM_LAYOUTRTL 0x8000
2263 typedef struct tagTPMPARAMS
2265 UINT cbSize;
2266 RECT rcExclude;
2267 } TPMPARAMS, *LPTPMPARAMS;
2271 * Combobox information
2273 typedef struct tagCOMBOBOXINFO
2275 DWORD cbSize;
2276 RECT rcItem;
2277 RECT rcButton;
2278 DWORD stateButton;
2279 HWND hwndCombo;
2280 HWND hwndItem;
2281 HWND hwndList;
2282 } COMBOBOXINFO, *PCOMBOBOXINFO, *LPCOMBOBOXINFO;
2284 typedef struct tagMENUITEMINFOA {
2285 UINT cbSize;
2286 UINT fMask;
2287 UINT fType;
2288 UINT fState;
2289 UINT wID;
2290 HMENU hSubMenu;
2291 HBITMAP hbmpChecked;
2292 HBITMAP hbmpUnchecked;
2293 ULONG_PTR dwItemData;
2294 LPSTR dwTypeData;
2295 UINT cch;
2296 HBITMAP hbmpItem;
2297 } MENUITEMINFOA, *LPMENUITEMINFOA;
2299 typedef struct tagMENUITEMINFOW {
2300 UINT cbSize;
2301 UINT fMask;
2302 UINT fType;
2303 UINT fState;
2304 UINT wID;
2305 HMENU hSubMenu;
2306 HBITMAP hbmpChecked;
2307 HBITMAP hbmpUnchecked;
2308 ULONG_PTR dwItemData;
2309 LPWSTR dwTypeData;
2310 UINT cch;
2311 HBITMAP hbmpItem;
2312 } MENUITEMINFOW, *LPMENUITEMINFOW;
2314 DECL_WINELIB_TYPE_AW(MENUITEMINFO)
2315 DECL_WINELIB_TYPE_AW(LPMENUITEMINFO)
2316 typedef const MENUITEMINFOA *LPCMENUITEMINFOA;
2317 typedef const MENUITEMINFOW *LPCMENUITEMINFOW;
2318 DECL_WINELIB_TYPE_AW(LPCMENUITEMINFO)
2320 typedef struct tagMENUBARINFO {
2321 DWORD cbSize;
2322 RECT rcBar;
2323 HMENU hMenu;
2324 HWND hwndMenu;
2325 BOOL fBarFocused:1;
2326 BOOL fFocused:1;
2327 } MENUBARINFO, *PMENUBARINFO, *LPMENUBARINFO;
2329 typedef struct tagMENUINFO {
2330 DWORD cbSize;
2331 DWORD fMask;
2332 DWORD dwStyle;
2333 UINT cyMax;
2334 HBRUSH hbrBack;
2335 DWORD dwContextHelpID;
2336 ULONG_PTR dwMenuData;
2337 } MENUINFO, *LPMENUINFO;
2339 typedef const MENUINFO *LPCMENUINFO;
2341 #define MIM_MAXHEIGHT 0x00000001
2342 #define MIM_BACKGROUND 0x00000002
2343 #define MIM_HELPID 0x00000004
2344 #define MIM_MENUDATA 0x00000008
2345 #define MIM_STYLE 0x00000010
2346 #define MIM_APPLYTOSUBMENUS 0x80000000
2348 #define MNS_NOCHECK 0x80000000
2349 #define MNS_MODELESS 0x40000000
2350 #define MNS_DRAGDROP 0x20000000
2351 #define MNS_AUTODISMISS 0x10000000
2352 #define MNS_NOTIFYBYPOS 0x08000000
2353 #define MNS_CHECKORBMP 0x04000000
2355 typedef struct {
2356 WORD versionNumber;
2357 WORD offset;
2358 } MENUITEMTEMPLATEHEADER, *PMENUITEMTEMPLATEHEADER;
2361 typedef struct {
2362 WORD mtOption;
2363 WORD mtID;
2364 WCHAR mtString[1];
2365 } MENUITEMTEMPLATE, *PMENUITEMTEMPLATE;
2368 typedef VOID MENUTEMPLATE;
2369 typedef PVOID *LPMENUTEMPLATE;
2371 /* Field specifiers for MENUITEMINFO[AW] type. */
2372 #define MIIM_STATE 0x00000001
2373 #define MIIM_ID 0x00000002
2374 #define MIIM_SUBMENU 0x00000004
2375 #define MIIM_CHECKMARKS 0x00000008
2376 #define MIIM_TYPE 0x00000010
2377 #define MIIM_DATA 0x00000020
2378 #define MIIM_STRING 0x00000040
2379 #define MIIM_BITMAP 0x00000080
2380 #define MIIM_FTYPE 0x00000100
2382 #define HBMMENU_CALLBACK ((HBITMAP) -1)
2383 #define HBMMENU_SYSTEM ((HBITMAP) 1)
2384 #define HBMMENU_MBAR_RESTORE ((HBITMAP) 2)
2385 #define HBMMENU_MBAR_MINIMIZE ((HBITMAP) 3)
2386 #define HBMMENU_MBAR_CLOSE ((HBITMAP) 5)
2387 #define HBMMENU_MBAR_CLOSE_D ((HBITMAP) 6)
2388 #define HBMMENU_MBAR_MINIMIZE_D ((HBITMAP) 7)
2389 #define HBMMENU_POPUP_CLOSE ((HBITMAP) 8)
2390 #define HBMMENU_POPUP_RESTORE ((HBITMAP) 9)
2391 #define HBMMENU_POPUP_MAXIMIZE ((HBITMAP) 10)
2392 #define HBMMENU_POPUP_MINIMIZE ((HBITMAP) 11)
2394 /* WM_H/VSCROLL commands */
2395 #define SB_LINEUP 0
2396 #define SB_LINELEFT 0
2397 #define SB_LINEDOWN 1
2398 #define SB_LINERIGHT 1
2399 #define SB_PAGEUP 2
2400 #define SB_PAGELEFT 2
2401 #define SB_PAGEDOWN 3
2402 #define SB_PAGERIGHT 3
2403 #define SB_THUMBPOSITION 4
2404 #define SB_THUMBTRACK 5
2405 #define SB_TOP 6
2406 #define SB_LEFT 6
2407 #define SB_BOTTOM 7
2408 #define SB_RIGHT 7
2409 #define SB_ENDSCROLL 8
2411 /* Scroll bar selection constants */
2412 #define SB_HORZ 0
2413 #define SB_VERT 1
2414 #define SB_CTL 2
2415 #define SB_BOTH 3
2417 /* Scrollbar styles */
2418 #ifndef NOWINSTYLES
2419 #define SBS_HORZ 0x0000L
2420 #define SBS_VERT 0x0001L
2421 #define SBS_TOPALIGN 0x0002L
2422 #define SBS_LEFTALIGN 0x0002L
2423 #define SBS_BOTTOMALIGN 0x0004L
2424 #define SBS_RIGHTALIGN 0x0004L
2425 #define SBS_SIZEBOXTOPLEFTALIGN 0x0002L
2426 #define SBS_SIZEBOXBOTTOMRIGHTALIGN 0x0004L
2427 #define SBS_SIZEBOX 0x0008L
2428 #define SBS_SIZEGRIP 0x0010L
2429 #endif /* NOWINSTYLES */
2431 /* EnableScrollBar() flags */
2432 #define ESB_ENABLE_BOTH 0x0000
2433 #define ESB_DISABLE_BOTH 0x0003
2435 #define ESB_DISABLE_LEFT 0x0001
2436 #define ESB_DISABLE_RIGHT 0x0002
2438 #define ESB_DISABLE_UP 0x0001
2439 #define ESB_DISABLE_DOWN 0x0002
2441 #define ESB_DISABLE_LTUP ESB_DISABLE_LEFT
2442 #define ESB_DISABLE_RTDN ESB_DISABLE_RIGHT
2444 /* Win32 button control messages */
2445 #define BM_GETCHECK 0x00f0
2446 #define BM_SETCHECK 0x00f1
2447 #define BM_GETSTATE 0x00f2
2448 #define BM_SETSTATE 0x00f3
2449 #define BM_SETSTYLE 0x00f4
2450 #define BM_CLICK 0x00f5
2451 #define BM_GETIMAGE 0x00f6
2452 #define BM_SETIMAGE 0x00f7
2453 /* Winelib button control messages */
2455 /* Button notification codes */
2456 #define BN_CLICKED 0
2457 #define BN_PAINT 1
2458 #define BN_HILITE 2
2459 #define BN_PUSHED BN_HILITE
2460 #define BN_UNHILITE 3
2461 #define BN_UNPUSHED BN_UNHILITE
2462 #define BN_DISABLE 4
2463 #define BN_DOUBLECLICKED 5
2464 #define BN_DBLCLK BN_DOUBLECLICKED
2465 #define BN_SETFOCUS 6
2466 #define BN_KILLFOCUS 7
2468 /* Button states */
2469 #define BST_UNCHECKED 0x0000
2470 #define BST_CHECKED 0x0001
2471 #define BST_INDETERMINATE 0x0002
2472 #define BST_PUSHED 0x0004
2473 #define BST_FOCUS 0x0008
2475 /* Static Control Styles */
2476 #define SS_LEFT 0x00000000L
2477 #define SS_CENTER 0x00000001L
2478 #define SS_RIGHT 0x00000002L
2479 #define SS_ICON 0x00000003L
2480 #define SS_BLACKRECT 0x00000004L
2481 #define SS_GRAYRECT 0x00000005L
2482 #define SS_WHITERECT 0x00000006L
2483 #define SS_BLACKFRAME 0x00000007L
2484 #define SS_GRAYFRAME 0x00000008L
2485 #define SS_WHITEFRAME 0x00000009L
2486 #define SS_USERITEM 0x0000000AL
2487 #define SS_SIMPLE 0x0000000BL
2488 #define SS_LEFTNOWORDWRAP 0x0000000CL
2489 #define SS_OWNERDRAW 0x0000000DL
2490 #define SS_BITMAP 0x0000000EL
2491 #define SS_ENHMETAFILE 0x0000000FL
2492 #define SS_ETCHEDHORZ 0x00000010L
2493 #define SS_ETCHEDVERT 0x00000011L
2494 #define SS_ETCHEDFRAME 0x00000012L
2495 #define SS_TYPEMASK 0x0000001FL
2497 #define SS_REALSIZECONTROL 0x00000040L
2498 #define SS_NOPREFIX 0x00000080L
2499 #define SS_NOTIFY 0x00000100L
2500 #define SS_CENTERIMAGE 0x00000200L
2501 #define SS_RIGHTJUST 0x00000400L
2502 #define SS_REALSIZEIMAGE 0x00000800L
2503 #define SS_SUNKEN 0x00001000L
2504 #define SS_EDITCONTROL 0x00002000L
2505 #define SS_ENDELLIPSIS 0x00004000L
2506 #define SS_PATHELLIPSIS 0x00008000L
2507 #define SS_WORDELLIPSIS 0x0000C000L
2508 #define SS_ELLIPSISMASK 0x0000C000L
2510 /* Static Control Messages */
2511 #define STM_SETICON 0x0170
2512 #define STM_GETICON 0x0171
2513 #define STM_SETIMAGE 0x0172
2514 #define STM_GETIMAGE 0x0173
2515 #define STM_MSGMAX 0x0174
2517 #define STN_CLICKED 0
2518 #define STN_DBLCLK 1
2519 #define STN_ENABLE 2
2520 #define STN_DISABLE 3
2522 /* Scrollbar messages */
2523 #define SBM_SETPOS 0x00e0
2524 #define SBM_GETPOS 0x00e1
2525 #define SBM_SETRANGE 0x00e2
2526 #define SBM_GETRANGE 0x00e3
2527 #define SBM_ENABLE_ARROWS 0x00e4
2528 #define SBM_SETRANGEREDRAW 0x00e6
2529 #define SBM_SETSCROLLINFO 0x00e9
2530 #define SBM_GETSCROLLINFO 0x00ea
2531 #define SBM_GETSCROLLBARINFO 0x00eb
2533 /* Scrollbar info */
2534 typedef struct tagSCROLLINFO
2536 UINT cbSize;
2537 UINT fMask;
2538 INT nMin;
2539 INT nMax;
2540 UINT nPage;
2541 INT nPos;
2542 INT nTrackPos;
2543 } SCROLLINFO, *LPSCROLLINFO;
2545 typedef const SCROLLINFO *LPCSCROLLINFO;
2547 #define CCHILDREN_SCROLLBAR 5
2549 typedef struct tagSCROLLBARINFO
2551 DWORD cbSize; /* Size of SCROLLBARINFO struct */
2552 RECT rcScrollBar; /* Coordinates of the scroll bar */
2553 INT dxyLineButton; /* Height or width */
2554 INT xyThumbTop; /* Position of the top or the left */
2555 INT xyThumbBottom; /* Position of the bottom or the right */
2556 INT reserved;
2557 DWORD rgstate[CCHILDREN_SCROLLBAR+1];
2558 } SCROLLBARINFO, *PSCROLLBARINFO, *LPSCROLLBARINFO;
2560 /* GetScrollInfo() flags */
2561 #define SIF_RANGE 0x0001
2562 #define SIF_PAGE 0x0002
2563 #define SIF_POS 0x0004
2564 #define SIF_DISABLENOSCROLL 0x0008
2565 #define SIF_TRACKPOS 0x0010
2566 #define SIF_ALL (SIF_RANGE | SIF_PAGE | SIF_POS | SIF_TRACKPOS)
2568 /* Listbox styles */
2569 #ifndef NOWINSTYLES
2570 #define LBS_NOTIFY 0x0001
2571 #define LBS_SORT 0x0002
2572 #define LBS_NOREDRAW 0x0004
2573 #define LBS_MULTIPLESEL 0x0008
2574 #define LBS_OWNERDRAWFIXED 0x0010
2575 #define LBS_OWNERDRAWVARIABLE 0x0020
2576 #define LBS_HASSTRINGS 0x0040
2577 #define LBS_USETABSTOPS 0x0080
2578 #define LBS_NOINTEGRALHEIGHT 0x0100
2579 #define LBS_MULTICOLUMN 0x0200
2580 #define LBS_WANTKEYBOARDINPUT 0x0400
2581 #define LBS_EXTENDEDSEL 0x0800
2582 #define LBS_DISABLENOSCROLL 0x1000
2583 #define LBS_NODATA 0x2000
2584 #define LBS_NOSEL 0x4000
2585 #define LBS_COMBOBOX 0x8000
2586 #define LBS_STANDARD (LBS_NOTIFY | LBS_SORT | WS_VSCROLL | WS_BORDER)
2587 #endif /* NOWINSTYLES */
2589 /* Listbox messages */
2590 #define LB_ADDSTRING 0x0180
2591 #define LB_INSERTSTRING 0x0181
2592 #define LB_DELETESTRING 0x0182
2593 #define LB_SELITEMRANGEEX 0x0183
2594 #define LB_RESETCONTENT 0x0184
2595 #define LB_SETSEL 0x0185
2596 #define LB_SETCURSEL 0x0186
2597 #define LB_GETSEL 0x0187
2598 #define LB_GETCURSEL 0x0188
2599 #define LB_GETTEXT 0x0189
2600 #define LB_GETTEXTLEN 0x018a
2601 #define LB_GETCOUNT 0x018b
2602 #define LB_SELECTSTRING 0x018c
2603 #define LB_DIR 0x018d
2604 #define LB_GETTOPINDEX 0x018e
2605 #define LB_FINDSTRING 0x018f
2606 #define LB_GETSELCOUNT 0x0190
2607 #define LB_GETSELITEMS 0x0191
2608 #define LB_SETTABSTOPS 0x0192
2609 #define LB_GETHORIZONTALEXTENT 0x0193
2610 #define LB_SETHORIZONTALEXTENT 0x0194
2611 #define LB_SETCOLUMNWIDTH 0x0195
2612 #define LB_ADDFILE 0x0196
2613 #define LB_SETTOPINDEX 0x0197
2614 #define LB_GETITEMRECT 0x0198
2615 #define LB_GETITEMDATA 0x0199
2616 #define LB_SETITEMDATA 0x019a
2617 #define LB_SELITEMRANGE 0x019b
2618 #define LB_SETANCHORINDEX 0x019c
2619 #define LB_GETANCHORINDEX 0x019d
2620 #define LB_SETCARETINDEX 0x019e
2621 #define LB_GETCARETINDEX 0x019f
2622 #define LB_SETITEMHEIGHT 0x01a0
2623 #define LB_GETITEMHEIGHT 0x01a1
2624 #define LB_FINDSTRINGEXACT 0x01a2
2625 #define LB_CARETON 0x01a3
2626 #define LB_CARETOFF 0x01a4
2627 #define LB_SETLOCALE 0x01a5
2628 #define LB_GETLOCALE 0x01a6
2629 #define LB_SETCOUNT 0x01a7
2630 #define LB_INITSTORAGE 0x01a8
2631 #define LB_ITEMFROMPOINT 0x01a9
2632 #define LB_GETLISTBOXINFO 0x01b2
2633 #define LB_MSGMAX 0x01b3
2635 /* Listbox notification codes */
2636 #define LBN_ERRSPACE (-2)
2637 #define LBN_SELCHANGE 1
2638 #define LBN_DBLCLK 2
2639 #define LBN_SELCANCEL 3
2640 #define LBN_SETFOCUS 4
2641 #define LBN_KILLFOCUS 5
2643 /* Listbox message return values */
2644 #define LB_OKAY 0
2645 #define LB_ERR (-1)
2646 #define LB_ERRSPACE (-2)
2648 #define LB_CTLCODE 0L
2650 /* Combo box styles */
2651 #ifndef NOWINSTYLES
2652 #define CBS_SIMPLE 0x0001L
2653 #define CBS_DROPDOWN 0x0002L
2654 #define CBS_DROPDOWNLIST 0x0003L
2655 #define CBS_OWNERDRAWFIXED 0x0010L
2656 #define CBS_OWNERDRAWVARIABLE 0x0020L
2657 #define CBS_AUTOHSCROLL 0x0040L
2658 #define CBS_OEMCONVERT 0x0080L
2659 #define CBS_SORT 0x0100L
2660 #define CBS_HASSTRINGS 0x0200L
2661 #define CBS_NOINTEGRALHEIGHT 0x0400L
2662 #define CBS_DISABLENOSCROLL 0x0800L
2664 #define CBS_UPPERCASE 0x2000L
2665 #define CBS_LOWERCASE 0x4000L
2666 #endif /* NOWINSTYLES */
2668 /* Combo box messages */
2669 #define CB_GETEDITSEL 0x0140
2670 #define CB_LIMITTEXT 0x0141
2671 #define CB_SETEDITSEL 0x0142
2672 #define CB_ADDSTRING 0x0143
2673 #define CB_DELETESTRING 0x0144
2674 #define CB_DIR 0x0145
2675 #define CB_GETCOUNT 0x0146
2676 #define CB_GETCURSEL 0x0147
2677 #define CB_GETLBTEXT 0x0148
2678 #define CB_GETLBTEXTLEN 0x0149
2679 #define CB_INSERTSTRING 0x014a
2680 #define CB_RESETCONTENT 0x014b
2681 #define CB_FINDSTRING 0x014c
2682 #define CB_SELECTSTRING 0x014d
2683 #define CB_SETCURSEL 0x014e
2684 #define CB_SHOWDROPDOWN 0x014f
2685 #define CB_GETITEMDATA 0x0150
2686 #define CB_SETITEMDATA 0x0151
2687 #define CB_GETDROPPEDCONTROLRECT 0x0152
2688 #define CB_SETITEMHEIGHT 0x0153
2689 #define CB_GETITEMHEIGHT 0x0154
2690 #define CB_SETEXTENDEDUI 0x0155
2691 #define CB_GETEXTENDEDUI 0x0156
2692 #define CB_GETDROPPEDSTATE 0x0157
2693 #define CB_FINDSTRINGEXACT 0x0158
2694 #define CB_SETLOCALE 0x0159
2695 #define CB_GETLOCALE 0x015a
2696 #define CB_GETTOPINDEX 0x015b
2697 #define CB_SETTOPINDEX 0x015c
2698 #define CB_GETHORIZONTALEXTENT 0x015d
2699 #define CB_SETHORIZONTALEXTENT 0x015e
2700 #define CB_GETDROPPEDWIDTH 0x015f
2701 #define CB_SETDROPPEDWIDTH 0x0160
2702 #define CB_INITSTORAGE 0x0161
2703 #define CB_MULTIPLEADDSTRING 0x0163
2704 #define CB_GETCOMBOBOXINFO 0x0164
2705 #define CB_MSGMAX 0x0165
2707 /* Combo box notification codes */
2708 #define CBN_ERRSPACE (-1)
2709 #define CBN_SELCHANGE 1
2710 #define CBN_DBLCLK 2
2711 #define CBN_SETFOCUS 3
2712 #define CBN_KILLFOCUS 4
2713 #define CBN_EDITCHANGE 5
2714 #define CBN_EDITUPDATE 6
2715 #define CBN_DROPDOWN 7
2716 #define CBN_CLOSEUP 8
2717 #define CBN_SELENDOK 9
2718 #define CBN_SELENDCANCEL 10
2720 /* Combo box message return values */
2721 #define CB_OKAY 0
2722 #define CB_ERR (-1)
2723 #define CB_ERRSPACE (-2)
2725 #define MB_OK 0x00000000
2726 #define MB_OKCANCEL 0x00000001
2727 #define MB_ABORTRETRYIGNORE 0x00000002
2728 #define MB_YESNOCANCEL 0x00000003
2729 #define MB_YESNO 0x00000004
2730 #define MB_RETRYCANCEL 0x00000005
2731 #define MB_CANCELTRYCONTINUE 0x00000006
2732 #define MB_TYPEMASK 0x0000000F
2734 #define MB_ICONHAND 0x00000010
2735 #define MB_ICONQUESTION 0x00000020
2736 #define MB_ICONEXCLAMATION 0x00000030
2737 #define MB_ICONASTERISK 0x00000040
2738 #define MB_USERICON 0x00000080
2739 #define MB_ICONMASK 0x000000F0
2741 #define MB_ICONINFORMATION MB_ICONASTERISK
2742 #define MB_ICONSTOP MB_ICONHAND
2743 #define MB_ICONWARNING MB_ICONEXCLAMATION
2744 #define MB_ICONERROR MB_ICONHAND
2746 #define MB_DEFBUTTON1 0x00000000
2747 #define MB_DEFBUTTON2 0x00000100
2748 #define MB_DEFBUTTON3 0x00000200
2749 #define MB_DEFBUTTON4 0x00000300
2750 #define MB_DEFMASK 0x00000F00
2752 #define MB_APPLMODAL 0x00000000
2753 #define MB_SYSTEMMODAL 0x00001000
2754 #define MB_TASKMODAL 0x00002000
2755 #define MB_MODEMASK 0x00003000
2757 #define MB_HELP 0x00004000
2758 #define MB_NOFOCUS 0x00008000
2759 #define MB_MISCMASK 0x0000C000
2761 #define MB_SETFOREGROUND 0x00010000
2762 #define MB_DEFAULT_DESKTOP_ONLY 0x00020000
2763 #define MB_SERVICE_NOTIFICATION 0x00040000
2764 #define MB_TOPMOST 0x00040000
2765 #define MB_RIGHT 0x00080000
2766 #define MB_RTLREADING 0x00100000
2768 #define HELPINFO_WINDOW 0x0001
2769 #define HELPINFO_MENUITEM 0x0002
2771 /* Structure pointed to by lParam of WM_HELP */
2772 typedef struct tagHELPINFO
2774 UINT cbSize; /* Size in bytes of this struct */
2775 INT iContextType; /* Either HELPINFO_WINDOW or HELPINFO_MENUITEM */
2776 INT iCtrlId; /* Control Id or a Menu item Id. */
2777 HANDLE hItemHandle; /* hWnd of control or hMenu. */
2778 DWORD_PTR dwContextId; /* Context Id associated with this item */
2779 POINT MousePos; /* Mouse Position in screen co-ordinates */
2780 } HELPINFO,*LPHELPINFO;
2782 typedef void (CALLBACK *MSGBOXCALLBACK)(LPHELPINFO lpHelpInfo);
2784 typedef struct tagMSGBOXPARAMSA
2786 UINT cbSize;
2787 HWND hwndOwner;
2788 HINSTANCE hInstance;
2789 LPCSTR lpszText;
2790 LPCSTR lpszCaption;
2791 DWORD dwStyle;
2792 LPCSTR lpszIcon;
2793 DWORD_PTR dwContextHelpId;
2794 MSGBOXCALLBACK lpfnMsgBoxCallback;
2795 DWORD dwLanguageId;
2796 } MSGBOXPARAMSA, *PMSGBOXPARAMSA, *LPMSGBOXPARAMSA;
2798 typedef struct tagMSGBOXPARAMSW
2800 UINT cbSize;
2801 HWND hwndOwner;
2802 HINSTANCE hInstance;
2803 LPCWSTR lpszText;
2804 LPCWSTR lpszCaption;
2805 DWORD dwStyle;
2806 LPCWSTR lpszIcon;
2807 DWORD_PTR dwContextHelpId;
2808 MSGBOXCALLBACK lpfnMsgBoxCallback;
2809 DWORD dwLanguageId;
2810 } MSGBOXPARAMSW, *PMSGBOXPARAMSW, *LPMSGBOXPARAMSW;
2812 DECL_WINELIB_TYPE_AW(MSGBOXPARAMS)
2813 DECL_WINELIB_TYPE_AW(PMSGBOXPARAMS)
2814 DECL_WINELIB_TYPE_AW(LPMSGBOXPARAMS)
2816 #define MONITOR_DEFAULTTONULL 0x00000000
2817 #define MONITOR_DEFAULTTOPRIMARY 0x00000001
2818 #define MONITOR_DEFAULTTONEAREST 0x00000002
2820 #define MONITORINFOF_PRIMARY 0x00000001
2822 #ifndef CCHDEVICENAME
2823 #define CCHDEVICENAME 32
2824 #endif
2826 typedef struct tagMONITORINFO
2828 DWORD cbSize;
2829 RECT rcMonitor;
2830 RECT rcWork;
2831 DWORD dwFlags;
2832 } MONITORINFO, *LPMONITORINFO;
2834 typedef struct tagMONITORINFOEXA
2835 { /* the 4 first entries are the same as MONITORINFO */
2836 DWORD cbSize;
2837 RECT rcMonitor;
2838 RECT rcWork;
2839 DWORD dwFlags;
2840 CHAR szDevice[CCHDEVICENAME];
2841 } MONITORINFOEXA, *LPMONITORINFOEXA;
2843 typedef struct tagMONITORINFOEXW
2844 { /* the 4 first entries are the same as MONITORINFO */
2845 DWORD cbSize;
2846 RECT rcMonitor;
2847 RECT rcWork;
2848 DWORD dwFlags;
2849 WCHAR szDevice[CCHDEVICENAME];
2850 } MONITORINFOEXW, *LPMONITORINFOEXW;
2852 DECL_WINELIB_TYPE_AW(MONITORINFOEX)
2853 DECL_WINELIB_TYPE_AW(LPMONITORINFOEX)
2855 typedef BOOL (CALLBACK *MONITORENUMPROC)(HMONITOR,HDC,LPRECT,LPARAM);
2857 #include <pshpack2.h>
2859 typedef struct tagDLGTEMPLATE
2861 DWORD style;
2862 DWORD dwExtendedStyle;
2863 WORD cdit;
2864 short x;
2865 short y;
2866 short cx;
2867 short cy;
2868 } DLGTEMPLATE;
2870 typedef DLGTEMPLATE *LPDLGTEMPLATEA;
2871 typedef DLGTEMPLATE *LPDLGTEMPLATEW;
2872 DECL_WINELIB_TYPE_AW(LPDLGTEMPLATE)
2873 typedef const DLGTEMPLATE *LPCDLGTEMPLATEA;
2874 typedef const DLGTEMPLATE *LPCDLGTEMPLATEW;
2875 DECL_WINELIB_TYPE_AW(LPCDLGTEMPLATE)
2877 typedef struct tagDLGITEMTEMPLATE
2879 DWORD style;
2880 DWORD dwExtendedStyle;
2881 short x;
2882 short y;
2883 short cx;
2884 short cy;
2885 WORD id;
2886 } DLGITEMTEMPLATE;
2888 typedef DLGITEMTEMPLATE *PDLGITEMTEMPLATEA;
2889 typedef DLGITEMTEMPLATE *PDLGITEMTEMPLATEW;
2890 DECL_WINELIB_TYPE_AW(PDLGITEMTEMPLATE)
2891 typedef DLGITEMTEMPLATE *LPDLGITEMTEMPLATEA;
2892 typedef DLGITEMTEMPLATE *LPDLGITEMTEMPLATEW;
2893 DECL_WINELIB_TYPE_AW(LPDLGITEMTEMPLATE)
2895 #include <poppack.h>
2897 /* CBT hook values */
2898 #define HCBT_MOVESIZE 0
2899 #define HCBT_MINMAX 1
2900 #define HCBT_QS 2
2901 #define HCBT_CREATEWND 3
2902 #define HCBT_DESTROYWND 4
2903 #define HCBT_ACTIVATE 5
2904 #define HCBT_CLICKSKIPPED 6
2905 #define HCBT_KEYSKIPPED 7
2906 #define HCBT_SYSCOMMAND 8
2907 #define HCBT_SETFOCUS 9
2909 /* CBT hook structures */
2911 typedef struct tagCBT_CREATEWNDA
2913 CREATESTRUCTA *lpcs;
2914 HWND hwndInsertAfter;
2915 } CBT_CREATEWNDA, *LPCBT_CREATEWNDA;
2917 typedef struct tagCBT_CREATEWNDW
2919 CREATESTRUCTW *lpcs;
2920 HWND hwndInsertAfter;
2921 } CBT_CREATEWNDW, *LPCBT_CREATEWNDW;
2923 DECL_WINELIB_TYPE_AW(CBT_CREATEWND)
2924 DECL_WINELIB_TYPE_AW(LPCBT_CREATEWND)
2926 typedef struct tagCBTACTIVATESTRUCT
2928 BOOL fMouse;
2929 HWND hWndActive;
2930 } CBTACTIVATESTRUCT, *LPCBTACTIVATESTRUCT;
2933 /* modifiers for RegisterHotKey */
2934 #define MOD_ALT 0x0001
2935 #define MOD_CONTROL 0x0002
2936 #define MOD_SHIFT 0x0004
2937 #define MOD_WIN 0x0008
2939 /* ids for RegisterHotKey */
2940 #define IDHOT_SNAPWINDOW (-1) /* SHIFT-PRINTSCRN */
2941 #define IDHOT_SNAPDESKTOP (-2) /* PRINTSCRN */
2943 /* keybd_event flags */
2944 #define KEYEVENTF_EXTENDEDKEY 0x0001
2945 #define KEYEVENTF_KEYUP 0x0002
2946 #define KEYEVENTF_UNICODE 0x0004
2947 #define KEYEVENTF_SCANCODE 0x0008
2949 /* mouse_event flags */
2950 #define MOUSEEVENTF_MOVE 0x0001
2951 #define MOUSEEVENTF_LEFTDOWN 0x0002
2952 #define MOUSEEVENTF_LEFTUP 0x0004
2953 #define MOUSEEVENTF_RIGHTDOWN 0x0008
2954 #define MOUSEEVENTF_RIGHTUP 0x0010
2955 #define MOUSEEVENTF_MIDDLEDOWN 0x0020
2956 #define MOUSEEVENTF_MIDDLEUP 0x0040
2957 #define MOUSEEVENTF_XDOWN 0x0080
2958 #define MOUSEEVENTF_XUP 0x0100
2959 #define MOUSEEVENTF_WHEEL 0x0800
2960 #define MOUSEEVENTF_HWHEEL 0x1000
2961 #define MOUSEEVENTF_MOVE_NOCOALESCE 0x2000
2962 #define MOUSEEVENTF_VIRTUALDESK 0x4000
2963 #define MOUSEEVENTF_ABSOLUTE 0x8000
2965 /* ExitWindows() flags */
2966 #define EW_RESTARTWINDOWS 0x0042
2967 #define EW_REBOOTSYSTEM 0x0043
2968 #define EW_EXITANDEXECAPP 0x0044
2970 /* ExitWindowsEx() flags */
2971 #define EWX_LOGOFF 0
2972 #define EWX_SHUTDOWN 1
2973 #define EWX_REBOOT 2
2974 #define EWX_FORCE 4
2975 #define EWX_POWEROFF 8
2976 #define EWX_FORCEIFHUNG 16
2978 /* SetLastErrorEx types */
2979 #define SLE_ERROR 0x00000001
2980 #define SLE_MINORERROR 0x00000002
2981 #define SLE_WARNING 0x00000003
2983 /* Predefined resources */
2984 #define IDI_APPLICATION MAKEINTRESOURCE(32512)
2985 #define IDI_HAND MAKEINTRESOURCE(32513)
2986 #define IDI_QUESTION MAKEINTRESOURCE(32514)
2987 #define IDI_EXCLAMATION MAKEINTRESOURCE(32515)
2988 #define IDI_ASTERISK MAKEINTRESOURCE(32516)
2989 #define IDI_WINLOGO MAKEINTRESOURCE(32517)
2991 #define IDI_WARNING IDI_EXCLAMATION
2992 #define IDI_ERROR IDI_HAND
2993 #define IDI_INFORMATION IDI_ASTERISK
2995 #define IDC_ARROW MAKEINTRESOURCE(32512)
2996 #define IDC_IBEAM MAKEINTRESOURCE(32513)
2997 #define IDC_WAIT MAKEINTRESOURCE(32514)
2998 #define IDC_CROSS MAKEINTRESOURCE(32515)
2999 #define IDC_UPARROW MAKEINTRESOURCE(32516)
3000 #define IDC_SIZE MAKEINTRESOURCE(32640)
3001 #define IDC_ICON MAKEINTRESOURCE(32641)
3002 #define IDC_SIZENWSE MAKEINTRESOURCE(32642)
3003 #define IDC_SIZENESW MAKEINTRESOURCE(32643)
3004 #define IDC_SIZEWE MAKEINTRESOURCE(32644)
3005 #define IDC_SIZENS MAKEINTRESOURCE(32645)
3006 #define IDC_SIZEALL MAKEINTRESOURCE(32646)
3007 #define IDC_NO MAKEINTRESOURCE(32648)
3008 #define IDC_HAND MAKEINTRESOURCE(32649)
3009 #define IDC_APPSTARTING MAKEINTRESOURCE(32650)
3010 #define IDC_HELP MAKEINTRESOURCE(32651)
3012 #define MNC_IGNORE 0
3013 #define MNC_CLOSE 1
3014 #define MNC_EXECUTE 2
3015 #define MNC_SELECT 3
3017 /* SystemParametersInfo */
3018 #define SPI_GETBEEP 1
3019 #define SPI_SETBEEP 2
3020 #define SPI_GETMOUSE 3
3021 #define SPI_SETMOUSE 4
3022 #define SPI_GETBORDER 5
3023 #define SPI_SETBORDER 6
3024 #define SPI_GETKEYBOARDSPEED 10
3025 #define SPI_SETKEYBOARDSPEED 11
3026 #define SPI_LANGDRIVER 12
3027 #define SPI_ICONHORIZONTALSPACING 13
3028 #define SPI_GETSCREENSAVETIMEOUT 14
3029 #define SPI_SETSCREENSAVETIMEOUT 15
3030 #define SPI_GETSCREENSAVEACTIVE 16
3031 #define SPI_SETSCREENSAVEACTIVE 17
3032 #define SPI_GETGRIDGRANULARITY 18
3033 #define SPI_SETGRIDGRANULARITY 19
3034 #define SPI_SETDESKWALLPAPER 20
3035 #define SPI_SETDESKPATTERN 21
3036 #define SPI_GETKEYBOARDDELAY 22
3037 #define SPI_SETKEYBOARDDELAY 23
3038 #define SPI_ICONVERTICALSPACING 24
3039 #define SPI_GETICONTITLEWRAP 25
3040 #define SPI_SETICONTITLEWRAP 26
3041 #define SPI_GETMENUDROPALIGNMENT 27
3042 #define SPI_SETMENUDROPALIGNMENT 28
3043 #define SPI_SETDOUBLECLKWIDTH 29
3044 #define SPI_SETDOUBLECLKHEIGHT 30
3045 #define SPI_GETICONTITLELOGFONT 31
3046 #define SPI_SETDOUBLECLICKTIME 32
3047 #define SPI_SETMOUSEBUTTONSWAP 33
3048 #define SPI_SETICONTITLELOGFONT 34
3049 #define SPI_GETFASTTASKSWITCH 35
3050 #define SPI_SETFASTTASKSWITCH 36
3051 #define SPI_SETDRAGFULLWINDOWS 37
3052 #define SPI_GETDRAGFULLWINDOWS 38
3053 #define SPI_GETNONCLIENTMETRICS 41
3054 #define SPI_SETNONCLIENTMETRICS 42
3055 #define SPI_GETMINIMIZEDMETRICS 43
3056 #define SPI_SETMINIMIZEDMETRICS 44
3057 #define SPI_GETICONMETRICS 45
3058 #define SPI_SETICONMETRICS 46
3059 #define SPI_SETWORKAREA 47
3060 #define SPI_GETWORKAREA 48
3061 #define SPI_SETPENWINDOWS 49
3062 #define SPI_GETFILTERKEYS 50
3063 #define SPI_SETFILTERKEYS 51
3064 #define SPI_GETTOGGLEKEYS 52
3065 #define SPI_SETTOGGLEKEYS 53
3066 #define SPI_GETMOUSEKEYS 54
3067 #define SPI_SETMOUSEKEYS 55
3068 #define SPI_GETSHOWSOUNDS 56
3069 #define SPI_SETSHOWSOUNDS 57
3070 #define SPI_GETSTICKYKEYS 58
3071 #define SPI_SETSTICKYKEYS 59
3072 #define SPI_GETACCESSTIMEOUT 60
3073 #define SPI_SETACCESSTIMEOUT 61
3074 #define SPI_GETSERIALKEYS 62
3075 #define SPI_SETSERIALKEYS 63
3076 #define SPI_GETSOUNDSENTRY 64
3077 #define SPI_SETSOUNDSENTRY 65
3078 #define SPI_GETHIGHCONTRAST 66
3079 #define SPI_SETHIGHCONTRAST 67
3080 #define SPI_GETKEYBOARDPREF 68
3081 #define SPI_SETKEYBOARDPREF 69
3082 #define SPI_GETSCREENREADER 70
3083 #define SPI_SETSCREENREADER 71
3084 #define SPI_GETANIMATION 72
3085 #define SPI_SETANIMATION 73
3086 #define SPI_GETFONTSMOOTHING 74
3087 #define SPI_SETFONTSMOOTHING 75
3088 #define SPI_SETDRAGWIDTH 76
3089 #define SPI_SETDRAGHEIGHT 77
3090 #define SPI_SETHANDHELD 78
3091 #define SPI_GETLOWPOWERTIMEOUT 79
3092 #define SPI_GETPOWEROFFTIMEOUT 80
3093 #define SPI_SETLOWPOWERTIMEOUT 81
3094 #define SPI_SETPOWEROFFTIMEOUT 82
3095 #define SPI_GETLOWPOWERACTIVE 83
3096 #define SPI_GETPOWEROFFACTIVE 84
3097 #define SPI_SETLOWPOWERACTIVE 85
3098 #define SPI_SETPOWEROFFACTIVE 86
3099 #define SPI_SETCURSORS 87
3100 #define SPI_SETICONS 88
3101 #define SPI_GETDEFAULTINPUTLANG 89
3102 #define SPI_SETDEFAULTINPUTLANG 90
3103 #define SPI_SETLANGTOGGLE 91
3104 #define SPI_GETWINDOWSEXTENSION 92
3105 #define SPI_SETMOUSETRAILS 93
3106 #define SPI_GETMOUSETRAILS 94
3107 #define SPI_GETSNAPTODEFBUTTON 95
3108 #define SPI_SETSNAPTODEFBUTTON 96
3109 #define SPI_SETSCREENSAVERRUNNING 97
3110 #define SPI_SCREENSAVERRUNNING SPI_SETSCREENSAVERRUNNING
3111 #define SPI_GETMOUSEHOVERWIDTH 98
3112 #define SPI_SETMOUSEHOVERWIDTH 99
3113 #define SPI_GETMOUSEHOVERHEIGHT 100
3114 #define SPI_SETMOUSEHOVERHEIGHT 101
3115 #define SPI_GETMOUSEHOVERTIME 102
3116 #define SPI_SETMOUSEHOVERTIME 103
3117 #define SPI_GETWHEELSCROLLLINES 104
3118 #define SPI_SETWHEELSCROLLLINES 105
3119 #define SPI_GETMENUSHOWDELAY 106
3120 #define SPI_SETMENUSHOWDELAY 107
3121 #define SPI_GETWHEELSCROLLCHARS 108
3122 #define SPI_SETWHEELSCROLLCHARS 109
3123 #define SPI_GETSHOWIMEUI 110
3124 #define SPI_SETSHOWIMEUI 111
3125 #define SPI_GETMOUSESPEED 112
3126 #define SPI_SETMOUSESPEED 113
3127 #define SPI_GETSCREENSAVERRUNNING 114
3128 #define SPI_GETDESKWALLPAPER 115
3130 #define SPI_GETACTIVEWINDOWTRACKING 0x1000
3131 #define SPI_SETACTIVEWINDOWTRACKING 0x1001
3132 #define SPI_GETMENUANIMATION 0x1002
3133 #define SPI_SETMENUANIMATION 0x1003
3134 #define SPI_GETCOMBOBOXANIMATION 0x1004
3135 #define SPI_SETCOMBOBOXANIMATION 0x1005
3136 #define SPI_GETLISTBOXSMOOTHSCROLLING 0x1006
3137 #define SPI_SETLISTBOXSMOOTHSCROLLING 0x1007
3138 #define SPI_GETGRADIENTCAPTIONS 0x1008
3139 #define SPI_SETGRADIENTCAPTIONS 0x1009
3140 #define SPI_GETKEYBOARDCUES 0x100A
3141 #define SPI_SETKEYBOARDCUES 0x100B
3142 #define SPI_GETMENUUNDERLINES SPI_GETKEYBOARDCUES
3143 #define SPI_SETMENUUNDERLINES SPI_SETKEYBOARDCUES
3144 #define SPI_GETACTIVEWNDTRKZORDER 0x100C
3145 #define SPI_SETACTIVEWNDTRKZORDER 0x100D
3146 #define SPI_GETHOTTRACKING 0x100E
3147 #define SPI_SETHOTTRACKING 0x100F
3148 #define SPI_GETMENUFADE 0x1012
3149 #define SPI_SETMENUFADE 0x1013
3150 #define SPI_GETSELECTIONFADE 0x1014
3151 #define SPI_SETSELECTIONFADE 0x1015
3152 #define SPI_GETTOOLTIPANIMATION 0x1016
3153 #define SPI_SETTOOLTIPANIMATION 0x1017
3154 #define SPI_GETTOOLTIPFADE 0x1018
3155 #define SPI_SETTOOLTIPFADE 0x1019
3156 #define SPI_GETCURSORSHADOW 0x101A
3157 #define SPI_SETCURSORSHADOW 0x101B
3158 #define SPI_GETMOUSESONAR 0x101C
3159 #define SPI_SETMOUSESONAR 0x101D
3160 #define SPI_GETMOUSECLICKLOCK 0x101E
3161 #define SPI_SETMOUSECLICKLOCK 0x101F
3162 #define SPI_GETMOUSEVANISH 0x1020
3163 #define SPI_SETMOUSEVANISH 0x1021
3164 #define SPI_GETFLATMENU 0x1022
3165 #define SPI_SETFLATMENU 0x1023
3166 #define SPI_GETDROPSHADOW 0x1024
3167 #define SPI_SETDROPSHADOW 0x1025
3168 #define SPI_GETBLOCKSENDINPUTRESETS 0x1026
3169 #define SPI_SETBLOCKSENDINPUTRESETS 0x1027
3170 #define SPI_GETUIEFFECTS 0x103E
3171 #define SPI_SETUIEFFECTS 0x103F
3172 #define SPI_GETDISABLEOVERLAPPEDCONTENT 0x1040
3173 #define SPI_SETDISABLEOVERLAPPEDCONTENT 0x1041
3174 #define SPI_GETCLIENTAREAANIMATION 0x1042
3175 #define SPI_SETCLIENTAREAANIMATION 0x1043
3176 #define SPI_GETCLEARTYPE 0x1048
3177 #define SPI_SETCLEARTYPE 0x1049
3178 #define SPI_GETSPEECHRECOGNITION 0x104A
3179 #define SPI_SETSPEECHRECOGNITION 0x104B
3180 #define SPI_GETFOREGROUNDLOCKTIMEOUT 0x2000
3181 #define SPI_SETFOREGROUNDLOCKTIMEOUT 0x2001
3182 #define SPI_GETACTIVEWNDTRKTIMEOUT 0x2002
3183 #define SPI_SETACTIVEWNDTRKTIMEOUT 0x2003
3184 #define SPI_GETFOREGROUNDFLASHCOUNT 0x2004
3185 #define SPI_SETFOREGROUNDFLASHCOUNT 0x2005
3186 #define SPI_GETCARETWIDTH 0x2006
3187 #define SPI_SETCARETWIDTH 0x2007
3188 #define SPI_GETMOUSECLICKLOCKTIME 0x2008
3189 #define SPI_SETMOUSECLICKLOCKTIME 0x2009
3190 #define SPI_GETFONTSMOOTHINGTYPE 0x200A
3191 #define SPI_SETFONTSMOOTHINGTYPE 0x200B
3192 #define SPI_GETFONTSMOOTHINGCONTRAST 0x200C
3193 #define SPI_SETFONTSMOOTHINGCONTRAST 0x200D
3194 #define SPI_GETFOCUSBORDERWIDTH 0x200E
3195 #define SPI_SETFOCUSBORDERWIDTH 0x200F
3196 #define SPI_GETFOCUSBORDERHEIGHT 0x2010
3197 #define SPI_SETFOCUSBORDERHEIGHT 0x2011
3198 #define SPI_GETFONTSMOOTHINGORIENTATION 0x2012
3199 #define SPI_SETFONTSMOOTHINGORIENTATION 0x2013
3201 #define FE_FONTSMOOTHINGSTANDARD 0x0001
3202 #define FE_FONTSMOOTHINGCLEARTYPE 0x0002
3203 #define FE_FONTSMOOTHINGDOCKING 0x8000
3205 #define FE_FONTSMOOTHINGORIENTATIONBGR 0x0000
3206 #define FE_FONTSMOOTHINGORIENTATIONRGB 0x0001
3208 #define SETWALLPAPER_DEFAULT ((LPWSTR)-1)
3210 /* SystemParametersInfo flags */
3212 #define SPIF_UPDATEINIFILE 1
3213 #define SPIF_SENDWININICHANGE 2
3214 #define SPIF_SENDCHANGE SPIF_SENDWININICHANGE
3216 #if defined(_WINGDI_) && !defined(NOGDI)
3217 typedef struct tagNONCLIENTMETRICSA {
3218 UINT cbSize;
3219 INT iBorderWidth;
3220 INT iScrollWidth;
3221 INT iScrollHeight;
3222 INT iCaptionWidth;
3223 INT iCaptionHeight;
3224 LOGFONTA lfCaptionFont;
3225 INT iSmCaptionWidth;
3226 INT iSmCaptionHeight;
3227 LOGFONTA lfSmCaptionFont;
3228 INT iMenuWidth;
3229 INT iMenuHeight;
3230 LOGFONTA lfMenuFont;
3231 LOGFONTA lfStatusFont;
3232 LOGFONTA lfMessageFont;
3233 } NONCLIENTMETRICSA, *PNONCLIENTMETRICSA, *LPNONCLIENTMETRICSA;
3235 typedef struct tagNONCLIENTMETRICSW {
3236 UINT cbSize;
3237 INT iBorderWidth;
3238 INT iScrollWidth;
3239 INT iScrollHeight;
3240 INT iCaptionWidth;
3241 INT iCaptionHeight;
3242 LOGFONTW lfCaptionFont;
3243 INT iSmCaptionWidth;
3244 INT iSmCaptionHeight;
3245 LOGFONTW lfSmCaptionFont;
3246 INT iMenuWidth;
3247 INT iMenuHeight;
3248 LOGFONTW lfMenuFont;
3249 LOGFONTW lfStatusFont;
3250 LOGFONTW lfMessageFont;
3251 } NONCLIENTMETRICSW, *PNONCLIENTMETRICSW, *LPNONCLIENTMETRICSW;
3253 DECL_WINELIB_TYPE_AW(NONCLIENTMETRICS)
3254 DECL_WINELIB_TYPE_AW(PNONCLIENTMETRICS)
3255 DECL_WINELIB_TYPE_AW(LPNONCLIENTMETRICS)
3257 typedef struct tagICONMETRICSA {
3258 UINT cbSize;
3259 int iHorzSpacing;
3260 int iVertSpacing;
3261 int iTitleWrap;
3262 LOGFONTA lfFont;
3263 } ICONMETRICSA, *PICONMETRICSA, *LPICONMETRICSA;
3265 typedef struct tagICONMETRICSW {
3266 UINT cbSize;
3267 int iHorzSpacing;
3268 int iVertSpacing;
3269 int iTitleWrap;
3270 LOGFONTW lfFont;
3271 } ICONMETRICSW, *PICONMETRICSW, *LPICONMETRICSW;
3273 DECL_WINELIB_TYPE_AW(ICONMETRICS)
3274 DECL_WINELIB_TYPE_AW(PICONMETRICS)
3275 DECL_WINELIB_TYPE_AW(LPICONMETRICS)
3277 typedef struct tagUPDATELAYEREDWINDOWINFO
3279 DWORD cbSize;
3280 HDC hdcDst;
3281 POINT CONST* pptDst;
3282 SIZE CONST* psize;
3283 HDC hdcSrc;
3284 POINT CONST* pptSrc;
3285 COLORREF crKey;
3286 BLENDFUNCTION CONST* pblend;
3287 DWORD dwFlags;
3288 RECT CONST* prcDirty;
3289 } UPDATELAYEREDWINDOWINFO, *PUPDATELAYEREDWINDOWINFO;
3291 #endif /* defined(_WINGDI_) && !defined(NOGDI) */
3293 #define ARW_BOTTOMLEFT 0x0000L
3294 #define ARW_BOTTOMRIGHT 0x0001L
3295 #define ARW_TOPLEFT 0x0002L
3296 #define ARW_TOPRIGHT 0x0003L
3297 #define ARW_STARTMASK 0x0003L
3298 #define ARW_STARTRIGHT 0x0001L
3299 #define ARW_STARTTOP 0x0002L
3301 #define ARW_LEFT 0x0000L
3302 #define ARW_RIGHT 0x0000L
3303 #define ARW_UP 0x0004L
3304 #define ARW_DOWN 0x0004L
3305 #define ARW_HIDE 0x0008L
3307 typedef struct tagMINIMIZEDMETRICS {
3308 UINT cbSize;
3309 int iWidth;
3310 int iHorzGap;
3311 int iVertGap;
3312 int iArrange;
3313 } MINIMIZEDMETRICS, *PMINIMIZEDMETRICS, *LPMINIMIZEDMETRICS;
3315 #ifndef NOWINSTYLES
3317 /* Window Styles */
3318 #define WS_OVERLAPPED 0x00000000L
3319 #define WS_POPUP 0x80000000L
3320 #define WS_CHILD 0x40000000L
3321 #define WS_MINIMIZE 0x20000000L
3322 #define WS_VISIBLE 0x10000000L
3323 #define WS_DISABLED 0x08000000L
3324 #define WS_CLIPSIBLINGS 0x04000000L
3325 #define WS_CLIPCHILDREN 0x02000000L
3326 #define WS_MAXIMIZE 0x01000000L
3327 #define WS_CAPTION 0x00C00000L
3328 #define WS_BORDER 0x00800000L
3329 #define WS_DLGFRAME 0x00400000L
3330 #define WS_VSCROLL 0x00200000L
3331 #define WS_HSCROLL 0x00100000L
3332 #define WS_SYSMENU 0x00080000L
3333 #define WS_THICKFRAME 0x00040000L
3334 #define WS_GROUP 0x00020000L
3335 #define WS_TABSTOP 0x00010000L
3336 #define WS_MINIMIZEBOX 0x00020000L
3337 #define WS_MAXIMIZEBOX 0x00010000L
3338 #define WS_TILED WS_OVERLAPPED
3339 #define WS_ICONIC WS_MINIMIZE
3340 #define WS_SIZEBOX WS_THICKFRAME
3341 #define WS_OVERLAPPEDWINDOW (WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME| WS_MINIMIZEBOX | WS_MAXIMIZEBOX)
3342 #define WS_POPUPWINDOW (WS_POPUP | WS_BORDER | WS_SYSMENU)
3343 #define WS_CHILDWINDOW (WS_CHILD)
3344 #define WS_TILEDWINDOW (WS_OVERLAPPEDWINDOW)
3346 /* Window extended styles */
3347 #define WS_EX_DLGMODALFRAME 0x00000001L
3348 #define WS_EX_DRAGDETECT 0x00000002L
3349 #define WS_EX_NOPARENTNOTIFY 0x00000004L
3350 #define WS_EX_TOPMOST 0x00000008L
3351 #define WS_EX_ACCEPTFILES 0x00000010L
3352 #define WS_EX_TRANSPARENT 0x00000020L
3353 #define WS_EX_MDICHILD 0x00000040L
3354 #define WS_EX_TOOLWINDOW 0x00000080L
3355 #define WS_EX_WINDOWEDGE 0x00000100L
3356 #define WS_EX_CLIENTEDGE 0x00000200L
3357 #define WS_EX_CONTEXTHELP 0x00000400L
3358 #define WS_EX_RIGHT 0x00001000L
3359 #define WS_EX_LEFT 0x00000000L
3360 #define WS_EX_RTLREADING 0x00002000L
3361 #define WS_EX_LTRREADING 0x00000000L
3362 #define WS_EX_LEFTSCROLLBAR 0x00004000L
3363 #define WS_EX_RIGHTSCROLLBAR 0x00000000L
3364 #define WS_EX_CONTROLPARENT 0x00010000L
3365 #define WS_EX_STATICEDGE 0x00020000L
3366 #define WS_EX_APPWINDOW 0x00040000L
3367 #define WS_EX_LAYERED 0x00080000L
3368 #define WS_EX_NOINHERITLAYOUT 0x00100000L
3369 #define WS_EX_LAYOUTRTL 0x00400000L
3370 #define WS_EX_COMPOSITED 0x02000000L
3371 #define WS_EX_NOACTIVATE 0x08000000L
3373 #define WS_EX_OVERLAPPEDWINDOW (WS_EX_WINDOWEDGE|WS_EX_CLIENTEDGE)
3374 #define WS_EX_PALETTEWINDOW (WS_EX_WINDOWEDGE|WS_EX_TOOLWINDOW|WS_EX_TOPMOST)
3376 #endif /* NOWINSTYLES */
3378 /* Window scrolling */
3379 #define SW_SCROLLCHILDREN 0x0001
3380 #define SW_INVALIDATE 0x0002
3381 #define SW_ERASE 0x0004
3383 /* CreateWindow() coordinates */
3384 #define CW_USEDEFAULT ((INT)0x80000000)
3386 /* ChildWindowFromPointEx Flags */
3387 #define CWP_ALL 0x0000
3388 #define CWP_SKIPINVISIBLE 0x0001
3389 #define CWP_SKIPDISABLED 0x0002
3390 #define CWP_SKIPTRANSPARENT 0x0004
3392 /* PeekMessage() options */
3393 #define PM_NOREMOVE 0x0000
3394 #define PM_REMOVE 0x0001
3395 #define PM_NOYIELD 0x0002
3396 #define PM_QS_INPUT (QS_INPUT << 16)
3397 #define PM_QS_POSTMESSAGE ((QS_POSTMESSAGE | QS_HOTKEY | QS_TIMER) << 16)
3398 #define PM_QS_PAINT (QS_PAINT << 16)
3399 #define PM_QS_SENDMESSAGE (QS_SENDMESSAGE << 16)
3401 /* AnimateWindow() flags */
3402 #define AW_SLIDE 0x00040000
3403 #define AW_ACTIVATE 0x00020000
3404 #define AW_BLEND 0x00080000
3405 #define AW_HIDE 0x00010000
3406 #define AW_CENTER 0x00000010
3407 #define AW_HOR_POSITIVE 0x00000001
3408 #define AW_HOR_NEGATIVE 0x00000002
3409 #define AW_VER_POSITIVE 0x00000004
3410 #define AW_VER_NEGATIVE 0x00000008
3412 /* FlashWindowEx() flags */
3413 #define FLASHW_STOP 0x00000000
3414 #define FLASHW_CAPTION 0x00000001
3415 #define FLASHW_TRAY 0x00000002
3416 #define FLASHW_ALL (FLASHW_CAPTION|FLASHW_TRAY)
3417 #define FLASHW_TIMER 0x00000004
3418 #define FLASHW_TIMERNOFG 0x0000000C
3420 typedef struct {
3421 UINT cbSize;
3422 HWND hwnd;
3423 DWORD dwFlags;
3424 UINT uCount;
3425 DWORD dwTimeout;
3426 } FLASHWINFO, *PFLASHWINFO;
3428 /* WM_SHOWWINDOW lParam codes */
3429 #define SW_PARENTCLOSING 1
3430 #define SW_OTHERZOOM 2
3431 #define SW_PARENTOPENING 3
3432 #define SW_OTHERUNZOOM 4
3434 /* SetLayeredWindowAttributes() flags */
3435 #define LWA_COLORKEY 0x00000001
3436 #define LWA_ALPHA 0x00000002
3438 /* UpdateLayeredWindow() flags */
3439 #define ULW_COLORKEY 0x00000001
3440 #define ULW_ALPHA 0x00000002
3441 #define ULW_OPAQUE 0x00000004
3442 #define ULW_EX_NORESIZE 0x00000008
3444 /* ShowWindow() codes */
3445 #define SW_HIDE 0
3446 #define SW_SHOWNORMAL 1
3447 #define SW_NORMAL 1
3448 #define SW_SHOWMINIMIZED 2
3449 #define SW_SHOWMAXIMIZED 3
3450 #define SW_MAXIMIZE 3
3451 #define SW_SHOWNOACTIVATE 4
3452 #define SW_SHOW 5
3453 #define SW_MINIMIZE 6
3454 #define SW_SHOWMINNOACTIVE 7
3455 #define SW_SHOWNA 8
3456 #define SW_RESTORE 9
3457 #define SW_SHOWDEFAULT 10
3458 #define SW_FORCEMINIMIZE 11
3459 #define SW_MAX 11
3460 #define SW_NORMALNA 0xCC /* undoc. flag in MinMaximize */
3462 /* WM_SIZE message wParam values */
3463 #define SIZE_RESTORED 0
3464 #define SIZE_MINIMIZED 1
3465 #define SIZE_MAXIMIZED 2
3466 #define SIZE_MAXSHOW 3
3467 #define SIZE_MAXHIDE 4
3468 #define SIZENORMAL SIZE_RESTORED
3469 #define SIZEICONIC SIZE_MINIMIZED
3470 #define SIZEFULLSCREEN SIZE_MAXIMIZED
3471 #define SIZEZOOMSHOW SIZE_MAXSHOW
3472 #define SIZEZOOMHIDE SIZE_MAXHIDE
3474 /* SetWindowPos() and WINDOWPOS flags */
3475 #define SWP_NOSIZE 0x0001
3476 #define SWP_NOMOVE 0x0002
3477 #define SWP_NOZORDER 0x0004
3478 #define SWP_NOREDRAW 0x0008
3479 #define SWP_NOACTIVATE 0x0010
3480 #define SWP_FRAMECHANGED 0x0020 /* The frame changed: send WM_NCCALCSIZE */
3481 #define SWP_SHOWWINDOW 0x0040
3482 #define SWP_HIDEWINDOW 0x0080
3483 #define SWP_NOCOPYBITS 0x0100
3484 #define SWP_NOOWNERZORDER 0x0200 /* Don't do owner Z ordering */
3486 #define SWP_DRAWFRAME SWP_FRAMECHANGED
3487 #define SWP_NOREPOSITION SWP_NOOWNERZORDER
3489 #define SWP_NOSENDCHANGING 0x0400
3490 #define SWP_DEFERERASE 0x2000
3491 #define SWP_ASYNCWINDOWPOS 0x4000
3493 /* undocumented SWP flags - from SDK 3.1 */
3494 #define SWP_NOCLIENTSIZE 0x0800
3495 #define SWP_NOCLIENTMOVE 0x1000
3496 #define SWP_STATECHANGED 0x8000
3498 #define HWND_DESKTOP ((HWND)0)
3499 #define HWND_BROADCAST ((HWND)0xffff)
3501 /* SetWindowPos() hwndInsertAfter field values */
3502 #define HWND_TOP ((HWND)0)
3503 #define HWND_BOTTOM ((HWND)1)
3504 #define HWND_TOPMOST ((HWND)-1)
3505 #define HWND_NOTOPMOST ((HWND)-2)
3506 #define HWND_MESSAGE ((HWND)-3)
3508 /* GetDCEx flags */
3509 #define DCX_WINDOW 0x00000001
3510 #define DCX_CACHE 0x00000002
3511 #define DCX_NORESETATTRS 0x00000004
3512 #define DCX_CLIPCHILDREN 0x00000008
3513 #define DCX_CLIPSIBLINGS 0x00000010
3514 #define DCX_PARENTCLIP 0x00000020
3515 #define DCX_EXCLUDERGN 0x00000040
3516 #define DCX_INTERSECTRGN 0x00000080
3517 #define DCX_EXCLUDEUPDATE 0x00000100
3518 #define DCX_INTERSECTUPDATE 0x00000200
3519 #define DCX_LOCKWINDOWUPDATE 0x00000400
3520 #define DCX_USESTYLE 0x00010000
3521 #define DCX_NORECOMPUTE 0x00100000
3522 #define DCX_VALIDATE 0x00200000
3524 #define MF_INSERT 0x0000
3525 #define MF_CHANGE 0x0080
3526 #define MF_APPEND 0x0100
3527 #define MF_DELETE 0x0200
3528 #define MF_REMOVE 0x1000
3529 #define MF_END 0x0080
3531 #define MF_ENABLED 0x0000
3532 #define MF_GRAYED 0x0001
3533 #define MF_DISABLED 0x0002
3534 #define MF_STRING 0x0000
3535 #define MF_BITMAP 0x0004
3536 #define MF_UNCHECKED 0x0000
3537 #define MF_CHECKED 0x0008
3538 #define MF_POPUP 0x0010
3539 #define MF_MENUBARBREAK 0x0020
3540 #define MF_MENUBREAK 0x0040
3541 #define MF_UNHILITE 0x0000
3542 #define MF_HILITE 0x0080
3543 #define MF_OWNERDRAW 0x0100
3544 #define MF_USECHECKBITMAPS 0x0200
3545 #define MF_BYCOMMAND 0x0000
3546 #define MF_BYPOSITION 0x0400
3547 #define MF_SEPARATOR 0x0800
3548 #define MF_DEFAULT 0x1000
3549 #define MF_SYSMENU 0x2000
3550 #define MF_HELP 0x4000
3551 #define MF_RIGHTJUSTIFY 0x4000
3552 #define MF_MOUSESELECT 0x8000
3554 /* Flags for extended menu item types. */
3555 #define MFT_STRING MF_STRING
3556 #define MFT_BITMAP MF_BITMAP
3557 #define MFT_MENUBARBREAK MF_MENUBARBREAK
3558 #define MFT_MENUBREAK MF_MENUBREAK
3559 #define MFT_OWNERDRAW MF_OWNERDRAW
3560 #define MFT_RADIOCHECK 0x00000200L
3561 #define MFT_SEPARATOR MF_SEPARATOR
3562 #define MFT_RIGHTORDER 0x00002000L
3563 #define MFT_RIGHTJUSTIFY MF_RIGHTJUSTIFY
3565 /* Flags for extended menu item states. */
3566 #define MFS_GRAYED 0x00000003L
3567 #define MFS_DISABLED MFS_GRAYED
3568 #define MFS_CHECKED MF_CHECKED
3569 #define MFS_HILITE MF_HILITE
3570 #define MFS_ENABLED MF_ENABLED
3571 #define MFS_UNCHECKED MF_UNCHECKED
3572 #define MFS_UNHILITE MF_UNHILITE
3573 #define MFS_DEFAULT MF_DEFAULT
3574 #define MFS_MASK 0x0000108BL
3575 #define MFS_HOTTRACKDRAWN 0x10000000L
3576 #define MFS_CACHEDBMP 0x20000000L
3577 #define MFS_BOTTOMGAPDROP 0x40000000L
3578 #define MFS_TOPGAPDROP 0x80000000L
3579 #define MFS_GAPDROP 0xC0000000L
3581 /* for GetMenuDefaultItem */
3582 #define GMDI_USEDISABLED 0x0001L
3583 #define GMDI_GOINTOPOPUPS 0x0002L
3585 /* DrawText() flags */
3586 #define DT_TOP 0x00000000
3587 #define DT_LEFT 0x00000000
3588 #define DT_CENTER 0x00000001
3589 #define DT_RIGHT 0x00000002
3590 #define DT_VCENTER 0x00000004
3591 #define DT_BOTTOM 0x00000008
3592 #define DT_WORDBREAK 0x00000010
3593 #define DT_SINGLELINE 0x00000020
3594 #define DT_EXPANDTABS 0x00000040
3595 #define DT_TABSTOP 0x00000080
3596 #define DT_NOCLIP 0x00000100
3597 #define DT_EXTERNALLEADING 0x00000200
3598 #define DT_CALCRECT 0x00000400
3599 #define DT_NOPREFIX 0x00000800
3600 #define DT_INTERNAL 0x00001000
3601 #define DT_EDITCONTROL 0x00002000
3602 #define DT_PATH_ELLIPSIS 0x00004000
3603 #define DT_END_ELLIPSIS 0x00008000
3604 #define DT_MODIFYSTRING 0x00010000
3605 #define DT_RTLREADING 0x00020000
3606 #define DT_WORD_ELLIPSIS 0x00040000
3607 #define DT_NOFULLWIDTHCHARBREAK 0x00080000
3608 #define DT_HIDEPREFIX 0x00100000
3609 #define DT_PREFIXONLY 0x00200000
3611 /* DrawCaption()/DrawCaptionTemp() flags */
3612 #define DC_ACTIVE 0x0001
3613 #define DC_SMALLCAP 0x0002
3614 #define DC_ICON 0x0004
3615 #define DC_TEXT 0x0008
3616 #define DC_INBUTTON 0x0010
3617 #define DC_GRADIENT 0x0020
3618 #define DC_BUTTONS 0x1000
3620 /* DrawEdge() flags */
3621 #define BDR_RAISEDOUTER 0x0001
3622 #define BDR_SUNKENOUTER 0x0002
3623 #define BDR_RAISEDINNER 0x0004
3624 #define BDR_SUNKENINNER 0x0008
3626 #define BDR_OUTER 0x0003
3627 #define BDR_INNER 0x000c
3628 #define BDR_RAISED 0x0005
3629 #define BDR_SUNKEN 0x000a
3631 #define EDGE_RAISED (BDR_RAISEDOUTER | BDR_RAISEDINNER)
3632 #define EDGE_SUNKEN (BDR_SUNKENOUTER | BDR_SUNKENINNER)
3633 #define EDGE_ETCHED (BDR_SUNKENOUTER | BDR_RAISEDINNER)
3634 #define EDGE_BUMP (BDR_RAISEDOUTER | BDR_SUNKENINNER)
3636 /* border flags */
3637 #define BF_LEFT 0x0001
3638 #define BF_TOP 0x0002
3639 #define BF_RIGHT 0x0004
3640 #define BF_BOTTOM 0x0008
3641 #define BF_DIAGONAL 0x0010
3642 #define BF_MIDDLE 0x0800 /* Fill in the middle */
3643 #define BF_SOFT 0x1000 /* For softer buttons */
3644 #define BF_ADJUST 0x2000 /* Calculate the space left over */
3645 #define BF_FLAT 0x4000 /* For flat rather than 3D borders */
3646 #define BF_MONO 0x8000 /* For monochrome borders */
3647 #define BF_TOPLEFT (BF_TOP | BF_LEFT)
3648 #define BF_TOPRIGHT (BF_TOP | BF_RIGHT)
3649 #define BF_BOTTOMLEFT (BF_BOTTOM | BF_LEFT)
3650 #define BF_BOTTOMRIGHT (BF_BOTTOM | BF_RIGHT)
3651 #define BF_RECT (BF_LEFT | BF_TOP | BF_RIGHT | BF_BOTTOM)
3652 #define BF_DIAGONAL_ENDTOPRIGHT (BF_DIAGONAL | BF_TOP | BF_RIGHT)
3653 #define BF_DIAGONAL_ENDTOPLEFT (BF_DIAGONAL | BF_TOP | BF_LEFT)
3654 #define BF_DIAGONAL_ENDBOTTOMLEFT (BF_DIAGONAL | BF_BOTTOM | BF_LEFT)
3655 #define BF_DIAGONAL_ENDBOTTOMRIGHT (BF_DIAGONAL | BF_BOTTOM | BF_RIGHT)
3657 /* DrawFrameControl() uType's */
3659 #define DFC_CAPTION 1
3660 #define DFC_MENU 2
3661 #define DFC_SCROLL 3
3662 #define DFC_BUTTON 4
3663 #define DFC_POPUPMENU 5
3665 /* uState's */
3667 #define DFCS_CAPTIONCLOSE 0x0000
3668 #define DFCS_CAPTIONMIN 0x0001
3669 #define DFCS_CAPTIONMAX 0x0002
3670 #define DFCS_CAPTIONRESTORE 0x0003
3671 #define DFCS_CAPTIONHELP 0x0004 /* Windows 95 only */
3673 #define DFCS_MENUARROW 0x0000
3674 #define DFCS_MENUCHECK 0x0001
3675 #define DFCS_MENUBULLET 0x0002
3676 #define DFCS_MENUARROWRIGHT 0x0004
3678 #define DFCS_SCROLLUP 0x0000
3679 #define DFCS_SCROLLDOWN 0x0001
3680 #define DFCS_SCROLLLEFT 0x0002
3681 #define DFCS_SCROLLRIGHT 0x0003
3682 #define DFCS_SCROLLCOMBOBOX 0x0005
3683 #define DFCS_SCROLLSIZEGRIP 0x0008
3684 #define DFCS_SCROLLSIZEGRIPRIGHT 0x0010
3686 #define DFCS_BUTTONCHECK 0x0000
3687 #define DFCS_BUTTONRADIOIMAGE 0x0001
3688 #define DFCS_BUTTONRADIOMASK 0x0002 /* to draw nonsquare button */
3689 #define DFCS_BUTTONRADIO 0x0004
3690 #define DFCS_BUTTON3STATE 0x0008
3691 #define DFCS_BUTTONPUSH 0x0010
3693 /* additional state of the control */
3695 #define DFCS_INACTIVE 0x0100
3696 #define DFCS_PUSHED 0x0200
3697 #define DFCS_CHECKED 0x0400
3698 #define DFCS_TRANSPARENT 0x0800
3699 #define DFCS_HOT 0x1000
3700 #define DFCS_ADJUSTRECT 0x2000 /* exclude surrounding edge */
3701 #define DFCS_FLAT 0x4000
3702 #define DFCS_MONO 0x8000
3705 /* Image type */
3706 #define DST_COMPLEX 0x0000
3707 #define DST_TEXT 0x0001
3708 #define DST_PREFIXTEXT 0x0002
3709 #define DST_ICON 0x0003
3710 #define DST_BITMAP 0x0004
3712 /* State type */
3713 #define DSS_NORMAL 0x0000
3714 #define DSS_UNION 0x0010 /* Gray string appearance */
3715 #define DSS_DISABLED 0x0020
3716 #define DSS_DEFAULT 0x0040 /* Make it bold */
3717 #define DSS_MONO 0x0080
3718 #define DSS_HIDEPREFIX 0x0200
3719 #define DSS_PREFIXONLY 0x0400
3720 #define DSS_RIGHT 0x8000
3722 /* UserObjectInformation classes */
3723 #define UOI_FLAGS 1
3724 #define UOI_NAME 2
3725 #define UOI_TYPE 3
3726 #define UOI_USER_SID 4
3729 /* Sent as the lParam of a WM_DRAWITEM message to instruct how an
3730 * owner drawn control is to be drawn */
3731 typedef struct tagDRAWITEMSTRUCT
3733 UINT CtlType; /* Type of control (ODT_* flags from "winuser.h") */
3734 UINT CtlID; /* Control ID */
3735 UINT itemID; /* Menu item ID */
3736 UINT itemAction; /* Action to perform (ODA_* flags from "winuser.h") */
3737 UINT itemState; /* Item state (ODS_* flags from "winuser.h") */
3738 HWND hwndItem; /* Control window */
3739 HDC hDC; /* Device context to draw to */
3740 RECT rcItem; /* Position of the control in hDC */
3741 ULONG_PTR itemData; /* Extra data added by the application, if any */
3742 } DRAWITEMSTRUCT, *PDRAWITEMSTRUCT, *LPDRAWITEMSTRUCT;
3745 typedef struct tagMEASUREITEMSTRUCT
3747 UINT CtlType;
3748 UINT CtlID;
3749 UINT itemID;
3750 UINT itemWidth;
3751 UINT itemHeight;
3752 ULONG_PTR itemData;
3753 } MEASUREITEMSTRUCT, *PMEASUREITEMSTRUCT, *LPMEASUREITEMSTRUCT;
3756 typedef struct tagDELETEITEMSTRUCT
3758 UINT CtlType;
3759 UINT CtlID;
3760 UINT itemID;
3761 HWND hwndItem;
3762 ULONG_PTR itemData;
3763 } DELETEITEMSTRUCT, *PDELETEITEMSTRUCT, *LPDELETEITEMSTRUCT;
3766 typedef struct tagCOMPAREITEMSTRUCT
3768 UINT CtlType;
3769 UINT CtlID;
3770 HWND hwndItem;
3771 UINT itemID1;
3772 ULONG_PTR itemData1;
3773 UINT itemID2;
3774 ULONG_PTR itemData2;
3775 DWORD dwLocaleId;
3776 } COMPAREITEMSTRUCT, *PCOMPAREITEMSTRUCT, *LPCOMPAREITEMSTRUCT;
3779 /* WM_KEYUP/DOWN/CHAR HIWORD(lParam) flags */
3780 #define KF_EXTENDED 0x0100
3781 #define KF_DLGMODE 0x0800
3782 #define KF_MENUMODE 0x1000
3783 #define KF_ALTDOWN 0x2000
3784 #define KF_REPEAT 0x4000
3785 #define KF_UP 0x8000
3787 /* Virtual key codes */
3788 #define VK_LBUTTON 0x01
3789 #define VK_RBUTTON 0x02
3790 #define VK_CANCEL 0x03
3791 #define VK_MBUTTON 0x04
3792 #define VK_XBUTTON1 0x05
3793 #define VK_XBUTTON2 0x06
3794 /* 0x07 Undefined */
3795 #define VK_BACK 0x08
3796 #define VK_TAB 0x09
3797 /* 0x0A-0x0B Undefined */
3798 #define VK_CLEAR 0x0C
3799 #define VK_RETURN 0x0D
3800 /* 0x0E-0x0F Undefined */
3801 #define VK_SHIFT 0x10
3802 #define VK_CONTROL 0x11
3803 #define VK_MENU 0x12
3804 #define VK_PAUSE 0x13
3805 #define VK_CAPITAL 0x14
3807 #define VK_KANA 0x15
3808 #define VK_HANGEUL 0x15
3809 #define VK_HANGUL 0x15
3810 #define VK_JUNJA 0x17
3811 #define VK_FINAL 0x18
3812 #define VK_HANJA 0x19
3813 #define VK_KANJI 0x19
3815 /* 0x1A Undefined */
3816 #define VK_ESCAPE 0x1B
3818 #define VK_CONVERT 0x1C
3819 #define VK_NONCONVERT 0x1D
3820 #define VK_ACCEPT 0x1E
3821 #define VK_MODECHANGE 0x1F
3823 #define VK_SPACE 0x20
3824 #define VK_PRIOR 0x21
3825 #define VK_NEXT 0x22
3826 #define VK_END 0x23
3827 #define VK_HOME 0x24
3828 #define VK_LEFT 0x25
3829 #define VK_UP 0x26
3830 #define VK_RIGHT 0x27
3831 #define VK_DOWN 0x28
3832 #define VK_SELECT 0x29
3833 #define VK_PRINT 0x2A /* OEM specific in Windows 3.1 SDK */
3834 #define VK_EXECUTE 0x2B
3835 #define VK_SNAPSHOT 0x2C
3836 #define VK_INSERT 0x2D
3837 #define VK_DELETE 0x2E
3838 #define VK_HELP 0x2F
3839 /* VK_0 - VK-9 0x30-0x39 Use ASCII instead */
3840 /* 0x3A-0x40 Undefined */
3841 /* VK_A - VK_Z 0x41-0x5A Use ASCII instead */
3842 #define VK_LWIN 0x5B
3843 #define VK_RWIN 0x5C
3844 #define VK_APPS 0x5D
3845 /* 0x5E Unassigned */
3846 #define VK_SLEEP 0x5F
3847 #define VK_NUMPAD0 0x60
3848 #define VK_NUMPAD1 0x61
3849 #define VK_NUMPAD2 0x62
3850 #define VK_NUMPAD3 0x63
3851 #define VK_NUMPAD4 0x64
3852 #define VK_NUMPAD5 0x65
3853 #define VK_NUMPAD6 0x66
3854 #define VK_NUMPAD7 0x67
3855 #define VK_NUMPAD8 0x68
3856 #define VK_NUMPAD9 0x69
3857 #define VK_MULTIPLY 0x6A
3858 #define VK_ADD 0x6B
3859 #define VK_SEPARATOR 0x6C
3860 #define VK_SUBTRACT 0x6D
3861 #define VK_DECIMAL 0x6E
3862 #define VK_DIVIDE 0x6F
3863 #define VK_F1 0x70
3864 #define VK_F2 0x71
3865 #define VK_F3 0x72
3866 #define VK_F4 0x73
3867 #define VK_F5 0x74
3868 #define VK_F6 0x75
3869 #define VK_F7 0x76
3870 #define VK_F8 0x77
3871 #define VK_F9 0x78
3872 #define VK_F10 0x79
3873 #define VK_F11 0x7A
3874 #define VK_F12 0x7B
3875 #define VK_F13 0x7C
3876 #define VK_F14 0x7D
3877 #define VK_F15 0x7E
3878 #define VK_F16 0x7F
3879 #define VK_F17 0x80
3880 #define VK_F18 0x81
3881 #define VK_F19 0x82
3882 #define VK_F20 0x83
3883 #define VK_F21 0x84
3884 #define VK_F22 0x85
3885 #define VK_F23 0x86
3886 #define VK_F24 0x87
3887 /* 0x88-0x8F Unassigned */
3888 #define VK_NUMLOCK 0x90
3889 #define VK_SCROLL 0x91
3890 #define VK_OEM_NEC_EQUAL 0x92
3891 #define VK_OEM_FJ_JISHO 0x92
3892 #define VK_OEM_FJ_MASSHOU 0x93
3893 #define VK_OEM_FJ_TOUROKU 0x94
3894 #define VK_OEM_FJ_LOYA 0x95
3895 #define VK_OEM_FJ_ROYA 0x96
3896 /* 0x97-0x9F Unassigned */
3898 * differencing between right and left shift/control/alt key.
3899 * Used only by GetAsyncKeyState() and GetKeyState().
3901 #define VK_LSHIFT 0xA0
3902 #define VK_RSHIFT 0xA1
3903 #define VK_LCONTROL 0xA2
3904 #define VK_RCONTROL 0xA3
3905 #define VK_LMENU 0xA4
3906 #define VK_RMENU 0xA5
3908 #define VK_BROWSER_BACK 0xA6
3909 #define VK_BROWSER_FORWARD 0xA7
3910 #define VK_BROWSER_REFRESH 0xA8
3911 #define VK_BROWSER_STOP 0xA9
3912 #define VK_BROWSER_SEARCH 0xAA
3913 #define VK_BROWSER_FAVORITES 0xAB
3914 #define VK_BROWSER_HOME 0xAC
3915 #define VK_VOLUME_MUTE 0xAD
3916 #define VK_VOLUME_DOWN 0xAE
3917 #define VK_VOLUME_UP 0xAF
3918 #define VK_MEDIA_NEXT_TRACK 0xB0
3919 #define VK_MEDIA_PREV_TRACK 0xB1
3920 #define VK_MEDIA_STOP 0xB2
3921 #define VK_MEDIA_PLAY_PAUSE 0xB3
3922 #define VK_LAUNCH_MAIL 0xB4
3923 #define VK_LAUNCH_MEDIA_SELECT 0xB5
3924 #define VK_LAUNCH_APP1 0xB6
3925 #define VK_LAUNCH_APP2 0xB7
3927 /* 0xB8-0xB9 Unassigned */
3928 #define VK_OEM_1 0xBA
3929 #define VK_OEM_PLUS 0xBB
3930 #define VK_OEM_COMMA 0xBC
3931 #define VK_OEM_MINUS 0xBD
3932 #define VK_OEM_PERIOD 0xBE
3933 #define VK_OEM_2 0xBF
3934 #define VK_OEM_3 0xC0
3935 /* 0xC1-0xDA Unassigned */
3936 #define VK_OEM_4 0xDB
3937 #define VK_OEM_5 0xDC
3938 #define VK_OEM_6 0xDD
3939 #define VK_OEM_7 0xDE
3940 #define VK_OEM_8 0xDF
3941 /* 0xE0 OEM specific */
3942 #define VK_OEM_AX 0xE1 /* "AX" key on Japanese AX keyboard */
3943 #define VK_OEM_102 0xE2 /* "<>" or "\|" on RT 102-key keyboard */
3944 #define VK_ICO_HELP 0xE3 /* Help key on ICO */
3945 #define VK_ICO_00 0xE4 /* 00 key on ICO */
3946 #define VK_PROCESSKEY 0xE5
3948 /* 0xE6 OEM specific */
3949 #define VK_PACKET 0xE7
3950 /* 0xE8 Unassigned */
3951 /* 0xE9-0xF5 OEM specific */
3953 #define VK_ATTN 0xF6
3954 #define VK_CRSEL 0xF7
3955 #define VK_EXSEL 0xF8
3956 #define VK_EREOF 0xF9
3957 #define VK_PLAY 0xFA
3958 #define VK_ZOOM 0xFB
3959 #define VK_NONAME 0xFC
3960 #define VK_PA1 0xFD
3961 #define VK_OEM_CLEAR 0xFE
3963 /* MapVirtualKey translation types */
3964 #define MAPVK_VK_TO_VSC 0
3965 #define MAPVK_VSC_TO_VK 1
3966 #define MAPVK_VK_TO_CHAR 2
3967 #define MAPVK_VSC_TO_VK_EX 3
3968 #define MAPVK_VK_TO_VSC_EX 4
3970 /* Key status flags for mouse events */
3971 #define MK_LBUTTON 0x0001
3972 #define MK_RBUTTON 0x0002
3973 #define MK_SHIFT 0x0004
3974 #define MK_CONTROL 0x0008
3975 #define MK_MBUTTON 0x0010
3976 #define MK_XBUTTON1 0x0020
3977 #define MK_XBUTTON2 0x0040
3980 #define TME_HOVER 0x00000001
3981 #define TME_LEAVE 0x00000002
3982 #define TME_NONCLIENT 0x00000010
3983 #define TME_QUERY 0x40000000
3984 #define TME_CANCEL 0x80000000
3986 #define HOVER_DEFAULT 0xFFFFFFFF
3988 typedef struct tagTRACKMOUSEEVENT {
3989 DWORD cbSize;
3990 DWORD dwFlags;
3991 HWND hwndTrack;
3992 DWORD dwHoverTime;
3993 } TRACKMOUSEEVENT, *LPTRACKMOUSEEVENT;
3995 /* Queue status flags */
3996 #define QS_KEY 0x0001
3997 #define QS_MOUSEMOVE 0x0002
3998 #define QS_MOUSEBUTTON 0x0004
3999 #define QS_MOUSE (QS_MOUSEMOVE | QS_MOUSEBUTTON)
4000 #define QS_POSTMESSAGE 0x0008
4001 #define QS_TIMER 0x0010
4002 #define QS_PAINT 0x0020
4003 #define QS_SENDMESSAGE 0x0040
4004 #define QS_HOTKEY 0x0080
4005 #define QS_ALLPOSTMESSAGE 0x0100
4006 #define QS_RAWINPUT 0x0400
4007 #define QS_INPUT (QS_MOUSE | QS_KEY | QS_RAWINPUT)
4008 #define QS_ALLEVENTS (QS_INPUT | QS_POSTMESSAGE | QS_TIMER | QS_PAINT | QS_HOTKEY)
4009 #define QS_ALLINPUT (QS_ALLEVENTS | QS_SENDMESSAGE)
4011 /* Extra (undocumented) queue wake bits - see "Undoc. Windows" */
4012 #define QS_SMRESULT 0x8000
4014 /* InSendMessageEx flags */
4015 #define ISMEX_NOSEND 0x00000000
4016 #define ISMEX_SEND 0x00000001
4017 #define ISMEX_NOTIFY 0x00000002
4018 #define ISMEX_CALLBACK 0x00000004
4019 #define ISMEX_REPLIED 0x00000008
4021 #define DDL_READWRITE 0x0000
4022 #define DDL_READONLY 0x0001
4023 #define DDL_HIDDEN 0x0002
4024 #define DDL_SYSTEM 0x0004
4025 #define DDL_DIRECTORY 0x0010
4026 #define DDL_ARCHIVE 0x0020
4028 #define DDL_POSTMSGS 0x2000
4029 #define DDL_DRIVES 0x4000
4030 #define DDL_EXCLUSIVE 0x8000
4032 /* Shell hook values */
4033 #define HSHELL_WINDOWCREATED 1
4034 #define HSHELL_WINDOWDESTROYED 2
4035 #define HSHELL_ACTIVATESHELLWINDOW 3
4036 #define HSHELL_WINDOWACTIVATED 4
4037 #define HSHELL_GETMINRECT 5
4038 #define HSHELL_REDRAW 6
4039 #define HSHELL_TASKMAN 7
4040 #define HSHELL_LANGUAGE 8
4041 #define HSHELL_SYSMENU 9
4042 #define HSHELL_ENDTASK 10
4043 #define HSHELL_ACCESSIBILITYSTATE 11
4044 #define HSHELL_APPCOMMAND 12
4045 #define HSHELL_WINDOWREPLACED 13
4046 #define HSHELL_WINDOWREPLACING 14
4048 #define HSHELL_HIGHBIT 0x8000
4049 #define HSHELL_FLASH (HSHELL_REDRAW|HSHELL_HIGHBIT)
4050 #define HSHELL_RUDEAPPACTIVATED (HSHELL_WINDOWACTIVATED|HSHELL_HIGHBIT)
4052 /* App commands */
4053 #define APPCOMMAND_BROWSER_BACKWARD 1
4054 #define APPCOMMAND_BROWSER_FORWARD 2
4055 #define APPCOMMAND_BROWSER_REFRESH 3
4056 #define APPCOMMAND_BROWSER_STOP 4
4057 #define APPCOMMAND_BROWSER_SEARCH 5
4058 #define APPCOMMAND_BROWSER_FAVORITES 6
4059 #define APPCOMMAND_BROWSER_HOME 7
4060 #define APPCOMMAND_VOLUME_MUTE 8
4061 #define APPCOMMAND_VOLUME_DOWN 9
4062 #define APPCOMMAND_VOLUME_UP 10
4063 #define APPCOMMAND_MEDIA_NEXTTRACK 11
4064 #define APPCOMMAND_MEDIA_PREVIOUSTRACK 12
4065 #define APPCOMMAND_MEDIA_STOP 13
4066 #define APPCOMMAND_MEDIA_PLAY_PAUSE 14
4067 #define APPCOMMAND_LAUNCH_MAIL 15
4068 #define APPCOMMAND_LAUNCH_MEDIA_SELECT 16
4069 #define APPCOMMAND_LAUNCH_APP1 17
4070 #define APPCOMMAND_LAUNCH_APP2 18
4071 #define APPCOMMAND_BASS_DOWN 19
4072 #define APPCOMMAND_BASS_BOOST 20
4073 #define APPCOMMAND_BASS_UP 21
4074 #define APPCOMMAND_TREBLE_DOWN 22
4075 #define APPCOMMAND_TREBLE_UP 23
4076 #define APPCOMMAND_MICROPHONE_VOLUME_MUTE 24
4077 #define APPCOMMAND_MICROPHONE_VOLUME_DOWN 25
4078 #define APPCOMMAND_MICROPHONE_VOLUME_UP 26
4079 #define APPCOMMAND_HELP 27
4080 #define APPCOMMAND_FIND 28
4081 #define APPCOMMAND_NEW 29
4082 #define APPCOMMAND_OPEN 30
4083 #define APPCOMMAND_CLOSE 31
4084 #define APPCOMMAND_SAVE 32
4085 #define APPCOMMAND_PRINT 33
4086 #define APPCOMMAND_UNDO 34
4087 #define APPCOMMAND_REDO 35
4088 #define APPCOMMAND_COPY 36
4089 #define APPCOMMAND_CUT 37
4090 #define APPCOMMAND_PASTE 38
4091 #define APPCOMMAND_REPLY_TO_MAIL 39
4092 #define APPCOMMAND_FORWARD_MAIL 40
4093 #define APPCOMMAND_SEND_MAIL 41
4094 #define APPCOMMAND_SPELL_CHECK 42
4095 #define APPCOMMAND_DICTATE_OR_COMMAND_CONTROL_TOGGLE 43
4096 #define APPCOMMAND_MIC_ON_OFF_TOGGLE 44
4097 #define APPCOMMAND_CORRECTION_LIST 45
4098 #define APPCOMMAND_MEDIA_PLAY 46
4099 #define APPCOMMAND_MEDIA_PAUSE 47
4100 #define APPCOMMAND_MEDIA_RECORD 48
4101 #define APPCOMMAND_MEDIA_FAST_FORWARD 49
4102 #define APPCOMMAND_MEDIA_REWIND 50
4103 #define APPCOMMAND_MEDIA_CHANNEL_UP 51
4104 #define APPCOMMAND_MEDIA_CHANNEL_DOWN 52
4105 #define APPCOMMAND_DELETE 53
4106 #define APPCOMMAND_DWM_FLIP3D 54
4108 #define FAPPCOMMAND_MOUSE 0x8000
4109 #define FAPPCOMMAND_KEY 0
4110 #define FAPPCOMMAND_OEM 0x1000
4111 #define FAPPCOMMAND_MASK 0xF000
4113 #define GET_APPCOMMAND_LPARAM(lParam) ((short)(HIWORD(lParam) & ~FAPPCOMMAND_MASK))
4114 #define GET_DEVICE_LPARAM(lParam) ((WORD)(HIWORD(lParam) & FAPPCOMMAND_MASK))
4115 #define GET_MOUSEORKEY_LPARAM GET_DEVICE_LPARAM
4116 #define GET_FLAGS_LPARAM(lParam) (LOWORD(lParam))
4117 #define GET_KEYSTATE_LPARAM(lParam) GET_FLAGS_LPARAM(lParam)
4119 /* Predefined Clipboard Formats */
4120 #define CF_TEXT 1
4121 #define CF_BITMAP 2
4122 #define CF_METAFILEPICT 3
4123 #define CF_SYLK 4
4124 #define CF_DIF 5
4125 #define CF_TIFF 6
4126 #define CF_OEMTEXT 7
4127 #define CF_DIB 8
4128 #define CF_PALETTE 9
4129 #define CF_PENDATA 10
4130 #define CF_RIFF 11
4131 #define CF_WAVE 12
4132 #define CF_UNICODETEXT 13
4133 #define CF_ENHMETAFILE 14
4134 #define CF_HDROP 15
4135 #define CF_LOCALE 16
4136 #define CF_DIBV5 17
4137 #define CF_MAX 18
4139 #define CF_OWNERDISPLAY 0x0080
4140 #define CF_DSPTEXT 0x0081
4141 #define CF_DSPBITMAP 0x0082
4142 #define CF_DSPMETAFILEPICT 0x0083
4143 #define CF_DSPENHMETAFILE 0x008E
4145 /* "Private" formats don't get GlobalFree()'d */
4146 #define CF_PRIVATEFIRST 0x0200
4147 #define CF_PRIVATELAST 0x02FF
4149 /* "GDIOBJ" formats do get DeleteObject()'d */
4150 #define CF_GDIOBJFIRST 0x0300
4151 #define CF_GDIOBJLAST 0x03FF
4154 /* types of LoadImage */
4155 #define IMAGE_BITMAP 0
4156 #define IMAGE_ICON 1
4157 #define IMAGE_CURSOR 2
4158 #define IMAGE_ENHMETAFILE 3
4160 /* loadflags to LoadImage */
4161 #define LR_DEFAULTCOLOR 0x0000
4162 #define LR_MONOCHROME 0x0001
4163 #define LR_COLOR 0x0002
4164 #define LR_COPYRETURNORG 0x0004
4165 #define LR_COPYDELETEORG 0x0008
4166 #define LR_LOADFROMFILE 0x0010
4167 #define LR_LOADTRANSPARENT 0x0020
4168 #define LR_DEFAULTSIZE 0x0040
4169 #define LR_VGA_COLOR 0x0080
4170 #define LR_LOADMAP3DCOLORS 0x1000
4171 #define LR_CREATEDIBSECTION 0x2000
4172 #define LR_COPYFROMRESOURCE 0x4000
4173 #define LR_SHARED 0x8000
4175 /* Flags for DrawIconEx. */
4176 #define DI_MASK 0x0001
4177 #define DI_IMAGE 0x0002
4178 #define DI_NORMAL (DI_MASK | DI_IMAGE)
4179 #define DI_COMPAT 0x0004
4180 #define DI_DEFAULTSIZE 0x0008
4181 #define DI_NOMIRROR 0x0010
4183 /* WM_NOTIFYFORMAT commands and return values */
4184 #define NFR_ANSI 1
4185 #define NFR_UNICODE 2
4186 #define NF_QUERY 3
4187 #define NF_REQUERY 4
4189 /* RegisterDeviceNotification stuff */
4190 typedef PVOID HDEVNOTIFY;
4191 typedef HDEVNOTIFY *PHDEVNOTIFY;
4193 #define DEVICE_NOTIFY_WINDOW_HANDLE 0x00000000
4195 /* used for GetWindowInfo() */
4197 #define WS_ACTIVECAPTION 0x0001
4199 typedef struct tagWINDOWINFO {
4200 DWORD cbSize;
4201 RECT rcWindow;
4202 RECT rcClient;
4203 DWORD dwStyle;
4204 DWORD dwExStyle;
4205 DWORD dwWindowStatus;
4206 UINT cxWindowBorders;
4207 UINT cyWindowBorders;
4208 ATOM atomWindowType;
4209 WORD wCreatorVersion;
4210 } WINDOWINFO, *PWINDOWINFO, *LPWINDOWINFO;
4212 /* used for GetTitleBarInfo() */
4214 #define CCHILDREN_TITLEBAR 5
4216 typedef struct tagTITLEBARINFO {
4217 DWORD cbSize;
4218 RECT rcTitleBar;
4219 DWORD rgstate[CCHILDREN_TITLEBAR+1];
4220 } TITLEBARINFO, *PTITLEBARINFO, *LPTITLEBARINFO;
4222 /* used by GetLastInputInfo */
4223 typedef struct tagLASTINPUTINFO {
4224 UINT cbSize;
4225 DWORD dwTime;
4226 } LASTINPUTINFO, *PLASTINPUTINFO;
4228 /* used by GetAltTabInfo */
4229 typedef struct
4231 DWORD cbSize;
4232 INT cItems;
4233 INT cColumns;
4234 INT cRows;
4235 INT iColFocus;
4236 INT iRowFocus;
4237 INT cxItem;
4238 INT cyItem;
4239 POINT ptStart;
4240 } ALTTABINFO, *PALTTABINFO, *LPALTTABINFO;
4242 /* SetWinEventHook() flags */
4243 #define WINEVENT_OUTOFCONTEXT 0x0
4244 #define WINEVENT_SKIPOWNTHREAD 0x1
4245 #define WINEVENT_SKIPOWNPROCESS 0x2
4246 #define WINEVENT_INCONTEXT 0x4
4248 #define ENDSESSION_LOGOFF 0x80000000
4250 /* Object Id's */
4251 #define CHILDID_SELF 0
4252 #define INDEXID_OBJECT 0
4253 #define INDEXID_CONTAINER 0
4255 /* System object Id's */
4256 #define OBJID_WINDOW 0
4257 #define OBJID_SYSMENU -1
4258 #define OBJID_TITLEBAR -2
4259 #define OBJID_MENU -3
4260 #define OBJID_CLIENT -4
4261 #define OBJID_VSCROLL -5
4262 #define OBJID_HSCROLL -6
4263 #define OBJID_SIZEGRIP -7
4264 #define OBJID_CARET -8
4265 #define OBJID_CURSOR -9
4266 #define OBJID_ALERT -10
4267 #define OBJID_SOUND -11
4268 #define OBJID_QUERYCLASSNAMEIDX -12
4269 #define OBJID_NATIVEOM -16
4271 /* User event Id limits */
4272 #define EVENT_MIN 0x00000001
4273 #define EVENT_MAX 0x7FFFFFFF
4275 /* System events */
4276 #define EVENT_SYSTEM_SOUND 0x01
4277 #define EVENT_SYSTEM_ALERT 0x02
4278 #define EVENT_SYSTEM_FOREGROUND 0x03
4279 #define EVENT_SYSTEM_MENUSTART 0x04
4280 #define EVENT_SYSTEM_MENUEND 0x05
4281 #define EVENT_SYSTEM_MENUPOPUPSTART 0x06
4282 #define EVENT_SYSTEM_MENUPOPUPEND 0x07
4283 #define EVENT_SYSTEM_CAPTURESTART 0x08
4284 #define EVENT_SYSTEM_CAPTUREEND 0x09
4285 #define EVENT_SYSTEM_MOVESIZESTART 0x0A
4286 #define EVENT_SYSTEM_MOVESIZEEND 0x0B
4287 #define EVENT_SYSTEM_CONTEXTHELPSTART 0x0C
4288 #define EVENT_SYSTEM_CONTEXTHELPEND 0x0D
4289 #define EVENT_SYSTEM_DRAGDROPSTART 0x0E
4290 #define EVENT_SYSTEM_DRAGDROPEND 0x0F
4291 #define EVENT_SYSTEM_DIALOGSTART 0x10
4292 #define EVENT_SYSTEM_DIALOGEND 0x11
4293 #define EVENT_SYSTEM_SCROLLINGSTART 0x12
4294 #define EVENT_SYSTEM_SCROLLINGEND 0x13
4295 #define EVENT_SYSTEM_SWITCHSTART 0x14
4296 #define EVENT_SYSTEM_SWITCHEND 0x15
4297 #define EVENT_SYSTEM_MINIMIZESTART 0x16
4298 #define EVENT_SYSTEM_MINIMIZEEND 0x17
4300 /* Console events */
4301 #define EVENT_CONSOLE_CARET 0x4001
4302 #define EVENT_CONSOLE_UPDATE_REGION 0x4002
4303 #define EVENT_CONSOLE_UPDATE_SIMPLE 0x4003
4304 #define EVENT_CONSOLE_UPDATE_SCROLL 0x4004
4305 #define EVENT_CONSOLE_LAYOUT 0x4005
4306 #define EVENT_CONSOLE_START_APPLICATION 0x4006
4307 #define EVENT_CONSOLE_END_APPLICATION 0x4007
4309 #define CONSOLE_APPLICATION_16BIT 0x1
4310 #define CONSOLE_CARET_SELECTION 0x1
4311 #define CONSOLE_CARET_VISIBLE 0x2
4313 /* Object events */
4314 #define EVENT_OBJECT_CREATE 0x8000
4315 #define EVENT_OBJECT_DESTROY 0x8001
4316 #define EVENT_OBJECT_SHOW 0x8002
4317 #define EVENT_OBJECT_HIDE 0x8003
4318 #define EVENT_OBJECT_REORDER 0x8004
4319 #define EVENT_OBJECT_FOCUS 0x8005
4320 #define EVENT_OBJECT_SELECTION 0x8006
4321 #define EVENT_OBJECT_SELECTIONADD 0x8007
4322 #define EVENT_OBJECT_SELECTIONREMOVE 0x8008
4323 #define EVENT_OBJECT_SELECTIONWITHIN 0x8009
4324 #define EVENT_OBJECT_STATECHANGE 0x800A
4325 #define EVENT_OBJECT_LOCATIONCHANGE 0x800B
4326 #define EVENT_OBJECT_NAMECHANGE 0x800C
4327 #define EVENT_OBJECT_DESCRIPTIONCHANGE 0x800D
4328 #define EVENT_OBJECT_VALUECHANGE 0x800E
4329 #define EVENT_OBJECT_PARENTCHANGE 0x800F
4330 #define EVENT_OBJECT_HELPCHANGE 0x8010
4331 #define EVENT_OBJECT_DEFACTIONCHANGE 0x8011
4332 #define EVENT_OBJECT_ACCELERATORCHANGE 0x8012
4334 /* Sound events */
4335 #define SOUND_SYSTEM_STARTUP 1
4336 #define SOUND_SYSTEM_SHUTDOWN 2
4337 #define SOUND_SYSTEM_BEEP 3
4338 #define SOUND_SYSTEM_ERROR 4
4339 #define SOUND_SYSTEM_QUESTION 5
4340 #define SOUND_SYSTEM_WARNING 6
4341 #define SOUND_SYSTEM_INFORMATION 7
4342 #define SOUND_SYSTEM_MAXIMIZE 8
4343 #define SOUND_SYSTEM_MINIMIZE 9
4344 #define SOUND_SYSTEM_RESTOREUP 10
4345 #define SOUND_SYSTEM_RESTOREDOWN 11
4346 #define SOUND_SYSTEM_APPSTART 12
4347 #define SOUND_SYSTEM_FAULT 13
4348 #define SOUND_SYSTEM_APPEND 14
4349 #define SOUND_SYSTEM_MENUCOMMAND 15
4350 #define SOUND_SYSTEM_MENUPOPUP 16
4351 #define CSOUND_SYSTEM 16
4353 /* Alert events */
4354 #define ALERT_SYSTEM_INFORMATIONAL 1
4355 #define ALERT_SYSTEM_WARNING 2
4356 #define ALERT_SYSTEM_ERROR 3
4357 #define ALERT_SYSTEM_QUERY 4
4358 #define ALERT_SYSTEM_CRITICAL 5
4359 #define CALERT_SYSTEM 6
4361 /* System state flags */
4362 #define STATE_SYSTEM_UNAVAILABLE 0x00000001
4363 #define STATE_SYSTEM_SELECTED 0x00000002
4364 #define STATE_SYSTEM_FOCUSED 0x00000004
4365 #define STATE_SYSTEM_PRESSED 0x00000008
4366 #define STATE_SYSTEM_CHECKED 0x00000010
4367 #define STATE_SYSTEM_MIXED 0x00000020
4368 #define STATE_SYSTEM_INDETERMINATE STATE_SYSTEM_MIXED
4369 #define STATE_SYSTEM_READONLY 0x00000040
4370 #define STATE_SYSTEM_HOTTRACKED 0x00000080
4371 #define STATE_SYSTEM_DEFAULT 0x00000100
4372 #define STATE_SYSTEM_EXPANDED 0x00000200
4373 #define STATE_SYSTEM_COLLAPSED 0x00000400
4374 #define STATE_SYSTEM_BUSY 0x00000800
4375 #define STATE_SYSTEM_FLOATING 0x00001000
4376 #define STATE_SYSTEM_MARQUEED 0x00002000
4377 #define STATE_SYSTEM_ANIMATED 0x00004000
4378 #define STATE_SYSTEM_INVISIBLE 0x00008000
4379 #define STATE_SYSTEM_OFFSCREEN 0x00010000
4380 #define STATE_SYSTEM_SIZEABLE 0x00020000
4381 #define STATE_SYSTEM_MOVEABLE 0x00040000
4382 #define STATE_SYSTEM_SELFVOICING 0x00080000
4383 #define STATE_SYSTEM_FOCUSABLE 0x00100000
4384 #define STATE_SYSTEM_SELECTABLE 0x00200000
4385 #define STATE_SYSTEM_LINKED 0x00400000
4386 #define STATE_SYSTEM_TRAVERSED 0x00800000
4387 #define STATE_SYSTEM_MULTISELECTABLE 0x01000000
4388 #define STATE_SYSTEM_EXTSELECTABLE 0x02000000
4389 #define STATE_SYSTEM_ALERT_LOW 0x04000000
4390 #define STATE_SYSTEM_ALERT_MEDIUM 0x08000000
4391 #define STATE_SYSTEM_ALERT_HIGH 0x10000000
4392 #define STATE_SYSTEM_PROTECTED 0x20000000
4393 #define STATE_SYSTEM_VALID 0x3FFFFFFF
4395 /* Lock codes for LockSetForegroundWindow */
4396 #define LSFW_LOCK 1
4397 #define LSFW_UNLOCK 2
4399 /* Values for AllowSetForegroundWindow */
4400 #define ASFW_ANY ((DWORD)-1)
4402 #define EnumTaskWindows(handle,proc,lparam) \
4403 EnumThreadWindows(handle,proc,lparam)
4404 #define OemToAnsiA OemToCharA
4405 #define OemToAnsiW OemToCharW
4406 #define OemToAnsi WINELIB_NAME_AW(OemToAnsi)
4407 #define OemToAnsiBuffA OemToCharBuffA
4408 #define OemToAnsiBuffW OemToCharBuffW
4409 #define OemToAnsiBuff WINELIB_NAME_AW(OemToAnsiBuff)
4410 #define AnsiToOemA CharToOemA
4411 #define AnsiToOemW CharToOemW
4412 #define AnsiToOem WINELIB_NAME_AW(AnsiToOem)
4413 #define AnsiToOemBuffA CharToOemBuffA
4414 #define AnsiToOemBuffW CharToOemBuffW
4415 #define AnsiToOemBuff WINELIB_NAME_AW(AnsiToOemBuff)
4417 #if defined(_WINGDI_) && !defined(NOGDI)
4418 WINUSERAPI LONG WINAPI ChangeDisplaySettingsA(LPDEVMODEA,DWORD);
4419 WINUSERAPI LONG WINAPI ChangeDisplaySettingsW(LPDEVMODEW,DWORD);
4420 #define ChangeDisplaySettings WINELIB_NAME_AW(ChangeDisplaySettings)
4421 WINUSERAPI LONG WINAPI ChangeDisplaySettingsExA(LPCSTR,LPDEVMODEA,HWND,DWORD,LPVOID);
4422 WINUSERAPI LONG WINAPI ChangeDisplaySettingsExW(LPCWSTR,LPDEVMODEW,HWND,DWORD,LPVOID);
4423 #define ChangeDisplaySettingsEx WINELIB_NAME_AW(ChangeDisplaySettingsEx)
4424 WINUSERAPI HDESK WINAPI CreateDesktopA(LPCSTR,LPCSTR,LPDEVMODEA,DWORD,ACCESS_MASK,LPSECURITY_ATTRIBUTES);
4425 WINUSERAPI HDESK WINAPI CreateDesktopW(LPCWSTR,LPCWSTR,LPDEVMODEW,DWORD,ACCESS_MASK,LPSECURITY_ATTRIBUTES);
4426 #define CreateDesktop WINELIB_NAME_AW(CreateDesktop)
4427 WINUSERAPI BOOL WINAPI EnumDisplayDevicesA(LPCSTR,DWORD,LPDISPLAY_DEVICEA,DWORD);
4428 WINUSERAPI BOOL WINAPI EnumDisplayDevicesW(LPCWSTR,DWORD,LPDISPLAY_DEVICEW,DWORD);
4429 #define EnumDisplayDevices WINELIB_NAME_AW(EnumDisplayDevices)
4430 WINUSERAPI BOOL WINAPI EnumDisplaySettingsA(LPCSTR,DWORD,LPDEVMODEA);
4431 WINUSERAPI BOOL WINAPI EnumDisplaySettingsW(LPCWSTR,DWORD,LPDEVMODEW);
4432 #define EnumDisplaySettings WINELIB_NAME_AW(EnumDisplaySettings)
4433 WINUSERAPI BOOL WINAPI EnumDisplaySettingsExA(LPCSTR,DWORD,LPDEVMODEA,DWORD);
4434 WINUSERAPI BOOL WINAPI EnumDisplaySettingsExW(LPCWSTR,DWORD,LPDEVMODEW,DWORD);
4435 #define EnumDisplaySettingsEx WINELIB_NAME_AW(EnumDisplaySettingsEx)
4436 WINUSERAPI BOOL WINAPI UpdateLayeredWindow(HWND,HDC,POINT*,SIZE*,HDC,POINT*,COLORREF,BLENDFUNCTION*,DWORD);
4437 WINUSERAPI BOOL WINAPI UpdateLayeredWindowIndirect(HWND,UPDATELAYEREDWINDOWINFO CONST*);
4438 #endif /* defined(_WINGDI_) && !defined(NOGDI) */
4440 WINUSERAPI HKL WINAPI ActivateKeyboardLayout(HKL,UINT);
4441 WINUSERAPI BOOL WINAPI AdjustWindowRect(LPRECT,DWORD,BOOL);
4442 WINUSERAPI BOOL WINAPI AdjustWindowRectEx(LPRECT,DWORD,BOOL,DWORD);
4443 WINUSERAPI BOOL WINAPI AllowSetForegroundWindow(DWORD);
4444 WINUSERAPI BOOL WINAPI AnimateWindow(HWND,DWORD,DWORD);
4445 #define AnsiLowerA CharLowerA
4446 #define AnsiLowerW CharLowerW
4447 #define AnsiLower WINELIB_NAME_AW(AnsiLower)
4448 #define AnsiLowerBuffA CharLowerBuffA
4449 #define AnsiLowerBuffW CharLowerBuffW
4450 #define AnsiLowerBuff WINELIB_NAME_AW(AnsiLowerBuff)
4451 #define AnsiNextA CharNextA
4452 #define AnsiNextW CharNextW
4453 #define AnsiNext WINELIB_NAME_AW(AnsiNext)
4454 #define AnsiPrevA CharPrevA
4455 #define AnsiPrevW CharPrevW
4456 #define AnsiPrev WINELIB_NAME_AW(AnsiPrev)
4457 #define AnsiUpperA CharUpperA
4458 #define AnsiUpperW CharUpperW
4459 #define AnsiUpper WINELIB_NAME_AW(AnsiUpper)
4460 #define AnsiUpperBuffA CharUpperBuffA
4461 #define AnsiUpperBuffW CharUpperBuffW
4462 #define AnsiUpperBuff WINELIB_NAME_AW(AnsiUpperBuff)
4463 WINUSERAPI BOOL WINAPI AnyPopup(void);
4464 WINUSERAPI BOOL WINAPI AppendMenuA(HMENU,UINT,UINT_PTR,LPCSTR);
4465 WINUSERAPI BOOL WINAPI AppendMenuW(HMENU,UINT,UINT_PTR,LPCWSTR);
4466 #define AppendMenu WINELIB_NAME_AW(AppendMenu)
4467 WINUSERAPI UINT WINAPI ArrangeIconicWindows(HWND);
4468 WINUSERAPI BOOL WINAPI AttachThreadInput(DWORD,DWORD,BOOL);
4469 WINUSERAPI HDWP WINAPI BeginDeferWindowPos(INT);
4470 WINUSERAPI HDC WINAPI BeginPaint(HWND,LPPAINTSTRUCT);
4471 WINUSERAPI BOOL WINAPI BringWindowToTop(HWND);
4472 WINUSERAPI LONG WINAPI BroadcastSystemMessageA(DWORD,LPDWORD,UINT,WPARAM,LPARAM);
4473 WINUSERAPI LONG WINAPI BroadcastSystemMessageW(DWORD,LPDWORD,UINT,WPARAM,LPARAM);
4474 #define BroadcastSystemMessage WINELIB_NAME_AW(BroadcastSystemMessage)
4475 WINUSERAPI LONG WINAPI BroadcastSystemMessageExA(DWORD,LPDWORD,UINT,WPARAM,LPARAM,PBSMINFO);
4476 WINUSERAPI LONG WINAPI BroadcastSystemMessageExW(DWORD,LPDWORD,UINT,WPARAM,LPARAM,PBSMINFO);
4477 #define BroadcastSystemMessageEx WINELIB_NAME_AW(BroadcastSystemMessageEx)
4478 WINUSERAPI void WINAPI CalcChildScroll(HWND, INT);
4479 WINUSERAPI BOOL WINAPI CallMsgFilterA(LPMSG,INT);
4480 WINUSERAPI BOOL WINAPI CallMsgFilterW(LPMSG,INT);
4481 #define CallMsgFilter WINELIB_NAME_AW(CallMsgFilter)
4482 WINUSERAPI LRESULT WINAPI CallNextHookEx(HHOOK,INT,WPARAM,LPARAM);
4483 WINUSERAPI LRESULT WINAPI CallWindowProcA(WNDPROC,HWND,UINT,WPARAM,LPARAM);
4484 WINUSERAPI LRESULT WINAPI CallWindowProcW(WNDPROC,HWND,UINT,WPARAM,LPARAM);
4485 #define CallWindowProc WINELIB_NAME_AW(CallWindowProc)
4486 WINUSERAPI WORD WINAPI CascadeWindows(HWND, UINT, const RECT *, UINT, const HWND *);
4487 WINUSERAPI BOOL WINAPI ChangeClipboardChain(HWND,HWND);
4488 WINUSERAPI BOOL WINAPI ChangeMenuA(HMENU,UINT,LPCSTR,UINT,UINT);
4489 WINUSERAPI BOOL WINAPI ChangeMenuW(HMENU,UINT,LPCWSTR,UINT,UINT);
4490 #define ChangeMenu WINELIB_NAME_AW(ChangeMenu)
4491 WINUSERAPI LPSTR WINAPI CharLowerA(LPSTR);
4492 WINUSERAPI LPWSTR WINAPI CharLowerW(LPWSTR);
4493 #define CharLower WINELIB_NAME_AW(CharLower)
4494 WINUSERAPI DWORD WINAPI CharLowerBuffA(LPSTR,DWORD);
4495 WINUSERAPI DWORD WINAPI CharLowerBuffW(LPWSTR,DWORD);
4496 #define CharLowerBuff WINELIB_NAME_AW(CharLowerBuff)
4497 WINUSERAPI LPSTR WINAPI CharNextA(LPCSTR);
4498 WINUSERAPI LPWSTR WINAPI CharNextW(LPCWSTR);
4499 #define CharNext WINELIB_NAME_AW(CharNext)
4500 WINUSERAPI LPSTR WINAPI CharNextExA(WORD,LPCSTR,DWORD);
4501 /* no CharNextExW (doesn't make sense) */
4502 WINUSERAPI LPSTR WINAPI CharPrevA(LPCSTR,LPCSTR);
4503 WINUSERAPI LPWSTR WINAPI CharPrevW(LPCWSTR,LPCWSTR);
4504 #define CharPrev WINELIB_NAME_AW(CharPrev)
4505 WINUSERAPI LPSTR WINAPI CharPrevExA(WORD,LPCSTR,LPCSTR,DWORD);
4506 /* no CharPrevExW (doesn't make sense) */
4507 WINUSERAPI LPSTR WINAPI CharUpperA(LPSTR);
4508 WINUSERAPI LPWSTR WINAPI CharUpperW(LPWSTR);
4509 #define CharUpper WINELIB_NAME_AW(CharUpper)
4510 WINUSERAPI DWORD WINAPI CharUpperBuffA(LPSTR,DWORD);
4511 WINUSERAPI DWORD WINAPI CharUpperBuffW(LPWSTR,DWORD);
4512 #define CharUpperBuff WINELIB_NAME_AW(CharUpperBuff)
4513 WINUSERAPI BOOL WINAPI CharToOemA(LPCSTR,LPSTR);
4514 WINUSERAPI BOOL WINAPI CharToOemW(LPCWSTR,LPSTR);
4515 #define CharToOem WINELIB_NAME_AW(CharToOem)
4516 WINUSERAPI BOOL WINAPI CharToOemBuffA(LPCSTR,LPSTR,DWORD);
4517 WINUSERAPI BOOL WINAPI CharToOemBuffW(LPCWSTR,LPSTR,DWORD);
4518 #define CharToOemBuff WINELIB_NAME_AW(CharToOemBuff)
4519 WINUSERAPI BOOL WINAPI CheckDlgButton(HWND,INT,UINT);
4520 WINUSERAPI DWORD WINAPI CheckMenuItem(HMENU,UINT,UINT);
4521 WINUSERAPI BOOL WINAPI CheckMenuRadioItem(HMENU,UINT,UINT,UINT,UINT);
4522 WINUSERAPI BOOL WINAPI CheckRadioButton(HWND,int,int,int);
4523 WINUSERAPI HWND WINAPI ChildWindowFromPoint(HWND,POINT);
4524 WINUSERAPI HWND WINAPI ChildWindowFromPointEx(HWND,POINT,UINT);
4525 WINUSERAPI BOOL WINAPI ClientToScreen(HWND,LPPOINT);
4526 WINUSERAPI BOOL WINAPI ClipCursor(const RECT*);
4527 WINUSERAPI BOOL WINAPI CloseClipboard(void);
4528 WINUSERAPI BOOL WINAPI CloseDesktop(HDESK);
4529 WINUSERAPI BOOL WINAPI CloseWindow(HWND);
4530 WINUSERAPI BOOL WINAPI CloseWindowStation(HWINSTA);
4531 WINUSERAPI INT WINAPI CopyAcceleratorTableA(HACCEL,LPACCEL,INT);
4532 WINUSERAPI INT WINAPI CopyAcceleratorTableW(HACCEL,LPACCEL,INT);
4533 #define CopyAcceleratorTable WINELIB_NAME_AW(CopyAcceleratorTable)
4534 #define CopyCursor(cur) ((HCURSOR)CopyIcon((HICON)(cur)))
4535 WINUSERAPI HICON WINAPI CopyIcon(HICON);
4536 WINUSERAPI HANDLE WINAPI CopyImage(HANDLE,UINT,INT,INT,UINT);
4537 WINUSERAPI BOOL WINAPI CopyRect(RECT*,const RECT*);
4538 WINUSERAPI INT WINAPI CountClipboardFormats(void);
4539 WINUSERAPI HACCEL WINAPI CreateAcceleratorTableA(LPACCEL,INT);
4540 WINUSERAPI HACCEL WINAPI CreateAcceleratorTableW(LPACCEL,INT);
4541 #define CreateAcceleratorTable WINELIB_NAME_AW(CreateAcceleratorTable)
4542 WINUSERAPI HICON WINAPI CreateIconIndirect(PICONINFO);
4543 WINUSERAPI BOOL WINAPI CreateCaret(HWND,HBITMAP,INT,INT);
4544 WINUSERAPI HCURSOR WINAPI CreateCursor(HINSTANCE,INT,INT,INT,INT,LPCVOID,LPCVOID);
4545 #define CreateDialogA(inst,ptr,hwnd,dlg) CreateDialogParamA(inst,ptr,hwnd,dlg,0)
4546 #define CreateDialogW(inst,ptr,hwnd,dlg) CreateDialogParamW(inst,ptr,hwnd,dlg,0)
4547 #define CreateDialog WINELIB_NAME_AW(CreateDialog)
4548 #define CreateDialogIndirectA(inst,ptr,hwnd,dlg) CreateDialogIndirectParamA(inst,ptr,hwnd,dlg,0)
4549 #define CreateDialogIndirectW(inst,ptr,hwnd,dlg) CreateDialogIndirectParamW(inst,ptr,hwnd,dlg,0)
4550 #define CreateDialogIndirect WINELIB_NAME_AW(CreateDialogIndirect)
4551 WINUSERAPI HWND WINAPI CreateDialogIndirectParamA(HINSTANCE,LPCDLGTEMPLATEA,HWND,DLGPROC,LPARAM);
4552 WINUSERAPI HWND WINAPI CreateDialogIndirectParamW(HINSTANCE,LPCDLGTEMPLATEW,HWND,DLGPROC,LPARAM);
4553 #define CreateDialogIndirectParam WINELIB_NAME_AW(CreateDialogIndirectParam)
4554 WINUSERAPI HWND WINAPI CreateDialogParamA(HINSTANCE,LPCSTR,HWND,DLGPROC,LPARAM);
4555 WINUSERAPI HWND WINAPI CreateDialogParamW(HINSTANCE,LPCWSTR,HWND,DLGPROC,LPARAM);
4556 #define CreateDialogParam WINELIB_NAME_AW(CreateDialogParam)
4557 WINUSERAPI HICON WINAPI CreateIcon(HINSTANCE,INT,INT,BYTE,BYTE,LPCVOID,LPCVOID);
4558 WINUSERAPI HICON WINAPI CreateIconFromResource(LPBYTE,UINT,BOOL,DWORD);
4559 WINUSERAPI HICON WINAPI CreateIconFromResourceEx(LPBYTE,UINT,BOOL,DWORD,INT,INT,UINT);
4560 WINUSERAPI HMENU WINAPI CreateMenu(void);
4561 WINUSERAPI HMENU WINAPI CreatePopupMenu(void);
4562 #define CreateWindowA(className,titleName,style,x,y,width,height,parent,menu,instance,param) CreateWindowExA(0,className,titleName,style,x,y,width,height,parent,menu,instance,param)
4563 #define CreateWindowW(className,titleName,style,x,y,width,height,parent,menu,instance,param) CreateWindowExW(0,className,titleName,style,x,y,width,height,parent,menu,instance,param)
4564 #define CreateWindow WINELIB_NAME_AW(CreateWindow)
4565 WINUSERAPI HWND WINAPI CreateWindowExA(DWORD,LPCSTR,LPCSTR,DWORD,INT,INT,INT,INT,HWND,HMENU,HINSTANCE,LPVOID);
4566 WINUSERAPI HWND WINAPI CreateWindowExW(DWORD,LPCWSTR,LPCWSTR,DWORD,INT,INT,INT,INT,HWND,HMENU,HINSTANCE,LPVOID);
4567 #define CreateWindowEx WINELIB_NAME_AW(CreateWindowEx)
4568 WINUSERAPI HWINSTA WINAPI CreateWindowStationA(LPCSTR,DWORD,ACCESS_MASK,LPSECURITY_ATTRIBUTES);
4569 WINUSERAPI HWINSTA WINAPI CreateWindowStationW(LPCWSTR,DWORD,ACCESS_MASK,LPSECURITY_ATTRIBUTES);
4570 #define CreateWindowStation WINELIB_NAME_AW(CreateWindowStation)
4571 WINUSERAPI HWND WINAPI CreateMDIWindowA(LPCSTR,LPCSTR,DWORD,INT,INT,INT,INT,HWND,HINSTANCE,LPARAM);
4572 WINUSERAPI HWND WINAPI CreateMDIWindowW(LPCWSTR,LPCWSTR,DWORD,INT,INT,INT,INT,HWND,HINSTANCE,LPARAM);
4573 #define CreateMDIWindow WINELIB_NAME_AW(CreateMDIWindow)
4574 WINUSERAPI LRESULT WINAPI DefDlgProcA(HWND,UINT,WPARAM,LPARAM);
4575 WINUSERAPI LRESULT WINAPI DefDlgProcW(HWND,UINT,WPARAM,LPARAM);
4576 #define DefDlgProc WINELIB_NAME_AW(DefDlgProc)
4577 WINUSERAPI HDWP WINAPI DeferWindowPos(HDWP,HWND,HWND,INT,INT,INT,INT,UINT);
4578 WINUSERAPI LRESULT WINAPI DefFrameProcA(HWND,HWND,UINT,WPARAM,LPARAM);
4579 WINUSERAPI LRESULT WINAPI DefFrameProcW(HWND,HWND,UINT,WPARAM,LPARAM);
4580 #define DefFrameProc WINELIB_NAME_AW(DefFrameProc)
4581 #define DefHookProc(code,wparam,lparam,phhook) CallNextHookEx(*(phhook),code,wparam,lparam)
4582 WINUSERAPI LRESULT WINAPI DefMDIChildProcA(HWND,UINT,WPARAM,LPARAM);
4583 WINUSERAPI LRESULT WINAPI DefMDIChildProcW(HWND,UINT,WPARAM,LPARAM);
4584 #define DefMDIChildProc WINELIB_NAME_AW(DefMDIChildProc)
4585 WINUSERAPI LRESULT WINAPI DefRawInputProc(PRAWINPUT*,INT,UINT);
4586 WINUSERAPI LRESULT WINAPI DefWindowProcA(HWND,UINT,WPARAM,LPARAM);
4587 WINUSERAPI LRESULT WINAPI DefWindowProcW(HWND,UINT,WPARAM,LPARAM);
4588 #define DefWindowProc WINELIB_NAME_AW(DefWindowProc)
4589 WINUSERAPI BOOL WINAPI DeleteMenu(HMENU,UINT,UINT);
4590 WINUSERAPI BOOL WINAPI DestroyAcceleratorTable(HACCEL);
4591 WINUSERAPI BOOL WINAPI DestroyCaret(void);
4592 WINUSERAPI BOOL WINAPI DestroyCursor(HCURSOR);
4593 WINUSERAPI BOOL WINAPI DestroyIcon(HICON);
4594 WINUSERAPI BOOL WINAPI DestroyMenu(HMENU);
4595 WINUSERAPI BOOL WINAPI DestroyWindow(HWND);
4596 #define DialogBoxA(inst,template,owner,func) DialogBoxParamA(inst,template,owner,func,0)
4597 #define DialogBoxW(inst,template,owner,func) DialogBoxParamW(inst,template,owner,func,0)
4598 #define DialogBox WINELIB_NAME_AW(DialogBox)
4599 #define DialogBoxIndirectA(inst,template,owner,func) DialogBoxIndirectParamA(inst,template,owner,func,0)
4600 #define DialogBoxIndirectW(inst,template,owner,func) DialogBoxIndirectParamW(inst,template,owner,func,0)
4601 #define DialogBoxIndirect WINELIB_NAME_AW(DialogBoxIndirect)
4602 WINUSERAPI INT_PTR WINAPI DialogBoxIndirectParamA(HINSTANCE,LPCDLGTEMPLATEA,HWND,DLGPROC,LPARAM);
4603 WINUSERAPI INT_PTR WINAPI DialogBoxIndirectParamW(HINSTANCE,LPCDLGTEMPLATEW,HWND,DLGPROC,LPARAM);
4604 #define DialogBoxIndirectParam WINELIB_NAME_AW(DialogBoxIndirectParam)
4605 WINUSERAPI INT_PTR WINAPI DialogBoxParamA(HINSTANCE,LPCSTR,HWND,DLGPROC,LPARAM);
4606 WINUSERAPI INT_PTR WINAPI DialogBoxParamW(HINSTANCE,LPCWSTR,HWND,DLGPROC,LPARAM);
4607 #define DialogBoxParam WINELIB_NAME_AW(DialogBoxParam)
4608 WINUSERAPI LRESULT WINAPI DispatchMessageA(const MSG*);
4609 WINUSERAPI LRESULT WINAPI DispatchMessageW(const MSG*);
4610 #define DispatchMessage WINELIB_NAME_AW(DispatchMessage)
4611 WINUSERAPI INT WINAPI DlgDirListA(HWND,LPSTR,INT,INT,UINT);
4612 WINUSERAPI INT WINAPI DlgDirListW(HWND,LPWSTR,INT,INT,UINT);
4613 #define DlgDirList WINELIB_NAME_AW(DlgDirList)
4614 WINUSERAPI INT WINAPI DlgDirListComboBoxA(HWND,LPSTR,INT,INT,UINT);
4615 WINUSERAPI INT WINAPI DlgDirListComboBoxW(HWND,LPWSTR,INT,INT,UINT);
4616 #define DlgDirListComboBox WINELIB_NAME_AW(DlgDirListComboBox)
4617 WINUSERAPI BOOL WINAPI DlgDirSelectComboBoxExA(HWND,LPSTR,INT,INT);
4618 WINUSERAPI BOOL WINAPI DlgDirSelectComboBoxExW(HWND,LPWSTR,INT,INT);
4619 #define DlgDirSelectComboBoxEx WINELIB_NAME_AW(DlgDirSelectComboBoxEx)
4620 WINUSERAPI BOOL WINAPI DlgDirSelectExA(HWND,LPSTR,INT,INT);
4621 WINUSERAPI BOOL WINAPI DlgDirSelectExW(HWND,LPWSTR,INT,INT);
4622 #define DlgDirSelectEx WINELIB_NAME_AW(DlgDirSelectEx)
4623 WINUSERAPI BOOL WINAPI DragDetect(HWND,POINT);
4624 WINUSERAPI DWORD WINAPI DragObject(HWND,HWND,UINT,ULONG_PTR,HCURSOR);
4625 WINUSERAPI BOOL WINAPI DrawAnimatedRects(HWND,int,const RECT*,const RECT*);
4626 WINUSERAPI BOOL WINAPI DrawCaption(HWND,HDC,const RECT*,UINT);
4627 WINUSERAPI BOOL WINAPI DrawCaptionTempA(HWND,HDC,const RECT*,HFONT,HICON,LPCSTR,UINT);
4628 WINUSERAPI BOOL WINAPI DrawCaptionTempW(HWND,HDC,const RECT*,HFONT,HICON,LPCWSTR,UINT);
4629 #define DrawCaptionTemp WINELIB_NAME_AW(DrawCaptionTemp)
4630 WINUSERAPI BOOL WINAPI DrawEdge(HDC,LPRECT,UINT,UINT);
4631 WINUSERAPI BOOL WINAPI DrawFocusRect(HDC,const RECT*);
4632 WINUSERAPI BOOL WINAPI DrawFrameControl(HDC,LPRECT,UINT,UINT);
4633 WINUSERAPI BOOL WINAPI DrawIcon(HDC,INT,INT,HICON);
4634 WINUSERAPI BOOL WINAPI DrawIconEx(HDC,INT,INT,HICON,INT,INT,UINT,HBRUSH,UINT);
4635 WINUSERAPI BOOL WINAPI DrawMenuBar(HWND);
4636 WINUSERAPI BOOL WINAPI DrawStateA(HDC,HBRUSH,DRAWSTATEPROC,LPARAM,WPARAM,INT,INT,INT,INT,UINT);
4637 WINUSERAPI BOOL WINAPI DrawStateW(HDC,HBRUSH,DRAWSTATEPROC,LPARAM,WPARAM,INT,INT,INT,INT,UINT);
4638 #define DrawState WINELIB_NAME_AW(DrawState)
4639 WINUSERAPI INT WINAPI DrawTextA(HDC,LPCSTR,INT,LPRECT,UINT);
4640 WINUSERAPI INT WINAPI DrawTextW(HDC,LPCWSTR,INT,LPRECT,UINT);
4641 #define DrawText WINELIB_NAME_AW(DrawText)
4642 WINUSERAPI INT WINAPI DrawTextExA(HDC,LPSTR,INT,LPRECT,UINT,LPDRAWTEXTPARAMS);
4643 WINUSERAPI INT WINAPI DrawTextExW(HDC,LPWSTR,INT,LPRECT,UINT,LPDRAWTEXTPARAMS);
4644 #define DrawTextEx WINELIB_NAME_AW(DrawTextEx)
4645 WINUSERAPI BOOL WINAPI EmptyClipboard(void);
4646 WINUSERAPI BOOL WINAPI EnableMenuItem(HMENU,UINT,UINT);
4647 WINUSERAPI BOOL WINAPI EnableScrollBar(HWND,UINT,UINT);
4648 WINUSERAPI BOOL WINAPI EnableWindow(HWND,BOOL);
4649 WINUSERAPI BOOL WINAPI EndDeferWindowPos(HDWP);
4650 WINUSERAPI BOOL WINAPI EndDialog(HWND,INT_PTR);
4651 WINUSERAPI BOOL WINAPI EndMenu(void);
4652 WINUSERAPI BOOL WINAPI EndPaint(HWND,const PAINTSTRUCT*);
4653 WINUSERAPI BOOL WINAPI EnumChildWindows(HWND,WNDENUMPROC,LPARAM);
4654 WINUSERAPI UINT WINAPI EnumClipboardFormats(UINT);
4655 WINUSERAPI BOOL WINAPI EnumDesktopsA(HWINSTA,DESKTOPENUMPROCA,LPARAM);
4656 WINUSERAPI BOOL WINAPI EnumDesktopsW(HWINSTA,DESKTOPENUMPROCW,LPARAM);
4657 #define EnumDesktops WINELIB_NAME_AW(EnumDesktops)
4658 WINUSERAPI BOOL WINAPI EnumDesktopWindows(HDESK,WNDENUMPROC,LPARAM);
4659 WINUSERAPI BOOL WINAPI EnumDisplayMonitors(HDC,LPRECT,MONITORENUMPROC,LPARAM);
4660 WINUSERAPI INT WINAPI EnumPropsA(HWND,PROPENUMPROCA);
4661 WINUSERAPI INT WINAPI EnumPropsW(HWND,PROPENUMPROCW);
4662 #define EnumProps WINELIB_NAME_AW(EnumProps)
4663 WINUSERAPI INT WINAPI EnumPropsExA(HWND,PROPENUMPROCEXA,LPARAM);
4664 WINUSERAPI INT WINAPI EnumPropsExW(HWND,PROPENUMPROCEXW,LPARAM);
4665 #define EnumPropsEx WINELIB_NAME_AW(EnumPropsEx)
4666 WINUSERAPI BOOL WINAPI EnumThreadWindows(DWORD,WNDENUMPROC,LPARAM);
4667 WINUSERAPI BOOL WINAPI EnumWindows(WNDENUMPROC,LPARAM);
4668 WINUSERAPI BOOL WINAPI EnumWindowStationsA(WINSTAENUMPROCA,LPARAM);
4669 WINUSERAPI BOOL WINAPI EnumWindowStationsW(WINSTAENUMPROCW,LPARAM);
4670 #define EnumWindowStations WINELIB_NAME_AW(EnumWindowStations)
4671 WINUSERAPI BOOL WINAPI EqualRect(const RECT*,const RECT*);
4672 WINUSERAPI INT WINAPI ExcludeUpdateRgn(HDC,HWND);
4673 #define ExitWindows(a,b) ExitWindowsEx(EWX_LOGOFF,0xffffffff)
4674 WINUSERAPI BOOL WINAPI ExitWindowsEx(UINT,DWORD);
4675 WINUSERAPI INT WINAPI FillRect(HDC,const RECT*,HBRUSH);
4676 WINUSERAPI HWND WINAPI FindWindowA(LPCSTR,LPCSTR);
4677 WINUSERAPI HWND WINAPI FindWindowW(LPCWSTR,LPCWSTR);
4678 #define FindWindow WINELIB_NAME_AW(FindWindow)
4679 WINUSERAPI HWND WINAPI FindWindowExA(HWND,HWND,LPCSTR,LPCSTR);
4680 WINUSERAPI HWND WINAPI FindWindowExW(HWND,HWND,LPCWSTR,LPCWSTR);
4681 #define FindWindowEx WINELIB_NAME_AW(FindWindowEx)
4682 WINUSERAPI BOOL WINAPI FlashWindow(HWND,BOOL);
4683 WINUSERAPI BOOL WINAPI FlashWindowEx(PFLASHWINFO);
4684 WINUSERAPI INT WINAPI FrameRect(HDC,const RECT*,HBRUSH);
4685 WINUSERAPI HWND WINAPI GetActiveWindow(void);
4686 WINUSERAPI BOOL WINAPI GetAltTabInfoA(HWND,INT,PALTTABINFO,LPSTR,UINT);
4687 WINUSERAPI BOOL WINAPI GetAltTabInfoW(HWND,INT,PALTTABINFO,LPWSTR,UINT);
4688 #define GetAltTabInfo WINELIB_NAME_AW(GetAltTabInfo)
4689 WINUSERAPI HWND WINAPI GetAncestor(HWND,UINT);
4690 WINUSERAPI DWORD WINAPI GetAppCompatFlags(HTASK);
4691 WINUSERAPI SHORT WINAPI GetAsyncKeyState(INT);
4692 WINUSERAPI HWND WINAPI GetCapture(void);
4693 WINUSERAPI UINT WINAPI GetCaretBlinkTime(void);
4694 WINUSERAPI BOOL WINAPI GetCaretPos(LPPOINT);
4695 WINUSERAPI BOOL WINAPI GetClassInfoA(HINSTANCE,LPCSTR,WNDCLASSA *);
4696 WINUSERAPI BOOL WINAPI GetClassInfoW(HINSTANCE,LPCWSTR,WNDCLASSW *);
4697 #define GetClassInfo WINELIB_NAME_AW(GetClassInfo)
4698 WINUSERAPI BOOL WINAPI GetClassInfoExA(HINSTANCE,LPCSTR,WNDCLASSEXA *);
4699 WINUSERAPI BOOL WINAPI GetClassInfoExW(HINSTANCE,LPCWSTR,WNDCLASSEXW *);
4700 #define GetClassInfoEx WINELIB_NAME_AW(GetClassInfoEx)
4701 WINUSERAPI DWORD WINAPI GetClassLongA(HWND,INT);
4702 WINUSERAPI DWORD WINAPI GetClassLongW(HWND,INT);
4703 #define GetClassLong WINELIB_NAME_AW(GetClassLong)
4704 #ifdef _WIN64
4705 WINUSERAPI ULONG_PTR WINAPI GetClassLongPtrA(HWND,INT);
4706 WINUSERAPI ULONG_PTR WINAPI GetClassLongPtrW(HWND,INT);
4707 #else
4708 #define GetClassLongPtrA GetClassLongA
4709 #define GetClassLongPtrW GetClassLongW
4710 #endif
4711 #define GetClassLongPtr WINELIB_NAME_AW(GetClassLongPtr)
4712 WINUSERAPI INT WINAPI GetClassNameA(HWND,LPSTR,INT);
4713 WINUSERAPI INT WINAPI GetClassNameW(HWND,LPWSTR,INT);
4714 #define GetClassName WINELIB_NAME_AW(GetClassName)
4715 WINUSERAPI WORD WINAPI GetClassWord(HWND,INT);
4716 WINUSERAPI BOOL WINAPI GetClientRect(HWND,LPRECT);
4717 WINUSERAPI HANDLE WINAPI GetClipboardData(UINT);
4718 WINUSERAPI INT WINAPI GetClipboardFormatNameA(UINT,LPSTR,INT);
4719 WINUSERAPI INT WINAPI GetClipboardFormatNameW(UINT,LPWSTR,INT);
4720 #define GetClipboardFormatName WINELIB_NAME_AW(GetClipboardFormatName)
4721 WINUSERAPI HWND WINAPI GetClipboardOwner(void);
4722 WINUSERAPI DWORD WINAPI GetClipboardSequenceNumber(VOID);
4723 WINUSERAPI HWND WINAPI GetClipboardViewer(void);
4724 WINUSERAPI BOOL WINAPI GetClipCursor(LPRECT);
4725 WINUSERAPI BOOL WINAPI GetComboBoxInfo(HWND,PCOMBOBOXINFO);
4726 WINUSERAPI HCURSOR WINAPI GetCursor(void);
4727 WINUSERAPI BOOL WINAPI GetCursorInfo(PCURSORINFO);
4728 WINUSERAPI HCURSOR WINAPI GetCursorFrameInfo(HCURSOR,DWORD,DWORD,DWORD*,DWORD*);
4729 WINUSERAPI BOOL WINAPI GetCursorPos(LPPOINT);
4730 WINUSERAPI HDC WINAPI GetDC(HWND);
4731 WINUSERAPI HDC WINAPI GetDCEx(HWND,HRGN,DWORD);
4732 WINUSERAPI HWND WINAPI GetDesktopWindow(void);
4733 WINUSERAPI DWORD WINAPI GetDialogBaseUnits(void);
4734 WINUSERAPI INT WINAPI GetDlgCtrlID(HWND);
4735 WINUSERAPI HWND WINAPI GetDlgItem(HWND,INT);
4736 WINUSERAPI UINT WINAPI GetDlgItemInt(HWND,INT,BOOL*,BOOL);
4737 WINUSERAPI UINT WINAPI GetDlgItemTextA(HWND,INT,LPSTR,INT);
4738 WINUSERAPI UINT WINAPI GetDlgItemTextW(HWND,INT,LPWSTR,INT);
4739 #define GetDlgItemText WINELIB_NAME_AW(GetDlgItemText)
4740 WINUSERAPI UINT WINAPI GetDoubleClickTime(void);
4741 WINUSERAPI HWND WINAPI GetFocus(void);
4742 WINUSERAPI HWND WINAPI GetForegroundWindow(void);
4743 WINUSERAPI BOOL WINAPI GetGUIThreadInfo(DWORD,GUITHREADINFO*);
4744 WINUSERAPI BOOL WINAPI GetIconInfo(HICON,PICONINFO);
4745 WINUSERAPI BOOL WINAPI GetIconInfoExA(HICON,ICONINFOEXA*);
4746 WINUSERAPI BOOL WINAPI GetIconInfoExW(HICON,ICONINFOEXW*);
4747 #define GetIconInfoEx WINELIB_NAME_AW(GetIconInfoEx)
4748 WINUSERAPI BOOL WINAPI GetInputState(void);
4749 WINUSERAPI UINT WINAPI GetInternalWindowPos(HWND,LPRECT,LPPOINT);
4750 WINUSERAPI UINT WINAPI GetKBCodePage(void);
4751 WINUSERAPI HKL WINAPI GetKeyboardLayout(DWORD);
4752 WINUSERAPI UINT WINAPI GetKeyboardLayoutList(INT,HKL *);
4753 WINUSERAPI BOOL WINAPI GetKeyboardState(LPBYTE);
4754 WINUSERAPI INT WINAPI GetKeyboardType(INT);
4755 WINUSERAPI INT WINAPI GetKeyNameTextA(LONG,LPSTR,INT);
4756 WINUSERAPI INT WINAPI GetKeyNameTextW(LONG,LPWSTR,INT);
4757 #define GetKeyNameText WINELIB_NAME_AW(GetKeyNameText)
4758 WINUSERAPI BOOL WINAPI GetKeyboardLayoutNameA(LPSTR);
4759 WINUSERAPI BOOL WINAPI GetKeyboardLayoutNameW(LPWSTR);
4760 #define GetKeyboardLayoutName WINELIB_NAME_AW(GetKeyboardLayoutName)
4761 WINUSERAPI SHORT WINAPI GetKeyState(INT);
4762 WINUSERAPI HWND WINAPI GetLastActivePopup(HWND);
4763 WINUSERAPI BOOL WINAPI GetLastInputInfo(PLASTINPUTINFO);
4764 WINUSERAPI UINT WINAPI GetRawInputBuffer(PRAWINPUT,PUINT,UINT);
4765 WINUSERAPI UINT WINAPI GetRawInputData(HRAWINPUT,UINT,LPVOID,PUINT,UINT);
4766 WINUSERAPI UINT WINAPI GetRawInputDeviceInfoA(HANDLE,UINT,LPVOID,PUINT);
4767 WINUSERAPI UINT WINAPI GetRawInputDeviceInfoW(HANDLE,UINT,LPVOID,PUINT);
4768 #define GetRawInputDeviceInfo WINELIB_NAME_AW(GetRawInputDeviceInfo)
4769 WINUSERAPI UINT WINAPI GetRawInputDeviceList(PRAWINPUTDEVICELIST,PUINT,UINT);
4770 WINUSERAPI UINT WINAPI GetRegisteredRawInputDevices(PRAWINPUTDEVICE,PUINT,UINT);
4771 WINUSERAPI BOOL WINAPI GetLayeredWindowAttributes(HWND,COLORREF*,BYTE*,DWORD*);
4772 WINUSERAPI HMENU WINAPI GetMenu(HWND);
4773 WINUSERAPI BOOL WINAPI GetMenuBarInfo(HWND,LONG,LONG,PMENUBARINFO);
4774 WINUSERAPI DWORD WINAPI GetMenuCheckMarkDimensions(void);
4775 WINUSERAPI DWORD WINAPI GetMenuContextHelpId(HMENU);
4776 WINUSERAPI UINT WINAPI GetMenuDefaultItem(HMENU,UINT,UINT);
4777 WINUSERAPI BOOL WINAPI GetMenuInfo(HMENU,LPMENUINFO);
4778 WINUSERAPI INT WINAPI GetMenuItemCount(HMENU);
4779 WINUSERAPI UINT WINAPI GetMenuItemID(HMENU,INT);
4780 WINUSERAPI BOOL WINAPI GetMenuItemInfoA(HMENU,UINT,BOOL,MENUITEMINFOA*);
4781 WINUSERAPI BOOL WINAPI GetMenuItemInfoW(HMENU,UINT,BOOL,MENUITEMINFOW*);
4782 #define GetMenuItemInfo WINELIB_NAME_AW(GetMenuItemInfo)
4783 WINUSERAPI BOOL WINAPI GetMenuItemRect(HWND,HMENU,UINT,LPRECT);
4784 WINUSERAPI UINT WINAPI GetMenuState(HMENU,UINT,UINT);
4785 WINUSERAPI INT WINAPI GetMenuStringA(HMENU,UINT,LPSTR,INT,UINT);
4786 WINUSERAPI INT WINAPI GetMenuStringW(HMENU,UINT,LPWSTR,INT,UINT);
4787 #define GetMenuString WINELIB_NAME_AW(GetMenuString)
4788 WINUSERAPI BOOL WINAPI GetMessageA(LPMSG,HWND,UINT,UINT);
4789 WINUSERAPI BOOL WINAPI GetMessageW(LPMSG,HWND,UINT,UINT);
4790 #define GetMessage WINELIB_NAME_AW(GetMessage)
4791 WINUSERAPI LPARAM WINAPI GetMessageExtraInfo(void);
4792 WINUSERAPI DWORD WINAPI GetMessagePos(void);
4793 WINUSERAPI LONG WINAPI GetMessageTime(void);
4794 WINUSERAPI BOOL WINAPI GetMonitorInfoA(HMONITOR,LPMONITORINFO);
4795 WINUSERAPI BOOL WINAPI GetMonitorInfoW(HMONITOR,LPMONITORINFO);
4796 #define GetMonitorInfo WINELIB_NAME_AW(GetMonitorInfo)
4797 WINUSERAPI HWND WINAPI GetNextDlgGroupItem(HWND,HWND,BOOL);
4798 WINUSERAPI HWND WINAPI GetNextDlgTabItem(HWND,HWND,BOOL);
4799 #define GetNextWindow GetWindow
4800 WINUSERAPI HWND WINAPI GetOpenClipboardWindow(void);
4801 WINUSERAPI HWND WINAPI GetParent(HWND);
4802 WINUSERAPI INT WINAPI GetPriorityClipboardFormat(UINT*,INT);
4803 WINUSERAPI BOOL WINAPI GetProcessDefaultLayout(DWORD*);
4804 WINUSERAPI HANDLE WINAPI GetPropA(HWND,LPCSTR);
4805 WINUSERAPI HANDLE WINAPI GetPropW(HWND,LPCWSTR);
4806 #define GetProp WINELIB_NAME_AW(GetProp)
4807 WINUSERAPI DWORD WINAPI GetQueueStatus(UINT);
4808 WINUSERAPI BOOL WINAPI GetScrollInfo(HWND,INT,LPSCROLLINFO);
4809 WINUSERAPI BOOL WINAPI GetScrollBarInfo(HWND,LONG,LPSCROLLBARINFO);
4810 WINUSERAPI INT WINAPI GetScrollPos(HWND,INT);
4811 WINUSERAPI BOOL WINAPI GetScrollRange(HWND,INT,LPINT,LPINT);
4812 WINUSERAPI HWND WINAPI GetShellWindow(void);
4813 WINUSERAPI HMENU WINAPI GetSubMenu(HMENU,INT);
4814 WINUSERAPI HBRUSH WINAPI GetSysColorBrush(INT);
4815 #define GetSysModalWindow() ((HWND)0)
4816 WINUSERAPI HMENU WINAPI GetSystemMenu(HWND,BOOL);
4817 WINUSERAPI INT WINAPI GetSystemMetrics(INT);
4818 WINUSERAPI DWORD WINAPI GetTabbedTextExtentA(HDC,LPCSTR,INT,INT,const INT*);
4819 WINUSERAPI DWORD WINAPI GetTabbedTextExtentW(HDC,LPCWSTR,INT,INT,const INT*);
4820 #define GetTabbedTextExtent WINELIB_NAME_AW(GetTabbedTextExtent)
4821 WINUSERAPI BOOL WINAPI GetTitleBarInfo(HWND,PTITLEBARINFO);
4822 WINUSERAPI HDESK WINAPI GetThreadDesktop(DWORD);
4823 WINUSERAPI HWND WINAPI GetTopWindow(HWND);
4824 WINUSERAPI BOOL WINAPI GetUpdateRect(HWND,LPRECT,BOOL);
4825 WINUSERAPI INT WINAPI GetUpdateRgn(HWND,HRGN,BOOL);
4826 WINUSERAPI BOOL WINAPI GetUserObjectInformationA(HANDLE,INT,LPVOID,DWORD,LPDWORD);
4827 WINUSERAPI BOOL WINAPI GetUserObjectInformationW(HANDLE,INT,LPVOID,DWORD,LPDWORD);
4828 #define GetUserObjectInformation WINELIB_NAME_AW(GetUserObjectInformation)
4829 WINUSERAPI BOOL WINAPI GetUserObjectSecurity(HANDLE,PSECURITY_INFORMATION,PSECURITY_DESCRIPTOR,DWORD,LPDWORD);
4830 WINUSERAPI HWND WINAPI GetWindow(HWND,UINT);
4831 WINUSERAPI DWORD WINAPI GetWindowContextHelpId(HWND);
4832 WINUSERAPI HDC WINAPI GetWindowDC(HWND);
4833 WINUSERAPI BOOL WINAPI GetWindowInfo(HWND, PWINDOWINFO);
4834 WINUSERAPI LONG WINAPI GetWindowLongA(HWND,INT);
4835 WINUSERAPI LONG WINAPI GetWindowLongW(HWND,INT);
4836 #define GetWindowLong WINELIB_NAME_AW(GetWindowLong)
4837 #ifdef _WIN64
4838 WINUSERAPI LONG_PTR WINAPI GetWindowLongPtrA(HWND,INT);
4839 WINUSERAPI LONG_PTR WINAPI GetWindowLongPtrW(HWND,INT);
4840 #else
4841 #define GetWindowLongPtrA GetWindowLongA
4842 #define GetWindowLongPtrW GetWindowLongW
4843 #endif
4844 #define GetWindowLongPtr WINELIB_NAME_AW(GetWindowLongPtr)
4845 WINUSERAPI UINT WINAPI GetWindowModuleFileNameA(HWND,LPSTR,UINT);
4846 WINUSERAPI UINT WINAPI GetWindowModuleFileNameW(HWND,LPWSTR,UINT);
4847 #define GetWindowModuleFileName WINELIB_NAME_AW(GetWindowModuleFileName)
4848 WINUSERAPI BOOL WINAPI GetWindowPlacement(HWND,LPWINDOWPLACEMENT);
4849 WINUSERAPI BOOL WINAPI GetWindowRect(HWND,LPRECT);
4850 WINUSERAPI INT WINAPI GetWindowRgn(HWND,HRGN);
4851 WINUSERAPI HWINSTA WINAPI GetProcessWindowStation(void);
4852 #define GetWindowTask(hwnd) ((HTASK)GetWindowThreadProcessId(hwnd,NULL))
4853 WINUSERAPI INT WINAPI GetWindowTextA(HWND,LPSTR,INT);
4854 WINUSERAPI INT WINAPI GetWindowTextW(HWND,LPWSTR,INT);
4855 #define GetWindowText WINELIB_NAME_AW(GetWindowText)
4856 WINUSERAPI INT WINAPI GetWindowTextLengthA(HWND);
4857 WINUSERAPI INT WINAPI GetWindowTextLengthW(HWND);
4858 #define GetWindowTextLength WINELIB_NAME_AW(GetWindowTextLength)
4859 WINUSERAPI DWORD WINAPI GetWindowThreadProcessId(HWND,LPDWORD);
4860 WINUSERAPI WORD WINAPI GetWindowWord(HWND,INT);
4861 WINUSERAPI BOOL WINAPI GrayStringA(HDC,HBRUSH,GRAYSTRINGPROC,LPARAM,INT,INT,INT,INT,INT);
4862 WINUSERAPI BOOL WINAPI GrayStringW(HDC,HBRUSH,GRAYSTRINGPROC,LPARAM,INT,INT,INT,INT,INT);
4863 #define GrayString WINELIB_NAME_AW(GrayString)
4864 WINUSERAPI BOOL WINAPI HideCaret(HWND);
4865 WINUSERAPI BOOL WINAPI HiliteMenuItem(HWND,HMENU,UINT,UINT);
4866 WINUSERAPI BOOL WINAPI InflateRect(LPRECT,INT,INT);
4867 WINUSERAPI BOOL WINAPI InSendMessage(void);
4868 WINUSERAPI DWORD WINAPI InSendMessageEx(LPVOID);
4869 WINUSERAPI BOOL WINAPI InsertMenuA(HMENU,UINT,UINT,UINT_PTR,LPCSTR);
4870 WINUSERAPI BOOL WINAPI InsertMenuW(HMENU,UINT,UINT,UINT_PTR,LPCWSTR);
4871 #define InsertMenu WINELIB_NAME_AW(InsertMenu)
4872 WINUSERAPI BOOL WINAPI InsertMenuItemA(HMENU,UINT,BOOL,const MENUITEMINFOA*);
4873 WINUSERAPI BOOL WINAPI InsertMenuItemW(HMENU,UINT,BOOL,const MENUITEMINFOW*);
4874 #define InsertMenuItem WINELIB_NAME_AW(InsertMenuItem)
4875 WINUSERAPI INT WINAPI InternalGetWindowText(HWND,LPWSTR,INT);
4876 WINUSERAPI BOOL WINAPI IntersectRect(LPRECT,const RECT*,const RECT*);
4877 WINUSERAPI BOOL WINAPI InvalidateRect(HWND,const RECT*,BOOL);
4878 WINUSERAPI BOOL WINAPI InvalidateRgn(HWND,HRGN,BOOL);
4879 WINUSERAPI BOOL WINAPI InvertRect(HDC,const RECT*);
4880 WINUSERAPI BOOL WINAPI IsCharAlphaA(CHAR);
4881 WINUSERAPI BOOL WINAPI IsCharAlphaW(WCHAR);
4882 #define IsCharAlpha WINELIB_NAME_AW(IsCharAlpha)
4883 WINUSERAPI BOOL WINAPI IsCharAlphaNumericA(CHAR);
4884 WINUSERAPI BOOL WINAPI IsCharAlphaNumericW(WCHAR);
4885 #define IsCharAlphaNumeric WINELIB_NAME_AW(IsCharAlphaNumeric)
4886 WINUSERAPI BOOL WINAPI IsCharLowerA(CHAR);
4887 WINUSERAPI BOOL WINAPI IsCharLowerW(WCHAR);
4888 #define IsCharLower WINELIB_NAME_AW(IsCharLower)
4889 WINUSERAPI BOOL WINAPI IsCharUpperA(CHAR);
4890 WINUSERAPI BOOL WINAPI IsCharUpperW(WCHAR);
4891 #define IsCharUpper WINELIB_NAME_AW(IsCharUpper)
4892 WINUSERAPI BOOL WINAPI IsChild(HWND,HWND);
4893 WINUSERAPI BOOL WINAPI IsClipboardFormatAvailable(UINT);
4894 WINUSERAPI BOOL WINAPI IsDialogMessageA(HWND,LPMSG);
4895 WINUSERAPI BOOL WINAPI IsDialogMessageW(HWND,LPMSG);
4896 #define IsDialogMessage WINELIB_NAME_AW(IsDialogMessage)
4897 WINUSERAPI UINT WINAPI IsDlgButtonChecked(HWND,int);
4898 WINUSERAPI BOOL WINAPI IsGUIThread(BOOL);
4899 WINUSERAPI BOOL WINAPI IsHungAppWindow(HWND);
4900 WINUSERAPI BOOL WINAPI IsIconic(HWND);
4901 WINUSERAPI BOOL WINAPI IsMenu(HMENU);
4902 WINUSERAPI BOOL WINAPI IsRectEmpty(const RECT*);
4903 WINUSERAPI BOOL WINAPI IsWinEventHookInstalled(DWORD);
4904 WINUSERAPI BOOL WINAPI IsWindow(HWND);
4905 WINUSERAPI BOOL WINAPI IsWindowEnabled(HWND);
4906 WINUSERAPI BOOL WINAPI IsWindowUnicode(HWND);
4907 WINUSERAPI BOOL WINAPI IsWindowVisible(HWND);
4908 WINUSERAPI BOOL WINAPI IsZoomed(HWND);
4909 WINUSERAPI BOOL WINAPI KillSystemTimer(HWND,UINT_PTR);
4910 WINUSERAPI BOOL WINAPI KillTimer(HWND,UINT_PTR);
4911 WINUSERAPI HACCEL WINAPI LoadAcceleratorsA(HINSTANCE,LPCSTR);
4912 WINUSERAPI HACCEL WINAPI LoadAcceleratorsW(HINSTANCE,LPCWSTR);
4913 #define LoadAccelerators WINELIB_NAME_AW(LoadAccelerators)
4914 WINUSERAPI HBITMAP WINAPI LoadBitmapA(HINSTANCE,LPCSTR);
4915 WINUSERAPI HBITMAP WINAPI LoadBitmapW(HINSTANCE,LPCWSTR);
4916 #define LoadBitmap WINELIB_NAME_AW(LoadBitmap)
4917 WINUSERAPI HCURSOR WINAPI LoadCursorA(HINSTANCE,LPCSTR);
4918 WINUSERAPI HCURSOR WINAPI LoadCursorW(HINSTANCE,LPCWSTR);
4919 #define LoadCursor WINELIB_NAME_AW(LoadCursor)
4920 WINUSERAPI HCURSOR WINAPI LoadCursorFromFileA(LPCSTR);
4921 WINUSERAPI HCURSOR WINAPI LoadCursorFromFileW(LPCWSTR);
4922 #define LoadCursorFromFile WINELIB_NAME_AW(LoadCursorFromFile)
4923 WINUSERAPI HICON WINAPI LoadIconA(HINSTANCE,LPCSTR);
4924 WINUSERAPI HICON WINAPI LoadIconW(HINSTANCE,LPCWSTR);
4925 #define LoadIcon WINELIB_NAME_AW(LoadIcon)
4926 WINUSERAPI HANDLE WINAPI LoadImageA(HINSTANCE,LPCSTR,UINT,INT,INT,UINT);
4927 WINUSERAPI HANDLE WINAPI LoadImageW(HINSTANCE,LPCWSTR,UINT,INT,INT,UINT);
4928 #define LoadImage WINELIB_NAME_AW(LoadImage)
4929 WINUSERAPI HKL WINAPI LoadKeyboardLayoutA(LPCSTR,UINT);
4930 WINUSERAPI HKL WINAPI LoadKeyboardLayoutW(LPCWSTR,UINT);
4931 #define LoadKeyboardLayout WINELIB_NAME_AW(LoadKeyboardLayout)
4932 WINUSERAPI HMENU WINAPI LoadMenuA(HINSTANCE,LPCSTR);
4933 WINUSERAPI HMENU WINAPI LoadMenuW(HINSTANCE,LPCWSTR);
4934 #define LoadMenu WINELIB_NAME_AW(LoadMenu)
4935 WINUSERAPI HMENU WINAPI LoadMenuIndirectA(LPCVOID);
4936 WINUSERAPI HMENU WINAPI LoadMenuIndirectW(LPCVOID);
4937 #define LoadMenuIndirect WINELIB_NAME_AW(LoadMenuIndirect)
4938 WINUSERAPI INT WINAPI LoadStringA(HINSTANCE,UINT,LPSTR,INT);
4939 WINUSERAPI INT WINAPI LoadStringW(HINSTANCE,UINT,LPWSTR,INT);
4940 #define LoadString WINELIB_NAME_AW(LoadString)
4941 WINUSERAPI BOOL WINAPI LockSetForegroundWindow(UINT);
4942 WINUSERAPI BOOL WINAPI LockWindowUpdate(HWND);
4943 WINUSERAPI INT WINAPI LookupIconIdFromDirectory(LPBYTE,BOOL);
4944 WINUSERAPI INT WINAPI LookupIconIdFromDirectoryEx(LPBYTE,BOOL,INT,INT,UINT);
4945 WINUSERAPI UINT WINAPI MapVirtualKeyA(UINT,UINT);
4946 WINUSERAPI UINT WINAPI MapVirtualKeyW(UINT,UINT);
4947 #define MapVirtualKey WINELIB_NAME_AW(MapVirtualKey)
4948 WINUSERAPI UINT WINAPI MapVirtualKeyExA(UINT,UINT,HKL);
4949 WINUSERAPI UINT WINAPI MapVirtualKeyExW(UINT,UINT,HKL);
4950 #define MapVirtualKeyEx WINELIB_NAME_AW(MapVirtualKeyEx)
4951 WINUSERAPI BOOL WINAPI MapDialogRect(HWND,LPRECT);
4952 WINUSERAPI INT WINAPI MapWindowPoints(HWND,HWND,LPPOINT,UINT);
4953 WINUSERAPI INT WINAPI MenuItemFromPoint(HWND,HMENU,POINT);
4954 WINUSERAPI BOOL WINAPI MessageBeep(UINT);
4955 WINUSERAPI INT WINAPI MessageBoxA(HWND,LPCSTR,LPCSTR,UINT);
4956 WINUSERAPI INT WINAPI MessageBoxW(HWND,LPCWSTR,LPCWSTR,UINT);
4957 #define MessageBox WINELIB_NAME_AW(MessageBox)
4958 WINUSERAPI INT WINAPI MessageBoxExA(HWND,LPCSTR,LPCSTR,UINT,WORD);
4959 WINUSERAPI INT WINAPI MessageBoxExW(HWND,LPCWSTR,LPCWSTR,UINT,WORD);
4960 #define MessageBoxEx WINELIB_NAME_AW(MessageBoxEx)
4961 WINUSERAPI INT WINAPI MessageBoxIndirectA(LPMSGBOXPARAMSA);
4962 WINUSERAPI INT WINAPI MessageBoxIndirectW(LPMSGBOXPARAMSW);
4963 #define MessageBoxIndirect WINELIB_NAME_AW(MessageBoxIndirect)
4964 WINUSERAPI BOOL WINAPI ModifyMenuA(HMENU,UINT,UINT,UINT_PTR,LPCSTR);
4965 WINUSERAPI BOOL WINAPI ModifyMenuW(HMENU,UINT,UINT,UINT_PTR,LPCWSTR);
4966 #define ModifyMenu WINELIB_NAME_AW(ModifyMenu)
4967 WINUSERAPI HMONITOR WINAPI MonitorFromPoint(POINT,DWORD);
4968 WINUSERAPI HMONITOR WINAPI MonitorFromRect(LPRECT,DWORD);
4969 WINUSERAPI HMONITOR WINAPI MonitorFromWindow(HWND,DWORD);
4970 WINUSERAPI BOOL WINAPI MoveWindow(HWND,INT,INT,INT,INT,BOOL);
4971 WINUSERAPI DWORD WINAPI MsgWaitForMultipleObjects(DWORD,CONST HANDLE*,BOOL,DWORD,DWORD);
4972 WINUSERAPI DWORD WINAPI MsgWaitForMultipleObjectsEx(DWORD,CONST HANDLE*,DWORD,DWORD,DWORD);
4973 WINUSERAPI VOID WINAPI NotifyWinEvent(DWORD,HWND,LONG,LONG);
4974 WINUSERAPI DWORD WINAPI OemKeyScan(WORD);
4975 WINUSERAPI BOOL WINAPI OemToCharA(LPCSTR,LPSTR);
4976 WINUSERAPI BOOL WINAPI OemToCharW(LPCSTR,LPWSTR);
4977 #define OemToChar WINELIB_NAME_AW(OemToChar)
4978 WINUSERAPI BOOL WINAPI OemToCharBuffA(LPCSTR,LPSTR,DWORD);
4979 WINUSERAPI BOOL WINAPI OemToCharBuffW(LPCSTR,LPWSTR,DWORD);
4980 #define OemToCharBuff WINELIB_NAME_AW(OemToCharBuff)
4981 WINUSERAPI BOOL WINAPI OffsetRect(LPRECT,INT,INT);
4982 WINUSERAPI BOOL WINAPI OpenClipboard(HWND);
4983 WINUSERAPI HDESK WINAPI OpenDesktopA(LPCSTR,DWORD,BOOL,ACCESS_MASK);
4984 WINUSERAPI HDESK WINAPI OpenDesktopW(LPCWSTR,DWORD,BOOL,ACCESS_MASK);
4985 #define OpenDesktop WINELIB_NAME_AW(OpenDesktop)
4986 WINUSERAPI BOOL WINAPI OpenIcon(HWND);
4987 WINUSERAPI HDESK WINAPI OpenInputDesktop(DWORD,BOOL,ACCESS_MASK);
4988 WINUSERAPI HWINSTA WINAPI OpenWindowStationA(LPCSTR,BOOL,ACCESS_MASK);
4989 WINUSERAPI HWINSTA WINAPI OpenWindowStationW(LPCWSTR,BOOL,ACCESS_MASK);
4990 #define OpenWindowStation WINELIB_NAME_AW(OpenWindowStation)
4991 WINUSERAPI BOOL WINAPI PaintDesktop(HDC);
4992 WINUSERAPI BOOL WINAPI PeekMessageA(LPMSG,HWND,UINT,UINT,UINT);
4993 WINUSERAPI BOOL WINAPI PeekMessageW(LPMSG,HWND,UINT,UINT,UINT);
4994 #define PeekMessage WINELIB_NAME_AW(PeekMessage)
4995 #define PostAppMessageA(thread,msg,wparam,lparam) PostThreadMessageA((DWORD)(thread),msg,wparam,lparam)
4996 #define PostAppMessageW(thread,msg,wparam,lparam) PostThreadMessageW((DWORD)(thread),msg,wparam,lparam)
4997 #define PostAppMessage WINELIB_NAME_AW(PostAppMessage)
4998 WINUSERAPI BOOL WINAPI PostMessageA(HWND,UINT,WPARAM,LPARAM);
4999 WINUSERAPI BOOL WINAPI PostMessageW(HWND,UINT,WPARAM,LPARAM);
5000 #define PostMessage WINELIB_NAME_AW(PostMessage)
5001 WINUSERAPI void WINAPI PostQuitMessage(INT);
5002 WINUSERAPI BOOL WINAPI PostThreadMessageA(DWORD,UINT,WPARAM,LPARAM);
5003 WINUSERAPI BOOL WINAPI PostThreadMessageW(DWORD,UINT,WPARAM,LPARAM);
5004 #define PostThreadMessage WINELIB_NAME_AW(PostThreadMessage)
5005 WINUSERAPI UINT WINAPI PrivateExtractIconExA(LPCSTR,int,HICON*,HICON*,UINT);
5006 WINUSERAPI UINT WINAPI PrivateExtractIconExW(LPCWSTR,int,HICON*,HICON*,UINT);
5007 WINUSERAPI UINT WINAPI PrivateExtractIconsA(LPCSTR,int,int,int,HICON*,UINT*,UINT,UINT);
5008 WINUSERAPI UINT WINAPI PrivateExtractIconsW(LPCWSTR,int,int,int,HICON*,UINT*,UINT,UINT);
5009 WINUSERAPI BOOL WINAPI PtInRect(const RECT*,POINT);
5010 WINUSERAPI HWND WINAPI RealChildWindowFromPoint(HWND,POINT);
5011 WINUSERAPI UINT WINAPI RealGetWindowClassA(HWND,LPSTR,UINT);
5012 WINUSERAPI UINT WINAPI RealGetWindowClassW(HWND,LPWSTR,UINT);
5013 #define RealGetWindowClass WINELIB_NAME_AW(RealGetWindowClass)
5014 WINUSERAPI BOOL WINAPI RedrawWindow(HWND,const RECT*,HRGN,UINT);
5015 WINUSERAPI ATOM WINAPI RegisterClassA(const WNDCLASSA *);
5016 WINUSERAPI ATOM WINAPI RegisterClassW(const WNDCLASSW *);
5017 #define RegisterClass WINELIB_NAME_AW(RegisterClass)
5018 WINUSERAPI ATOM WINAPI RegisterClassExA(const WNDCLASSEXA *);
5019 WINUSERAPI ATOM WINAPI RegisterClassExW(const WNDCLASSEXW *);
5020 #define RegisterClassEx WINELIB_NAME_AW(RegisterClassEx)
5021 WINUSERAPI UINT WINAPI RegisterClipboardFormatA(LPCSTR);
5022 WINUSERAPI UINT WINAPI RegisterClipboardFormatW(LPCWSTR);
5023 #define RegisterClipboardFormat WINELIB_NAME_AW(RegisterClipboardFormat)
5024 WINUSERAPI HDEVNOTIFY WINAPI RegisterDeviceNotificationA(HANDLE,LPVOID,DWORD);
5025 WINUSERAPI HDEVNOTIFY WINAPI RegisterDeviceNotificationW(HANDLE,LPVOID,DWORD);
5026 #define RegisterDeviceNotification WINELIB_NAME_AW(RegisterDeviceNotification)
5027 WINUSERAPI BOOL WINAPI RegisterHotKey(HWND,INT,UINT,UINT);
5028 WINUSERAPI BOOL WINAPI RegisterRawInputDevices(PRAWINPUTDEVICE,UINT,UINT);
5029 WINUSERAPI UINT WINAPI RegisterWindowMessageA(LPCSTR);
5030 WINUSERAPI UINT WINAPI RegisterWindowMessageW(LPCWSTR);
5031 #define RegisterWindowMessage WINELIB_NAME_AW(RegisterWindowMessage)
5032 WINUSERAPI BOOL WINAPI ReleaseCapture(void);
5033 WINUSERAPI INT WINAPI ReleaseDC(HWND,HDC);
5034 WINUSERAPI BOOL WINAPI RemoveMenu(HMENU,UINT,UINT);
5035 WINUSERAPI HANDLE WINAPI RemovePropA(HWND,LPCSTR);
5036 WINUSERAPI HANDLE WINAPI RemovePropW(HWND,LPCWSTR);
5037 #define RemoveProp WINELIB_NAME_AW(RemoveProp)
5038 WINUSERAPI BOOL WINAPI ReplyMessage(LRESULT);
5039 WINUSERAPI BOOL WINAPI ScreenToClient(HWND,LPPOINT);
5040 WINUSERAPI VOID WINAPI ScrollChildren(HWND,UINT,WPARAM,LPARAM);
5041 WINUSERAPI BOOL WINAPI ScrollDC(HDC,INT,INT,const RECT*,const RECT*,HRGN,LPRECT);
5042 WINUSERAPI BOOL WINAPI ScrollWindow(HWND,INT,INT,const RECT*,const RECT*);
5043 WINUSERAPI INT WINAPI ScrollWindowEx(HWND,INT,INT,const RECT*,const RECT*,HRGN,LPRECT,UINT);
5044 WINUSERAPI LRESULT WINAPI SendDlgItemMessageA(HWND,INT,UINT,WPARAM,LPARAM);
5045 WINUSERAPI LRESULT WINAPI SendDlgItemMessageW(HWND,INT,UINT,WPARAM,LPARAM);
5046 #define SendDlgItemMessage WINELIB_NAME_AW(SendDlgItemMessage)
5047 WINUSERAPI UINT WINAPI SendInput(UINT,LPINPUT,int);
5048 WINUSERAPI LRESULT WINAPI SendMessageA(HWND,UINT,WPARAM,LPARAM);
5049 WINUSERAPI LRESULT WINAPI SendMessageW(HWND,UINT,WPARAM,LPARAM);
5050 #define SendMessage WINELIB_NAME_AW(SendMessage)
5051 WINUSERAPI BOOL WINAPI SendMessageCallbackA(HWND,UINT,WPARAM,LPARAM,SENDASYNCPROC,ULONG_PTR);
5052 WINUSERAPI BOOL WINAPI SendMessageCallbackW(HWND,UINT,WPARAM,LPARAM,SENDASYNCPROC,ULONG_PTR);
5053 #define SendMessageCallback WINELIB_NAME_AW(SendMessageCallback)
5054 WINUSERAPI LRESULT WINAPI SendMessageTimeoutA(HWND,UINT,WPARAM,LPARAM,UINT,UINT,PDWORD_PTR);
5055 WINUSERAPI LRESULT WINAPI SendMessageTimeoutW(HWND,UINT,WPARAM,LPARAM,UINT,UINT,PDWORD_PTR);
5056 #define SendMessageTimeout WINELIB_NAME_AW(SendMessageTimeout)
5057 WINUSERAPI BOOL WINAPI SendNotifyMessageA(HWND,UINT,WPARAM,LPARAM);
5058 WINUSERAPI BOOL WINAPI SendNotifyMessageW(HWND,UINT,WPARAM,LPARAM);
5059 #define SendNotifyMessage WINELIB_NAME_AW(SendNotifyMessage)
5060 WINUSERAPI HWND WINAPI SetActiveWindow(HWND);
5061 WINUSERAPI HWND WINAPI SetCapture(HWND);
5062 WINUSERAPI BOOL WINAPI SetCaretBlinkTime(UINT);
5063 WINUSERAPI BOOL WINAPI SetCaretPos(INT,INT);
5064 WINUSERAPI DWORD WINAPI SetClassLongA(HWND,INT,LONG);
5065 WINUSERAPI DWORD WINAPI SetClassLongW(HWND,INT,LONG);
5066 #define SetClassLong WINELIB_NAME_AW(SetClassLong)
5067 #ifdef _WIN64
5068 WINUSERAPI ULONG_PTR WINAPI SetClassLongPtrA(HWND,INT,LONG_PTR);
5069 WINUSERAPI ULONG_PTR WINAPI SetClassLongPtrW(HWND,INT,LONG_PTR);
5070 #else
5071 #define SetClassLongPtrA SetClassLongA
5072 #define SetClassLongPtrW SetClassLongW
5073 #endif
5074 #define SetClassLongPtr WINELIB_NAME_AW(SetClassLongPtr)
5075 WINUSERAPI WORD WINAPI SetClassWord(HWND,INT,WORD);
5076 WINUSERAPI HANDLE WINAPI SetClipboardData(UINT,HANDLE);
5077 WINUSERAPI HWND WINAPI SetClipboardViewer(HWND);
5078 WINUSERAPI HCURSOR WINAPI SetCursor(HCURSOR);
5079 WINUSERAPI BOOL WINAPI SetCursorPos(INT,INT);
5080 WINUSERAPI VOID WINAPI SetDebugErrorLevel(DWORD);
5081 WINUSERAPI BOOL WINAPI SetDeskWallPaper(LPCSTR);
5082 WINUSERAPI BOOL WINAPI SetDlgItemInt(HWND,INT,UINT,BOOL);
5083 WINUSERAPI BOOL WINAPI SetDlgItemTextA(HWND,INT,LPCSTR);
5084 WINUSERAPI BOOL WINAPI SetDlgItemTextW(HWND,INT,LPCWSTR);
5085 #define SetDlgItemText WINELIB_NAME_AW(SetDlgItemText)
5086 WINUSERAPI BOOL WINAPI SetDoubleClickTime(UINT);
5087 WINUSERAPI HWND WINAPI SetFocus(HWND);
5088 WINUSERAPI BOOL WINAPI SetForegroundWindow(HWND);
5089 WINUSERAPI void WINAPI SetInternalWindowPos(HWND,UINT,LPRECT,LPPOINT);
5090 WINUSERAPI BOOL WINAPI SetKeyboardState(LPBYTE);
5091 WINUSERAPI VOID WINAPI SetLastErrorEx(DWORD,DWORD);
5092 WINUSERAPI BOOL WINAPI SetLayeredWindowAttributes(HWND,COLORREF,BYTE,DWORD);
5093 WINUSERAPI BOOL WINAPI SetMenu(HWND,HMENU);
5094 WINUSERAPI BOOL WINAPI SetMenuContextHelpId(HMENU,DWORD);
5095 WINUSERAPI BOOL WINAPI SetMenuDefaultItem(HMENU,UINT,UINT);
5096 WINUSERAPI BOOL WINAPI SetMenuInfo(HMENU,LPCMENUINFO);
5097 WINUSERAPI BOOL WINAPI SetMenuItemBitmaps(HMENU,UINT,UINT,HBITMAP,HBITMAP);
5098 WINUSERAPI BOOL WINAPI SetMenuItemInfoA(HMENU,UINT,BOOL,const MENUITEMINFOA*);
5099 WINUSERAPI BOOL WINAPI SetMenuItemInfoW(HMENU,UINT,BOOL,const MENUITEMINFOW*);
5100 #define SetMenuItemInfo WINELIB_NAME_AW(SetMenuItemInfo)
5101 WINUSERAPI LPARAM WINAPI SetMessageExtraInfo(LPARAM);
5102 WINUSERAPI BOOL WINAPI SetMessageQueue(INT);
5103 WINUSERAPI BOOL WINAPI SetProcessDefaultLayout(DWORD);
5104 WINUSERAPI BOOL WINAPI SetProcessWindowStation(HWINSTA);
5105 WINUSERAPI HWND WINAPI SetParent(HWND,HWND);
5106 WINUSERAPI BOOL WINAPI SetPropA(HWND,LPCSTR,HANDLE);
5107 WINUSERAPI BOOL WINAPI SetPropW(HWND,LPCWSTR,HANDLE);
5108 #define SetProp WINELIB_NAME_AW(SetProp)
5109 WINUSERAPI BOOL WINAPI SetRect(LPRECT,INT,INT,INT,INT);
5110 WINUSERAPI BOOL WINAPI SetRectEmpty(LPRECT);
5111 WINUSERAPI INT WINAPI SetScrollInfo(HWND,INT,const SCROLLINFO*,BOOL);
5112 WINUSERAPI INT WINAPI SetScrollPos(HWND,INT,INT,BOOL);
5113 WINUSERAPI BOOL WINAPI SetScrollRange(HWND,INT,INT,INT,BOOL);
5114 #define SetSysModalWindow(hwnd) ((HWND)0)
5115 WINUSERAPI BOOL WINAPI SetSystemCursor(HCURSOR,DWORD);
5116 WINUSERAPI BOOL WINAPI SetSystemMenu(HWND,HMENU);
5117 WINUSERAPI UINT_PTR WINAPI SetSystemTimer(HWND,UINT_PTR,UINT,TIMERPROC);
5118 WINUSERAPI BOOL WINAPI SetThreadDesktop(HDESK);
5119 WINUSERAPI UINT_PTR WINAPI SetTimer(HWND,UINT_PTR,UINT,TIMERPROC);
5120 WINUSERAPI BOOL WINAPI SetUserObjectInformationA(HANDLE,INT,LPVOID,DWORD);
5121 WINUSERAPI BOOL WINAPI SetUserObjectInformationW(HANDLE,INT,LPVOID,DWORD);
5122 #define SetUserObjectInformation WINELIB_NAME_AW(SetUserObjectInformation)
5123 WINUSERAPI BOOL WINAPI SetUserObjectSecurity(HANDLE,PSECURITY_INFORMATION,PSECURITY_DESCRIPTOR);
5124 WINUSERAPI BOOL WINAPI SetWindowContextHelpId(HWND,DWORD);
5125 WINUSERAPI LONG WINAPI SetWindowLongA(HWND,INT,LONG);
5126 WINUSERAPI LONG WINAPI SetWindowLongW(HWND,INT,LONG);
5127 #define SetWindowLong WINELIB_NAME_AW(SetWindowLong)
5128 #ifdef _WIN64
5129 WINUSERAPI LONG_PTR WINAPI SetWindowLongPtrA(HWND,INT,LONG_PTR);
5130 WINUSERAPI LONG_PTR WINAPI SetWindowLongPtrW(HWND,INT,LONG_PTR);
5131 #else
5132 #define SetWindowLongPtrA SetWindowLongA
5133 #define SetWindowLongPtrW SetWindowLongW
5134 #endif
5135 #define SetWindowLongPtr WINELIB_NAME_AW(SetWindowLongPtr)
5136 WINUSERAPI BOOL WINAPI SetWindowPlacement(HWND,const WINDOWPLACEMENT*);
5137 WINUSERAPI HHOOK WINAPI SetWindowsHookA(INT,HOOKPROC);
5138 WINUSERAPI HHOOK WINAPI SetWindowsHookW(INT,HOOKPROC);
5139 #define SetWindowsHook WINELIB_NAME_AW(SetWindowsHook)
5140 WINUSERAPI HHOOK WINAPI SetWindowsHookExA(INT,HOOKPROC,HINSTANCE,DWORD);
5141 WINUSERAPI HHOOK WINAPI SetWindowsHookExW(INT,HOOKPROC,HINSTANCE,DWORD);
5142 #define SetWindowsHookEx WINELIB_NAME_AW(SetWindowsHookEx)
5143 WINUSERAPI BOOL WINAPI SetWindowPos(HWND,HWND,INT,INT,INT,INT,UINT);
5144 WINUSERAPI INT WINAPI SetWindowRgn(HWND,HRGN,BOOL);
5145 WINUSERAPI BOOL WINAPI SetWindowTextA(HWND,LPCSTR);
5146 WINUSERAPI BOOL WINAPI SetWindowTextW(HWND,LPCWSTR);
5147 #define SetWindowText WINELIB_NAME_AW(SetWindowText)
5148 WINUSERAPI WORD WINAPI SetWindowWord(HWND,INT,WORD);
5149 WINUSERAPI HWINEVENTHOOK WINAPI SetWinEventHook(DWORD,DWORD,HMODULE,WINEVENTPROC,DWORD,DWORD,DWORD);
5150 WINUSERAPI BOOL WINAPI ShowCaret(HWND);
5151 WINUSERAPI INT WINAPI ShowCursor(BOOL);
5152 WINUSERAPI BOOL WINAPI ShowScrollBar(HWND,INT,BOOL);
5153 WINUSERAPI BOOL WINAPI ShowOwnedPopups(HWND,BOOL);
5154 WINUSERAPI BOOL WINAPI ShowWindow(HWND,INT);
5155 WINUSERAPI BOOL WINAPI ShowWindowAsync(HWND,INT);
5156 WINUSERAPI BOOL WINAPI SubtractRect(LPRECT,const RECT*,const RECT*);
5157 WINUSERAPI BOOL WINAPI SwapMouseButton(BOOL);
5158 WINUSERAPI BOOL WINAPI SwitchDesktop(HDESK);
5159 WINUSERAPI VOID WINAPI SwitchToThisWindow(HWND,BOOL);
5160 WINUSERAPI BOOL WINAPI SystemParametersInfoA(UINT,UINT,LPVOID,UINT);
5161 WINUSERAPI BOOL WINAPI SystemParametersInfoW(UINT,UINT,LPVOID,UINT);
5162 #define SystemParametersInfo WINELIB_NAME_AW(SystemParametersInfo)
5163 WINUSERAPI LONG WINAPI TabbedTextOutA(HDC,INT,INT,LPCSTR,INT,INT,const INT*,INT);
5164 WINUSERAPI LONG WINAPI TabbedTextOutW(HDC,INT,INT,LPCWSTR,INT,INT,const INT*,INT);
5165 #define TabbedTextOut WINELIB_NAME_AW(TabbedTextOut)
5166 WINUSERAPI WORD WINAPI TileWindows (HWND,UINT,const RECT *,UINT,const HWND *);
5167 WINUSERAPI INT WINAPI ToAscii(UINT,UINT,const BYTE *,LPWORD,UINT);
5168 WINUSERAPI INT WINAPI ToAsciiEx(UINT,UINT,const BYTE *,LPWORD,UINT,HKL);
5169 WINUSERAPI INT WINAPI ToUnicode(UINT,UINT,const BYTE *,LPWSTR,int,UINT);
5170 WINUSERAPI INT WINAPI ToUnicodeEx(UINT,UINT,const BYTE *,LPWSTR,int,UINT,HKL);
5171 WINUSERAPI BOOL WINAPI TrackMouseEvent(LPTRACKMOUSEEVENT);
5172 WINUSERAPI BOOL WINAPI TrackPopupMenu(HMENU,UINT,INT,INT,INT,HWND,const RECT*);
5173 WINUSERAPI BOOL WINAPI TrackPopupMenuEx(HMENU,UINT,INT,INT,HWND,LPTPMPARAMS);
5174 WINUSERAPI INT WINAPI TranslateAcceleratorA(HWND,HACCEL,LPMSG);
5175 WINUSERAPI INT WINAPI TranslateAcceleratorW(HWND,HACCEL,LPMSG);
5176 #define TranslateAccelerator WINELIB_NAME_AW(TranslateAccelerator)
5177 WINUSERAPI BOOL WINAPI TranslateMDISysAccel(HWND,LPMSG);
5178 WINUSERAPI BOOL WINAPI TranslateMessage(const MSG*);
5179 WINUSERAPI BOOL WINAPI UnhookWinEvent(HWINEVENTHOOK);
5180 WINUSERAPI BOOL WINAPI UnhookWindowsHook(INT,HOOKPROC);
5181 WINUSERAPI BOOL WINAPI UnhookWindowsHookEx(HHOOK);
5182 WINUSERAPI BOOL WINAPI UnloadKeyboardLayout(HKL);
5183 WINUSERAPI BOOL WINAPI UnionRect(LPRECT,const RECT*,const RECT*);
5184 WINUSERAPI BOOL WINAPI UnregisterClassA(LPCSTR,HINSTANCE);
5185 WINUSERAPI BOOL WINAPI UnregisterClassW(LPCWSTR,HINSTANCE);
5186 #define UnregisterClass WINELIB_NAME_AW(UnregisterClass)
5187 WINUSERAPI BOOL WINAPI UnregisterDeviceNotification(HDEVNOTIFY);
5188 WINUSERAPI BOOL WINAPI UnregisterHotKey(HWND,INT);
5189 WINUSERAPI BOOL WINAPI UpdateWindow(HWND);
5190 WINUSERAPI UINT WINAPI UserRealizePalette(HDC);
5191 WINUSERAPI BOOL WINAPI ValidateRect(HWND,const RECT*);
5192 WINUSERAPI BOOL WINAPI ValidateRgn(HWND,HRGN);
5193 WINUSERAPI SHORT WINAPI VkKeyScanA(CHAR);
5194 WINUSERAPI SHORT WINAPI VkKeyScanW(WCHAR);
5195 #define VkKeyScan WINELIB_NAME_AW(VkKeyScan)
5196 WINUSERAPI WORD WINAPI VkKeyScanExA(CHAR, HKL);
5197 WINUSERAPI WORD WINAPI VkKeyScanExW(WCHAR, HKL);
5198 #define VkKeyScanEx WINELIB_NAME_AW(VkKeyScanEx)
5199 WINUSERAPI DWORD WINAPI WaitForInputIdle(HANDLE,DWORD);
5200 WINUSERAPI BOOL WINAPI WaitMessage(void);
5201 WINUSERAPI HWND WINAPI WindowFromDC(HDC);
5202 WINUSERAPI HWND WINAPI WindowFromPoint(POINT);
5203 WINUSERAPI BOOL WINAPI WinHelpA(HWND,LPCSTR,UINT,ULONG_PTR);
5204 WINUSERAPI BOOL WINAPI WinHelpW(HWND,LPCWSTR,UINT,ULONG_PTR);
5205 #define WinHelp WINELIB_NAME_AW(WinHelp)
5206 WINUSERAPI VOID WINAPI keybd_event(BYTE,BYTE,DWORD,ULONG_PTR);
5207 WINUSERAPI VOID WINAPI mouse_event(DWORD,DWORD,DWORD,DWORD,ULONG_PTR);
5208 WINUSERAPI INT WINAPIV wsprintfA(LPSTR,LPCSTR,...);
5209 WINUSERAPI INT WINAPIV wsprintfW(LPWSTR,LPCWSTR,...);
5210 #define wsprintf WINELIB_NAME_AW(wsprintf)
5211 WINUSERAPI INT WINAPI wvsprintfA(LPSTR,LPCSTR,__ms_va_list);
5212 WINUSERAPI INT WINAPI wvsprintfW(LPWSTR,LPCWSTR,__ms_va_list);
5213 #define wvsprintf WINELIB_NAME_AW(wvsprintf)
5215 /* Undocumented functions */
5217 /* NOTE: This is SYSTEM.3, not USER.182, which is also named KillSystemTimer */
5218 WORD WINAPI SYSTEM_KillSystemTimer( WORD );
5220 #ifdef __WINESRC__
5221 WINUSERAPI BOOL CDECL __wine_send_input( HWND hwnd, const INPUT *input );
5222 #endif
5224 #ifdef __cplusplus
5226 #endif
5228 #endif /* _WINUSER_ */