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