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