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