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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 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,LPCSTR,HANDLE,ULONG_PTR);
50 typedef BOOL (CALLBACK *PROPENUMPROCEXW)(HWND,LPCWSTR,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;
108 /* flags for FILTERKEYS dwFlags field */
109 #define FKF_AVAILABLE 0x00000002
110 #define FKF_CLICKON 0x00000040
111 #define FKF_FILTERKEYSON 0x00000001
112 #define FKF_HOTKEYACTIVE 0x00000004
113 #define FKF_HOTKEYSOUND 0x00000010
114 #define FKF_CONFIRMHOTKEY 0x00000008
115 #define FKF_INDICATOR 0x00000020
117 typedef struct tagFILTERKEYS
125 } FILTERKEYS, *LPFILTERKEYS;
127 /* flags for TOGGLEKEYS dwFlags field */
128 #define TKF_AVAILABLE 0x00000002
129 #define TKF_CONFIRMHOTKEY 0x00000008
130 #define TKF_HOTKEYACTIVE 0x00000004
131 #define TKF_HOTKEYSOUND 0x00000010
132 #define TKF_TOGGLEKEYSON 0x00000001
134 typedef struct tagTOGGLEKEYS
138 } TOGGLEKEYS, *LPTOGGLEKEYS;
140 /* flags for MOUSEKEYS dwFlags field */
141 #define MKF_AVAILABLE 0x00000002
142 #define MKF_CONFIRMHOTKEY 0x00000008
143 #define MKF_HOTKEYACTIVE 0x00000004
144 #define MKF_HOTKEYSOUND 0x00000010
145 #define MKF_INDICATOR 0x00000020
146 #define MKF_MOUSEKEYSON 0x00000001
147 #define MKF_MODIFIERS 0x00000040
148 #define MKF_REPLACENUMBERS 0x00000080
150 typedef struct tagMOUSEKEYS
155 DWORD iTimeToMaxSpeed;
159 } MOUSEKEYS, *LPMOUSEKEYS;
161 /* flags for STICKYKEYS dwFlags field */
162 #define SKF_AUDIBLEFEEDBACK 0x00000040
163 #define SKF_AVAILABLE 0x00000002
164 #define SKF_CONFIRMHOTKEY 0x00000008
165 #define SKF_HOTKEYACTIVE 0x00000004
166 #define SKF_HOTKEYSOUND 0x00000010
167 #define SKF_INDICATOR 0x00000020
168 #define SKF_STICKYKEYSON 0x00000001
169 #define SKF_TRISTATE 0x00000080
170 #define SKF_TWOKEYSOFF 0x00000100
172 typedef struct tagSTICKYKEYS
176 } STICKYKEYS, *LPSTICKYKEYS;
178 /* flags for ACCESSTIMEOUT dwFlags field */
179 #define ATF_ONOFFFEEDBACK 0x00000002
180 #define ATF_AVAILABLE 0x00000004
181 #define ATF_TIMEOUTON 0x00000001
183 typedef struct tagACCESSTIMEOUT
188 } ACCESSTIMEOUT, *LPACCESSTIMEOUT;
190 /* flags for SERIALKEYS dwFlags field */
191 #define SERKF_ACTIVE 0x00000008
192 #define SERKF_AVAILABLE 0x00000002
193 #define SERKF_INDICATOR 0x00000004
194 #define SERKF_SERIALKEYSON 0x00000001
196 typedef struct tagSERIALKEYSA
200 LPSTR lpszActivePort;
205 } SERIALKEYSA, *LPSERIALKEYSA;
207 typedef struct tagSERIALKEYSW {
210 LPWSTR lpszActivePort;
215 } SERIALKEYSW,*LPSERIALKEYSW;
217 DECL_WINELIB_TYPE_AW(SERIALKEYS)
218 DECL_WINELIB_TYPE_AW(LPSERIALKEYS)
220 /* flags for SOUNDSENTRY dwFlags field */
221 #define SSF_AVAILABLE 0x00000002
222 #define SSF_SOUNDSENTRYON 0x00000001
224 #define SSTF_BORDER 0x00000002
225 #define SSTF_CHARS 0x00000001
226 #define SSTF_DISPLAY 0x00000003
227 #define SSTF_NONE 0x00000000
229 #define SSGF_DISPLAY 0x00000003
230 #define SSGF_NONE 0x00000000
232 #define SSWF_DISPLAY 0x00000003
233 #define SSWF_NONE 0x00000000
234 #define SSWF_TITLE 0x00000001
235 #define SSWF_WINDOW 0x00000002
237 typedef struct tagSOUNDSENTRYA
242 DWORD iFSTextEffectMSec;
243 DWORD iFSTextEffectColorBits;
245 DWORD iFSGrafEffectMSec;
246 DWORD iFSGrafEffectColor;
247 DWORD iWindowsEffect;
248 DWORD iWindowsEffectMSec;
249 LPSTR lpszWindowsEffectDLL;
250 DWORD iWindowsEffectOrdinal;
251 } SOUNDSENTRYA, *LPSOUNDSENTRYA;
253 typedef struct tagSOUNDSENTRYW
258 DWORD iFSTextEffectMSec;
259 DWORD iFSTextEffectColorBits;
261 DWORD iFSGrafEffectMSec;
262 DWORD iFSGrafEffectColor;
263 DWORD iWindowsEffect;
264 DWORD iWindowsEffectMSec;
265 LPWSTR lpszWindowsEffectDLL;
266 DWORD iWindowsEffectOrdinal;
267 } SOUNDSENTRYW, *LPSOUNDSENTRYW;
269 DECL_WINELIB_TYPE_AW(SOUNDSENTRY)
270 DECL_WINELIB_TYPE_AW(LPSOUNDSENTRY)
272 /* flags for HIGHCONTRAST dwFlags field */
273 #define HCF_HIGHCONTRASTON 0x00000001
274 #define HCF_AVAILABLE 0x00000002
275 #define HCF_HOTKEYACTIVE 0x00000004
276 #define HCF_CONFIRMHOTKEY 0x00000008
277 #define HCF_HOTKEYSOUND 0x00000010
278 #define HCF_INDICATOR 0x00000020
279 #define HCF_HOTKEYAVAILABLE 0x00000040
281 typedef struct tagHIGHCONTRASTA
285 LPSTR lpszDefaultScheme;
286 } HIGHCONTRASTA, *LPHIGHCONTRASTA;
288 typedef struct tagHIGHCONTRASTW
292 LPWSTR lpszDefaultScheme;
293 } HIGHCONTRASTW, *LPHIGHCONTRASTW;
295 DECL_WINELIB_TYPE_AW(HIGHCONTRAST)
296 DECL_WINELIB_TYPE_AW(LPHIGHCONTRAST)
298 typedef struct tagEVENTMSG
305 } EVENTMSG, *PEVENTMSG, *LPEVENTMSG;
307 /* WH_KEYBOARD_LL structure */
308 typedef struct tagKBDLLHOOKSTRUCT
314 ULONG_PTR dwExtraInfo;
315 } KBDLLHOOKSTRUCT, *LPKBDLLHOOKSTRUCT, *PKBDLLHOOKSTRUCT;
317 #define LLKHF_EXTENDED (KF_EXTENDED >> 8)
318 #define LLKHF_INJECTED 0x00000010
319 #define LLKHF_ALTDOWN (KF_ALTDOWN >> 8)
320 #define LLKHF_UP (KF_UP >> 8)
322 /* WH_MOUSE_LL structure */
323 typedef struct tagMSLLHOOKSTRUCT
329 ULONG_PTR dwExtraInfo;
330 } MSLLHOOKSTRUCT, *LPMSLLHOOKSTRUCT, *PMSLLHOOKSTRUCT;
332 #define LLMHF_INJECTED 0x00000001
334 /* Mouse hook structure */
341 ULONG_PTR dwExtraInfo;
342 } MOUSEHOOKSTRUCT, *PMOUSEHOOKSTRUCT, *LPMOUSEHOOKSTRUCT;
345 /* Hardware hook structure */
353 } HARDWAREHOOKSTRUCT, *PHARDWAREHOOKSTRUCT, *LPHARDWAREHOOKSTRUCT;
356 /* Debug hook structure */
358 typedef struct tagDEBUGHOOKINFO
361 DWORD idThreadInstaller;
365 } DEBUGHOOKINFO, *PDEBUGHOOKINFO, *LPDEBUGHOOKINFO;
370 #define KLF_ACTIVATE 0x00000001
371 #define KLF_SUBSTITUTE_OK 0x00000002
372 #define KLF_UNLOADPREVIOUS 0x00000004
373 #define KLF_REORDER 0x00000008
374 #define KLF_REPLACELANG 0x00000010
375 #define KLF_NOTELLSHELL 0x00000080
376 #define KLF_SETFORPROCESS 0x00000100
377 #define KLF_SHIFTLOCK 0x00010000
378 #define KLF_RESET 0x40000000
380 #define KL_NAMELENGTH 9
382 typedef struct tagMOUSEINPUT
389 ULONG_PTR dwExtraInfo;
390 } MOUSEINPUT, *PMOUSEINPUT, *LPMOUSEINPUT;
392 typedef struct tagKEYBDINPUT
398 ULONG_PTR dwExtraInfo;
399 } KEYBDINPUT, *PKEYBDINPUT, *LPKEYBDINPUT;
401 typedef struct tagHARDWAREINPUT
406 } HARDWAREINPUT, *PHARDWAREINPUT, *LPHARDWAREINPUT;
408 #define INPUT_MOUSE 0
409 #define INPUT_KEYBOARD 1
410 #define INPUT_HARDWARE 2
412 typedef struct tagINPUT
421 } INPUT, *PINPUT, *LPINPUT;
424 typedef struct tagGUITHREADINFO
435 } GUITHREADINFO, *PGUITHREADINFO, *LPGUITHREADINFO;
437 #define GUI_CARETBLINKING 0x00000001
438 #define GUI_INMOVESIZE 0x00000002
439 #define GUI_INMENUMODE 0x00000004
440 #define GUI_SYSTEMMENUMODE 0x00000008
441 #define GUI_POPUPMENUMODE 0x00000010
442 #define GUI_16BITTASK 0x00000020
445 /***** Dialogs *****/
447 /* Gcc on Solaris has a version of this that we don't care about */
450 #define FVIRTKEY TRUE /* Assumed to be == TRUE */
451 #define FNOINVERT 0x02
453 #define FCONTROL 0x08
457 typedef struct tagANIMATIONINFO
461 } ANIMATIONINFO, *LPANIMATIONINFO;
463 typedef struct tagNMHDR
470 typedef struct tagDRAWTEXTPARAMS
477 } DRAWTEXTPARAMS,*LPDRAWTEXTPARAMS;
479 #define WM_USER 0x0400
487 } CWPSTRUCT, *PCWPSTRUCT, *LPCWPSTRUCT;
496 } CWPRETSTRUCT, *PCWPRETSTRUCT, *LPCWPRETSTRUCT;
498 typedef struct tagWINDOWPLACEMENT
505 RECT rcNormalPosition;
506 } WINDOWPLACEMENT, *PWINDOWPLACEMENT, *LPWINDOWPLACEMENT;
509 /* WINDOWPLACEMENT flags */
510 #define WPF_SETMINPOSITION 0x0001
511 #define WPF_RESTORETOMAXIMIZED 0x0002
513 /***** Dialogs *****/
515 #define IS_INTRESOURCE(x) (((ULONG_PTR)(x) >> 16) == 0)
516 #define MAKEINTRESOURCEA(i) (LPSTR)((ULONG_PTR)((WORD)(i)))
517 #define MAKEINTRESOURCEW(i) (LPWSTR)((ULONG_PTR)((WORD)(i)))
520 /* force using a cast when inside Wine */
521 #define MAKEINTRESOURCE(i) ((ULONG_PTR)((WORD)(i)))
523 #define MAKEINTRESOURCE WINELIB_NAME_AW(MAKEINTRESOURCE)
526 /* Predefined resource types */
527 #define RT_CURSOR MAKEINTRESOURCE(1)
528 #define RT_BITMAP MAKEINTRESOURCE(2)
529 #define RT_ICON MAKEINTRESOURCE(3)
530 #define RT_MENU MAKEINTRESOURCE(4)
531 #define RT_DIALOG MAKEINTRESOURCE(5)
532 #define RT_STRING MAKEINTRESOURCE(6)
533 #define RT_FONTDIR MAKEINTRESOURCE(7)
534 #define RT_FONT MAKEINTRESOURCE(8)
535 #define RT_ACCELERATOR MAKEINTRESOURCE(9)
536 #define RT_RCDATA MAKEINTRESOURCE(10)
537 #define RT_MESSAGETABLE MAKEINTRESOURCE(11)
538 #define RT_GROUP_CURSOR MAKEINTRESOURCE(12)
539 #define RT_GROUP_ICON MAKEINTRESOURCE(14)
540 #define RT_VERSION MAKEINTRESOURCE(16)
541 #define RT_DLGINCLUDE MAKEINTRESOURCE(17)
542 #define RT_PLUGPLAY MAKEINTRESOURCE(19)
543 #define RT_VXD MAKEINTRESOURCE(20)
544 #define RT_ANICURSOR MAKEINTRESOURCE(21)
545 #define RT_ANIICON MAKEINTRESOURCE(22)
546 #define RT_HTML MAKEINTRESOURCE(23)
549 /* cbWndExtra bytes for dialog class */
550 #define DLGWINDOWEXTRA 30
552 /* Button control styles */
553 #define BS_PUSHBUTTON 0x00000000L
554 #define BS_DEFPUSHBUTTON 0x00000001L
555 #define BS_CHECKBOX 0x00000002L
556 #define BS_AUTOCHECKBOX 0x00000003L
557 #define BS_RADIOBUTTON 0x00000004L
558 #define BS_3STATE 0x00000005L
559 #define BS_AUTO3STATE 0x00000006L
560 #define BS_GROUPBOX 0x00000007L
561 #define BS_USERBUTTON 0x00000008L
562 #define BS_AUTORADIOBUTTON 0x00000009L
563 #define BS_OWNERDRAW 0x0000000BL
564 #define BS_LEFTTEXT 0x00000020L
565 #define BS_RIGHTBUTTON BS_LEFTTEXT
567 #define BS_TEXT 0x00000000L
568 #define BS_ICON 0x00000040L
569 #define BS_BITMAP 0x00000080L
570 #define BS_LEFT 0x00000100L
571 #define BS_RIGHT 0x00000200L
572 #define BS_CENTER 0x00000300L
573 #define BS_TOP 0x00000400L
574 #define BS_BOTTOM 0x00000800L
575 #define BS_VCENTER 0x00000C00L
576 #define BS_PUSHLIKE 0x00001000L
577 #define BS_MULTILINE 0x00002000L
578 #define BS_NOTIFY 0x00004000L
579 #define BS_FLAT 0x00008000L
582 #define DS_ABSALIGN 0x0001
583 #define DS_SYSMODAL 0x0002
584 #define DS_3DLOOK 0x0004 /* win95 */
585 #define DS_FIXEDSYS 0x0008 /* win95 */
586 #define DS_NOFAILCREATE 0x0010 /* win95 */
587 #define DS_LOCALEDIT 0x0020
588 #define DS_SETFONT 0x0040
589 #define DS_MODALFRAME 0x0080
590 #define DS_NOIDLEMSG 0x0100
591 #define DS_SETFOREGROUND 0x0200 /* win95 */
592 #define DS_CONTROL 0x0400 /* win95 */
593 #define DS_CENTER 0x0800 /* win95 */
594 #define DS_CENTERMOUSE 0x1000 /* win95 */
595 #define DS_CONTEXTHELP 0x2000 /* win95 */
598 /* Dialog messages */
599 #define DM_GETDEFID (WM_USER+0)
600 #define DM_SETDEFID (WM_USER+1)
601 #define DM_REPOSITION (WM_USER+2)
603 #define DC_HASDEFID 0x534b
605 /* Bit flags for DRAWITEMSTRUCT.CtlType */
607 #define ODT_LISTBOX 2
608 #define ODT_COMBOBOX 3
612 /* Bit flags for DRAWITEMSTRUCT.itemAction */
613 #define ODA_DRAWENTIRE 0x1
614 #define ODA_SELECT 0x2
615 #define ODA_FOCUS 0x4
617 /* Bit flags for DRAWITEMSTRUCT.itemState */
618 #define ODS_SELECTED 0x0001 /* Selected */
619 #define ODS_GRAYED 0x0002 /* Grayed (Menus only) */
620 #define ODS_DISABLED 0x0004 /* Disabled */
621 #define ODS_CHECKED 0x0008 /* Checked (Menus only) */
622 #define ODS_FOCUS 0x0010 /* Has focus */
623 #define ODS_DEFAULT 0x0020 /* Default */
624 #define ODS_HOTLIGHT 0x0040 /* Highlighted when under mouse */
625 #define ODS_INACTIVE 0x0080 /* Inactive */
626 #define ODS_NOACCEL 0x0100 /* No keyboard accelerator */
627 #define ODS_NOFOCUSRECT 0x0200 /* No focus rectangle */
628 #define ODS_COMBOBOXEDIT 0x1000 /* Edit of a combo box */
630 /* Edit control styles */
631 #define ES_LEFT 0x00000000
632 #define ES_CENTER 0x00000001
633 #define ES_RIGHT 0x00000002
634 #define ES_MULTILINE 0x00000004
635 #define ES_UPPERCASE 0x00000008
636 #define ES_LOWERCASE 0x00000010
637 #define ES_PASSWORD 0x00000020
638 #define ES_AUTOVSCROLL 0x00000040
639 #define ES_AUTOHSCROLL 0x00000080
640 #define ES_NOHIDESEL 0x00000100
641 #define ES_COMBO 0x00000200 /* Undocumented. Parent is a combobox */
642 #define ES_OEMCONVERT 0x00000400
643 #define ES_READONLY 0x00000800
644 #define ES_WANTRETURN 0x00001000
645 #define ES_NUMBER 0x00002000
647 /* OEM Resource Ordinal Numbers */
648 #define OBM_TRTYPE 32732
649 #define OBM_LFARROWI 32734
650 #define OBM_RGARROWI 32735
651 #define OBM_DNARROWI 32736
652 #define OBM_UPARROWI 32737
653 #define OBM_COMBO 32738
654 #define OBM_MNARROW 32739
655 #define OBM_LFARROWD 32740
656 #define OBM_RGARROWD 32741
657 #define OBM_DNARROWD 32742
658 #define OBM_UPARROWD 32743
659 #define OBM_RESTORED 32744
660 #define OBM_ZOOMD 32745
661 #define OBM_REDUCED 32746
662 #define OBM_RESTORE 32747
663 #define OBM_ZOOM 32748
664 #define OBM_REDUCE 32749
665 #define OBM_LFARROW 32750
666 #define OBM_RGARROW 32751
667 #define OBM_DNARROW 32752
668 #define OBM_UPARROW 32753
669 #define OBM_CLOSE 32754
670 #define OBM_OLD_RESTORE 32755
671 #define OBM_OLD_ZOOM 32756
672 #define OBM_OLD_REDUCE 32757
673 #define OBM_BTNCORNERS 32758
674 #define OBM_CHECKBOXES 32759
675 #define OBM_CHECK 32760
676 #define OBM_BTSIZE 32761
677 #define OBM_OLD_LFARROW 32762
678 #define OBM_OLD_RGARROW 32763
679 #define OBM_OLD_DNARROW 32764
680 #define OBM_OLD_UPARROW 32765
681 #define OBM_SIZE 32766
682 #define OBM_OLD_CLOSE 32767
684 #define OCR_NORMAL 32512
685 #define OCR_IBEAM 32513
686 #define OCR_WAIT 32514
687 #define OCR_CROSS 32515
689 #define OCR_SIZE 32640
690 #define OCR_ICON 32641
691 #define OCR_SIZENWSE 32642
692 #define OCR_SIZENESW 32643
693 #define OCR_SIZEWE 32644
694 #define OCR_SIZENS 32645
695 #define OCR_SIZEALL 32646
696 #define OCR_ICOCUR 32647
698 #define OCR_HAND 32649
699 #define OCR_APPSTARTING 32650
700 #define OCR_HELP 32651
702 /* only defined in wine (FIXME) */
703 #define OCR_DRAGOBJECT 32653
705 #define OIC_SAMPLE 32512
706 #define OIC_HAND 32513
707 #define OIC_QUES 32514
708 #define OIC_BANG 32515
709 #define OIC_NOTE 32516
710 #define OIC_WINLOGO 32517
711 #define OIC_WARNING OIC_BANG
712 #define OIC_ERROR OIC_HAND
713 #define OIC_INFORMATION OIC_NOTE
717 #define COLOR_SCROLLBAR 0
718 #define COLOR_BACKGROUND 1
719 #define COLOR_ACTIVECAPTION 2
720 #define COLOR_INACTIVECAPTION 3
722 #define COLOR_WINDOW 5
723 #define COLOR_WINDOWFRAME 6
724 #define COLOR_MENUTEXT 7
725 #define COLOR_WINDOWTEXT 8
726 #define COLOR_CAPTIONTEXT 9
727 #define COLOR_ACTIVEBORDER 10
728 #define COLOR_INACTIVEBORDER 11
729 #define COLOR_APPWORKSPACE 12
730 #define COLOR_HIGHLIGHT 13
731 #define COLOR_HIGHLIGHTTEXT 14
732 #define COLOR_BTNFACE 15
733 #define COLOR_BTNSHADOW 16
734 #define COLOR_GRAYTEXT 17
735 #define COLOR_BTNTEXT 18
736 #define COLOR_INACTIVECAPTIONTEXT 19
737 #define COLOR_BTNHIGHLIGHT 20
739 #define COLOR_3DDKSHADOW 21
740 #define COLOR_3DLIGHT 22
741 #define COLOR_INFOTEXT 23
742 #define COLOR_INFOBK 24
743 #define COLOR_DESKTOP COLOR_BACKGROUND
744 #define COLOR_3DFACE COLOR_BTNFACE
745 #define COLOR_3DSHADOW COLOR_BTNSHADOW
746 #define COLOR_3DHIGHLIGHT COLOR_BTNHIGHLIGHT
747 #define COLOR_3DHILIGHT COLOR_BTNHIGHLIGHT
748 #define COLOR_BTNHILIGHT COLOR_BTNHIGHLIGHT
750 #define COLOR_ALTERNATEBTNFACE 25 /* undocumented, constant's name unknown */
751 #define COLOR_HOTLIGHT 26
752 #define COLOR_GRADIENTACTIVECAPTION 27
753 #define COLOR_GRADIENTINACTIVECAPTION 28
754 /* win2k/xp colors */
755 #define COLOR_MENUHILIGHT 29
756 #define COLOR_MENUBAR 30
758 /* WM_CTLCOLOR values */
759 #define CTLCOLOR_MSGBOX 0
760 #define CTLCOLOR_EDIT 1
761 #define CTLCOLOR_LISTBOX 2
762 #define CTLCOLOR_BTN 3
763 #define CTLCOLOR_DLG 4
764 #define CTLCOLOR_SCROLLBAR 5
765 #define CTLCOLOR_STATIC 6
767 COLORREF WINAPI GetSysColor(INT);
768 BOOL WINAPI SetSysColors(INT,const INT*,const COLORREF*);
772 /* Edit control messages */
773 #define EM_GETSEL 0x00b0
774 #define EM_SETSEL 0x00b1
775 #define EM_GETRECT 0x00b2
776 #define EM_SETRECT 0x00b3
777 #define EM_SETRECTNP 0x00b4
778 #define EM_SCROLL 0x00b5
779 #define EM_LINESCROLL 0x00b6
780 #define EM_SCROLLCARET 0x00b7
781 #define EM_GETMODIFY 0x00b8
782 #define EM_SETMODIFY 0x00b9
783 #define EM_GETLINECOUNT 0x00ba
784 #define EM_LINEINDEX 0x00bb
785 #define EM_SETHANDLE 0x00bc
786 #define EM_GETHANDLE 0x00bd
787 #define EM_GETTHUMB 0x00be
788 /* FIXME : missing from specs 0x00bf and 0x00c0 */
789 #define EM_LINELENGTH 0x00c1
790 #define EM_REPLACESEL 0x00c2
791 /* FIXME : missing from specs 0x00c3 */
792 #define EM_GETLINE 0x00c4
793 #define EM_LIMITTEXT 0x00c5
794 #define EM_CANUNDO 0x00c6
795 #define EM_UNDO 0x00c7
796 #define EM_FMTLINES 0x00c8
797 #define EM_LINEFROMCHAR 0x00c9
798 /* FIXME : missing from specs 0x00ca */
799 #define EM_SETTABSTOPS 0x00cb
800 #define EM_SETPASSWORDCHAR 0x00cc
801 #define EM_EMPTYUNDOBUFFER 0x00cd
802 #define EM_GETFIRSTVISIBLELINE 0x00ce
803 #define EM_SETREADONLY 0x00cf
804 #define EM_SETWORDBREAKPROC 0x00d0
805 #define EM_GETWORDBREAKPROC 0x00d1
806 #define EM_GETPASSWORDCHAR 0x00d2
807 #define EM_SETMARGINS 0x00d3
808 #define EM_GETMARGINS 0x00d4
809 #define EM_GETLIMITTEXT 0x00d5
810 #define EM_POSFROMCHAR 0x00d6
811 #define EM_CHARFROMPOS 0x00d7
812 /* a name change since win95 */
813 #define EM_SETLIMITTEXT EM_LIMITTEXT
815 /* EDITWORDBREAKPROC code values */
818 #define WB_ISDELIMITER 2
820 /* Edit control notification codes */
821 #define EN_SETFOCUS 0x0100
822 #define EN_KILLFOCUS 0x0200
823 #define EN_CHANGE 0x0300
824 #define EN_UPDATE 0x0400
825 #define EN_ERRSPACE 0x0500
826 #define EN_MAXTEXT 0x0501
827 #define EN_HSCROLL 0x0601
828 #define EN_VSCROLL 0x0602
830 /* New since win95 : EM_SETMARGIN parameters */
831 #define EC_LEFTMARGIN 0x0001
832 #define EC_RIGHTMARGIN 0x0002
833 #define EC_USEFONTINFO 0xffff
836 /* GetSystemMetrics() codes */
837 #define SM_CXSCREEN 0
838 #define SM_CYSCREEN 1
839 #define SM_CXVSCROLL 2
840 #define SM_CYHSCROLL 3
841 #define SM_CYCAPTION 4
842 #define SM_CXBORDER 5
843 #define SM_CYBORDER 6
844 #define SM_CXDLGFRAME 7
845 #define SM_CYDLGFRAME 8
846 #define SM_CYVTHUMB 9
847 #define SM_CXHTHUMB 10
850 #define SM_CXCURSOR 13
851 #define SM_CYCURSOR 14
853 #define SM_CXFULLSCREEN 16
854 #define SM_CYFULLSCREEN 17
855 #define SM_CYKANJIWINDOW 18
856 #define SM_MOUSEPRESENT 19
857 #define SM_CYVSCROLL 20
858 #define SM_CXHSCROLL 21
860 #define SM_SWAPBUTTON 23
861 #define SM_RESERVED1 24
862 #define SM_RESERVED2 25
863 #define SM_RESERVED3 26
864 #define SM_RESERVED4 27
869 #define SM_CXFRAME 32
870 #define SM_CYFRAME 33
871 #define SM_CXMINTRACK 34
872 #define SM_CYMINTRACK 35
873 #define SM_CXDOUBLECLK 36
874 #define SM_CYDOUBLECLK 37
875 #define SM_CXICONSPACING 38
876 #define SM_CYICONSPACING 39
877 #define SM_MENUDROPALIGNMENT 40
878 #define SM_PENWINDOWS 41
879 #define SM_DBCSENABLED 42
880 #define SM_CMOUSEBUTTONS 43
881 #define SM_CXFIXEDFRAME SM_CXDLGFRAME
882 #define SM_CYFIXEDFRAME SM_CYDLGFRAME
883 #define SM_CXSIZEFRAME SM_CXFRAME
884 #define SM_CYSIZEFRAME SM_CYFRAME
888 #define SM_CXMINSPACING 47
889 #define SM_CYMINSPACING 48
890 #define SM_CXSMICON 49
891 #define SM_CYSMICON 50
892 #define SM_CYSMCAPTION 51
893 #define SM_CXSMSIZE 52
894 #define SM_CYSMSIZE 53
895 #define SM_CXMENUSIZE 54
896 #define SM_CYMENUSIZE 55
897 #define SM_ARRANGE 56
898 #define SM_CXMINIMIZED 57
899 #define SM_CYMINIMIZED 58
900 #define SM_CXMAXTRACK 59
901 #define SM_CYMAXTRACK 60
902 #define SM_CXMAXIMIZED 61
903 #define SM_CYMAXIMIZED 62
904 #define SM_NETWORK 63
905 #define SM_CLEANBOOT 67
908 #define SM_SHOWSOUNDS 70
909 #define SM_CXMENUCHECK 71
910 #define SM_CYMENUCHECK 72
911 #define SM_SLOWMACHINE 73
912 #define SM_MIDEASTENABLED 74
913 #define SM_MOUSEWHEELPRESENT 75
914 #define SM_XVIRTUALSCREEN 76
915 #define SM_YVIRTUALSCREEN 77
916 #define SM_CXVIRTUALSCREEN 78
917 #define SM_CYVIRTUALSCREEN 79
918 #define SM_CMONITORS 80
919 #define SM_SAMEDISPLAYFORMAT 81
920 #define SM_IMMENABLED 82
921 #define SM_CXFOCUSBORDER 83
922 #define SM_CYFOCUSBORDER 84
923 #define SM_TABLETPC 86
924 #define SM_MEDIACENTER 87
925 #define SM_CMETRICS 88
930 /* WM_GETDLGCODE values */
933 #define WM_NULL 0x0000
934 #define WM_CREATE 0x0001
935 #define WM_DESTROY 0x0002
936 #define WM_MOVE 0x0003
937 #define WM_SIZEWAIT 0x0004
938 #define WM_SIZE 0x0005
939 #define WM_ACTIVATE 0x0006
940 #define WM_SETFOCUS 0x0007
941 #define WM_KILLFOCUS 0x0008
942 #define WM_SETVISIBLE 0x0009
943 #define WM_ENABLE 0x000a
944 #define WM_SETREDRAW 0x000b
945 #define WM_SETTEXT 0x000c
946 #define WM_GETTEXT 0x000d
947 #define WM_GETTEXTLENGTH 0x000e
948 #define WM_PAINT 0x000f
949 #define WM_CLOSE 0x0010
950 #define WM_QUERYENDSESSION 0x0011
951 #define WM_QUIT 0x0012
952 #define WM_QUERYOPEN 0x0013
953 #define WM_ERASEBKGND 0x0014
954 #define WM_SYSCOLORCHANGE 0x0015
955 #define WM_ENDSESSION 0x0016
956 #define WM_SYSTEMERROR 0x0017
957 #define WM_SHOWWINDOW 0x0018
958 #define WM_CTLCOLOR 0x0019
959 #define WM_WININICHANGE 0x001a
960 #define WM_SETTINGCHANGE WM_WININICHANGE
961 #define WM_DEVMODECHANGE 0x001b
962 #define WM_ACTIVATEAPP 0x001c
963 #define WM_FONTCHANGE 0x001d
964 #define WM_TIMECHANGE 0x001e
965 #define WM_CANCELMODE 0x001f
966 #define WM_SETCURSOR 0x0020
967 #define WM_MOUSEACTIVATE 0x0021
968 #define WM_CHILDACTIVATE 0x0022
969 #define WM_QUEUESYNC 0x0023
970 #define WM_GETMINMAXINFO 0x0024
972 #define WM_PAINTICON 0x0026
973 #define WM_ICONERASEBKGND 0x0027
974 #define WM_NEXTDLGCTL 0x0028
975 #define WM_ALTTABACTIVE 0x0029
976 #define WM_SPOOLERSTATUS 0x002a
977 #define WM_DRAWITEM 0x002b
978 #define WM_MEASUREITEM 0x002c
979 #define WM_DELETEITEM 0x002d
980 #define WM_VKEYTOITEM 0x002e
981 #define WM_CHARTOITEM 0x002f
982 #define WM_SETFONT 0x0030
983 #define WM_GETFONT 0x0031
984 #define WM_SETHOTKEY 0x0032
985 #define WM_GETHOTKEY 0x0033
986 #define WM_FILESYSCHANGE 0x0034
987 #define WM_ISACTIVEICON 0x0035
988 #define WM_QUERYPARKICON 0x0036
989 #define WM_QUERYDRAGICON 0x0037
990 #define WM_QUERYSAVESTATE 0x0038
991 #define WM_COMPAREITEM 0x0039
992 #define WM_TESTING 0x003a
994 #define WM_GETOBJECT 0x003d
996 #define WM_ACTIVATESHELLWINDOW 0x003e
998 #define WM_COMPACTING 0x0041
1000 #define WM_COMMNOTIFY 0x0044
1001 #define WM_WINDOWPOSCHANGING 0x0046
1002 #define WM_WINDOWPOSCHANGED 0x0047
1003 #define WM_POWER 0x0048
1005 /* Win32 4.0 messages */
1006 #define WM_COPYDATA 0x004a
1007 #define WM_CANCELJOURNAL 0x004b
1008 #define WM_NOTIFY 0x004e
1009 #define WM_INPUTLANGCHANGEREQUEST 0x0050
1010 #define WM_INPUTLANGCHANGE 0x0051
1011 #define WM_TCARD 0x0052
1012 #define WM_HELP 0x0053
1013 #define WM_USERCHANGED 0x0054
1014 #define WM_NOTIFYFORMAT 0x0055
1016 #define WM_CONTEXTMENU 0x007b
1017 #define WM_STYLECHANGING 0x007c
1018 #define WM_STYLECHANGED 0x007d
1019 #define WM_DISPLAYCHANGE 0x007e
1020 #define WM_GETICON 0x007f
1021 #define WM_SETICON 0x0080
1023 /* Non-client system messages */
1024 #define WM_NCCREATE 0x0081
1025 #define WM_NCDESTROY 0x0082
1026 #define WM_NCCALCSIZE 0x0083
1027 #define WM_NCHITTEST 0x0084
1028 #define WM_NCPAINT 0x0085
1029 #define WM_NCACTIVATE 0x0086
1031 #define WM_GETDLGCODE 0x0087
1032 #define WM_SYNCPAINT 0x0088
1033 #define WM_SYNCTASK 0x0089
1035 /* Non-client mouse messages */
1036 #define WM_NCMOUSEMOVE 0x00a0
1037 #define WM_NCLBUTTONDOWN 0x00a1
1038 #define WM_NCLBUTTONUP 0x00a2
1039 #define WM_NCLBUTTONDBLCLK 0x00a3
1040 #define WM_NCRBUTTONDOWN 0x00a4
1041 #define WM_NCRBUTTONUP 0x00a5
1042 #define WM_NCRBUTTONDBLCLK 0x00a6
1043 #define WM_NCMBUTTONDOWN 0x00a7
1044 #define WM_NCMBUTTONUP 0x00a8
1045 #define WM_NCMBUTTONDBLCLK 0x00a9
1047 #define WM_NCXBUTTONDOWN 0x00ab
1048 #define WM_NCXBUTTONUP 0x00ac
1049 #define WM_NCXBUTTONDBLCLK 0x00ad
1051 /* Keyboard messages */
1052 #define WM_KEYDOWN 0x0100
1053 #define WM_KEYUP 0x0101
1054 #define WM_CHAR 0x0102
1055 #define WM_DEADCHAR 0x0103
1056 #define WM_SYSKEYDOWN 0x0104
1057 #define WM_SYSKEYUP 0x0105
1058 #define WM_SYSCHAR 0x0106
1059 #define WM_SYSDEADCHAR 0x0107
1060 #define WM_KEYFIRST WM_KEYDOWN
1061 #define WM_KEYLAST 0x0108
1063 /* Win32 4.0 messages for IME */
1064 #define WM_IME_STARTCOMPOSITION 0x010d
1065 #define WM_IME_ENDCOMPOSITION 0x010e
1066 #define WM_IME_COMPOSITION 0x010f
1067 #define WM_IME_KEYLAST 0x010f
1069 #define WM_INITDIALOG 0x0110
1070 #define WM_COMMAND 0x0111
1071 #define WM_SYSCOMMAND 0x0112
1072 #define WM_TIMER 0x0113
1073 #define WM_SYSTIMER 0x0118
1075 /* scroll messages */
1076 #define WM_HSCROLL 0x0114
1077 #define WM_VSCROLL 0x0115
1080 #define WM_INITMENU 0x0116
1081 #define WM_INITMENUPOPUP 0x0117
1083 #define WM_MENUSELECT 0x011F
1084 #define WM_MENUCHAR 0x0120
1085 #define WM_ENTERIDLE 0x0121
1087 #define WM_MENURBUTTONUP 0x0122
1088 #define WM_MENUDRAG 0x0123
1089 #define WM_MENUGETOBJECT 0x0124
1090 #define WM_UNINITMENUPOPUP 0x0125
1091 #define WM_MENUCOMMAND 0x0126
1093 #define WM_CHANGEUISTATE 0x0127
1094 #define WM_UPDATEUISTATE 0x0128
1095 #define WM_QUERYUISTATE 0x0129
1097 #define WM_LBTRACKPOINT 0x0131
1099 /* Win32 CTLCOLOR messages */
1100 #define WM_CTLCOLORMSGBOX 0x0132
1101 #define WM_CTLCOLOREDIT 0x0133
1102 #define WM_CTLCOLORLISTBOX 0x0134
1103 #define WM_CTLCOLORBTN 0x0135
1104 #define WM_CTLCOLORDLG 0x0136
1105 #define WM_CTLCOLORSCROLLBAR 0x0137
1106 #define WM_CTLCOLORSTATIC 0x0138
1108 /* Mouse messages */
1109 #define WM_MOUSEMOVE 0x0200
1110 #define WM_LBUTTONDOWN 0x0201
1111 #define WM_LBUTTONUP 0x0202
1112 #define WM_LBUTTONDBLCLK 0x0203
1113 #define WM_RBUTTONDOWN 0x0204
1114 #define WM_RBUTTONUP 0x0205
1115 #define WM_RBUTTONDBLCLK 0x0206
1116 #define WM_MBUTTONDOWN 0x0207
1117 #define WM_MBUTTONUP 0x0208
1118 #define WM_MBUTTONDBLCLK 0x0209
1119 #define WM_MOUSEWHEEL 0x020A
1120 #define WM_XBUTTONDOWN 0x020B
1121 #define WM_XBUTTONUP 0x020C
1122 #define WM_XBUTTONDBLCLK 0x020D
1124 #define XBUTTON1 0x0001
1125 #define XBUTTON2 0x0002
1127 #define WM_MOUSEFIRST 0x0200
1128 #define WM_MOUSELAST 0x020D
1130 #define WHEEL_DELTA 120
1131 #define WHEEL_PAGESCROLL (UINT_MAX)
1132 #define GET_WHEEL_DELTA_WPARAM(wParam) ((short)HIWORD(wParam))
1134 #define WM_PARENTNOTIFY 0x0210
1135 #define WM_ENTERMENULOOP 0x0211
1136 #define WM_EXITMENULOOP 0x0212
1137 #define WM_NEXTMENU 0x0213
1139 /* Win32 4.0 messages */
1140 #define WM_SIZING 0x0214
1141 #define WM_CAPTURECHANGED 0x0215
1142 #define WM_MOVING 0x0216
1143 #define WM_POWERBROADCAST 0x0218
1144 #define WM_DEVICECHANGE 0x0219
1145 /* Win32 5.1 messages */
1146 #define WM_THEMECHANGED 0x031A
1148 /* wParam for WM_SIZING message */
1150 #define WMSZ_RIGHT 2
1152 #define WMSZ_TOPLEFT 4
1153 #define WMSZ_TOPRIGHT 5
1154 #define WMSZ_BOTTOM 6
1155 #define WMSZ_BOTTOMLEFT 7
1156 #define WMSZ_BOTTOMRIGHT 8
1158 /* wParam for WM_POWERBROADCAST */
1159 #define PBT_APMQUERYSUSPEND 0x0000
1160 #define PBT_APMQUERYSTANDBY 0x0001
1161 #define PBT_APMQUERYSUSPENDFAILED 0x0002
1162 #define PBT_APMQUERYSTANDBYFAILED 0x0003
1163 #define PBT_APMSUSPEND 0x0004
1164 #define PBT_APMSTANDBY 0x0005
1165 #define PBT_APMRESUMECRITICAL 0x0006
1166 #define PBT_APMRESUMESUSPEND 0x0007
1167 #define PBT_APMRESUMESTANDBY 0x0008
1168 #define PBT_APMBATTERYLOW 0x0009
1169 #define PBT_APMPOWERSTATUSCHANGE 0x000A
1170 #define PBT_APMOEMEVENT 0x000B
1171 #define PBT_APMRESUMEAUTOMATIC 0x0012
1174 #define WM_MDICREATE 0x0220
1175 #define WM_MDIDESTROY 0x0221
1176 #define WM_MDIACTIVATE 0x0222
1177 #define WM_MDIRESTORE 0x0223
1178 #define WM_MDINEXT 0x0224
1179 #define WM_MDIMAXIMIZE 0x0225
1180 #define WM_MDITILE 0x0226
1181 #define WM_MDICASCADE 0x0227
1182 #define WM_MDIICONARRANGE 0x0228
1183 #define WM_MDIGETACTIVE 0x0229
1184 #define WM_MDIREFRESHMENU 0x0234
1187 #define WM_DROPOBJECT 0x022A
1188 #define WM_QUERYDROPOBJECT 0x022B
1189 #define WM_BEGINDRAG 0x022C
1190 #define WM_DRAGLOOP 0x022D
1191 #define WM_DRAGSELECT 0x022E
1192 #define WM_DRAGMOVE 0x022F
1193 #define WM_MDISETMENU 0x0230
1195 #define WM_ENTERSIZEMOVE 0x0231
1196 #define WM_EXITSIZEMOVE 0x0232
1197 #define WM_DROPFILES 0x0233
1200 /* Win32 4.0 messages for IME */
1201 #define WM_IME_SETCONTEXT 0x0281
1202 #define WM_IME_NOTIFY 0x0282
1203 #define WM_IME_CONTROL 0x0283
1204 #define WM_IME_COMPOSITIONFULL 0x0284
1205 #define WM_IME_SELECT 0x0285
1206 #define WM_IME_CHAR 0x0286
1207 /* Win32 5.0 messages for IME */
1208 #define WM_IME_REQUEST 0x0288
1210 /* Win32 4.0 messages for IME */
1211 #define WM_IME_KEYDOWN 0x0290
1212 #define WM_IME_KEYUP 0x0291
1214 /* Clipboard command messages */
1215 #define WM_CUT 0x0300
1216 #define WM_COPY 0x0301
1217 #define WM_PASTE 0x0302
1218 #define WM_CLEAR 0x0303
1219 #define WM_UNDO 0x0304
1221 /* Clipboard owner messages */
1222 #define WM_RENDERFORMAT 0x0305
1223 #define WM_RENDERALLFORMATS 0x0306
1224 #define WM_DESTROYCLIPBOARD 0x0307
1226 /* Clipboard viewer messages */
1227 #define WM_DRAWCLIPBOARD 0x0308
1228 #define WM_PAINTCLIPBOARD 0x0309
1229 #define WM_VSCROLLCLIPBOARD 0x030A
1230 #define WM_SIZECLIPBOARD 0x030B
1231 #define WM_ASKCBFORMATNAME 0x030C
1232 #define WM_CHANGECBCHAIN 0x030D
1233 #define WM_HSCROLLCLIPBOARD 0x030E
1235 #define WM_QUERYNEWPALETTE 0x030F
1236 #define WM_PALETTEISCHANGING 0x0310
1237 #define WM_PALETTECHANGED 0x0311
1238 #define WM_HOTKEY 0x0312
1240 #define WM_PRINT 0x0317
1241 #define WM_PRINTCLIENT 0x0318
1243 #define WM_PENWINFIRST 0x0380
1244 #define WM_PENWINLAST 0x038F
1247 #define WM_APP 0x8000
1249 /* MsgWaitForMultipleObjectsEx flags */
1250 #define MWMO_WAITALL 0x0001
1251 #define MWMO_ALERTABLE 0x0002
1252 #define MWMO_INPUTAVAILABLE 0x0004
1254 #define DLGC_WANTARROWS 0x0001
1255 #define DLGC_WANTTAB 0x0002
1256 #define DLGC_WANTALLKEYS 0x0004
1257 #define DLGC_WANTMESSAGE 0x0004
1258 #define DLGC_HASSETSEL 0x0008
1259 #define DLGC_DEFPUSHBUTTON 0x0010
1260 #define DLGC_UNDEFPUSHBUTTON 0x0020
1261 #define DLGC_RADIOBUTTON 0x0040
1262 #define DLGC_WANTCHARS 0x0080
1263 #define DLGC_STATIC 0x0100
1264 #define DLGC_BUTTON 0x2000
1266 /* Standard dialog button IDs */
1276 #define IDTRYAGAIN 10
1277 #define IDCONTINUE 11
1279 /****** Window classes ******/
1281 typedef struct tagCREATESTRUCTA
1283 LPVOID lpCreateParams;
1284 HINSTANCE hInstance;
1295 } CREATESTRUCTA, *LPCREATESTRUCTA;
1297 typedef struct tagCREATESTRUCTW
1299 LPVOID lpCreateParams;
1300 HINSTANCE hInstance;
1311 } CREATESTRUCTW, *LPCREATESTRUCTW;
1313 DECL_WINELIB_TYPE_AW(CREATESTRUCT)
1314 DECL_WINELIB_TYPE_AW(LPCREATESTRUCT)
1316 typedef struct tagPAINTSTRUCT
1323 BYTE rgbReserved[32];
1324 } PAINTSTRUCT, *PPAINTSTRUCT, *LPPAINTSTRUCT;
1326 typedef struct tagCLIENTCREATESTRUCT
1330 } CLIENTCREATESTRUCT, *LPCLIENTCREATESTRUCT;
1333 typedef struct tagMDICREATESTRUCTA
1344 } MDICREATESTRUCTA, *LPMDICREATESTRUCTA;
1346 typedef struct tagMDICREATESTRUCTW
1357 } MDICREATESTRUCTW, *LPMDICREATESTRUCTW;
1359 DECL_WINELIB_TYPE_AW(MDICREATESTRUCT)
1360 DECL_WINELIB_TYPE_AW(LPMDICREATESTRUCT)
1362 #define MDITILE_VERTICAL 0x0000
1363 #define MDITILE_HORIZONTAL 0x0001
1364 #define MDITILE_SKIPDISABLED 0x0002
1366 #define MDIS_ALLCHILDSTYLES 0x0001
1368 typedef struct tagSTYLESTRUCT {
1371 } STYLESTRUCT, *LPSTYLESTRUCT;
1373 #define WC_DIALOGA MAKEINTATOMA(0x8002)
1374 #define WC_DIALOGW MAKEINTATOMW(0x8002)
1375 #define WC_DIALOG WINELIB_NAME_AW(WC_DIALOG)
1377 /* Offsets for GetWindowLong() and GetWindowWord() */
1378 #define GWL_EXSTYLE (-20)
1379 #define GWL_STYLE (-16)
1380 #if !defined _WIN64 && !defined __WINESRC__
1381 # define GWL_USERDATA (-21)
1382 # define GWL_ID (-12)
1383 # define GWL_HWNDPARENT (-8)
1384 # define GWL_HINSTANCE (-6)
1385 # define GWL_WNDPROC (-4)
1386 # define DWL_MSGRESULT 0
1387 # define DWL_DLGPROC 4
1389 #endif /* _WIN64 && __WINESRC__ */
1391 /* Offsets for GetWindowLongPtr() and SetWindowLongPtr() */
1392 #define GWLP_USERDATA (-21)
1393 #define GWLP_ID (-12)
1394 #define GWLP_HWNDPARENT (-8)
1395 #define GWLP_HINSTANCE (-6)
1396 #define GWLP_WNDPROC (-4)
1397 #define DWLP_MSGRESULT 0
1398 #define DWLP_DLGPROC DWLP_MSGRESULT + sizeof(LRESULT)
1399 #define DWLP_USER DWLP_DLGPROC + sizeof(DLGPROC)
1401 /* GetWindow() constants */
1402 #define GW_HWNDFIRST 0
1403 #define GW_HWNDLAST 1
1404 #define GW_HWNDNEXT 2
1405 #define GW_HWNDPREV 3
1409 /* GetAncestor() constants */
1412 #define GA_ROOTOWNER 3
1414 /* WM_GETMINMAXINFO struct */
1415 typedef struct tagMINMAXINFO
1419 POINT ptMaxPosition;
1420 POINT ptMinTrackSize;
1421 POINT ptMaxTrackSize;
1422 } MINMAXINFO, *PMINMAXINFO, *LPMINMAXINFO;
1425 /* RedrawWindow() flags */
1426 #define RDW_INVALIDATE 0x0001
1427 #define RDW_INTERNALPAINT 0x0002
1428 #define RDW_ERASE 0x0004
1429 #define RDW_VALIDATE 0x0008
1430 #define RDW_NOINTERNALPAINT 0x0010
1431 #define RDW_NOERASE 0x0020
1432 #define RDW_NOCHILDREN 0x0040
1433 #define RDW_ALLCHILDREN 0x0080
1434 #define RDW_UPDATENOW 0x0100
1435 #define RDW_ERASENOW 0x0200
1436 #define RDW_FRAME 0x0400
1437 #define RDW_NOFRAME 0x0800
1440 #define DBGFILL_ALLOC 0xfd
1441 #define DBGFILL_FREE 0xfb
1442 #define DBGFILL_BUFFER 0xf9
1443 #define DBGFILL_STACK 0xf7
1445 /* WM_WINDOWPOSCHANGING/CHANGED struct */
1446 typedef struct tagWINDOWPOS
1449 HWND hwndInsertAfter;
1455 } WINDOWPOS, *PWINDOWPOS, *LPWINDOWPOS;
1458 /* WM_MOUSEACTIVATE return values */
1459 #define MA_ACTIVATE 1
1460 #define MA_ACTIVATEANDEAT 2
1461 #define MA_NOACTIVATE 3
1462 #define MA_NOACTIVATEANDEAT 4
1464 /* WM_ACTIVATE wParam values */
1465 #define WA_INACTIVE 0
1467 #define WA_CLICKACTIVE 2
1469 /* WM_GETICON/WM_SETICON params values */
1470 #define ICON_SMALL 0
1472 #define ICON_SMALL2 2
1474 /* WM_NCCALCSIZE parameter structure */
1479 } NCCALCSIZE_PARAMS, *LPNCCALCSIZE_PARAMS;
1482 /* WM_NCCALCSIZE return flags */
1483 #define WVR_ALIGNTOP 0x0010
1484 #define WVR_ALIGNLEFT 0x0020
1485 #define WVR_ALIGNBOTTOM 0x0040
1486 #define WVR_ALIGNRIGHT 0x0080
1487 #define WVR_HREDRAW 0x0100
1488 #define WVR_VREDRAW 0x0200
1489 #define WVR_REDRAW (WVR_HREDRAW | WVR_VREDRAW)
1490 #define WVR_VALIDRECTS 0x0400
1492 /* WM_NCHITTEST return codes */
1493 #define HTERROR (-2)
1494 #define HTTRANSPARENT (-1)
1503 #define HTMINBUTTON 8
1504 #define HTMAXBUTTON 9
1508 #define HTTOPLEFT 13
1509 #define HTTOPRIGHT 14
1511 #define HTBOTTOMLEFT 16
1512 #define HTBOTTOMRIGHT 17
1514 #define HTGROWBOX HTSIZE
1515 #define HTREDUCE HTMINBUTTON
1516 #define HTZOOM HTMAXBUTTON
1520 #define HTSIZEFIRST HTLEFT
1521 #define HTSIZELAST HTBOTTOMRIGHT
1523 /* SendMessageTimeout flags */
1524 #define SMTO_NORMAL 0x0000
1525 #define SMTO_BLOCK 0x0001
1526 #define SMTO_ABORTIFHUNG 0x0002
1527 #define SMTO_NOTIMEOUTIFNOTHUNG 0x0008
1529 /* WM_SYSCOMMAND parameters */
1530 #ifdef SC_SIZE /* at least HP-UX: already defined in /usr/include/sys/signal.h */
1533 #define SC_SIZE 0xf000
1534 #define SC_MOVE 0xf010
1535 #define SC_MINIMIZE 0xf020
1536 #define SC_MAXIMIZE 0xf030
1537 #define SC_NEXTWINDOW 0xf040
1538 #define SC_PREVWINDOW 0xf050
1539 #define SC_CLOSE 0xf060
1540 #define SC_VSCROLL 0xf070
1541 #define SC_HSCROLL 0xf080
1542 #define SC_MOUSEMENU 0xf090
1543 #define SC_KEYMENU 0xf100
1544 #define SC_ARRANGE 0xf110
1545 #define SC_RESTORE 0xf120
1546 #define SC_TASKLIST 0xf130
1547 #define SC_SCREENSAVE 0xf140
1548 #define SC_HOTKEY 0xf150
1550 #define SC_DEFAULT 0xf160
1551 #define SC_MONITORPOWER 0xf170
1552 #define SC_CONTEXTHELP 0xf180
1553 #define SC_SEPARATOR 0xf00f
1555 /* obsolete names(SC_ICON and SC_ZOOM) */
1556 #define SC_ICON SC_MINIMIZE
1557 #define SC_ZOOM SC_MAXIMIZE
1560 #define CS_VREDRAW 0x00000001
1561 #define CS_HREDRAW 0x00000002
1562 #define CS_KEYCVTWINDOW 0x00000004
1563 #define CS_DBLCLKS 0x00000008
1564 #define CS_OWNDC 0x00000020
1565 #define CS_CLASSDC 0x00000040
1566 #define CS_PARENTDC 0x00000080
1567 #define CS_NOKEYCVT 0x00000100
1568 #define CS_NOCLOSE 0x00000200
1569 #define CS_SAVEBITS 0x00000800
1570 #define CS_BYTEALIGNCLIENT 0x00001000
1571 #define CS_BYTEALIGNWINDOW 0x00002000
1572 #define CS_GLOBALCLASS 0x00004000
1573 #define CS_IME 0x00010000
1574 #define CS_DROPSHADOW 0x00020000
1576 #define PRF_CHECKVISIBLE 0x00000001L
1577 #define PRF_NONCLIENT 0x00000002L
1578 #define PRF_CLIENT 0x00000004L
1579 #define PRF_ERASEBKGND 0x00000008L
1580 #define PRF_CHILDREN 0x00000010L
1581 #define PRF_OWNED 0x00000020L
1583 /* Offsets for GetClassLong() and GetClassWord() */
1584 #if !defined _WIN64 && !defined __WINESRC__
1585 # define GCL_MENUNAME (-8)
1586 # define GCL_HBRBACKGROUND (-10)
1587 # define GCL_HCURSOR (-12)
1588 # define GCL_HICON (-14)
1589 # define GCL_HMODULE (-16)
1590 # define GCL_WNDPROC (-24)
1591 # define GCL_HICONSM (-34)
1592 #endif /* _WIN64 && __WINESRC__ */
1594 #define GCL_CBWNDEXTRA (-18)
1595 #define GCL_CBCLSEXTRA (-20)
1596 #define GCL_STYLE (-26)
1597 #define GCW_ATOM (-32)
1599 #define GCLP_MENUNAME (-8)
1600 #define GCLP_HBRBACKGROUND (-10)
1601 #define GCLP_HCURSOR (-12)
1602 #define GCLP_HICON (-14)
1603 #define GCLP_HMODULE (-16)
1604 #define GCLP_WNDPROC (-24)
1605 #define GCLP_HICONSM (-34)
1607 /* BroadcastSystemMessage flags */
1608 #define BSM_ALLCOMPONENTS 0x00000000
1609 #define BSM_VXDS 0x00000001
1610 #define BSM_NETDRIVER 0x00000002
1611 #define BSM_INSTALLABLEDRIVERS 0x00000004
1612 #define BSM_APPLICATIONS 0x00000008
1614 #define BSF_QUERY 0x00000001
1615 #define BSF_IGNORECURRENTTASK 0x00000002
1616 #define BSF_FLUSHDISK 0x00000004
1617 #define BSF_NOHANG 0x00000008
1618 #define BSF_POSTMESSAGE 0x00000010
1619 #define BSF_FORCEIFHUNG 0x00000020
1620 #define BSF_NOTIMEOUTIFNOTHUNG 0x00000040
1621 #define BSF_ALLOWSFW 0x00000080
1622 #define BSF_SENDNOTIFYMESSAGE 0x00000100
1623 #define BSF_RETURNHDESK 0x00000200
1624 #define BSF_LUID 0x00000400
1627 /***** Window hooks *****/
1631 #define WH_MSGFILTER (-1)
1632 #define WH_JOURNALRECORD 0
1633 #define WH_JOURNALPLAYBACK 1
1634 #define WH_KEYBOARD 2
1635 #define WH_GETMESSAGE 3
1636 #define WH_CALLWNDPROC 4
1638 #define WH_SYSMSGFILTER 6
1640 #define WH_HARDWARE 8
1643 #define WH_FOREGROUNDIDLE 11
1644 #define WH_CALLWNDPROCRET 12
1645 #define WH_KEYBOARD_LL 13
1646 #define WH_MOUSE_LL 14
1649 #define WH_MINHOOK WH_MIN
1650 #define WH_MAXHOOK WH_MAX
1652 /* Hook action codes */
1654 #define HC_GETNEXT 1
1656 #define HC_NOREMOVE 3
1657 #define HC_NOREM HC_NOREMOVE
1658 #define HC_SYSMODALON 4
1659 #define HC_SYSMODALOFF 5
1661 /* CallMsgFilter() values */
1662 #define MSGF_DIALOGBOX 0
1663 #define MSGF_MESSAGEBOX 1
1667 #define MSGF_SCROLLBAR 5
1668 #define MSGF_NEXTWINDOW 6
1670 #define MSGF_USER 0x1000
1671 #define MSGF_DDEMGR 0x8001
1673 typedef struct tagWNDCLASSA
1676 WNDPROC lpfnWndProc;
1679 HINSTANCE hInstance;
1682 HBRUSH hbrBackground;
1683 LPCSTR lpszMenuName;
1684 LPCSTR lpszClassName;
1685 } WNDCLASSA, *PWNDCLASSA, *LPWNDCLASSA;
1687 typedef struct tagWNDCLASSW
1690 WNDPROC lpfnWndProc;
1693 HINSTANCE hInstance;
1696 HBRUSH hbrBackground;
1697 LPCWSTR lpszMenuName;
1698 LPCWSTR lpszClassName;
1699 } WNDCLASSW, *PWNDCLASSW, *LPWNDCLASSW;
1701 DECL_WINELIB_TYPE_AW(WNDCLASS)
1702 DECL_WINELIB_TYPE_AW(PWNDCLASS)
1703 DECL_WINELIB_TYPE_AW(LPWNDCLASS)
1705 typedef struct tagCOPYDATASTRUCT {
1709 } COPYDATASTRUCT, *PCOPYDATASTRUCT;
1711 typedef struct tagMDINEXTMENU {
1715 } MDINEXTMENU, *PMDINEXTMENU, *LPMDINEXTMENU;
1717 typedef struct tagMULTIKEYHELPA
1721 CHAR szKeyphrase[1];
1722 } MULTIKEYHELPA, *PMULTIKEYHELPA, *LPMULTIKEYHELPA;
1724 typedef struct tagMULTIKEYHELPW
1728 WCHAR szKeyphrase[1];
1729 } MULTIKEYHELPW, *PMULTIKEYHELPW, *LPMULTIKEYHELPW;
1731 DECL_WINELIB_TYPE_AW(MULTIKEYHELP)
1732 DECL_WINELIB_TYPE_AW(PMULTIKEYHELP)
1733 DECL_WINELIB_TYPE_AW(LPMULTIKEYHELP)
1735 typedef struct tagHELPWININFOA {
1743 } HELPWININFOA, *PHELPWININFOA, *LPHELPWININFOA;
1745 typedef struct tagHELPWININFOW {
1752 WCHAR rgchMember[2];
1753 } HELPWININFOW, *PHELPWININFOW, *LPHELPWININFOW;
1755 DECL_WINELIB_TYPE_AW(HELPWININFO)
1756 DECL_WINELIB_TYPE_AW(PHELPWININFO)
1757 DECL_WINELIB_TYPE_AW(LPHELPWININFO)
1759 #define HELP_CONTEXT 0x0001
1760 #define HELP_QUIT 0x0002
1761 #define HELP_INDEX 0x0003
1762 #define HELP_CONTENTS 0x0003
1763 #define HELP_HELPONHELP 0x0004
1764 #define HELP_SETINDEX 0x0005
1765 #define HELP_SETCONTENTS 0x0005
1766 #define HELP_CONTEXTPOPUP 0x0008
1767 #define HELP_FORCEFILE 0x0009
1768 #define HELP_KEY 0x0101
1769 #define HELP_COMMAND 0x0102
1770 #define HELP_PARTIALKEY 0x0105
1771 #define HELP_MULTIKEY 0x0201
1772 #define HELP_SETWINPOS 0x0203
1773 #define HELP_CONTEXTMENU 0x000a
1774 #define HELP_FINDER 0x000b
1775 #define HELP_WM_HELP 0x000c
1776 #define HELP_SETPOPUP_POS 0x000d
1778 #define HELP_TCARD 0x8000
1779 #define HELP_TCARD_DATA 0x0010
1780 #define HELP_TCARD_OTHER_CALLER 0x0011
1783 /* ChangeDisplaySettings return codes */
1785 #define DISP_CHANGE_SUCCESSFUL 0
1786 #define DISP_CHANGE_RESTART 1
1787 #define DISP_CHANGE_FAILED (-1)
1788 #define DISP_CHANGE_BADMODE (-2)
1789 #define DISP_CHANGE_NOTUPDATED (-3)
1790 #define DISP_CHANGE_BADFLAGS (-4)
1791 #define DISP_CHANGE_BADPARAM (-5)
1793 /* ChangeDisplaySettings.dwFlags */
1794 #define CDS_UPDATEREGISTRY 0x00000001
1795 #define CDS_TEST 0x00000002
1796 #define CDS_FULLSCREEN 0x00000004
1797 #define CDS_GLOBAL 0x00000008
1798 #define CDS_SET_PRIMARY 0x00000010
1799 #define CDS_RESET 0x40000000
1800 #define CDS_SETRECT 0x20000000
1801 #define CDS_NORESET 0x10000000
1803 typedef struct tagWNDCLASSEXA
1807 WNDPROC lpfnWndProc;
1810 HINSTANCE hInstance;
1813 HBRUSH hbrBackground;
1814 LPCSTR lpszMenuName;
1815 LPCSTR lpszClassName;
1817 } WNDCLASSEXA, *PWNDCLASSEXA, *LPWNDCLASSEXA;
1819 typedef struct tagWNDCLASSEXW
1823 WNDPROC lpfnWndProc;
1826 HINSTANCE hInstance;
1829 HBRUSH hbrBackground;
1830 LPCWSTR lpszMenuName;
1831 LPCWSTR lpszClassName;
1833 } WNDCLASSEXW, *PWNDCLASSEXW, *LPWNDCLASSEXW;
1835 DECL_WINELIB_TYPE_AW(WNDCLASSEX)
1836 DECL_WINELIB_TYPE_AW(PWNDCLASSEX)
1837 DECL_WINELIB_TYPE_AW(LPWNDCLASSEX)
1839 typedef struct tagMSG
1847 } MSG, *PMSG, *LPMSG;
1849 #define POINTSTOPOINT(pt, pts) { (pt).x = (pts).x; (pt).y = (pts).y; }
1850 #define POINTTOPOINTS(pt) (MAKELONG((short)((pt).x), (short)((pt).y)))
1852 #define MAKELPARAM(low,high) ((LPARAM)MAKELONG(low,high))
1853 #define MAKEWPARAM(low,high) ((WPARAM)MAKELONG(low,high))
1854 #define MAKELRESULT(low,high) ((LRESULT)MAKELONG(low,high))
1856 /* Cursors / Icons */
1858 typedef struct _ICONINFO {
1864 } ICONINFO, *PICONINFO;
1867 typedef struct tagCURSORINFO
1873 } CURSORINFO, *PCURSORINFO, *LPCURSORINFO;
1875 #define CURSOR_SHOWING 0x00000001
1877 /* this is the 6 byte accel struct used in Win32 when presented to the user */
1878 typedef struct tagACCEL
1886 /* Flags for TrackPopupMenu */
1887 #define TPM_LEFTBUTTON 0x0000
1888 #define TPM_RIGHTBUTTON 0x0002
1889 #define TPM_LEFTALIGN 0x0000
1890 #define TPM_CENTERALIGN 0x0004
1891 #define TPM_RIGHTALIGN 0x0008
1892 #define TPM_TOPALIGN 0x0000
1893 #define TPM_VCENTERALIGN 0x0010
1894 #define TPM_BOTTOMALIGN 0x0020
1895 #define TPM_HORIZONTAL 0x0000
1896 #define TPM_VERTICAL 0x0040
1897 #define TPM_NONOTIFY 0x0080
1898 #define TPM_RETURNCMD 0x0100
1900 typedef struct tagTPMPARAMS
1904 } TPMPARAMS, *LPTPMPARAMS;
1908 * Combobox information
1910 typedef struct tagCOMBOBOXINFO
1919 } COMBOBOXINFO, *PCOMBOBOXINFO, *LPCOMBOBOXINFO;
1921 typedef struct tagMENUITEMINFOA {
1928 HBITMAP hbmpChecked;
1929 HBITMAP hbmpUnchecked;
1930 ULONG_PTR dwItemData;
1934 } MENUITEMINFOA, *LPMENUITEMINFOA;
1936 typedef struct tagMENUITEMINFOW {
1943 HBITMAP hbmpChecked;
1944 HBITMAP hbmpUnchecked;
1945 ULONG_PTR dwItemData;
1949 } MENUITEMINFOW, *LPMENUITEMINFOW;
1951 DECL_WINELIB_TYPE_AW(MENUITEMINFO)
1952 DECL_WINELIB_TYPE_AW(LPMENUITEMINFO)
1953 typedef const MENUITEMINFOA *LPCMENUITEMINFOA;
1954 typedef const MENUITEMINFOW *LPCMENUITEMINFOW;
1955 DECL_WINELIB_TYPE_AW(LPCMENUITEMINFO)
1957 typedef struct tagMENUINFO {
1963 DWORD dwContextHelpID;
1964 ULONG_PTR dwMenuData;
1965 } MENUINFO, *LPMENUINFO;
1967 typedef const MENUINFO *LPCMENUINFO;
1969 #define MIM_MAXHEIGHT 0x00000001
1970 #define MIM_BACKGROUND 0x00000002
1971 #define MIM_HELPID 0x00000004
1972 #define MIM_MENUDATA 0x00000008
1973 #define MIM_STYLE 0x00000010
1974 #define MIM_APPLYTOSUBMENUS 0x80000000
1976 #define MNS_NOCHECK 0x80000000
1977 #define MNS_MODELESS 0x40000000
1978 #define MNS_DRAGDROP 0x20000000
1979 #define MNS_AUTODISMISS 0x10000000
1980 #define MNS_NOTIFYBYPOS 0x08000000
1981 #define MNS_CHECKORBMP 0x04000000
1986 } MENUITEMTEMPLATEHEADER, *PMENUITEMTEMPLATEHEADER;
1993 } MENUITEMTEMPLATE, *PMENUITEMTEMPLATE;
1996 typedef VOID MENUTEMPLATE;
1997 typedef PVOID *LPMENUTEMPLATE;
1999 /* Field specifiers for MENUITEMINFO[AW] type. */
2000 #define MIIM_STATE 0x00000001
2001 #define MIIM_ID 0x00000002
2002 #define MIIM_SUBMENU 0x00000004
2003 #define MIIM_CHECKMARKS 0x00000008
2004 #define MIIM_TYPE 0x00000010
2005 #define MIIM_DATA 0x00000020
2006 #define MIIM_STRING 0x00000040
2007 #define MIIM_BITMAP 0x00000080
2008 #define MIIM_FTYPE 0x00000100
2010 #define HBMMENU_CALLBACK ((HBITMAP) -1)
2011 #define HBMMENU_SYSTEM ((HBITMAP) 1)
2012 #define HBMMENU_MBAR_RESTORE ((HBITMAP) 2)
2013 #define HBMMENU_MBAR_MINIMIZE ((HBITMAP) 3)
2014 #define HBMMENU_MBAR_CLOSE ((HBITMAP) 5)
2015 #define HBMMENU_MBAR_CLOSE_D ((HBITMAP) 6)
2016 #define HBMMENU_MBAR_MINIMIZE_D ((HBITMAP) 7)
2017 #define HBMMENU_POPUP_CLOSE ((HBITMAP) 8)
2018 #define HBMMENU_POPUP_RESTORE ((HBITMAP) 9)
2019 #define HBMMENU_POPUP_MAXIMIZE ((HBITMAP) 10)
2020 #define HBMMENU_POPUP_MINIMIZE ((HBITMAP) 11)
2022 /* WM_H/VSCROLL commands */
2024 #define SB_LINELEFT 0
2025 #define SB_LINEDOWN 1
2026 #define SB_LINERIGHT 1
2028 #define SB_PAGELEFT 2
2029 #define SB_PAGEDOWN 3
2030 #define SB_PAGERIGHT 3
2031 #define SB_THUMBPOSITION 4
2032 #define SB_THUMBTRACK 5
2037 #define SB_ENDSCROLL 8
2039 /* Scroll bar selection constants */
2045 /* Scrollbar styles */
2046 #define SBS_HORZ 0x0000L
2047 #define SBS_VERT 0x0001L
2048 #define SBS_TOPALIGN 0x0002L
2049 #define SBS_LEFTALIGN 0x0002L
2050 #define SBS_BOTTOMALIGN 0x0004L
2051 #define SBS_RIGHTALIGN 0x0004L
2052 #define SBS_SIZEBOXTOPLEFTALIGN 0x0002L
2053 #define SBS_SIZEBOXBOTTOMRIGHTALIGN 0x0004L
2054 #define SBS_SIZEBOX 0x0008L
2055 #define SBS_SIZEGRIP 0x0010L
2057 /* EnableScrollBar() flags */
2058 #define ESB_ENABLE_BOTH 0x0000
2059 #define ESB_DISABLE_BOTH 0x0003
2061 #define ESB_DISABLE_LEFT 0x0001
2062 #define ESB_DISABLE_RIGHT 0x0002
2064 #define ESB_DISABLE_UP 0x0001
2065 #define ESB_DISABLE_DOWN 0x0002
2067 #define ESB_DISABLE_LTUP ESB_DISABLE_LEFT
2068 #define ESB_DISABLE_RTDN ESB_DISABLE_RIGHT
2070 /* Win32 button control messages */
2071 #define BM_GETCHECK 0x00f0
2072 #define BM_SETCHECK 0x00f1
2073 #define BM_GETSTATE 0x00f2
2074 #define BM_SETSTATE 0x00f3
2075 #define BM_SETSTYLE 0x00f4
2076 #define BM_CLICK 0x00f5
2077 #define BM_GETIMAGE 0x00f6
2078 #define BM_SETIMAGE 0x00f7
2079 /* Winelib button control messages */
2081 /* Button notification codes */
2082 #define BN_CLICKED 0
2085 #define BN_PUSHED BN_HILITE
2086 #define BN_UNHILITE 3
2087 #define BN_UNPUSHED BN_UNHILITE
2088 #define BN_DISABLE 4
2089 #define BN_DOUBLECLICKED 5
2090 #define BN_DBLCLK BN_DOUBLECLICKED
2091 #define BN_SETFOCUS 6
2092 #define BN_KILLFOCUS 7
2095 #define BST_UNCHECKED 0x0000
2096 #define BST_CHECKED 0x0001
2097 #define BST_INDETERMINATE 0x0002
2098 #define BST_PUSHED 0x0004
2099 #define BST_FOCUS 0x0008
2101 /* Static Control Styles */
2102 #define SS_LEFT 0x00000000L
2103 #define SS_CENTER 0x00000001L
2104 #define SS_RIGHT 0x00000002L
2105 #define SS_ICON 0x00000003L
2106 #define SS_BLACKRECT 0x00000004L
2107 #define SS_GRAYRECT 0x00000005L
2108 #define SS_WHITERECT 0x00000006L
2109 #define SS_BLACKFRAME 0x00000007L
2110 #define SS_GRAYFRAME 0x00000008L
2111 #define SS_WHITEFRAME 0x00000009L
2112 #define SS_USERITEM 0x0000000AL
2113 #define SS_SIMPLE 0x0000000BL
2114 #define SS_LEFTNOWORDWRAP 0x0000000CL
2115 #define SS_OWNERDRAW 0x0000000DL
2116 #define SS_BITMAP 0x0000000EL
2117 #define SS_ENHMETAFILE 0x0000000FL
2118 #define SS_ETCHEDHORZ 0x00000010L
2119 #define SS_ETCHEDVERT 0x00000011L
2120 #define SS_ETCHEDFRAME 0x00000012L
2121 #define SS_TYPEMASK 0x0000001FL
2123 #define SS_REALSIZECONTROL 0x00000040L
2124 #define SS_NOPREFIX 0x00000080L
2125 #define SS_NOTIFY 0x00000100L
2126 #define SS_CENTERIMAGE 0x00000200L
2127 #define SS_RIGHTJUST 0x00000400L
2128 #define SS_REALSIZEIMAGE 0x00000800L
2129 #define SS_SUNKEN 0x00001000L
2130 #define SS_EDITCONTROL 0x00002000L
2131 #define SS_ENDELLIPSIS 0x00004000L
2132 #define SS_PATHELLIPSIS 0x00008000L
2133 #define SS_WORDELLIPSIS 0x0000C000L
2134 #define SS_ELLIPSISMASK 0x0000C000L
2136 /* Static Control Messages */
2137 #define STM_SETICON 0x0170
2138 #define STM_GETICON 0x0171
2139 #define STM_SETIMAGE 0x0172
2140 #define STM_GETIMAGE 0x0173
2141 #define STM_MSGMAX 0x0174
2143 #define STN_CLICKED 0
2144 #define STN_DBLCLK 1
2145 #define STN_ENABLE 2
2146 #define STN_DISABLE 3
2148 /* Scrollbar messages */
2149 #define SBM_SETPOS 0x00e0
2150 #define SBM_GETPOS 0x00e1
2151 #define SBM_SETRANGE 0x00e2
2152 #define SBM_GETRANGE 0x00e3
2153 #define SBM_ENABLE_ARROWS 0x00e4
2154 #define SBM_SETRANGEREDRAW 0x00e6
2155 #define SBM_SETSCROLLINFO 0x00e9
2156 #define SBM_GETSCROLLINFO 0x00ea
2157 #define SBM_GETSCROLLBARINFO 0x00eb
2159 /* Scrollbar info */
2160 typedef struct tagSCROLLINFO
2169 } SCROLLINFO, *LPSCROLLINFO;
2171 typedef const SCROLLINFO *LPCSCROLLINFO;
2173 #define CCHILDREN_SCROLLBAR 5
2175 typedef struct tagSCROLLBARINFO
2177 DWORD cbSize; /* Size of SCROLLBARINFO struct */
2178 RECT rcScrollBar; /* Coordinates of the scroll bar */
2179 INT dxyLineButton; /* Height or width */
2180 INT xyThumbTop; /* Position of the top or the left */
2181 INT xyThumbBottom; /* Position of the bottom or the right */
2183 DWORD rgstate[CCHILDREN_SCROLLBAR+1];
2184 } SCROLLBARINFO, *PSCROLLBARINFO, *LPSCROLLBARINFO;
2186 /* GetScrollInfo() flags */
2187 #define SIF_RANGE 0x0001
2188 #define SIF_PAGE 0x0002
2189 #define SIF_POS 0x0004
2190 #define SIF_DISABLENOSCROLL 0x0008
2191 #define SIF_TRACKPOS 0x0010
2192 #define SIF_ALL (SIF_RANGE | SIF_PAGE | SIF_POS | SIF_TRACKPOS)
2194 /* Listbox styles */
2195 #define LBS_NOTIFY 0x0001
2196 #define LBS_SORT 0x0002
2197 #define LBS_NOREDRAW 0x0004
2198 #define LBS_MULTIPLESEL 0x0008
2199 #define LBS_OWNERDRAWFIXED 0x0010
2200 #define LBS_OWNERDRAWVARIABLE 0x0020
2201 #define LBS_HASSTRINGS 0x0040
2202 #define LBS_USETABSTOPS 0x0080
2203 #define LBS_NOINTEGRALHEIGHT 0x0100
2204 #define LBS_MULTICOLUMN 0x0200
2205 #define LBS_WANTKEYBOARDINPUT 0x0400
2206 #define LBS_EXTENDEDSEL 0x0800
2207 #define LBS_DISABLENOSCROLL 0x1000
2208 #define LBS_NODATA 0x2000
2209 #define LBS_NOSEL 0x4000
2210 #define LBS_COMBOBOX 0x8000
2211 #define LBS_STANDARD (LBS_NOTIFY | LBS_SORT | WS_VSCROLL | WS_BORDER)
2213 /* Listbox messages */
2214 #define LB_ADDSTRING 0x0180
2215 #define LB_INSERTSTRING 0x0181
2216 #define LB_DELETESTRING 0x0182
2217 #define LB_SELITEMRANGEEX 0x0183
2218 #define LB_RESETCONTENT 0x0184
2219 #define LB_SETSEL 0x0185
2220 #define LB_SETCURSEL 0x0186
2221 #define LB_GETSEL 0x0187
2222 #define LB_GETCURSEL 0x0188
2223 #define LB_GETTEXT 0x0189
2224 #define LB_GETTEXTLEN 0x018a
2225 #define LB_GETCOUNT 0x018b
2226 #define LB_SELECTSTRING 0x018c
2227 #define LB_DIR 0x018d
2228 #define LB_GETTOPINDEX 0x018e
2229 #define LB_FINDSTRING 0x018f
2230 #define LB_GETSELCOUNT 0x0190
2231 #define LB_GETSELITEMS 0x0191
2232 #define LB_SETTABSTOPS 0x0192
2233 #define LB_GETHORIZONTALEXTENT 0x0193
2234 #define LB_SETHORIZONTALEXTENT 0x0194
2235 #define LB_SETCOLUMNWIDTH 0x0195
2236 #define LB_ADDFILE 0x0196
2237 #define LB_SETTOPINDEX 0x0197
2238 #define LB_GETITEMRECT 0x0198
2239 #define LB_GETITEMDATA 0x0199
2240 #define LB_SETITEMDATA 0x019a
2241 #define LB_SELITEMRANGE 0x019b
2242 #define LB_SETANCHORINDEX 0x019c
2243 #define LB_GETANCHORINDEX 0x019d
2244 #define LB_SETCARETINDEX 0x019e
2245 #define LB_GETCARETINDEX 0x019f
2246 #define LB_SETITEMHEIGHT 0x01a0
2247 #define LB_GETITEMHEIGHT 0x01a1
2248 #define LB_FINDSTRINGEXACT 0x01a2
2249 #define LB_CARETON 0x01a3
2250 #define LB_CARETOFF 0x01a4
2251 #define LB_SETLOCALE 0x01a5
2252 #define LB_GETLOCALE 0x01a6
2253 #define LB_SETCOUNT 0x01a7
2254 #define LB_INITSTORAGE 0x01a8
2255 #define LB_ITEMFROMPOINT 0x01a9
2257 /* Listbox notification codes */
2258 #define LBN_ERRSPACE (-2)
2259 #define LBN_SELCHANGE 1
2260 #define LBN_DBLCLK 2
2261 #define LBN_SELCANCEL 3
2262 #define LBN_SETFOCUS 4
2263 #define LBN_KILLFOCUS 5
2265 /* Listbox message return values */
2268 #define LB_ERRSPACE (-2)
2270 #define LB_CTLCODE 0L
2272 /* Combo box styles */
2273 #define CBS_SIMPLE 0x0001L
2274 #define CBS_DROPDOWN 0x0002L
2275 #define CBS_DROPDOWNLIST 0x0003L
2276 #define CBS_OWNERDRAWFIXED 0x0010L
2277 #define CBS_OWNERDRAWVARIABLE 0x0020L
2278 #define CBS_AUTOHSCROLL 0x0040L
2279 #define CBS_OEMCONVERT 0x0080L
2280 #define CBS_SORT 0x0100L
2281 #define CBS_HASSTRINGS 0x0200L
2282 #define CBS_NOINTEGRALHEIGHT 0x0400L
2283 #define CBS_DISABLENOSCROLL 0x0800L
2285 #define CBS_UPPERCASE 0x2000L
2286 #define CBS_LOWERCASE 0x4000L
2289 /* Combo box messages */
2290 #define CB_GETEDITSEL 0x0140
2291 #define CB_LIMITTEXT 0x0141
2292 #define CB_SETEDITSEL 0x0142
2293 #define CB_ADDSTRING 0x0143
2294 #define CB_DELETESTRING 0x0144
2295 #define CB_DIR 0x0145
2296 #define CB_GETCOUNT 0x0146
2297 #define CB_GETCURSEL 0x0147
2298 #define CB_GETLBTEXT 0x0148
2299 #define CB_GETLBTEXTLEN 0x0149
2300 #define CB_INSERTSTRING 0x014a
2301 #define CB_RESETCONTENT 0x014b
2302 #define CB_FINDSTRING 0x014c
2303 #define CB_SELECTSTRING 0x014d
2304 #define CB_SETCURSEL 0x014e
2305 #define CB_SHOWDROPDOWN 0x014f
2306 #define CB_GETITEMDATA 0x0150
2307 #define CB_SETITEMDATA 0x0151
2308 #define CB_GETDROPPEDCONTROLRECT 0x0152
2309 #define CB_SETITEMHEIGHT 0x0153
2310 #define CB_GETITEMHEIGHT 0x0154
2311 #define CB_SETEXTENDEDUI 0x0155
2312 #define CB_GETEXTENDEDUI 0x0156
2313 #define CB_GETDROPPEDSTATE 0x0157
2314 #define CB_FINDSTRINGEXACT 0x0158
2315 #define CB_SETLOCALE 0x0159
2316 #define CB_GETLOCALE 0x015a
2317 #define CB_GETTOPINDEX 0x015b
2318 #define CB_SETTOPINDEX 0x015c
2319 #define CB_GETHORIZONTALEXTENT 0x015d
2320 #define CB_SETHORIZONTALEXTENT 0x015e
2321 #define CB_GETDROPPEDWIDTH 0x015f
2322 #define CB_SETDROPPEDWIDTH 0x0160
2323 #define CB_INITSTORAGE 0x0161
2325 /* Combo box notification codes */
2326 #define CBN_ERRSPACE (-1)
2327 #define CBN_SELCHANGE 1
2328 #define CBN_DBLCLK 2
2329 #define CBN_SETFOCUS 3
2330 #define CBN_KILLFOCUS 4
2331 #define CBN_EDITCHANGE 5
2332 #define CBN_EDITUPDATE 6
2333 #define CBN_DROPDOWN 7
2334 #define CBN_CLOSEUP 8
2335 #define CBN_SELENDOK 9
2336 #define CBN_SELENDCANCEL 10
2338 /* Combo box message return values */
2341 #define CB_ERRSPACE (-2)
2343 #define MB_OK 0x00000000
2344 #define MB_OKCANCEL 0x00000001
2345 #define MB_ABORTRETRYIGNORE 0x00000002
2346 #define MB_YESNOCANCEL 0x00000003
2347 #define MB_YESNO 0x00000004
2348 #define MB_RETRYCANCEL 0x00000005
2349 #define MB_TYPEMASK 0x0000000F
2351 #define MB_ICONHAND 0x00000010
2352 #define MB_ICONQUESTION 0x00000020
2353 #define MB_ICONEXCLAMATION 0x00000030
2354 #define MB_ICONASTERISK 0x00000040
2355 #define MB_USERICON 0x00000080
2356 #define MB_ICONMASK 0x000000F0
2358 #define MB_ICONINFORMATION MB_ICONASTERISK
2359 #define MB_ICONSTOP MB_ICONHAND
2360 #define MB_ICONWARNING MB_ICONEXCLAMATION
2361 #define MB_ICONERROR MB_ICONHAND
2363 #define MB_DEFBUTTON1 0x00000000
2364 #define MB_DEFBUTTON2 0x00000100
2365 #define MB_DEFBUTTON3 0x00000200
2366 #define MB_DEFBUTTON4 0x00000300
2367 #define MB_DEFMASK 0x00000F00
2369 #define MB_APPLMODAL 0x00000000
2370 #define MB_SYSTEMMODAL 0x00001000
2371 #define MB_TASKMODAL 0x00002000
2372 #define MB_MODEMASK 0x00003000
2374 #define MB_HELP 0x00004000
2375 #define MB_NOFOCUS 0x00008000
2376 #define MB_MISCMASK 0x0000C000
2378 #define MB_SETFOREGROUND 0x00010000
2379 #define MB_DEFAULT_DESKTOP_ONLY 0x00020000
2380 #define MB_SERVICE_NOTIFICATION 0x00040000
2381 #define MB_TOPMOST 0x00040000
2382 #define MB_RIGHT 0x00080000
2383 #define MB_RTLREADING 0x00100000
2385 #define HELPINFO_WINDOW 0x0001
2386 #define HELPINFO_MENUITEM 0x0002
2388 /* Structure pointed to by lParam of WM_HELP */
2389 typedef struct tagHELPINFO
2391 UINT cbSize; /* Size in bytes of this struct */
2392 INT iContextType; /* Either HELPINFO_WINDOW or HELPINFO_MENUITEM */
2393 INT iCtrlId; /* Control Id or a Menu item Id. */
2394 HANDLE hItemHandle; /* hWnd of control or hMenu. */
2395 DWORD_PTR dwContextId; /* Context Id associated with this item */
2396 POINT MousePos; /* Mouse Position in screen co-ordinates */
2397 } HELPINFO,*LPHELPINFO;
2399 typedef void (CALLBACK *MSGBOXCALLBACK)(LPHELPINFO lpHelpInfo);
2401 typedef struct tagMSGBOXPARAMSA
2405 HINSTANCE hInstance;
2410 DWORD_PTR dwContextHelpId;
2411 MSGBOXCALLBACK lpfnMsgBoxCallback;
2413 } MSGBOXPARAMSA, *PMSGBOXPARAMSA, *LPMSGBOXPARAMSA;
2415 typedef struct tagMSGBOXPARAMSW
2419 HINSTANCE hInstance;
2421 LPCWSTR lpszCaption;
2424 DWORD_PTR dwContextHelpId;
2425 MSGBOXCALLBACK lpfnMsgBoxCallback;
2427 } MSGBOXPARAMSW, *PMSGBOXPARAMSW, *LPMSGBOXPARAMSW;
2429 DECL_WINELIB_TYPE_AW(MSGBOXPARAMS)
2430 DECL_WINELIB_TYPE_AW(PMSGBOXPARAMS)
2431 DECL_WINELIB_TYPE_AW(LPMSGBOXPARAMS)
2433 #define MONITOR_DEFAULTTONULL 0x00000000
2434 #define MONITOR_DEFAULTTOPRIMARY 0x00000001
2435 #define MONITOR_DEFAULTTONEAREST 0x00000002
2437 #define MONITORINFOF_PRIMARY 0x00000001
2439 #ifndef CCHDEVICENAME
2440 #define CCHDEVICENAME 32
2443 typedef struct tagMONITORINFO
2449 } MONITORINFO, *LPMONITORINFO;
2451 typedef struct tagMONITORINFOEXA
2452 { /* the 4 first entries are the same as MONITORINFO */
2457 CHAR szDevice[CCHDEVICENAME];
2458 } MONITORINFOEXA, *LPMONITORINFOEXA;
2460 typedef struct tagMONITORINFOEXW
2461 { /* the 4 first entries are the same as MONITORINFO */
2466 WCHAR szDevice[CCHDEVICENAME];
2467 } MONITORINFOEXW, *LPMONITORINFOEXW;
2469 DECL_WINELIB_TYPE_AW(MONITORINFOEX)
2470 DECL_WINELIB_TYPE_AW(LPMONITORINFOEX)
2472 typedef BOOL (CALLBACK *MONITORENUMPROC)(HMONITOR,HDC,LPRECT,LPARAM);
2474 #include <pshpack2.h>
2476 typedef struct tagDLGTEMPLATE
2479 DWORD dwExtendedStyle;
2487 typedef DLGTEMPLATE *LPDLGTEMPLATEA;
2488 typedef DLGTEMPLATE *LPDLGTEMPLATEW;
2489 DECL_WINELIB_TYPE_AW(LPDLGTEMPLATE)
2490 typedef const DLGTEMPLATE *LPCDLGTEMPLATEA;
2491 typedef const DLGTEMPLATE *LPCDLGTEMPLATEW;
2492 DECL_WINELIB_TYPE_AW(LPCDLGTEMPLATE)
2494 typedef struct tagDLGITEMTEMPLATE
2497 DWORD dwExtendedStyle;
2505 typedef DLGITEMTEMPLATE *PDLGITEMTEMPLATEA;
2506 typedef DLGITEMTEMPLATE *PDLGITEMTEMPLATEW;
2507 DECL_WINELIB_TYPE_AW(PDLGITEMTEMPLATE)
2508 typedef DLGITEMTEMPLATE *LPDLGITEMTEMPLATEA;
2509 typedef DLGITEMTEMPLATE *LPDLGITEMTEMPLATEW;
2510 DECL_WINELIB_TYPE_AW(LPDLGITEMTEMPLATE)
2512 #include <poppack.h>
2514 /* CBT hook values */
2515 #define HCBT_MOVESIZE 0
2516 #define HCBT_MINMAX 1
2518 #define HCBT_CREATEWND 3
2519 #define HCBT_DESTROYWND 4
2520 #define HCBT_ACTIVATE 5
2521 #define HCBT_CLICKSKIPPED 6
2522 #define HCBT_KEYSKIPPED 7
2523 #define HCBT_SYSCOMMAND 8
2524 #define HCBT_SETFOCUS 9
2526 /* CBT hook structures */
2528 typedef struct tagCBT_CREATEWNDA
2530 CREATESTRUCTA *lpcs;
2531 HWND hwndInsertAfter;
2532 } CBT_CREATEWNDA, *LPCBT_CREATEWNDA;
2534 typedef struct tagCBT_CREATEWNDW
2536 CREATESTRUCTW *lpcs;
2537 HWND hwndInsertAfter;
2538 } CBT_CREATEWNDW, *LPCBT_CREATEWNDW;
2540 DECL_WINELIB_TYPE_AW(CBT_CREATEWND)
2541 DECL_WINELIB_TYPE_AW(LPCBT_CREATEWND)
2543 typedef struct tagCBTACTIVATESTRUCT
2547 } CBTACTIVATESTRUCT, *LPCBTACTIVATESTRUCT;
2550 /* modifiers for RegisterHotKey */
2551 #define MOD_ALT 0x0001
2552 #define MOD_CONTROL 0x0002
2553 #define MOD_SHIFT 0x0004
2554 #define MOD_WIN 0x0008
2556 /* ids for RegisterHotKey */
2557 #define IDHOT_SNAPWINDOW (-1) /* SHIFT-PRINTSCRN */
2558 #define IDHOT_SNAPDESKTOP (-2) /* PRINTSCRN */
2560 /* keybd_event flags */
2561 #define KEYEVENTF_EXTENDEDKEY 0x0001
2562 #define KEYEVENTF_KEYUP 0x0002
2564 /* mouse_event flags */
2565 #define MOUSEEVENTF_MOVE 0x0001
2566 #define MOUSEEVENTF_LEFTDOWN 0x0002
2567 #define MOUSEEVENTF_LEFTUP 0x0004
2568 #define MOUSEEVENTF_RIGHTDOWN 0x0008
2569 #define MOUSEEVENTF_RIGHTUP 0x0010
2570 #define MOUSEEVENTF_MIDDLEDOWN 0x0020
2571 #define MOUSEEVENTF_MIDDLEUP 0x0040
2572 #define MOUSEEVENTF_XDOWN 0x0080
2573 #define MOUSEEVENTF_XUP 0x0100
2574 #define MOUSEEVENTF_WHEEL 0x0800
2575 #define MOUSEEVENTF_ABSOLUTE 0x8000
2577 /* ExitWindows() flags */
2578 #define EW_RESTARTWINDOWS 0x0042
2579 #define EW_REBOOTSYSTEM 0x0043
2580 #define EW_EXITANDEXECAPP 0x0044
2582 /* ExitWindowsEx() flags */
2583 #define EWX_LOGOFF 0
2584 #define EWX_SHUTDOWN 1
2585 #define EWX_REBOOT 2
2587 #define EWX_POWEROFF 8
2588 #define EWX_FORCEIFHUNG 16
2590 /* SetLastErrorEx types */
2591 #define SLE_ERROR 0x00000001
2592 #define SLE_MINORERROR 0x00000002
2593 #define SLE_WARNING 0x00000003
2595 /* Predefined resources */
2596 #define IDI_APPLICATION MAKEINTRESOURCE(32512)
2597 #define IDI_HAND MAKEINTRESOURCE(32513)
2598 #define IDI_QUESTION MAKEINTRESOURCE(32514)
2599 #define IDI_EXCLAMATION MAKEINTRESOURCE(32515)
2600 #define IDI_ASTERISK MAKEINTRESOURCE(32516)
2601 #define IDI_WINLOGO MAKEINTRESOURCE(32517)
2603 #define IDI_WARNING IDI_EXCLAMATION
2604 #define IDI_ERROR IDI_HAND
2605 #define IDI_INFORMATION IDI_ASTERISK
2607 #define IDC_ARROW MAKEINTRESOURCE(32512)
2608 #define IDC_IBEAM MAKEINTRESOURCE(32513)
2609 #define IDC_WAIT MAKEINTRESOURCE(32514)
2610 #define IDC_CROSS MAKEINTRESOURCE(32515)
2611 #define IDC_UPARROW MAKEINTRESOURCE(32516)
2612 #define IDC_SIZE MAKEINTRESOURCE(32640)
2613 #define IDC_ICON MAKEINTRESOURCE(32641)
2614 #define IDC_SIZENWSE MAKEINTRESOURCE(32642)
2615 #define IDC_SIZENESW MAKEINTRESOURCE(32643)
2616 #define IDC_SIZEWE MAKEINTRESOURCE(32644)
2617 #define IDC_SIZENS MAKEINTRESOURCE(32645)
2618 #define IDC_SIZEALL MAKEINTRESOURCE(32646)
2619 #define IDC_NO MAKEINTRESOURCE(32648)
2620 #define IDC_HAND MAKEINTRESOURCE(32649)
2621 #define IDC_APPSTARTING MAKEINTRESOURCE(32650)
2622 #define IDC_HELP MAKEINTRESOURCE(32651)
2624 #define MNC_IGNORE 0
2626 #define MNC_EXECUTE 2
2627 #define MNC_SELECT 3
2629 /* SystemParametersInfo */
2630 /* defines below are for all win versions */
2631 #define SPI_GETBEEP 1
2632 #define SPI_SETBEEP 2
2633 #define SPI_GETMOUSE 3
2634 #define SPI_SETMOUSE 4
2635 #define SPI_GETBORDER 5
2636 #define SPI_SETBORDER 6
2637 #define SPI_GETKEYBOARDSPEED 10
2638 #define SPI_SETKEYBOARDSPEED 11
2639 #define SPI_LANGDRIVER 12
2640 #define SPI_ICONHORIZONTALSPACING 13
2641 #define SPI_GETSCREENSAVETIMEOUT 14
2642 #define SPI_SETSCREENSAVETIMEOUT 15
2643 #define SPI_GETSCREENSAVEACTIVE 16
2644 #define SPI_SETSCREENSAVEACTIVE 17
2645 #define SPI_GETGRIDGRANULARITY 18
2646 #define SPI_SETGRIDGRANULARITY 19
2647 #define SPI_SETDESKWALLPAPER 20
2648 #define SPI_SETDESKPATTERN 21
2649 #define SPI_GETKEYBOARDDELAY 22
2650 #define SPI_SETKEYBOARDDELAY 23
2651 #define SPI_ICONVERTICALSPACING 24
2652 #define SPI_GETICONTITLEWRAP 25
2653 #define SPI_SETICONTITLEWRAP 26
2654 #define SPI_GETMENUDROPALIGNMENT 27
2655 #define SPI_SETMENUDROPALIGNMENT 28
2656 #define SPI_SETDOUBLECLKWIDTH 29
2657 #define SPI_SETDOUBLECLKHEIGHT 30
2658 #define SPI_GETICONTITLELOGFONT 31
2659 #define SPI_SETDOUBLECLICKTIME 32
2660 #define SPI_SETMOUSEBUTTONSWAP 33
2661 #define SPI_SETICONTITLELOGFONT 34
2662 #define SPI_GETFASTTASKSWITCH 35
2663 #define SPI_SETFASTTASKSWITCH 36
2664 #define SPI_SETDRAGFULLWINDOWS 37
2665 #define SPI_GETDRAGFULLWINDOWS 38
2667 #define SPI_GETFILTERKEYS 50
2668 #define SPI_SETFILTERKEYS 51
2669 #define SPI_GETTOGGLEKEYS 52
2670 #define SPI_SETTOGGLEKEYS 53
2671 #define SPI_GETMOUSEKEYS 54
2672 #define SPI_SETMOUSEKEYS 55
2673 #define SPI_GETSHOWSOUNDS 56
2674 #define SPI_SETSHOWSOUNDS 57
2675 #define SPI_GETSTICKYKEYS 58
2676 #define SPI_SETSTICKYKEYS 59
2677 #define SPI_GETACCESSTIMEOUT 60
2678 #define SPI_SETACCESSTIMEOUT 61
2680 #define SPI_GETSOUNDSENTRY 64
2681 #define SPI_SETSOUNDSENTRY 65
2683 /* defines below are for all win versions WINVER >= 0x0400 */
2684 #define SPI_SETDRAGFULLWINDOWS 37
2685 #define SPI_GETDRAGFULLWINDOWS 38
2686 #define SPI_GETNONCLIENTMETRICS 41
2687 #define SPI_SETNONCLIENTMETRICS 42
2688 #define SPI_GETMINIMIZEDMETRICS 43
2689 #define SPI_SETMINIMIZEDMETRICS 44
2690 #define SPI_GETICONMETRICS 45
2691 #define SPI_SETICONMETRICS 46
2692 #define SPI_SETWORKAREA 47
2693 #define SPI_GETWORKAREA 48
2694 #define SPI_SETPENWINDOWS 49
2696 #define SPI_GETSERIALKEYS 62
2697 #define SPI_SETSERIALKEYS 63
2698 #define SPI_GETHIGHCONTRAST 66
2699 #define SPI_SETHIGHCONTRAST 67
2700 #define SPI_GETKEYBOARDPREF 68
2701 #define SPI_SETKEYBOARDPREF 69
2702 #define SPI_GETSCREENREADER 70
2703 #define SPI_SETSCREENREADER 71
2704 #define SPI_GETANIMATION 72
2705 #define SPI_SETANIMATION 73
2706 #define SPI_GETFONTSMOOTHING 74
2707 #define SPI_SETFONTSMOOTHING 75
2708 #define SPI_SETDRAGWIDTH 76
2709 #define SPI_SETDRAGHEIGHT 77
2710 #define SPI_SETHANDHELD 78
2711 #define SPI_GETLOWPOWERTIMEOUT 79
2712 #define SPI_GETPOWEROFFTIMEOUT 80
2713 #define SPI_SETLOWPOWERTIMEOUT 81
2714 #define SPI_SETPOWEROFFTIMEOUT 82
2715 #define SPI_GETLOWPOWERACTIVE 83
2716 #define SPI_GETPOWEROFFACTIVE 84
2717 #define SPI_SETLOWPOWERACTIVE 85
2718 #define SPI_SETPOWEROFFACTIVE 86
2719 #define SPI_SETCURSORS 87
2720 #define SPI_SETICONS 88
2721 #define SPI_GETDEFAULTINPUTLANG 89
2722 #define SPI_SETDEFAULTINPUTLANG 90
2723 #define SPI_SETLANGTOGGLE 91
2724 #define SPI_GETWINDOWSEXTENSION 92
2725 #define SPI_SETMOUSETRAILS 93
2726 #define SPI_GETMOUSETRAILS 94
2727 #define SPI_SETSCREENSAVERRUNNING 97
2728 #define SPI_SCREENSAVERRUNNING SPI_SETSCREENSAVERRUNNING
2730 /* defines below are for all win versions (_WIN32_WINNT >= 0x0400) ||
2731 * (_WIN32_WINDOWS > 0x0400) */
2732 #define SPI_GETSNAPTODEFBUTTON 95
2733 #define SPI_SETSNAPTODEFBUTTON 96
2734 #define SPI_GETMOUSEHOVERWIDTH 98
2735 #define SPI_SETMOUSEHOVERWIDTH 99
2736 #define SPI_GETMOUSEHOVERHEIGHT 100
2737 #define SPI_SETMOUSEHOVERHEIGHT 101
2738 #define SPI_GETMOUSEHOVERTIME 102
2739 #define SPI_SETMOUSEHOVERTIME 103
2740 #define SPI_GETWHEELSCROLLLINES 104
2741 #define SPI_SETWHEELSCROLLLINES 105
2742 #define SPI_GETMENUSHOWDELAY 106
2743 #define SPI_SETMENUSHOWDELAY 107
2745 #define SPI_GETSHOWIMEUI 110
2746 #define SPI_SETSHOWIMEUI 111
2748 /* defines below are for all win versions WINVER >= 0x0500 */
2749 #define SPI_GETMOUSESPEED 112
2750 #define SPI_SETMOUSESPEED 113
2751 #define SPI_GETSCREENSAVERRUNNING 114
2752 #define SPI_GETDESKWALLPAPER 115
2754 #define SPI_GETACTIVEWINDOWTRACKING 0x1000
2755 #define SPI_SETACTIVEWINDOWTRACKING 0x1001
2756 #define SPI_GETMENUANIMATION 0x1002
2757 #define SPI_SETMENUANIMATION 0x1003
2758 #define SPI_GETCOMBOBOXANIMATION 0x1004
2759 #define SPI_SETCOMBOBOXANIMATION 0x1005
2760 #define SPI_GETLISTBOXSMOOTHSCROLLING 0x1006
2761 #define SPI_SETLISTBOXSMOOTHSCROLLING 0x1007
2762 #define SPI_GETGRADIENTCAPTIONS 0x1008
2763 #define SPI_SETGRADIENTCAPTIONS 0x1009
2764 #define SPI_GETKEYBOARDCUES 0x100A
2765 #define SPI_SETKEYBOARDCUES 0x100B
2766 #define SPI_GETMENUUNDERLINES SPI_GETKEYBOARDCUES
2767 #define SPI_SETMENUUNDERLINES SPI_SETKEYBOARDCUES
2768 #define SPI_GETACTIVEWNDTRKZORDER 0x100C
2769 #define SPI_SETACTIVEWNDTRKZORDER 0x100D
2770 #define SPI_GETHOTTRACKING 0x100E
2771 #define SPI_SETHOTTRACKING 0x100F
2772 #define SPI_GETMENUFADE 0x1012
2773 #define SPI_SETMENUFADE 0x1013
2774 #define SPI_GETSELECTIONFADE 0x1014
2775 #define SPI_SETSELECTIONFADE 0x1015
2776 #define SPI_GETTOOLTIPANIMATION 0x1016
2777 #define SPI_SETTOOLTIPANIMATION 0x1017
2778 #define SPI_GETTOOLTIPFADE 0x1018
2779 #define SPI_SETTOOLTIPFADE 0x1019
2780 #define SPI_GETCURSORSHADOW 0x101A
2781 #define SPI_SETCURSORSHADOW 0x101B
2782 #define SPI_GETDROPSHADOW 0x1024
2783 #define SPI_SETDROPSHADOW 0x1025
2784 #define SPI_GETFOREGROUNDLOCKTIMEOUT 0x2000
2785 #define SPI_SETFOREGROUNDLOCKTIMEOUT 0x2001
2786 #define SPI_GETACTIVEWNDTRKTIMEOUT 0x2002
2787 #define SPI_SETACTIVEWNDTRKTIMEOUT 0x2003
2788 #define SPI_GETFOREGROUNDFLASHCOUNT 0x2004
2789 #define SPI_SETFOREGROUNDFLASHCOUNT 0x2005
2790 #define SPI_GETCARETWIDTH 0x2006
2791 #define SPI_SETCARETWIDTH 0x2007
2793 /* defines below are for all win versions _WIN32_WINNT >= 0x0501 */
2794 #define SPI_GETMOUSESONAR 0x101C
2795 #define SPI_SETMOUSESONAR 0x101D
2796 #define SPI_GETMOUSECLICKLOCK 0x101E
2797 #define SPI_SETMOUSECLICKLOCK 0x101F
2798 #define SPI_GETMOUSEVANISH 0x1020
2799 #define SPI_SETMOUSEVANISH 0x1021
2800 #define SPI_GETFLATMENU 0x1022
2801 #define SPI_SETFLATMENU 0x1023
2802 #define SPI_GETDROPSHADOW 0x1024
2803 #define SPI_SETDROPSHADOW 0x1025
2804 #define SPI_GETBLOCKSENDINPUTRESETS 0x1026
2805 #define SPI_SETBLOCKSENDINPUTRESETS 0x1027
2806 #define SPI_GETUIEFFECTS 0x103E
2807 #define SPI_SETUIEFFECTS 0x103F
2808 #define SPI_GETMOUSECLICKLOCKTIME 0x2008
2809 #define SPI_SETMOUSECLICKLOCKTIME 0x2009
2810 #define SPI_GETFONTSMOOTHINGTYPE 0x200A
2811 #define SPI_SETFONTSMOOTHINGTYPE 0x200B
2813 /* Used by SPI_{GET,SET}FONTSMOOTHINGTYPE */
2814 #define FE_FONTSMOOTHINGSTANDARD 0x0001
2815 #define FE_FONTSMOOTHINGCLEARTYPE 0x0002
2816 #define FE_FONTSMOOTHINGDOCKING 0x8000
2818 #define SPI_GETFONTSMOOTHINGCONTRAST 0x200C
2819 #define SPI_SETFONTSMOOTHINGCONTRAST 0x200D
2820 #define SPI_GETFOCUSBORDERWIDTH 0x200E
2821 #define SPI_SETFOCUSBORDERWIDTH 0x200F
2822 #define SPI_GETFOCUSBORDERHEIGHT 0x2010
2823 #define SPI_SETFOCUSBORDERHEIGHT 0x2011
2825 /* SystemParametersInfo flags */
2827 #define SPIF_UPDATEINIFILE 1
2828 #define SPIF_SENDWININICHANGE 2
2829 #define SPIF_SENDCHANGE SPIF_SENDWININICHANGE
2831 #if defined(_WINGDI_) && !defined(NOGDI)
2832 typedef struct tagNONCLIENTMETRICSA {
2839 LOGFONTA lfCaptionFont;
2840 INT iSmCaptionWidth;
2841 INT iSmCaptionHeight;
2842 LOGFONTA lfSmCaptionFont;
2845 LOGFONTA lfMenuFont;
2846 LOGFONTA lfStatusFont;
2847 LOGFONTA lfMessageFont;
2848 } NONCLIENTMETRICSA, *PNONCLIENTMETRICSA, *LPNONCLIENTMETRICSA;
2850 typedef struct tagNONCLIENTMETRICSW {
2857 LOGFONTW lfCaptionFont;
2858 INT iSmCaptionWidth;
2859 INT iSmCaptionHeight;
2860 LOGFONTW lfSmCaptionFont;
2863 LOGFONTW lfMenuFont;
2864 LOGFONTW lfStatusFont;
2865 LOGFONTW lfMessageFont;
2866 } NONCLIENTMETRICSW, *PNONCLIENTMETRICSW, *LPNONCLIENTMETRICSW;
2868 DECL_WINELIB_TYPE_AW(NONCLIENTMETRICS)
2869 DECL_WINELIB_TYPE_AW(PNONCLIENTMETRICS)
2870 DECL_WINELIB_TYPE_AW(LPNONCLIENTMETRICS)
2872 typedef struct tagICONMETRICSA {
2878 } ICONMETRICSA, *PICONMETRICSA, *LPICONMETRICSA;
2880 typedef struct tagICONMETRICSW {
2886 } ICONMETRICSW, *PICONMETRICSW, *LPICONMETRICSW;
2888 DECL_WINELIB_TYPE_AW(ICONMETRICS)
2889 DECL_WINELIB_TYPE_AW(PICONMETRICS)
2890 DECL_WINELIB_TYPE_AW(LPICONMETRICS)
2891 #endif /* defined(_WINGDI_) && !defined(NOGDI) */
2893 #define ARW_BOTTOMLEFT 0x0000L
2894 #define ARW_BOTTOMRIGHT 0x0001L
2895 #define ARW_TOPLEFT 0x0002L
2896 #define ARW_TOPRIGHT 0x0003L
2897 #define ARW_STARTMASK 0x0003L
2898 #define ARW_STARTRIGHT 0x0001L
2899 #define ARW_STARTTOP 0x0002L
2901 #define ARW_LEFT 0x0000L
2902 #define ARW_RIGHT 0x0000L
2903 #define ARW_UP 0x0004L
2904 #define ARW_DOWN 0x0004L
2905 #define ARW_HIDE 0x0008L
2907 typedef struct tagMINIMIZEDMETRICS {
2913 } MINIMIZEDMETRICS, *PMINIMIZEDMETRICS, *LPMINIMIZEDMETRICS;
2916 #define WS_OVERLAPPED 0x00000000L
2917 #define WS_POPUP 0x80000000L
2918 #define WS_CHILD 0x40000000L
2919 #define WS_MINIMIZE 0x20000000L
2920 #define WS_VISIBLE 0x10000000L
2921 #define WS_DISABLED 0x08000000L
2922 #define WS_CLIPSIBLINGS 0x04000000L
2923 #define WS_CLIPCHILDREN 0x02000000L
2924 #define WS_MAXIMIZE 0x01000000L
2925 #define WS_CAPTION 0x00C00000L
2926 #define WS_BORDER 0x00800000L
2927 #define WS_DLGFRAME 0x00400000L
2928 #define WS_VSCROLL 0x00200000L
2929 #define WS_HSCROLL 0x00100000L
2930 #define WS_SYSMENU 0x00080000L
2931 #define WS_THICKFRAME 0x00040000L
2932 #define WS_GROUP 0x00020000L
2933 #define WS_TABSTOP 0x00010000L
2934 #define WS_MINIMIZEBOX 0x00020000L
2935 #define WS_MAXIMIZEBOX 0x00010000L
2936 #define WS_TILED WS_OVERLAPPED
2937 #define WS_ICONIC WS_MINIMIZE
2938 #define WS_SIZEBOX WS_THICKFRAME
2939 #define WS_OVERLAPPEDWINDOW (WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME| WS_MINIMIZEBOX | WS_MAXIMIZEBOX)
2940 #define WS_POPUPWINDOW (WS_POPUP | WS_BORDER | WS_SYSMENU)
2941 #define WS_CHILDWINDOW (WS_CHILD)
2942 #define WS_TILEDWINDOW (WS_OVERLAPPEDWINDOW)
2944 /* Window extended styles */
2945 #define WS_EX_DLGMODALFRAME 0x00000001L
2946 #define WS_EX_DRAGDETECT 0x00000002L
2947 #define WS_EX_NOPARENTNOTIFY 0x00000004L
2948 #define WS_EX_TOPMOST 0x00000008L
2949 #define WS_EX_ACCEPTFILES 0x00000010L
2950 #define WS_EX_TRANSPARENT 0x00000020L
2952 /* New Win95/WinNT4 styles */
2953 #define WS_EX_MDICHILD 0x00000040L
2954 #define WS_EX_TOOLWINDOW 0x00000080L
2955 #define WS_EX_WINDOWEDGE 0x00000100L
2956 #define WS_EX_CLIENTEDGE 0x00000200L
2957 #define WS_EX_CONTEXTHELP 0x00000400L
2958 #define WS_EX_RIGHT 0x00001000L
2959 #define WS_EX_LEFT 0x00000000L
2960 #define WS_EX_RTLREADING 0x00002000L
2961 #define WS_EX_LTRREADING 0x00000000L
2962 #define WS_EX_LEFTSCROLLBAR 0x00004000L
2963 #define WS_EX_RIGHTSCROLLBAR 0x00000000L
2964 #define WS_EX_CONTROLPARENT 0x00010000L
2965 #define WS_EX_STATICEDGE 0x00020000L
2966 #define WS_EX_APPWINDOW 0x00040000L
2967 #define WS_EX_LAYOUTRTL 0x00400000L
2968 #define WS_EX_NOINHERITLAYOUT 0x00100000L
2970 #define WS_EX_OVERLAPPEDWINDOW (WS_EX_WINDOWEDGE|WS_EX_CLIENTEDGE)
2971 #define WS_EX_PALETTEWINDOW (WS_EX_WINDOWEDGE|WS_EX_TOOLWINDOW|WS_EX_TOPMOST)
2973 /* New Win2000 styles */
2974 #define WS_EX_LAYERED 0x00080000L
2976 /* WINE internal... */
2977 #define WS_EX_TRAYWINDOW 0x80000000L
2979 /* Window scrolling */
2980 #define SW_SCROLLCHILDREN 0x0001
2981 #define SW_INVALIDATE 0x0002
2982 #define SW_ERASE 0x0004
2984 /* CreateWindow() coordinates */
2985 #define CW_USEDEFAULT ((INT)0x80000000)
2987 /* ChildWindowFromPointEx Flags */
2988 #define CWP_ALL 0x0000
2989 #define CWP_SKIPINVISIBLE 0x0001
2990 #define CWP_SKIPDISABLED 0x0002
2991 #define CWP_SKIPTRANSPARENT 0x0004
2993 /* PeekMessage() options */
2994 #define PM_NOREMOVE 0x0000
2995 #define PM_REMOVE 0x0001
2996 #define PM_NOYIELD 0x0002
2998 /* AnimateWindow() flags */
2999 #define AW_SLIDE 0x00040000
3000 #define AW_ACTIVATE 0x00020000
3001 #define AW_BLEND 0x00080000
3002 #define AW_HIDE 0x00010000
3003 #define AW_CENTER 0x00000010
3004 #define AW_HOR_POSITIVE 0x00000001
3005 #define AW_HOR_NEGATIVE 0x00000002
3006 #define AW_VER_POSITIVE 0x00000004
3007 #define AW_VER_NEGATIVE 0x00000008
3009 /* FlashWindowEx() flags */
3010 #define FLASHW_STOP 0x00000000
3011 #define FLASHW_CAPTION 0x00000001
3012 #define FLASHW_TRAY 0x00000002
3013 #define FLASHW_ALL (FLASHW_CAPTION|FLASHW_TRAY)
3014 #define FLASHW_TIMER 0x00000004
3015 #define FLASHW_TIMERNOFG 0x0000000C
3023 } FLASHWINFO, *PFLASHWINFO;
3025 /* WM_SHOWWINDOW wParam codes */
3026 #define SW_PARENTCLOSING 1
3027 #define SW_OTHERMAXIMIZED 2
3028 #define SW_PARENTOPENING 3
3029 #define SW_OTHERRESTORED 4
3031 /* SetLayeredWindowAttributes() flags */
3032 #define LWA_COLORKEY 0x00000001
3033 #define LWA_ALPHA 0x00000002
3035 /* ShowWindow() codes */
3037 #define SW_SHOWNORMAL 1
3039 #define SW_SHOWMINIMIZED 2
3040 #define SW_SHOWMAXIMIZED 3
3041 #define SW_MAXIMIZE 3
3042 #define SW_SHOWNOACTIVATE 4
3044 #define SW_MINIMIZE 6
3045 #define SW_SHOWMINNOACTIVE 7
3047 #define SW_RESTORE 9
3048 #define SW_SHOWDEFAULT 10
3049 #define SW_FORCEMINIMIZE 11
3051 #define SW_NORMALNA 0xCC /* undoc. flag in MinMaximize */
3053 /* WM_SIZE message wParam values */
3054 #define SIZE_RESTORED 0
3055 #define SIZE_MINIMIZED 1
3056 #define SIZE_MAXIMIZED 2
3057 #define SIZE_MAXSHOW 3
3058 #define SIZE_MAXHIDE 4
3059 #define SIZENORMAL SIZE_RESTORED
3060 #define SIZEICONIC SIZE_MINIMIZED
3061 #define SIZEFULLSCREEN SIZE_MAXIMIZED
3062 #define SIZEZOOMSHOW SIZE_MAXSHOW
3063 #define SIZEZOOMHIDE SIZE_MAXHIDE
3065 /* SetWindowPos() and WINDOWPOS flags */
3066 #define SWP_NOSIZE 0x0001
3067 #define SWP_NOMOVE 0x0002
3068 #define SWP_NOZORDER 0x0004
3069 #define SWP_NOREDRAW 0x0008
3070 #define SWP_NOACTIVATE 0x0010
3071 #define SWP_FRAMECHANGED 0x0020 /* The frame changed: send WM_NCCALCSIZE */
3072 #define SWP_SHOWWINDOW 0x0040
3073 #define SWP_HIDEWINDOW 0x0080
3074 #define SWP_NOCOPYBITS 0x0100
3075 #define SWP_NOOWNERZORDER 0x0200 /* Don't do owner Z ordering */
3077 #define SWP_DRAWFRAME SWP_FRAMECHANGED
3078 #define SWP_NOREPOSITION SWP_NOOWNERZORDER
3080 #define SWP_NOSENDCHANGING 0x0400
3081 #define SWP_DEFERERASE 0x2000
3082 #define SWP_ASYNCWINDOWPOS 0x4000
3084 #define HWND_DESKTOP ((HWND)0)
3085 #define HWND_BROADCAST ((HWND)0xffff)
3087 /* SetWindowPos() hwndInsertAfter field values */
3088 #define HWND_TOP ((HWND)0)
3089 #define HWND_BOTTOM ((HWND)1)
3090 #define HWND_TOPMOST ((HWND)-1)
3091 #define HWND_NOTOPMOST ((HWND)-2)
3092 #define HWND_MESSAGE ((HWND)-3)
3095 #define DCX_WINDOW 0x00000001
3096 #define DCX_CACHE 0x00000002
3097 #define DCX_NORESETATTRS 0x00000004
3098 #define DCX_CLIPCHILDREN 0x00000008
3099 #define DCX_CLIPSIBLINGS 0x00000010
3100 #define DCX_PARENTCLIP 0x00000020
3101 #define DCX_EXCLUDERGN 0x00000040
3102 #define DCX_INTERSECTRGN 0x00000080
3103 #define DCX_EXCLUDEUPDATE 0x00000100
3104 #define DCX_INTERSECTUPDATE 0x00000200
3105 #define DCX_LOCKWINDOWUPDATE 0x00000400
3106 #define DCX_USESTYLE 0x00010000
3107 #define DCX_NORECOMPUTE 0x00100000
3108 #define DCX_VALIDATE 0x00200000
3110 #define MF_INSERT 0x0000
3111 #define MF_CHANGE 0x0080
3112 #define MF_APPEND 0x0100
3113 #define MF_DELETE 0x0200
3114 #define MF_REMOVE 0x1000
3115 #define MF_END 0x0080
3117 #define MF_ENABLED 0x0000
3118 #define MF_GRAYED 0x0001
3119 #define MF_DISABLED 0x0002
3120 #define MF_STRING 0x0000
3121 #define MF_BITMAP 0x0004
3122 #define MF_UNCHECKED 0x0000
3123 #define MF_CHECKED 0x0008
3124 #define MF_POPUP 0x0010
3125 #define MF_MENUBARBREAK 0x0020
3126 #define MF_MENUBREAK 0x0040
3127 #define MF_UNHILITE 0x0000
3128 #define MF_HILITE 0x0080
3129 #define MF_OWNERDRAW 0x0100
3130 #define MF_USECHECKBITMAPS 0x0200
3131 #define MF_BYCOMMAND 0x0000
3132 #define MF_BYPOSITION 0x0400
3133 #define MF_SEPARATOR 0x0800
3134 #define MF_DEFAULT 0x1000
3135 #define MF_SYSMENU 0x2000
3136 #define MF_HELP 0x4000
3137 #define MF_RIGHTJUSTIFY 0x4000
3138 #define MF_MOUSESELECT 0x8000
3140 /* Flags for extended menu item types. */
3141 #define MFT_STRING MF_STRING
3142 #define MFT_BITMAP MF_BITMAP
3143 #define MFT_MENUBARBREAK MF_MENUBARBREAK
3144 #define MFT_MENUBREAK MF_MENUBREAK
3145 #define MFT_OWNERDRAW MF_OWNERDRAW
3146 #define MFT_RADIOCHECK 0x00000200L
3147 #define MFT_SEPARATOR MF_SEPARATOR
3148 #define MFT_RIGHTORDER 0x00002000L
3149 #define MFT_RIGHTJUSTIFY MF_RIGHTJUSTIFY
3151 /* Flags for extended menu item states. */
3152 #define MFS_GRAYED 0x00000003L
3153 #define MFS_DISABLED MFS_GRAYED
3154 #define MFS_CHECKED MF_CHECKED
3155 #define MFS_HILITE MF_HILITE
3156 #define MFS_ENABLED MF_ENABLED
3157 #define MFS_UNCHECKED MF_UNCHECKED
3158 #define MFS_UNHILITE MF_UNHILITE
3159 #define MFS_DEFAULT MF_DEFAULT
3160 #define MFS_MASK 0x0000108BL
3161 #define MFS_HOTTRACKDRAWN 0x10000000L
3162 #define MFS_CACHEDBMP 0x20000000L
3163 #define MFS_BOTTOMGAPDROP 0x40000000L
3164 #define MFS_TOPGAPDROP 0x80000000L
3165 #define MFS_GAPDROP 0xC0000000L
3167 /* for GetMenuDefaultItem */
3168 #define GMDI_USEDISABLED 0x0001L
3169 #define GMDI_GOINTOPOPUPS 0x0002L
3171 /* DrawText() flags */
3172 #define DT_TOP 0x00000000
3173 #define DT_LEFT 0x00000000
3174 #define DT_CENTER 0x00000001
3175 #define DT_RIGHT 0x00000002
3176 #define DT_VCENTER 0x00000004
3177 #define DT_BOTTOM 0x00000008
3178 #define DT_WORDBREAK 0x00000010
3179 #define DT_SINGLELINE 0x00000020
3180 #define DT_EXPANDTABS 0x00000040
3181 #define DT_TABSTOP 0x00000080
3182 #define DT_NOCLIP 0x00000100
3183 #define DT_EXTERNALLEADING 0x00000200
3184 #define DT_CALCRECT 0x00000400
3185 #define DT_NOPREFIX 0x00000800
3186 #define DT_INTERNAL 0x00001000
3187 #define DT_EDITCONTROL 0x00002000
3188 #define DT_PATH_ELLIPSIS 0x00004000
3189 #define DT_END_ELLIPSIS 0x00008000
3190 #define DT_MODIFYSTRING 0x00010000
3191 #define DT_RTLREADING 0x00020000
3192 #define DT_WORD_ELLIPSIS 0x00040000
3193 #define DT_NOFULLWIDTHCHARBREAK 0x00080000
3194 #define DT_HIDEPREFIX 0x00100000
3195 #define DT_PREFIXONLY 0x00200000
3197 /* DrawCaption()/DrawCaptionTemp() flags */
3198 #define DC_ACTIVE 0x0001
3199 #define DC_SMALLCAP 0x0002
3200 #define DC_ICON 0x0004
3201 #define DC_TEXT 0x0008
3202 #define DC_INBUTTON 0x0010
3204 /* DrawEdge() flags */
3205 #define BDR_RAISEDOUTER 0x0001
3206 #define BDR_SUNKENOUTER 0x0002
3207 #define BDR_RAISEDINNER 0x0004
3208 #define BDR_SUNKENINNER 0x0008
3210 #define BDR_OUTER 0x0003
3211 #define BDR_INNER 0x000c
3212 #define BDR_RAISED 0x0005
3213 #define BDR_SUNKEN 0x000a
3215 #define EDGE_RAISED (BDR_RAISEDOUTER | BDR_RAISEDINNER)
3216 #define EDGE_SUNKEN (BDR_SUNKENOUTER | BDR_SUNKENINNER)
3217 #define EDGE_ETCHED (BDR_SUNKENOUTER | BDR_RAISEDINNER)
3218 #define EDGE_BUMP (BDR_RAISEDOUTER | BDR_SUNKENINNER)
3221 #define BF_LEFT 0x0001
3222 #define BF_TOP 0x0002
3223 #define BF_RIGHT 0x0004
3224 #define BF_BOTTOM 0x0008
3225 #define BF_DIAGONAL 0x0010
3226 #define BF_MIDDLE 0x0800 /* Fill in the middle */
3227 #define BF_SOFT 0x1000 /* For softer buttons */
3228 #define BF_ADJUST 0x2000 /* Calculate the space left over */
3229 #define BF_FLAT 0x4000 /* For flat rather than 3D borders */
3230 #define BF_MONO 0x8000 /* For monochrome borders */
3231 #define BF_TOPLEFT (BF_TOP | BF_LEFT)
3232 #define BF_TOPRIGHT (BF_TOP | BF_RIGHT)
3233 #define BF_BOTTOMLEFT (BF_BOTTOM | BF_LEFT)
3234 #define BF_BOTTOMRIGHT (BF_BOTTOM | BF_RIGHT)
3235 #define BF_RECT (BF_LEFT | BF_TOP | BF_RIGHT | BF_BOTTOM)
3236 #define BF_DIAGONAL_ENDTOPRIGHT (BF_DIAGONAL | BF_TOP | BF_RIGHT)
3237 #define BF_DIAGONAL_ENDTOPLEFT (BF_DIAGONAL | BF_TOP | BF_LEFT)
3238 #define BF_DIAGONAL_ENDBOTTOMLEFT (BF_DIAGONAL | BF_BOTTOM | BF_LEFT)
3239 #define BF_DIAGONAL_ENDBOTTOMRIGHT (BF_DIAGONAL | BF_BOTTOM | BF_RIGHT)
3241 /* DrawFrameControl() uType's */
3243 #define DFC_CAPTION 1
3245 #define DFC_SCROLL 3
3246 #define DFC_BUTTON 4
3250 #define DFCS_CAPTIONCLOSE 0x0000
3251 #define DFCS_CAPTIONMIN 0x0001
3252 #define DFCS_CAPTIONMAX 0x0002
3253 #define DFCS_CAPTIONRESTORE 0x0003
3254 #define DFCS_CAPTIONHELP 0x0004 /* Windows 95 only */
3256 #define DFCS_MENUARROW 0x0000
3257 #define DFCS_MENUCHECK 0x0001
3258 #define DFCS_MENUBULLET 0x0002
3259 #define DFCS_MENUARROWRIGHT 0x0004
3261 #define DFCS_SCROLLUP 0x0000
3262 #define DFCS_SCROLLDOWN 0x0001
3263 #define DFCS_SCROLLLEFT 0x0002
3264 #define DFCS_SCROLLRIGHT 0x0003
3265 #define DFCS_SCROLLCOMBOBOX 0x0005
3266 #define DFCS_SCROLLSIZEGRIP 0x0008
3267 #define DFCS_SCROLLSIZEGRIPRIGHT 0x0010
3269 #define DFCS_BUTTONCHECK 0x0000
3270 #define DFCS_BUTTONRADIOIMAGE 0x0001
3271 #define DFCS_BUTTONRADIOMASK 0x0002 /* to draw nonsquare button */
3272 #define DFCS_BUTTONRADIO 0x0004
3273 #define DFCS_BUTTON3STATE 0x0008
3274 #define DFCS_BUTTONPUSH 0x0010
3276 /* additional state of the control */
3278 #define DFCS_INACTIVE 0x0100
3279 #define DFCS_PUSHED 0x0200
3280 #define DFCS_CHECKED 0x0400
3281 #define DFCS_TRANSPARENT 0x0800
3282 #define DFCS_HOT 0x1000
3283 #define DFCS_ADJUSTRECT 0x2000 /* exclude surrounding edge */
3284 #define DFCS_FLAT 0x4000
3285 #define DFCS_MONO 0x8000
3289 #define DST_COMPLEX 0x0000
3290 #define DST_TEXT 0x0001
3291 #define DST_PREFIXTEXT 0x0002
3292 #define DST_ICON 0x0003
3293 #define DST_BITMAP 0x0004
3296 #define DSS_NORMAL 0x0000
3297 #define DSS_UNION 0x0010 /* Gray string appearance */
3298 #define DSS_DISABLED 0x0020
3299 #define DSS_DEFAULT 0x0040 /* Make it bold */
3300 #define DSS_MONO 0x0080
3301 #define DSS_RIGHT 0x8000
3303 /* UserObjectInformation classes */
3307 #define UOI_USER_SID 4
3310 /* Sent as the lParam of a WM_DRAWITEM message to instruct how an
3311 * owner drawn control is to be drawn */
3312 typedef struct tagDRAWITEMSTRUCT
3314 UINT CtlType; /* Type of control (ODT_* flags from "winuser.h") */
3315 UINT CtlID; /* Control ID */
3316 UINT itemID; /* Menu item ID */
3317 UINT itemAction; /* Action to perform (ODA_* flags from "winuser.h") */
3318 UINT itemState; /* Item state (ODS_* flags from "winuser.h") */
3319 HWND hwndItem; /* Control window */
3320 HDC hDC; /* Device context to draw to */
3321 RECT rcItem; /* Position of the control in hDC */
3322 ULONG_PTR itemData; /* Extra data added by the application, if any */
3323 } DRAWITEMSTRUCT, *PDRAWITEMSTRUCT, *LPDRAWITEMSTRUCT;
3326 typedef struct tagMEASUREITEMSTRUCT
3334 } MEASUREITEMSTRUCT, *PMEASUREITEMSTRUCT, *LPMEASUREITEMSTRUCT;
3337 typedef struct tagDELETEITEMSTRUCT
3344 } DELETEITEMSTRUCT, *PDELETEITEMSTRUCT, *LPDELETEITEMSTRUCT;
3347 typedef struct tagCOMPAREITEMSTRUCT
3353 ULONG_PTR itemData1;
3355 ULONG_PTR itemData2;
3357 } COMPAREITEMSTRUCT, *PCOMPAREITEMSTRUCT, *LPCOMPAREITEMSTRUCT;
3360 /* WM_KEYUP/DOWN/CHAR HIWORD(lParam) flags */
3361 #define KF_EXTENDED 0x0100
3362 #define KF_DLGMODE 0x0800
3363 #define KF_MENUMODE 0x1000
3364 #define KF_ALTDOWN 0x2000
3365 #define KF_REPEAT 0x4000
3366 #define KF_UP 0x8000
3368 /* Virtual key codes */
3369 #define VK_LBUTTON 0x01
3370 #define VK_RBUTTON 0x02
3371 #define VK_CANCEL 0x03
3372 #define VK_MBUTTON 0x04
3373 #define VK_XBUTTON1 0x05
3374 #define VK_XBUTTON2 0x06
3375 /* 0x07 Undefined */
3376 #define VK_BACK 0x08
3378 /* 0x0A-0x0B Undefined */
3379 #define VK_CLEAR 0x0C
3380 #define VK_RETURN 0x0D
3381 /* 0x0E-0x0F Undefined */
3382 #define VK_SHIFT 0x10
3383 #define VK_CONTROL 0x11
3384 #define VK_MENU 0x12
3385 #define VK_PAUSE 0x13
3386 #define VK_CAPITAL 0x14
3387 /* 0x15-0x19 Reserved for Kanji systems */
3388 /* 0x1A Undefined */
3389 #define VK_ESCAPE 0x1B
3390 /* 0x1C-0x1F Reserved for Kanji systems */
3391 #define VK_SPACE 0x20
3392 #define VK_PRIOR 0x21
3393 #define VK_NEXT 0x22
3395 #define VK_HOME 0x24
3396 #define VK_LEFT 0x25
3398 #define VK_RIGHT 0x27
3399 #define VK_DOWN 0x28
3400 #define VK_SELECT 0x29
3401 #define VK_PRINT 0x2A /* OEM specific in Windows 3.1 SDK */
3402 #define VK_EXECUTE 0x2B
3403 #define VK_SNAPSHOT 0x2C
3404 #define VK_INSERT 0x2D
3405 #define VK_DELETE 0x2E
3406 #define VK_HELP 0x2F
3407 /* VK_0 - VK-9 0x30-0x39 Use ASCII instead */
3408 /* 0x3A-0x40 Undefined */
3409 /* VK_A - VK_Z 0x41-0x5A Use ASCII instead */
3410 #define VK_LWIN 0x5B
3411 #define VK_RWIN 0x5C
3412 #define VK_APPS 0x5D
3413 /* 0x5E-0x5F Unassigned */
3414 #define VK_NUMPAD0 0x60
3415 #define VK_NUMPAD1 0x61
3416 #define VK_NUMPAD2 0x62
3417 #define VK_NUMPAD3 0x63
3418 #define VK_NUMPAD4 0x64
3419 #define VK_NUMPAD5 0x65
3420 #define VK_NUMPAD6 0x66
3421 #define VK_NUMPAD7 0x67
3422 #define VK_NUMPAD8 0x68
3423 #define VK_NUMPAD9 0x69
3424 #define VK_MULTIPLY 0x6A
3426 #define VK_SEPARATOR 0x6C
3427 #define VK_SUBTRACT 0x6D
3428 #define VK_DECIMAL 0x6E
3429 #define VK_DIVIDE 0x6F
3454 /* 0x88-0x8F Unassigned */
3455 #define VK_NUMLOCK 0x90
3456 #define VK_SCROLL 0x91
3457 /* 0x92-0x9F Unassigned */
3459 * differencing between right and left shift/control/alt key.
3460 * Used only by GetAsyncKeyState() and GetKeyState().
3462 #define VK_LSHIFT 0xA0
3463 #define VK_RSHIFT 0xA1
3464 #define VK_LCONTROL 0xA2
3465 #define VK_RCONTROL 0xA3
3466 #define VK_LMENU 0xA4
3467 #define VK_RMENU 0xA5
3468 /* 0xA6-0xB9 Unassigned */
3469 #define VK_OEM_1 0xBA
3470 #define VK_OEM_PLUS 0xBB
3471 #define VK_OEM_COMMA 0xBC
3472 #define VK_OEM_MINUS 0xBD
3473 #define VK_OEM_PERIOD 0xBE
3474 #define VK_OEM_2 0xBF
3475 #define VK_OEM_3 0xC0
3476 /* 0xC1-0xDA Unassigned */
3477 #define VK_OEM_4 0xDB
3478 #define VK_OEM_5 0xDC
3479 #define VK_OEM_6 0xDD
3480 #define VK_OEM_7 0xDE
3481 #define VK_OEM_8 0xDF
3482 /* 0xE0 OEM specific */
3483 #define VK_OEM_AX 0xE1 /* "AX" key on Japanese AX keyboard */
3484 #define VK_OEM_102 0xE2 /* "<>" or "\|" on RT 102-key keyboard */
3485 #define VK_ICO_HELP 0xE3 /* Help key on ICO */
3486 #define VK_ICO_00 0xE4 /* 00 key on ICO */
3487 #define VK_PROCESSKEY 0xE5
3489 /* 0xE6 OEM specific */
3490 /* 0xE7-0xE8 Unassigned */
3491 /* 0xE9-0xF5 OEM specific */
3493 #define VK_ATTN 0xF6
3494 #define VK_CRSEL 0xF7
3495 #define VK_EXSEL 0xF8
3496 #define VK_EREOF 0xF9
3497 #define VK_PLAY 0xFA
3498 #define VK_ZOOM 0xFB
3499 #define VK_NONAME 0xFC
3501 #define VK_OEM_CLEAR 0xFE
3503 /* Key status flags for mouse events */
3504 #define MK_LBUTTON 0x0001
3505 #define MK_RBUTTON 0x0002
3506 #define MK_SHIFT 0x0004
3507 #define MK_CONTROL 0x0008
3508 #define MK_MBUTTON 0x0010
3509 #define MK_XBUTTON1 0x0020
3510 #define MK_XBUTTON2 0x0040
3513 #define WM_MOUSEHOVER 0x02A1
3514 #define WM_MOUSELEAVE 0x02A3
3515 #define WM_NCMOUSEHOVER 0x02A0
3516 #define WM_NCMOUSELEAVE 0x02A2
3519 #define TME_HOVER 0x00000001
3520 #define TME_LEAVE 0x00000002
3521 #define TME_NONCLIENT 0x00000010
3522 #define TME_QUERY 0x40000000
3523 #define TME_CANCEL 0x80000000
3525 #define HOVER_DEFAULT 0xFFFFFFFF
3527 typedef struct tagTRACKMOUSEEVENT {
3532 } TRACKMOUSEEVENT, *LPTRACKMOUSEEVENT;
3534 /* Queue status flags */
3535 #define QS_KEY 0x0001
3536 #define QS_MOUSEMOVE 0x0002
3537 #define QS_MOUSEBUTTON 0x0004
3538 #define QS_MOUSE (QS_MOUSEMOVE | QS_MOUSEBUTTON)
3539 #define QS_POSTMESSAGE 0x0008
3540 #define QS_TIMER 0x0010
3541 #define QS_PAINT 0x0020
3542 #define QS_SENDMESSAGE 0x0040
3543 #define QS_HOTKEY 0x0080
3544 #define QS_INPUT (QS_MOUSE | QS_KEY)
3545 #define QS_ALLEVENTS (QS_INPUT | QS_POSTMESSAGE | QS_TIMER | QS_PAINT | QS_HOTKEY)
3546 #define QS_ALLINPUT (QS_ALLEVENTS | QS_SENDMESSAGE)
3548 /* Extra (undocumented) queue wake bits - see "Undoc. Windows" */
3549 #define QS_SMRESULT 0x8000
3551 /* InSendMessageEx flags */
3552 #define ISMEX_NOSEND 0x00000000
3553 #define ISMEX_SEND 0x00000001
3554 #define ISMEX_NOTIFY 0x00000002
3555 #define ISMEX_CALLBACK 0x00000004
3556 #define ISMEX_REPLIED 0x00000008
3558 #define DDL_READWRITE 0x0000
3559 #define DDL_READONLY 0x0001
3560 #define DDL_HIDDEN 0x0002
3561 #define DDL_SYSTEM 0x0004
3562 #define DDL_DIRECTORY 0x0010
3563 #define DDL_ARCHIVE 0x0020
3565 #define DDL_POSTMSGS 0x2000
3566 #define DDL_DRIVES 0x4000
3567 #define DDL_EXCLUSIVE 0x8000
3569 /* Shell hook values */
3570 #define HSHELL_WINDOWCREATED 1
3571 #define HSHELL_WINDOWDESTROYED 2
3572 #define HSHELL_ACTIVATESHELLWINDOW 3
3574 /* Predefined Clipboard Formats */
3577 #define CF_METAFILEPICT 3
3581 #define CF_OEMTEXT 7
3583 #define CF_PALETTE 9
3584 #define CF_PENDATA 10
3587 #define CF_UNICODETEXT 13
3588 #define CF_ENHMETAFILE 14
3590 #define CF_LOCALE 16
3594 #define CF_OWNERDISPLAY 0x0080
3595 #define CF_DSPTEXT 0x0081
3596 #define CF_DSPBITMAP 0x0082
3597 #define CF_DSPMETAFILEPICT 0x0083
3598 #define CF_DSPENHMETAFILE 0x008E
3600 /* "Private" formats don't get GlobalFree()'d */
3601 #define CF_PRIVATEFIRST 0x0200
3602 #define CF_PRIVATELAST 0x02FF
3604 /* "GDIOBJ" formats do get DeleteObject()'d */
3605 #define CF_GDIOBJFIRST 0x0300
3606 #define CF_GDIOBJLAST 0x03FF
3609 /* types of LoadImage */
3610 #define IMAGE_BITMAP 0
3611 #define IMAGE_ICON 1
3612 #define IMAGE_CURSOR 2
3613 #define IMAGE_ENHMETAFILE 3
3615 /* loadflags to LoadImage */
3616 #define LR_DEFAULTCOLOR 0x0000
3617 #define LR_MONOCHROME 0x0001
3618 #define LR_COLOR 0x0002
3619 #define LR_COPYRETURNORG 0x0004
3620 #define LR_COPYDELETEORG 0x0008
3621 #define LR_LOADFROMFILE 0x0010
3622 #define LR_LOADTRANSPARENT 0x0020
3623 #define LR_DEFAULTSIZE 0x0040
3624 #define LR_VGA_COLOR 0x0080
3625 #define LR_LOADMAP3DCOLORS 0x1000
3626 #define LR_CREATEDIBSECTION 0x2000
3627 #define LR_COPYFROMRESOURCE 0x4000
3628 #define LR_SHARED 0x8000
3630 /* Flags for DrawIconEx. */
3633 #define DI_NORMAL (DI_MASK | DI_IMAGE)
3635 #define DI_DEFAULTSIZE 8
3637 /* WM_NOTIFYFORMAT commands and return values */
3639 #define NFR_UNICODE 2
3641 #define NF_REQUERY 4
3643 /* RegisterDeviceNotification stuff */
3644 typedef PVOID HDEVNOTIFY;
3645 typedef HDEVNOTIFY *PHDEVNOTIFY;
3647 #define DEVICE_NOTIFY_WINDOW_HANDLE 0x00000000
3649 /* used for GetWindowInfo() */
3651 #define WS_ACTIVECAPTION 0x0001
3653 typedef struct tagWINDOWINFO {
3659 DWORD dwWindowStatus;
3660 UINT cxWindowBorders;
3661 UINT cyWindowBorders;
3662 ATOM atomWindowType;
3663 WORD wCreatorVersion;
3664 } WINDOWINFO, *PWINDOWINFO, *LPWINDOWINFO;
3666 /* used for GetTitleBarInfo() */
3668 #define CCHILDREN_TITLEBAR 5
3670 typedef struct tagTITLEBARINFO {
3673 DWORD rgstate[CCHILDREN_TITLEBAR+1];
3674 } TITLEBARINFO, *PTITLEBARINFO, *LPTITLEBARINFO;
3676 /* used by GetLastInputInfo */
3677 typedef struct tagLASTINPUTINFO {
3680 } LASTINPUTINFO, *PLASTINPUTINFO;
3682 /* used by GetAltTabInfo */
3694 } ALTTABINFO, *PALTTABINFO, *LPALTTABINFO;
3696 /* SetWinEventHook() flags */
3697 #define WINEVENT_OUTOFCONTEXT 0x0
3698 #define WINEVENT_SKIPOWNTHREAD 0x1
3699 #define WINEVENT_SKIPOWNPROCESS 0x2
3700 #define WINEVENT_INCONTEXT 0x4
3702 #define ENDSESSION_LOGOFF 0x80000000
3705 #define CHILDID_SELF 0
3706 #define INDEXID_OBJECT 0
3707 #define INDEXID_CONTAINER 0
3709 /* System object Id's */
3710 #define OBJID_WINDOW 0
3711 #define OBJID_SYSMENU -1
3712 #define OBJID_TITLEBAR -2
3713 #define OBJID_MENU -3
3714 #define OBJID_CLIENT -4
3715 #define OBJID_VSCROLL -5
3716 #define OBJID_HSCROLL -6
3717 #define OBJID_SIZEGRIP -7
3718 #define OBJID_CARET -8
3719 #define OBJID_CURSOR -9
3720 #define OBJID_ALERT -10
3721 #define OBJID_SOUND -11
3722 #define OBJID_QUERYCLASSNAMEIDX -12
3723 #define OBJID_NATIVEOM -16
3725 /* User event Id limits */
3726 #define EVENT_MIN 0x00000001
3727 #define EVENT_MAX 0x7FFFFFFF
3730 #define EVENT_SYSTEM_SOUND 0x01
3731 #define EVENT_SYSTEM_ALERT 0x02
3732 #define EVENT_SYSTEM_FOREGROUND 0x03
3733 #define EVENT_SYSTEM_MENUSTART 0x04
3734 #define EVENT_SYSTEM_MENUEND 0x05
3735 #define EVENT_SYSTEM_MENUPOPUPSTART 0x06
3736 #define EVENT_SYSTEM_MENUPOPUPEND 0x07
3737 #define EVENT_SYSTEM_CAPTURESTART 0x08
3738 #define EVENT_SYSTEM_CAPTUREEND 0x09
3739 #define EVENT_SYSTEM_MOVESIZESTART 0x0A
3740 #define EVENT_SYSTEM_MOVESIZEEND 0x0B
3741 #define EVENT_SYSTEM_CONTEXTHELPSTART 0x0C
3742 #define EVENT_SYSTEM_CONTEXTHELPEND 0x0D
3743 #define EVENT_SYSTEM_DRAGDROPSTART 0x0E
3744 #define EVENT_SYSTEM_DRAGDROPEND 0x0F
3745 #define EVENT_SYSTEM_DIALOGSTART 0x10
3746 #define EVENT_SYSTEM_DIALOGEND 0x11
3747 #define EVENT_SYSTEM_SCROLLINGSTART 0x12
3748 #define EVENT_SYSTEM_SCROLLINGEND 0x13
3749 #define EVENT_SYSTEM_SWITCHSTART 0x14
3750 #define EVENT_SYSTEM_SWITCHEND 0x15
3751 #define EVENT_SYSTEM_MINIMIZESTART 0x16
3752 #define EVENT_SYSTEM_MINIMIZEEND 0x17
3754 /* Console events */
3755 #define EVENT_CONSOLE_CARET 0x4001
3756 #define EVENT_CONSOLE_UPDATE_REGION 0x4002
3757 #define EVENT_CONSOLE_UPDATE_SIMPLE 0x4003
3758 #define EVENT_CONSOLE_UPDATE_SCROLL 0x4004
3759 #define EVENT_CONSOLE_LAYOUT 0x4005
3760 #define EVENT_CONSOLE_START_APPLICATION 0x4006
3761 #define EVENT_CONSOLE_END_APPLICATION 0x4007
3763 #define CONSOLE_APPLICATION_16BIT 0x1
3764 #define CONSOLE_CARET_SELECTION 0x1
3765 #define CONSOLE_CARET_VISIBLE 0x2
3768 #define EVENT_OBJECT_CREATE 0x8000
3769 #define EVENT_OBJECT_DESTROY 0x8001
3770 #define EVENT_OBJECT_SHOW 0x8002
3771 #define EVENT_OBJECT_HIDE 0x8003
3772 #define EVENT_OBJECT_REORDER 0x8004
3773 #define EVENT_OBJECT_FOCUS 0x8005
3774 #define EVENT_OBJECT_SELECTION 0x8006
3775 #define EVENT_OBJECT_SELECTIONADD 0x8007
3776 #define EVENT_OBJECT_SELECTIONREMOVE 0x8008
3777 #define EVENT_OBJECT_SELECTIONWITHIN 0x8009
3778 #define EVENT_OBJECT_STATECHANGE 0x800A
3779 #define EVENT_OBJECT_LOCATIONCHANGE 0x800B
3780 #define EVENT_OBJECT_NAMECHANGE 0x800C
3781 #define EVENT_OBJECT_DESCRIPTIONCHANGE 0x800D
3782 #define EVENT_OBJECT_VALUECHANGE 0x800E
3783 #define EVENT_OBJECT_PARENTCHANGE 0x800F
3784 #define EVENT_OBJECT_HELPCHANGE 0x8010
3785 #define EVENT_OBJECT_DEFACTIONCHANGE 0x8011
3786 #define EVENT_OBJECT_ACCELERATORCHANGE 0x8012
3789 #define SOUND_SYSTEM_STARTUP 1
3790 #define SOUND_SYSTEM_SHUTDOWN 2
3791 #define SOUND_SYSTEM_BEEP 3
3792 #define SOUND_SYSTEM_ERROR 4
3793 #define SOUND_SYSTEM_QUESTION 5
3794 #define SOUND_SYSTEM_WARNING 6
3795 #define SOUND_SYSTEM_INFORMATION 7
3796 #define SOUND_SYSTEM_MAXIMIZE 8
3797 #define SOUND_SYSTEM_MINIMIZE 9
3798 #define SOUND_SYSTEM_RESTOREUP 10
3799 #define SOUND_SYSTEM_RESTOREDOWN 11
3800 #define SOUND_SYSTEM_APPSTART 12
3801 #define SOUND_SYSTEM_FAULT 13
3802 #define SOUND_SYSTEM_APPEND 14
3803 #define SOUND_SYSTEM_MENUCOMMAND 15
3804 #define SOUND_SYSTEM_MENUPOPUP 16
3805 #define CSOUND_SYSTEM 16
3808 #define ALERT_SYSTEM_INFORMATIONAL 1
3809 #define ALERT_SYSTEM_WARNING 2
3810 #define ALERT_SYSTEM_ERROR 3
3811 #define ALERT_SYSTEM_QUERY 4
3812 #define ALERT_SYSTEM_CRITICAL 5
3813 #define CALERT_SYSTEM 6
3815 /* System state flags */
3816 #define STATE_SYSTEM_UNAVAILABLE 0x00000001
3817 #define STATE_SYSTEM_SELECTED 0x00000002
3818 #define STATE_SYSTEM_FOCUSED 0x00000004
3819 #define STATE_SYSTEM_PRESSED 0x00000008
3820 #define STATE_SYSTEM_CHECKED 0x00000010
3821 #define STATE_SYSTEM_MIXED 0x00000020
3822 #define STATE_SYSTEM_INDETERMINATE STATE_SYSTEM_MIXED
3823 #define STATE_SYSTEM_READONLY 0x00000040
3824 #define STATE_SYSTEM_HOTTRACKED 0x00000080
3825 #define STATE_SYSTEM_DEFAULT 0x00000100
3826 #define STATE_SYSTEM_EXPANDED 0x00000200
3827 #define STATE_SYSTEM_COLLAPSED 0x00000400
3828 #define STATE_SYSTEM_BUSY 0x00000800
3829 #define STATE_SYSTEM_FLOATING 0x00001000
3830 #define STATE_SYSTEM_MARQUEED 0x00002000
3831 #define STATE_SYSTEM_ANIMATED 0x00004000
3832 #define STATE_SYSTEM_INVISIBLE 0x00008000
3833 #define STATE_SYSTEM_OFFSCREEN 0x00010000
3834 #define STATE_SYSTEM_SIZEABLE 0x00020000
3835 #define STATE_SYSTEM_MOVEABLE 0x00040000
3836 #define STATE_SYSTEM_SELFVOICING 0x00080000
3837 #define STATE_SYSTEM_FOCUSABLE 0x00100000
3838 #define STATE_SYSTEM_SELECTABLE 0x00200000
3839 #define STATE_SYSTEM_LINKED 0x00400000
3840 #define STATE_SYSTEM_TRAVERSED 0x00800000
3841 #define STATE_SYSTEM_MULTISELECTABLE 0x01000000
3842 #define STATE_SYSTEM_EXTSELECTABLE 0x02000000
3843 #define STATE_SYSTEM_ALERT_LOW 0x04000000
3844 #define STATE_SYSTEM_ALERT_MEDIUM 0x08000000
3845 #define STATE_SYSTEM_ALERT_HIGH 0x10000000
3846 #define STATE_SYSTEM_PROTECTED 0x20000000
3847 #define STATE_SYSTEM_VALID 0x3FFFFFFF
3849 #define EnumTaskWindows(handle,proc,lparam) \
3850 EnumThreadWindows(handle,proc,lparam)
3851 #define OemToAnsiA OemToCharA
3852 #define OemToAnsiW OemToCharW
3853 #define OemToAnsi WINELIB_NAME_AW(OemToAnsi)
3854 #define OemToAnsiBuffA OemToCharBuffA
3855 #define OemToAnsiBuffW OemToCharBuffW
3856 #define OemToAnsiBuff WINELIB_NAME_AW(OemToAnsiBuff)
3857 #define AnsiToOemA CharToOemA
3858 #define AnsiToOemW CharToOemW
3859 #define AnsiToOem WINELIB_NAME_AW(AnsiToOem)
3860 #define AnsiToOemBuffA CharToOemBuffA
3861 #define AnsiToOemBuffW CharToOemBuffW
3862 #define AnsiToOemBuff WINELIB_NAME_AW(AnsiToOemBuff)
3864 #if defined(_WINGDI_) && !defined(NOGDI)
3865 LONG WINAPI ChangeDisplaySettingsA(LPDEVMODEA,DWORD);
3866 LONG WINAPI ChangeDisplaySettingsW(LPDEVMODEW,DWORD);
3867 #define ChangeDisplaySettings WINELIB_NAME_AW(ChangeDisplaySettings)
3868 LONG WINAPI ChangeDisplaySettingsExA(LPCSTR,LPDEVMODEA,HWND,DWORD,LPVOID);
3869 LONG WINAPI ChangeDisplaySettingsExW(LPCWSTR,LPDEVMODEW,HWND,DWORD,LPVOID);
3870 #define ChangeDisplaySettingsEx WINELIB_NAME_AW(ChangeDisplaySettingsEx)
3871 BOOL WINAPI EnumDisplayDevicesA(LPVOID,DWORD,LPDISPLAY_DEVICEA,DWORD);
3872 BOOL WINAPI EnumDisplayDevicesW(LPVOID,DWORD,LPDISPLAY_DEVICEW,DWORD);
3873 #define EnumDisplayDevices WINELIB_NAME_AW(EnumDisplayDevices)
3874 BOOL WINAPI EnumDisplaySettingsA(LPCSTR,DWORD,LPDEVMODEA);
3875 BOOL WINAPI EnumDisplaySettingsW(LPCWSTR,DWORD,LPDEVMODEW);
3876 #define EnumDisplaySettings WINELIB_NAME_AW(EnumDisplaySettings)
3877 BOOL WINAPI EnumDisplaySettingsExA(LPCSTR,DWORD,LPDEVMODEA,DWORD);
3878 BOOL WINAPI EnumDisplaySettingsExW(LPCWSTR,DWORD,LPDEVMODEW,DWORD);
3879 #define EnumDisplaySettingsEx WINELIB_NAME_AW(EnumDisplaySettingsEx)
3880 #endif /* defined(_WINGDI_) && !defined(NOGDI) */
3882 HKL WINAPI ActivateKeyboardLayout(HKL,UINT);
3883 WORD WINAPI CascadeWindows(HWND, UINT, const LPRECT, UINT, const HWND *);
3884 INT WINAPI CopyAcceleratorTableA(HACCEL,LPACCEL,INT);
3885 INT WINAPI CopyAcceleratorTableW(HACCEL,LPACCEL,INT);
3886 #define CopyAcceleratorTable WINELIB_NAME_AW(CopyAcceleratorTable)
3887 HACCEL WINAPI CreateAcceleratorTableA(LPACCEL,INT);
3888 HACCEL WINAPI CreateAcceleratorTableW(LPACCEL,INT);
3889 #define CreateAcceleratorTable WINELIB_NAME_AW(CreateAcceleratorTable)
3890 HICON WINAPI CreateIconIndirect(PICONINFO);
3891 BOOL WINAPI DestroyAcceleratorTable(HACCEL);
3892 BOOL WINAPI EnumDesktopsA(HWINSTA,DESKTOPENUMPROCA,LPARAM);
3893 BOOL WINAPI EnumDesktopsW(HWINSTA,DESKTOPENUMPROCW,LPARAM);
3894 #define EnumDesktops WINELIB_NAME_AW(EnumDesktops)
3895 BOOL WINAPI EnumDisplayMonitors(HDC,LPRECT,MONITORENUMPROC,LPARAM);
3896 INT WINAPI EnumPropsExA(HWND,PROPENUMPROCEXA,LPARAM);
3897 INT WINAPI EnumPropsExW(HWND,PROPENUMPROCEXW,LPARAM);
3898 #define EnumPropsEx WINELIB_NAME_AW(EnumPropsEx)
3899 BOOL WINAPI EnumThreadWindows(DWORD,WNDENUMPROC,LPARAM);
3900 BOOL WINAPI ExitWindowsEx(UINT,DWORD);
3901 BOOL WINAPI GetAltTabInfoA(HWND,INT,PALTTABINFO,LPSTR,UINT);
3902 BOOL WINAPI GetAltTabInfoW(HWND,INT,PALTTABINFO,LPWSTR,UINT);
3903 #define GetAltTabInfo WINELIB_NAME_AW(GetAltTabInfo)
3904 BOOL WINAPI GetIconInfo(HICON,PICONINFO);
3905 HKL WINAPI GetKeyboardLayout(DWORD);
3906 UINT WINAPI GetKeyboardLayoutList(INT,HKL *);
3907 BOOL WINAPI GetComboBoxInfo(HWND,PCOMBOBOXINFO);
3908 DWORD WINAPI GetMenuContextHelpId(HMENU);
3909 UINT WINAPI GetMenuDefaultItem(HMENU,UINT,UINT);
3910 BOOL WINAPI GetMenuInfo(HMENU,LPMENUINFO);
3911 BOOL WINAPI GetMenuItemInfoA(HMENU,UINT,BOOL,MENUITEMINFOA*);
3912 BOOL WINAPI GetMenuItemInfoW(HMENU,UINT,BOOL,MENUITEMINFOW*);
3913 #define GetMenuItemInfo WINELIB_NAME_AW(GetMenuItemInfo)
3914 BOOL WINAPI GetMonitorInfoA(HMONITOR,LPMONITORINFO);
3915 BOOL WINAPI GetMonitorInfoW(HMONITOR,LPMONITORINFO);
3916 #define GetMonitorInfo WINELIB_NAME_AW(GetMonitorInfo)
3917 DWORD WINAPI GetWindowContextHelpId(HWND);
3918 DWORD WINAPI GetWindowThreadProcessId(HWND,LPDWORD);
3919 BOOL WINAPI IsWinEventHookInstalled(DWORD);
3920 BOOL WINAPI IsWindowUnicode(HWND);
3921 HKL WINAPI LoadKeyboardLayoutA(LPCSTR,UINT);
3922 HKL WINAPI LoadKeyboardLayoutW(LPCWSTR,UINT);
3923 #define LoadKeyboardLayout WINELIB_NAME_AW(LoadKeyboardLayout)
3924 INT WINAPI MessageBoxExA(HWND,LPCSTR,LPCSTR,UINT,WORD);
3925 INT WINAPI MessageBoxExW(HWND,LPCWSTR,LPCWSTR,UINT,WORD);
3926 #define MessageBoxEx WINELIB_NAME_AW(MessageBoxEx)
3927 HMONITOR WINAPI MonitorFromPoint(POINT,DWORD);
3928 HMONITOR WINAPI MonitorFromRect(LPRECT,DWORD);
3929 HMONITOR WINAPI MonitorFromWindow(HWND,DWORD);
3930 DWORD WINAPI MsgWaitForMultipleObjects(DWORD,CONST HANDLE*,BOOL,DWORD,DWORD);
3931 DWORD WINAPI MsgWaitForMultipleObjectsEx(DWORD,CONST HANDLE*,DWORD,DWORD,DWORD);
3932 VOID WINAPI NotifyWinEvent(DWORD,HWND,LONG,LONG);
3933 BOOL WINAPI PaintDesktop(HDC);
3934 BOOL WINAPI PostThreadMessageA(DWORD,UINT,WPARAM,LPARAM);
3935 BOOL WINAPI PostThreadMessageW(DWORD,UINT,WPARAM,LPARAM);
3936 #define PostThreadMessage WINELIB_NAME_AW(PostThreadMessage)
3937 BOOL WINAPI RegisterHotKey(HWND,INT,UINT,UINT);
3938 HDEVNOTIFY WINAPI RegisterDeviceNotificationA(HANDLE,LPVOID,DWORD);
3939 HDEVNOTIFY WINAPI RegisterDeviceNotificationW(HANDLE,LPVOID,DWORD);
3940 #define RegisterDeviceNotification WINELIB_NAME_AW(RegisterDeviceNotification)
3941 BOOL WINAPI SendMessageCallbackA(HWND,UINT,WPARAM,LPARAM,SENDASYNCPROC,ULONG_PTR);
3942 BOOL WINAPI SendMessageCallbackW(HWND,UINT,WPARAM,LPARAM,SENDASYNCPROC,ULONG_PTR);
3943 #define SendMessageCallback WINELIB_NAME_AW(SendMessageCallback)
3944 BOOL WINAPI SendNotifyMessageA(HWND,UINT,WPARAM,LPARAM);
3945 BOOL WINAPI SendNotifyMessageW(HWND,UINT,WPARAM,LPARAM);
3946 #define SendNotifyMessage WINELIB_NAME_AW(SendNotifyMessage)
3947 VOID WINAPI SetDebugErrorLevel(DWORD);
3948 VOID WINAPI SetLastErrorEx(DWORD,DWORD);
3949 BOOL WINAPI SetMenuDefaultItem(HMENU,UINT,UINT);
3950 BOOL WINAPI SetMenuInfo(HMENU,LPCMENUINFO);
3951 BOOL WINAPI SetMenuItemInfoA(HMENU,UINT,BOOL,const MENUITEMINFOA*);
3952 BOOL WINAPI SetMenuItemInfoW(HMENU,UINT,BOOL,const MENUITEMINFOW*);
3953 #define SetMenuItemInfo WINELIB_NAME_AW(SetMenuItemInfo)
3954 BOOL WINAPI SetWindowContextHelpId(HWND,DWORD);
3955 HWINEVENTHOOK WINAPI SetWinEventHook(DWORD,DWORD,HMODULE,WINEVENTPROC,DWORD,DWORD,DWORD);
3956 WORD WINAPI TileWindows (HWND, UINT, const LPRECT,
3957 UINT, const HWND *);
3958 INT WINAPI ToUnicode(UINT,UINT,PBYTE,LPWSTR,int,UINT);
3959 INT WINAPI ToUnicodeEx(UINT,UINT,LPBYTE,LPWSTR,int,UINT,HKL);
3960 BOOL WINAPI TrackPopupMenuEx(HMENU,UINT,INT,INT,HWND,
3962 BOOL WINAPI UnhookWinEvent(HWINEVENTHOOK);
3963 BOOL WINAPI UnloadKeyboardLayout(HKL);
3964 BOOL WINAPI UnregisterDeviceNotification(HDEVNOTIFY);
3965 BOOL WINAPI UnregisterHotKey(HWND,INT);
3966 DWORD WINAPI WaitForInputIdle(HANDLE,DWORD);
3967 VOID WINAPI keybd_event(BYTE,BYTE,DWORD,ULONG_PTR);
3968 VOID WINAPI mouse_event(DWORD,DWORD,DWORD,DWORD,ULONG_PTR);
3970 /* Declarations for functions that are the same in Win16 and Win32 */
3971 VOID WINAPI EndMenu(void);
3972 DWORD WINAPI GetDialogBaseUnits(void);
3973 BOOL WINAPI GetKeyboardState(LPBYTE);
3974 DWORD WINAPI GetMenuCheckMarkDimensions(void);
3975 LPARAM WINAPI GetMessageExtraInfo(void);
3976 DWORD WINAPI GetMessagePos(void);
3977 LONG WINAPI GetMessageTime(void);
3978 DWORD WINAPI OemKeyScan(WORD);
3979 BOOL WINAPI ReleaseCapture(void);
3980 BOOL WINAPI SetKeyboardState(LPBYTE);
3982 /* Declarations for functions that change between Win16 and Win32 */
3984 BOOL WINAPI AdjustWindowRect(LPRECT,DWORD,BOOL);
3985 BOOL WINAPI AdjustWindowRectEx(LPRECT,DWORD,BOOL,DWORD);
3986 BOOL WINAPI AnimateWindow(HWND,DWORD,DWORD);
3987 #define AnsiLowerA CharLowerA
3988 #define AnsiLowerW CharLowerW
3989 #define AnsiLower WINELIB_NAME_AW(AnsiLower)
3990 #define AnsiLowerBuffA CharLowerBuffA
3991 #define AnsiLowerBuffW CharLowerBuffW
3992 #define AnsiLowerBuff WINELIB_NAME_AW(AnsiLowerBuff)
3993 #define AnsiNextA CharNextA
3994 #define AnsiNextW CharNextW
3995 #define AnsiNext WINELIB_NAME_AW(AnsiNext)
3996 #define AnsiPrevA CharPrevA
3997 #define AnsiPrevW CharPrevW
3998 #define AnsiPrev WINELIB_NAME_AW(AnsiPrev)
3999 #define AnsiUpperA CharUpperA
4000 #define AnsiUpperW CharUpperW
4001 #define AnsiUpper WINELIB_NAME_AW(AnsiUpper)
4002 #define AnsiUpperBuffA CharUpperBuffA
4003 #define AnsiUpperBuffW CharUpperBuffW
4004 #define AnsiUpperBuff WINELIB_NAME_AW(AnsiUpperBuff)
4005 BOOL WINAPI AnyPopup(void);
4006 BOOL WINAPI AppendMenuA(HMENU,UINT,UINT_PTR,LPCSTR);
4007 BOOL WINAPI AppendMenuW(HMENU,UINT,UINT_PTR,LPCWSTR);
4008 #define AppendMenu WINELIB_NAME_AW(AppendMenu)
4009 UINT WINAPI ArrangeIconicWindows(HWND);
4010 HDWP WINAPI BeginDeferWindowPos(INT);
4011 HDC WINAPI BeginPaint(HWND,LPPAINTSTRUCT);
4012 BOOL WINAPI BringWindowToTop(HWND);
4013 LONG WINAPI BroadcastSystemMessageA(DWORD,LPDWORD,UINT,WPARAM,LPARAM);
4014 LONG WINAPI BroadcastSystemMessageW(DWORD,LPDWORD,UINT,WPARAM,LPARAM);
4015 #define BroadcastSystemMessage WINELIB_NAME_AW(BroadcastSystemMessage)
4016 void WINAPI CalcChildScroll(HWND, INT);
4017 BOOL WINAPI CallMsgFilterA(LPMSG,INT);
4018 BOOL WINAPI CallMsgFilterW(LPMSG,INT);
4019 #define CallMsgFilter WINELIB_NAME_AW(CallMsgFilter)
4020 LRESULT WINAPI CallNextHookEx(HHOOK,INT,WPARAM,LPARAM);
4021 LRESULT WINAPI CallWindowProcA(WNDPROC,HWND,UINT,WPARAM,LPARAM);
4022 LRESULT WINAPI CallWindowProcW(WNDPROC,HWND,UINT,WPARAM,LPARAM);
4023 #define CallWindowProc WINELIB_NAME_AW(CallWindowProc)
4024 BOOL WINAPI ChangeClipboardChain(HWND,HWND);
4025 BOOL WINAPI ChangeMenuA(HMENU,UINT,LPCSTR,UINT,UINT);
4026 BOOL WINAPI ChangeMenuW(HMENU,UINT,LPCWSTR,UINT,UINT);
4027 #define ChangeMenu WINELIB_NAME_AW(ChangeMenu)
4028 LPSTR WINAPI CharLowerA(LPSTR);
4029 LPWSTR WINAPI CharLowerW(LPWSTR);
4030 #define CharLower WINELIB_NAME_AW(CharLower)
4031 DWORD WINAPI CharLowerBuffA(LPSTR,DWORD);
4032 DWORD WINAPI CharLowerBuffW(LPWSTR,DWORD);
4033 #define CharLowerBuff WINELIB_NAME_AW(CharLowerBuff)
4034 LPSTR WINAPI CharNextA(LPCSTR);
4035 LPWSTR WINAPI CharNextW(LPCWSTR);
4036 #define CharNext WINELIB_NAME_AW(CharNext)
4037 LPSTR WINAPI CharNextExA(WORD,LPCSTR,DWORD);
4038 /* no CharNextExW (doesn't make sense) */
4039 LPSTR WINAPI CharPrevA(LPCSTR,LPCSTR);
4040 LPWSTR WINAPI CharPrevW(LPCWSTR,LPCWSTR);
4041 #define CharPrev WINELIB_NAME_AW(CharPrev)
4042 LPSTR WINAPI CharPrevExA(WORD,LPCSTR,LPCSTR,DWORD);
4043 /* no CharPrevExW (doesn't make sense) */
4044 LPSTR WINAPI CharUpperA(LPSTR);
4045 LPWSTR WINAPI CharUpperW(LPWSTR);
4046 #define CharUpper WINELIB_NAME_AW(CharUpper)
4047 DWORD WINAPI CharUpperBuffA(LPSTR,DWORD);
4048 DWORD WINAPI CharUpperBuffW(LPWSTR,DWORD);
4049 #define CharUpperBuff WINELIB_NAME_AW(CharUpperBuff)
4050 BOOL WINAPI CharToOemA(LPCSTR,LPSTR);
4051 BOOL WINAPI CharToOemW(LPCWSTR,LPSTR);
4052 #define CharToOem WINELIB_NAME_AW(CharToOem)
4053 BOOL WINAPI CharToOemBuffA(LPCSTR,LPSTR,DWORD);
4054 BOOL WINAPI CharToOemBuffW(LPCWSTR,LPSTR,DWORD);
4055 #define CharToOemBuff WINELIB_NAME_AW(CharToOemBuff)
4056 BOOL WINAPI CheckDlgButton(HWND,INT,UINT);
4057 DWORD WINAPI CheckMenuItem(HMENU,UINT,UINT);
4058 BOOL WINAPI CheckMenuRadioItem(HMENU,UINT,UINT,UINT,UINT);
4059 BOOL WINAPI CheckRadioButton(HWND,UINT,UINT,UINT);
4060 HWND WINAPI ChildWindowFromPoint(HWND,POINT);
4061 HWND WINAPI ChildWindowFromPointEx(HWND,POINT,UINT);
4062 BOOL WINAPI ClientToScreen(HWND,LPPOINT);
4063 BOOL WINAPI ClipCursor(const RECT*);
4064 BOOL WINAPI CloseClipboard(void);
4065 BOOL WINAPI CloseDesktop(HDESK);
4066 BOOL WINAPI CloseWindow(HWND);
4067 BOOL WINAPI CloseWindowStation(HWINSTA);
4068 #define CopyCursor(cur) ((HCURSOR)CopyIcon((HICON)(cur)))
4069 HICON WINAPI CopyIcon(HICON);
4070 HICON WINAPI CopyImage(HANDLE,UINT,INT,INT,UINT);
4071 BOOL WINAPI CopyRect(RECT*,const RECT*);
4072 INT WINAPI CountClipboardFormats(void);
4073 BOOL WINAPI CreateCaret(HWND,HBITMAP,INT,INT);
4074 HCURSOR WINAPI CreateCursor(HINSTANCE,INT,INT,INT,INT,LPCVOID,LPCVOID);
4075 #define CreateDialogA(inst,ptr,hwnd,dlg) \
4076 CreateDialogParamA(inst,ptr,hwnd,dlg,0)
4077 #define CreateDialogW(inst,ptr,hwnd,dlg) \
4078 CreateDialogParamW(inst,ptr,hwnd,dlg,0)
4079 #define CreateDialog WINELIB_NAME_AW(CreateDialog)
4080 #define CreateDialogIndirectA(inst,ptr,hwnd,dlg) \
4081 CreateDialogIndirectParamA(inst,ptr,hwnd,dlg,0)
4082 #define CreateDialogIndirectW(inst,ptr,hwnd,dlg) \
4083 CreateDialogIndirectParamW(inst,ptr,hwnd,dlg,0)
4084 #define CreateDialogIndirect WINELIB_NAME_AW(CreateDialogIndirect)
4085 HWND WINAPI CreateDialogIndirectParamA(HINSTANCE,LPCDLGTEMPLATEA,HWND,
4087 HWND WINAPI CreateDialogIndirectParamW(HINSTANCE,LPCDLGTEMPLATEW,HWND,
4089 #define CreateDialogIndirectParam WINELIB_NAME_AW(CreateDialogIndirectParam)
4090 HWND WINAPI CreateDialogParamA(HINSTANCE,LPCSTR,HWND,DLGPROC,LPARAM);
4091 HWND WINAPI CreateDialogParamW(HINSTANCE,LPCWSTR,HWND,DLGPROC,LPARAM);
4092 #define CreateDialogParam WINELIB_NAME_AW(CreateDialogParam)
4093 HICON WINAPI CreateIcon(HINSTANCE,INT,INT,BYTE,BYTE,LPCVOID,LPCVOID);
4094 HICON WINAPI CreateIconFromResource(LPBYTE,UINT,BOOL,DWORD);
4095 HICON WINAPI CreateIconFromResourceEx(LPBYTE,UINT,BOOL,DWORD,INT,INT,UINT);
4096 HMENU WINAPI CreateMenu(void);
4097 HMENU WINAPI CreatePopupMenu(void);
4098 #define CreateWindowA(className,titleName,style,x,y,width,height,\
4099 parent,menu,instance,param) \
4100 CreateWindowExA(0,className,titleName,style,x,y,width,height,\
4101 parent,menu,instance,param)
4102 #define CreateWindowW(className,titleName,style,x,y,width,height,\
4103 parent,menu,instance,param) \
4104 CreateWindowExW(0,className,titleName,style,x,y,width,height,\
4105 parent,menu,instance,param)
4106 #define CreateWindow WINELIB_NAME_AW(CreateWindow)
4107 HWND WINAPI CreateWindowExA(DWORD,LPCSTR,LPCSTR,DWORD,INT,INT,
4108 INT,INT,HWND,HMENU,HINSTANCE,LPVOID);
4109 HWND WINAPI CreateWindowExW(DWORD,LPCWSTR,LPCWSTR,DWORD,INT,INT,
4110 INT,INT,HWND,HMENU,HINSTANCE,LPVOID);
4111 #define CreateWindowEx WINELIB_NAME_AW(CreateWindowEx)
4112 HWINSTA WINAPI CreateWindowStationA(LPSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES);
4113 HWINSTA WINAPI CreateWindowStationW(LPWSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES);
4114 #define CreateWindowStation WINELIB_NAME_AW(CreateWindowStation)
4115 HWND WINAPI CreateMDIWindowA(LPCSTR,LPCSTR,DWORD,INT,INT,
4116 INT,INT,HWND,HINSTANCE,LPARAM);
4117 HWND WINAPI CreateMDIWindowW(LPCWSTR,LPCWSTR,DWORD,INT,INT,
4118 INT,INT,HWND,HINSTANCE,LPARAM);
4119 #define CreateMDIWindow WINELIB_NAME_AW(CreateMDIWindow)
4120 LRESULT WINAPI DefDlgProcA(HWND,UINT,WPARAM,LPARAM);
4121 LRESULT WINAPI DefDlgProcW(HWND,UINT,WPARAM,LPARAM);
4122 #define DefDlgProc WINELIB_NAME_AW(DefDlgProc)
4123 HDWP WINAPI DeferWindowPos(HDWP,HWND,HWND,INT,INT,INT,INT,UINT);
4124 LRESULT WINAPI DefFrameProcA(HWND,HWND,UINT,WPARAM,LPARAM);
4125 LRESULT WINAPI DefFrameProcW(HWND,HWND,UINT,WPARAM,LPARAM);
4126 #define DefFrameProc WINELIB_NAME_AW(DefFrameProc)
4127 #define DefHookProc(code,wparam,lparam,phhook) \
4128 CallNextHookEx(*(phhook),code,wparam,lparam)
4129 LRESULT WINAPI DefMDIChildProcA(HWND,UINT,WPARAM,LPARAM);
4130 LRESULT WINAPI DefMDIChildProcW(HWND,UINT,WPARAM,LPARAM);
4131 #define DefMDIChildProc WINELIB_NAME_AW(DefMDIChildProc)
4132 LRESULT WINAPI DefWindowProcA(HWND,UINT,WPARAM,LPARAM);
4133 LRESULT WINAPI DefWindowProcW(HWND,UINT,WPARAM,LPARAM);
4134 #define DefWindowProc WINELIB_NAME_AW(DefWindowProc)
4135 BOOL WINAPI DeleteMenu(HMENU,UINT,UINT);
4136 BOOL WINAPI DestroyCaret(void);
4137 BOOL WINAPI DestroyCursor(HCURSOR);
4138 BOOL WINAPI DestroyIcon(HICON);
4139 BOOL WINAPI DestroyMenu(HMENU);
4140 BOOL WINAPI DestroyWindow(HWND);
4141 #define DialogBoxA(inst,template,owner,func) \
4142 DialogBoxParamA(inst,template,owner,func,0)
4143 #define DialogBoxW(inst,template,owner,func) \
4144 DialogBoxParamW(inst,template,owner,func,0)
4145 #define DialogBox WINELIB_NAME_AW(DialogBox)
4146 #define DialogBoxIndirectA(inst,template,owner,func) \
4147 DialogBoxIndirectParamA(inst,template,owner,func,0)
4148 #define DialogBoxIndirectW(inst,template,owner,func) \
4149 DialogBoxIndirectParamW(inst,template,owner,func,0)
4150 #define DialogBoxIndirect WINELIB_NAME_AW(DialogBoxIndirect)
4151 INT_PTR WINAPI DialogBoxIndirectParamA(HINSTANCE,LPCDLGTEMPLATEA,HWND,DLGPROC,LPARAM);
4152 INT_PTR WINAPI DialogBoxIndirectParamW(HINSTANCE,LPCDLGTEMPLATEW,HWND,DLGPROC,LPARAM);
4153 #define DialogBoxIndirectParam WINELIB_NAME_AW(DialogBoxIndirectParam)
4154 INT_PTR WINAPI DialogBoxParamA(HINSTANCE,LPCSTR,HWND,DLGPROC,LPARAM);
4155 INT_PTR WINAPI DialogBoxParamW(HINSTANCE,LPCWSTR,HWND,DLGPROC,LPARAM);
4156 #define DialogBoxParam WINELIB_NAME_AW(DialogBoxParam)
4157 LONG WINAPI DispatchMessageA(const MSG*);
4158 LONG WINAPI DispatchMessageW(const MSG*);
4159 #define DispatchMessage WINELIB_NAME_AW(DispatchMessage)
4160 INT WINAPI DlgDirListA(HWND,LPSTR,INT,INT,UINT);
4161 INT WINAPI DlgDirListW(HWND,LPWSTR,INT,INT,UINT);
4162 #define DlgDirList WINELIB_NAME_AW(DlgDirList)
4163 INT WINAPI DlgDirListComboBoxA(HWND,LPSTR,INT,INT,UINT);
4164 INT WINAPI DlgDirListComboBoxW(HWND,LPWSTR,INT,INT,UINT);
4165 #define DlgDirListComboBox WINELIB_NAME_AW(DlgDirListComboBox)
4166 BOOL WINAPI DlgDirSelectComboBoxExA(HWND,LPSTR,INT,INT);
4167 BOOL WINAPI DlgDirSelectComboBoxExW(HWND,LPWSTR,INT,INT);
4168 #define DlgDirSelectComboBoxEx WINELIB_NAME_AW(DlgDirSelectComboBoxEx)
4169 BOOL WINAPI DlgDirSelectExA(HWND,LPSTR,INT,INT);
4170 BOOL WINAPI DlgDirSelectExW(HWND,LPWSTR,INT,INT);
4171 #define DlgDirSelectEx WINELIB_NAME_AW(DlgDirSelectEx)
4172 BOOL WINAPI DragDetect(HWND,POINT);
4173 DWORD WINAPI DragObject(HWND,HWND,UINT,ULONG_PTR,HCURSOR);
4174 BOOL WINAPI DrawAnimatedRects(HWND,int,const RECT*,const RECT*);
4175 BOOL WINAPI DrawCaption(HWND,HDC,const RECT*,UINT);
4176 BOOL WINAPI DrawCaptionTempA(HWND,HDC,const RECT*,HFONT,HICON,LPCSTR,UINT);
4177 BOOL WINAPI DrawCaptionTempW(HWND,HDC,const RECT*,HFONT,HICON,LPCWSTR,UINT);
4178 #define DrawCaptionTemp WINELIB_NAME_AW(DrawCaptionTemp)
4179 BOOL WINAPI DrawEdge(HDC,LPRECT,UINT,UINT);
4180 BOOL WINAPI DrawFocusRect(HDC,const RECT*);
4181 BOOL WINAPI DrawFrameControl(HDC,LPRECT,UINT,UINT);
4182 BOOL WINAPI DrawIcon(HDC,INT,INT,HICON);
4183 BOOL WINAPI DrawIconEx(HDC,INT,INT,HICON,INT,INT,UINT,HBRUSH,UINT);
4184 BOOL WINAPI DrawMenuBar(HWND);
4185 BOOL WINAPI DrawStateA(HDC,HBRUSH,DRAWSTATEPROC,LPARAM,WPARAM,INT,INT,INT,INT,UINT);
4186 BOOL WINAPI DrawStateW(HDC,HBRUSH,DRAWSTATEPROC,LPARAM,WPARAM,INT,INT,INT,INT,UINT);
4187 #define DrawState WINELIB_NAME_AW(DrawState)
4188 INT WINAPI DrawTextA(HDC,LPCSTR,INT,LPRECT,UINT);
4189 INT WINAPI DrawTextW(HDC,LPCWSTR,INT,LPRECT,UINT);
4190 #define DrawText WINELIB_NAME_AW(DrawText)
4191 INT WINAPI DrawTextExA(HDC,LPSTR,INT,LPRECT,UINT,LPDRAWTEXTPARAMS);
4192 INT WINAPI DrawTextExW(HDC,LPWSTR,INT,LPRECT,UINT,LPDRAWTEXTPARAMS);
4193 #define DrawTextEx WINELIB_NAME_AW(DrawTextEx)
4194 BOOL WINAPI EmptyClipboard(void);
4195 UINT WINAPI EnableMenuItem(HMENU,UINT,UINT);
4196 BOOL WINAPI EnableScrollBar(HWND,INT,UINT);
4197 BOOL WINAPI EnableWindow(HWND,BOOL);
4198 BOOL WINAPI EndDeferWindowPos(HDWP);
4199 BOOL WINAPI EndDialog(HWND,INT_PTR);
4200 BOOL WINAPI EndPaint(HWND,const PAINTSTRUCT*);
4201 BOOL WINAPI EnumChildWindows(HWND,WNDENUMPROC,LPARAM);
4202 UINT WINAPI EnumClipboardFormats(UINT);
4203 INT WINAPI EnumPropsA(HWND,PROPENUMPROCA);
4204 INT WINAPI EnumPropsW(HWND,PROPENUMPROCW);
4205 #define EnumProps WINELIB_NAME_AW(EnumProps)
4206 BOOL WINAPI EnumWindows(WNDENUMPROC,LPARAM);
4207 BOOL WINAPI EnumWindowStationsA(WINSTAENUMPROCA,LPARAM);
4208 BOOL WINAPI EnumWindowStationsW(WINSTAENUMPROCW,LPARAM);
4209 #define EnumWindowStations WINELIB_NAME_AW(EnumWindowStations)
4210 BOOL WINAPI EqualRect(const RECT*,const RECT*);
4211 INT WINAPI ExcludeUpdateRgn(HDC,HWND);
4212 #define ExitWindows(a,b) ExitWindowsEx(EWX_LOGOFF,0xffffffff)
4213 INT WINAPI FillRect(HDC,const RECT*,HBRUSH);
4214 HWND WINAPI FindWindowA(LPCSTR,LPCSTR);
4215 HWND WINAPI FindWindowW(LPCWSTR,LPCWSTR);
4216 #define FindWindow WINELIB_NAME_AW(FindWindow)
4217 HWND WINAPI FindWindowExA(HWND,HWND,LPCSTR,LPCSTR);
4218 HWND WINAPI FindWindowExW(HWND,HWND,LPCWSTR,LPCWSTR);
4219 #define FindWindowEx WINELIB_NAME_AW(FindWindowEx)
4220 BOOL WINAPI FlashWindow(HWND,BOOL);
4221 BOOL WINAPI FlashWindowEx(PFLASHWINFO);
4222 INT WINAPI FrameRect(HDC,const RECT*,HBRUSH);
4223 HWND WINAPI GetActiveWindow(void);
4224 HWND WINAPI GetAncestor(HWND,UINT);
4225 DWORD WINAPI GetAppCompatFlags(HTASK);
4226 SHORT WINAPI GetAsyncKeyState(INT);
4227 HWND WINAPI GetCapture(void);
4228 UINT WINAPI GetCaretBlinkTime(void);
4229 BOOL WINAPI GetCaretPos(LPPOINT);
4230 BOOL WINAPI GetClassInfoA(HINSTANCE,LPCSTR,WNDCLASSA *);
4231 BOOL WINAPI GetClassInfoW(HINSTANCE,LPCWSTR,WNDCLASSW *);
4232 #define GetClassInfo WINELIB_NAME_AW(GetClassInfo)
4233 BOOL WINAPI GetClassInfoExA(HINSTANCE,LPCSTR,WNDCLASSEXA *);
4234 BOOL WINAPI GetClassInfoExW(HINSTANCE,LPCWSTR,WNDCLASSEXW *);
4235 #define GetClassInfoEx WINELIB_NAME_AW(GetClassInfoEx)
4236 DWORD WINAPI GetClassLongA(HWND,INT);
4237 DWORD WINAPI GetClassLongW(HWND,INT);
4238 #define GetClassLong WINELIB_NAME_AW(GetClassLong)
4240 ULONG_PTR WINAPI GetClassLongPtrA(HWND,INT);
4241 ULONG_PTR WINAPI GetClassLongPtrW(HWND,INT);
4243 #define GetClassLongPtrA GetClassLongA
4244 #define GetClassLongPtrW GetClassLongW
4246 #define GetClassLongPtr WINELIB_NAME_AW(GetClassLongPtr)
4247 INT WINAPI GetClassNameA(HWND,LPSTR,INT);
4248 INT WINAPI GetClassNameW(HWND,LPWSTR,INT);
4249 #define GetClassName WINELIB_NAME_AW(GetClassName)
4250 WORD WINAPI GetClassWord(HWND,INT);
4251 BOOL WINAPI GetClientRect(HWND,LPRECT);
4252 HANDLE WINAPI GetClipboardData(UINT);
4253 INT WINAPI GetClipboardFormatNameA(UINT,LPSTR,INT);
4254 INT WINAPI GetClipboardFormatNameW(UINT,LPWSTR,INT);
4255 #define GetClipboardFormatName WINELIB_NAME_AW(GetClipboardFormatName)
4256 HWND WINAPI GetClipboardOwner(void);
4257 HWND WINAPI GetClipboardViewer(void);
4258 BOOL WINAPI GetClipCursor(LPRECT);
4259 HCURSOR WINAPI GetCursor(void);
4260 BOOL WINAPI GetCursorInfo(PCURSORINFO);
4261 BOOL WINAPI GetCursorPos(LPPOINT);
4262 HDC WINAPI GetDC(HWND);
4263 HDC WINAPI GetDCEx(HWND,HRGN,DWORD);
4264 HWND WINAPI GetDesktopWindow(void);
4265 INT WINAPI GetDlgCtrlID(HWND);
4266 HWND WINAPI GetDlgItem(HWND,INT);
4267 UINT WINAPI GetDlgItemInt(HWND,INT,BOOL*,BOOL);
4268 INT WINAPI GetDlgItemTextA(HWND,INT,LPSTR,UINT);
4269 INT WINAPI GetDlgItemTextW(HWND,INT,LPWSTR,UINT);
4270 #define GetDlgItemText WINELIB_NAME_AW(GetDlgItemText)
4271 UINT WINAPI GetDoubleClickTime(void);
4272 HWND WINAPI GetFocus(void);
4273 HWND WINAPI GetForegroundWindow(void);
4274 BOOL WINAPI GetGUIThreadInfo(DWORD,GUITHREADINFO*);
4275 BOOL WINAPI GetInputState(void);
4276 UINT WINAPI GetInternalWindowPos(HWND,LPRECT,LPPOINT);
4277 UINT WINAPI GetKBCodePage(void);
4278 INT WINAPI GetKeyboardType(INT);
4279 INT WINAPI GetKeyNameTextA(LONG,LPSTR,INT);
4280 INT WINAPI GetKeyNameTextW(LONG,LPWSTR,INT);
4281 #define GetKeyNameText WINELIB_NAME_AW(GetKeyNameText)
4282 BOOL WINAPI GetKeyboardLayoutNameA(LPSTR);
4283 BOOL WINAPI GetKeyboardLayoutNameW(LPWSTR);
4284 #define GetKeyboardLayoutName WINELIB_NAME_AW(GetKeyboardLayoutName)
4285 SHORT WINAPI GetKeyState(INT);
4286 HWND WINAPI GetLastActivePopup(HWND);
4287 BOOL WINAPI GetLastInputInfo(PLASTINPUTINFO);
4288 HMENU WINAPI GetMenu(HWND);
4289 INT WINAPI GetMenuItemCount(HMENU);
4290 UINT WINAPI GetMenuItemID(HMENU,INT);
4291 BOOL WINAPI GetMenuItemRect(HWND,HMENU,UINT,LPRECT);
4292 UINT WINAPI GetMenuState(HMENU,UINT,UINT);
4293 INT WINAPI GetMenuStringA(HMENU,UINT,LPSTR,INT,UINT);
4294 INT WINAPI GetMenuStringW(HMENU,UINT,LPWSTR,INT,UINT);
4295 #define GetMenuString WINELIB_NAME_AW(GetMenuString)
4296 BOOL WINAPI GetMessageA(LPMSG,HWND,UINT,UINT);
4297 BOOL WINAPI GetMessageW(LPMSG,HWND,UINT,UINT);
4298 #define GetMessage WINELIB_NAME_AW(GetMessage)
4299 HWND WINAPI GetNextDlgGroupItem(HWND,HWND,BOOL);
4300 HWND WINAPI GetNextDlgTabItem(HWND,HWND,BOOL);
4301 #define GetNextWindow GetWindow
4302 HWND WINAPI GetOpenClipboardWindow(void);
4303 HWND WINAPI GetParent(HWND);
4304 INT WINAPI GetPriorityClipboardFormat(UINT*,INT);
4305 BOOL WINAPI GetProcessDefaultLayout(DWORD*);
4306 HANDLE WINAPI GetPropA(HWND,LPCSTR);
4307 HANDLE WINAPI GetPropW(HWND,LPCWSTR);
4308 #define GetProp WINELIB_NAME_AW(GetProp)
4309 DWORD WINAPI GetQueueStatus(UINT);
4310 BOOL WINAPI GetScrollInfo(HWND,INT,LPSCROLLINFO);
4311 BOOL WINAPI GetScrollBarInfo(HWND,LONG,LPSCROLLBARINFO);
4312 INT WINAPI GetScrollPos(HWND,INT);
4313 BOOL WINAPI GetScrollRange(HWND,INT,LPINT,LPINT);
4314 HWND WINAPI GetShellWindow(void);
4315 HMENU WINAPI GetSubMenu(HMENU,INT);
4316 HBRUSH WINAPI GetSysColorBrush(INT);
4317 #define GetSysModalWindow() ((HWND)0)
4318 HMENU WINAPI GetSystemMenu(HWND,BOOL);
4319 INT WINAPI GetSystemMetrics(INT);
4320 DWORD WINAPI GetTabbedTextExtentA(HDC,LPCSTR,INT,INT,const INT*);
4321 DWORD WINAPI GetTabbedTextExtentW(HDC,LPCWSTR,INT,INT,const INT*);
4322 #define GetTabbedTextExtent WINELIB_NAME_AW(GetTabbedTextExtent)
4323 BOOL WINAPI GetTitleBarInfo(HWND,PTITLEBARINFO);
4324 HWND WINAPI GetTopWindow(HWND);
4325 BOOL WINAPI GetUpdateRect(HWND,LPRECT,BOOL);
4326 INT WINAPI GetUpdateRgn(HWND,HRGN,BOOL);
4327 BOOL WINAPI GetUserObjectInformationA(HANDLE,INT,LPVOID,DWORD,LPDWORD);
4328 BOOL WINAPI GetUserObjectInformationW(HANDLE,INT,LPVOID,DWORD,LPDWORD);
4329 #define GetUserObjectInformation WINELIB_NAME_AW(GetUserObjectInformation)
4330 HWND WINAPI GetWindow(HWND,UINT);
4331 HDC WINAPI GetWindowDC(HWND);
4332 BOOL WINAPI GetWindowInfo(HWND, PWINDOWINFO);
4333 LONG WINAPI GetWindowLongA(HWND,INT);
4334 LONG WINAPI GetWindowLongW(HWND,INT);
4335 #define GetWindowLong WINELIB_NAME_AW(GetWindowLong)
4337 LONG_PTR WINAPI GetWindowLongPtrA(HWND,INT);
4338 LONG_PTR WINAPI GetWindowLongPtrW(HWND,INT);
4340 #define GetWindowLongPtrA GetWindowLongA
4341 #define GetWindowLongPtrW GetWindowLongW
4343 #define GetWindowLongPtr WINELIB_NAME_AW(GetWindowLongPtr)
4344 UINT WINAPI GetWindowModuleFileNameA(HWND,LPSTR,UINT);
4345 UINT WINAPI GetWindowModuleFileNameW(HWND,LPWSTR,UINT);
4346 #define GetWindowModuleFileName WINELIB_NAME_AW(GetWindowModuleFileName)
4347 BOOL WINAPI GetWindowPlacement(HWND,LPWINDOWPLACEMENT);
4348 BOOL WINAPI GetWindowRect(HWND,LPRECT);
4349 INT WINAPI GetWindowRgn(HWND,HRGN);
4350 HWINSTA WINAPI GetProcessWindowStation(void);
4351 #define GetWindowTask(hwnd) ((HTASK)GetWindowThreadProcessId(hwnd,NULL))
4352 INT WINAPI GetWindowTextA(HWND,LPSTR,INT);
4353 INT WINAPI GetWindowTextW(HWND,LPWSTR,INT);
4354 #define GetWindowText WINELIB_NAME_AW(GetWindowText)
4355 INT WINAPI GetWindowTextLengthA(HWND);
4356 INT WINAPI GetWindowTextLengthW(HWND);
4357 #define GetWindowTextLength WINELIB_NAME_AW(GetWindowTextLength)
4358 WORD WINAPI GetWindowWord(HWND,INT);
4359 BOOL WINAPI GrayStringA(HDC,HBRUSH,GRAYSTRINGPROC,LPARAM,INT,INT,INT,INT,INT);
4360 BOOL WINAPI GrayStringW(HDC,HBRUSH,GRAYSTRINGPROC,LPARAM,INT,INT,INT,INT,INT);
4361 #define GrayString WINELIB_NAME_AW(GrayString)
4362 BOOL WINAPI HideCaret(HWND);
4363 BOOL WINAPI HiliteMenuItem(HWND,HMENU,UINT,UINT);
4364 BOOL WINAPI InflateRect(LPRECT,INT,INT);
4365 BOOL WINAPI InSendMessage(void);
4366 DWORD WINAPI InSendMessageEx(LPVOID);
4367 BOOL WINAPI InsertMenuA(HMENU,UINT,UINT,UINT_PTR,LPCSTR);
4368 BOOL WINAPI InsertMenuW(HMENU,UINT,UINT,UINT_PTR,LPCWSTR);
4369 #define InsertMenu WINELIB_NAME_AW(InsertMenu)
4370 BOOL WINAPI InsertMenuItemA(HMENU,UINT,BOOL,const MENUITEMINFOA*);
4371 BOOL WINAPI InsertMenuItemW(HMENU,UINT,BOOL,const MENUITEMINFOW*);
4372 #define InsertMenuItem WINELIB_NAME_AW(InsertMenuItem)
4373 INT WINAPI InternalGetWindowText(HWND,LPWSTR,INT);
4374 BOOL WINAPI IntersectRect(LPRECT,const RECT*,const RECT*);
4375 BOOL WINAPI InvalidateRect(HWND,const RECT*,BOOL);
4376 BOOL WINAPI InvalidateRgn(HWND,HRGN,BOOL);
4377 BOOL WINAPI InvertRect(HDC,const RECT*);
4378 BOOL WINAPI IsCharAlphaA(CHAR);
4379 BOOL WINAPI IsCharAlphaW(WCHAR);
4380 #define IsCharAlpha WINELIB_NAME_AW(IsCharAlpha)
4381 BOOL WINAPI IsCharAlphaNumericA(CHAR);
4382 BOOL WINAPI IsCharAlphaNumericW(WCHAR);
4383 #define IsCharAlphaNumeric WINELIB_NAME_AW(IsCharAlphaNumeric)
4384 BOOL WINAPI IsCharLowerA(CHAR);
4385 BOOL WINAPI IsCharLowerW(WCHAR);
4386 #define IsCharLower WINELIB_NAME_AW(IsCharLower)
4387 BOOL WINAPI IsCharUpperA(CHAR);
4388 BOOL WINAPI IsCharUpperW(WCHAR);
4389 #define IsCharUpper WINELIB_NAME_AW(IsCharUpper)
4390 BOOL WINAPI IsChild(HWND,HWND);
4391 BOOL WINAPI IsClipboardFormatAvailable(UINT);
4392 BOOL WINAPI IsDialogMessageA(HWND,LPMSG);
4393 BOOL WINAPI IsDialogMessageW(HWND,LPMSG);
4394 #define IsDialogMessage WINELIB_NAME_AW(IsDialogMessage)
4395 UINT WINAPI IsDlgButtonChecked(HWND,UINT);
4396 BOOL WINAPI IsIconic(HWND);
4397 BOOL WINAPI IsMenu(HMENU);
4398 BOOL WINAPI IsRectEmpty(const RECT*);
4399 BOOL WINAPI IsWindow(HWND);
4400 BOOL WINAPI IsWindowEnabled(HWND);
4401 BOOL WINAPI IsWindowVisible(HWND);
4402 BOOL WINAPI IsZoomed(HWND);
4403 BOOL WINAPI KillSystemTimer(HWND,UINT_PTR);
4404 BOOL WINAPI KillTimer(HWND,UINT_PTR);
4405 HACCEL WINAPI LoadAcceleratorsA(HINSTANCE,LPCSTR);
4406 HACCEL WINAPI LoadAcceleratorsW(HINSTANCE,LPCWSTR);
4407 #define LoadAccelerators WINELIB_NAME_AW(LoadAccelerators)
4408 HBITMAP WINAPI LoadBitmapA(HINSTANCE,LPCSTR);
4409 HBITMAP WINAPI LoadBitmapW(HINSTANCE,LPCWSTR);
4410 #define LoadBitmap WINELIB_NAME_AW(LoadBitmap)
4411 HCURSOR WINAPI LoadCursorA(HINSTANCE,LPCSTR);
4412 HCURSOR WINAPI LoadCursorW(HINSTANCE,LPCWSTR);
4413 #define LoadCursor WINELIB_NAME_AW(LoadCursor)
4414 HCURSOR WINAPI LoadCursorFromFileA(LPCSTR);
4415 HCURSOR WINAPI LoadCursorFromFileW(LPCWSTR);
4416 #define LoadCursorFromFile WINELIB_NAME_AW(LoadCursorFromFile)
4417 HICON WINAPI LoadIconA(HINSTANCE,LPCSTR);
4418 HICON WINAPI LoadIconW(HINSTANCE,LPCWSTR);
4419 #define LoadIcon WINELIB_NAME_AW(LoadIcon)
4420 HANDLE WINAPI LoadImageA(HINSTANCE,LPCSTR,UINT,INT,INT,UINT);
4421 HANDLE WINAPI LoadImageW(HINSTANCE,LPCWSTR,UINT,INT,INT,UINT);
4422 #define LoadImage WINELIB_NAME_AW(LoadImage)
4423 HMENU WINAPI LoadMenuA(HINSTANCE,LPCSTR);
4424 HMENU WINAPI LoadMenuW(HINSTANCE,LPCWSTR);
4425 #define LoadMenu WINELIB_NAME_AW(LoadMenu)
4426 HMENU WINAPI LoadMenuIndirectA(LPCVOID);
4427 HMENU WINAPI LoadMenuIndirectW(LPCVOID);
4428 #define LoadMenuIndirect WINELIB_NAME_AW(LoadMenuIndirect)
4429 INT WINAPI LoadStringA(HINSTANCE,UINT,LPSTR,INT);
4430 INT WINAPI LoadStringW(HINSTANCE,UINT,LPWSTR,INT);
4431 #define LoadString WINELIB_NAME_AW(LoadString)
4432 BOOL WINAPI LockWindowUpdate(HWND);
4433 INT WINAPI LookupIconIdFromDirectory(LPBYTE,BOOL);
4434 INT WINAPI LookupIconIdFromDirectoryEx(LPBYTE,BOOL,INT,INT,UINT);
4435 UINT WINAPI MapVirtualKeyA(UINT,UINT);
4436 UINT WINAPI MapVirtualKeyW(UINT,UINT);
4437 #define MapVirtualKey WINELIB_NAME_AW(MapVirtualKey)
4438 UINT WINAPI MapVirtualKeyExA(UINT,UINT,HKL);
4439 UINT WINAPI MapVirtualKeyExW(UINT,UINT,HKL);
4440 #define MapVirtualKeyEx WINELIB_NAME_AW(MapVirtualKeyEx)
4441 BOOL WINAPI MapDialogRect(HWND,LPRECT);
4442 INT WINAPI MapWindowPoints(HWND,HWND,LPPOINT,UINT);
4443 INT WINAPI MenuItemFromPoint(HWND,HMENU,POINT);
4444 BOOL WINAPI MessageBeep(UINT);
4445 INT WINAPI MessageBoxA(HWND,LPCSTR,LPCSTR,UINT);
4446 INT WINAPI MessageBoxW(HWND,LPCWSTR,LPCWSTR,UINT);
4447 #define MessageBox WINELIB_NAME_AW(MessageBox)
4448 INT WINAPI MessageBoxIndirectA(LPMSGBOXPARAMSA);
4449 INT WINAPI MessageBoxIndirectW(LPMSGBOXPARAMSW);
4450 #define MessageBoxIndirect WINELIB_NAME_AW(MessageBoxIndirect)
4451 BOOL WINAPI ModifyMenuA(HMENU,UINT,UINT,UINT_PTR,LPCSTR);
4452 BOOL WINAPI ModifyMenuW(HMENU,UINT,UINT,UINT_PTR,LPCWSTR);
4453 #define ModifyMenu WINELIB_NAME_AW(ModifyMenu)
4454 BOOL WINAPI MoveWindow(HWND,INT,INT,INT,INT,BOOL);
4455 BOOL WINAPI OemToCharA(LPCSTR,LPSTR);
4456 BOOL WINAPI OemToCharW(LPCSTR,LPWSTR);
4457 #define OemToChar WINELIB_NAME_AW(OemToChar)
4458 BOOL WINAPI OemToCharBuffA(LPCSTR,LPSTR,DWORD);
4459 BOOL WINAPI OemToCharBuffW(LPCSTR,LPWSTR,DWORD);
4460 #define OemToCharBuff WINELIB_NAME_AW(OemToCharBuff)
4461 BOOL WINAPI OffsetRect(LPRECT,INT,INT);
4462 BOOL WINAPI OpenClipboard(HWND);
4463 BOOL WINAPI OpenIcon(HWND);
4464 HDESK WINAPI OpenInputDesktop(DWORD,BOOL,ACCESS_MASK);
4465 HWINSTA WINAPI OpenWindowStationA(LPSTR,BOOL,ACCESS_MASK);
4466 HWINSTA WINAPI OpenWindowStationW(LPWSTR,BOOL,ACCESS_MASK);
4467 #define OpenWindowStation WINELIB_NAME_AW(OpenWindowStation)
4468 BOOL WINAPI PeekMessageA(LPMSG,HWND,UINT,UINT,UINT);
4469 BOOL WINAPI PeekMessageW(LPMSG,HWND,UINT,UINT,UINT);
4470 #define PeekMessage WINELIB_NAME_AW(PeekMessage)
4471 #define PostAppMessageA(thread,msg,wparam,lparam) \
4472 PostThreadMessageA((DWORD)(thread),msg,wparam,lparam)
4473 #define PostAppMessageW(thread,msg,wparam,lparam) \
4474 PostThreadMessageW((DWORD)(thread),msg,wparam,lparam)
4475 #define PostAppMessage WINELIB_NAME_AW(PostAppMessage)
4476 BOOL WINAPI PostMessageA(HWND,UINT,WPARAM,LPARAM);
4477 BOOL WINAPI PostMessageW(HWND,UINT,WPARAM,LPARAM);
4478 #define PostMessage WINELIB_NAME_AW(PostMessage)
4479 void WINAPI PostQuitMessage(INT);
4480 UINT WINAPI PrivateExtractIconExA(LPCSTR,int,HICON*,HICON*,UINT);
4481 UINT WINAPI PrivateExtractIconExW(LPCWSTR,int,HICON*,HICON*,UINT);
4482 UINT WINAPI PrivateExtractIconsA(LPCSTR,int,int,int,HICON*,UINT*,UINT,UINT);
4483 UINT WINAPI PrivateExtractIconsW(LPCWSTR,int,int,int,HICON*,UINT*,UINT,UINT);
4484 BOOL WINAPI PtInRect(const RECT*,POINT);
4485 UINT WINAPI RealGetWindowClassA(HWND,LPSTR,UINT);
4486 UINT WINAPI RealGetWindowClassW(HWND,LPWSTR,UINT);
4487 #define RealGetWindowClass WINELIB_NAME_AW(RealGetWindowClass)
4488 BOOL WINAPI RedrawWindow(HWND,const RECT*,HRGN,UINT);
4489 ATOM WINAPI RegisterClassA(const WNDCLASSA *);
4490 ATOM WINAPI RegisterClassW(const WNDCLASSW *);
4491 #define RegisterClass WINELIB_NAME_AW(RegisterClass)
4492 ATOM WINAPI RegisterClassExA(const WNDCLASSEXA *);
4493 ATOM WINAPI RegisterClassExW(const WNDCLASSEXW *);
4494 #define RegisterClassEx WINELIB_NAME_AW(RegisterClassEx)
4495 UINT WINAPI RegisterClipboardFormatA(LPCSTR);
4496 UINT WINAPI RegisterClipboardFormatW(LPCWSTR);
4497 #define RegisterClipboardFormat WINELIB_NAME_AW(RegisterClipboardFormat)
4498 WORD WINAPI RegisterWindowMessageA(LPCSTR);
4499 WORD WINAPI RegisterWindowMessageW(LPCWSTR);
4500 #define RegisterWindowMessage WINELIB_NAME_AW(RegisterWindowMessage)
4501 INT WINAPI ReleaseDC(HWND,HDC);
4502 BOOL WINAPI RemoveMenu(HMENU,UINT,UINT);
4503 HANDLE WINAPI RemovePropA(HWND,LPCSTR);
4504 HANDLE WINAPI RemovePropW(HWND,LPCWSTR);
4505 #define RemoveProp WINELIB_NAME_AW(RemoveProp)
4506 BOOL WINAPI ReplyMessage(LRESULT);
4507 BOOL WINAPI ScreenToClient(HWND,LPPOINT);
4508 VOID WINAPI ScrollChildren(HWND,UINT,WPARAM,LPARAM);
4509 BOOL WINAPI ScrollDC(HDC,INT,INT,const RECT*,const RECT*,HRGN,LPRECT);
4510 BOOL WINAPI ScrollWindow(HWND,INT,INT,const RECT*,const RECT*);
4511 INT WINAPI ScrollWindowEx(HWND,INT,INT,const RECT*,const RECT*,HRGN,LPRECT,UINT);
4512 LRESULT WINAPI SendDlgItemMessageA(HWND,INT,UINT,WPARAM,LPARAM);
4513 LRESULT WINAPI SendDlgItemMessageW(HWND,INT,UINT,WPARAM,LPARAM);
4514 #define SendDlgItemMessage WINELIB_NAME_AW(SendDlgItemMessage)
4515 UINT WINAPI SendInput(UINT,LPINPUT,int);
4516 LRESULT WINAPI SendMessageA(HWND,UINT,WPARAM,LPARAM);
4517 LRESULT WINAPI SendMessageW(HWND,UINT,WPARAM,LPARAM);
4518 #define SendMessage WINELIB_NAME_AW(SendMessage)
4519 LRESULT WINAPI SendMessageTimeoutA(HWND,UINT,WPARAM,LPARAM,UINT,UINT,PDWORD_PTR);
4520 LRESULT WINAPI SendMessageTimeoutW(HWND,UINT,WPARAM,LPARAM,UINT,UINT,PDWORD_PTR);
4521 #define SendMessageTimeout WINELIB_NAME_AW(SendMessageTimeout)
4522 HWND WINAPI SetActiveWindow(HWND);
4523 HWND WINAPI SetCapture(HWND);
4524 BOOL WINAPI SetCaretBlinkTime(UINT);
4525 BOOL WINAPI SetCaretPos(INT,INT);
4526 DWORD WINAPI SetClassLongA(HWND,INT,LONG);
4527 DWORD WINAPI SetClassLongW(HWND,INT,LONG);
4528 #define SetClassLong WINELIB_NAME_AW(SetClassLong)
4530 ULONG_PTR WINAPI SetClassLongPtrA(HWND,INT,LONG_PTR);
4531 ULONG_PTR WINAPI SetClassLongPtrW(HWND,INT,LONG_PTR);
4533 #define SetClassLongPtrA SetClassLongA
4534 #define SetClassLongPtrW SetClassLongW
4536 #define SetClassLongPtr WINELIB_NAME_AW(SetClassLongPtr)
4537 WORD WINAPI SetClassWord(HWND,INT,WORD);
4538 HANDLE WINAPI SetClipboardData(UINT,HANDLE);
4539 HWND WINAPI SetClipboardViewer(HWND);
4540 HCURSOR WINAPI SetCursor(HCURSOR);
4541 BOOL WINAPI SetCursorPos(INT,INT);
4542 BOOL WINAPI SetDeskWallPaper(LPCSTR);
4543 BOOL WINAPI SetDlgItemInt(HWND,INT,UINT,BOOL);
4544 BOOL WINAPI SetDlgItemTextA(HWND,INT,LPCSTR);
4545 BOOL WINAPI SetDlgItemTextW(HWND,INT,LPCWSTR);
4546 #define SetDlgItemText WINELIB_NAME_AW(SetDlgItemText)
4547 BOOL WINAPI SetDoubleClickTime(UINT);
4548 HWND WINAPI SetFocus(HWND);
4549 BOOL WINAPI SetForegroundWindow(HWND);
4550 void WINAPI SetInternalWindowPos(HWND,UINT,LPRECT,LPPOINT);
4551 BOOL WINAPI SetLayeredWindowAttributes(HWND,COLORREF,BYTE,DWORD);
4552 BOOL WINAPI SetMenu(HWND,HMENU);
4553 BOOL WINAPI SetMenuContextHelpId(HMENU,DWORD);
4554 BOOL WINAPI SetMenuItemBitmaps(HMENU,UINT,UINT,HBITMAP,HBITMAP);
4555 LPARAM WINAPI SetMessageExtraInfo(LPARAM);
4556 BOOL WINAPI SetMessageQueue(INT);
4557 BOOL WINAPI SetProcessDefaultLayout(DWORD);
4558 BOOL WINAPI SetProcessWindowStation(HWINSTA);
4559 HWND WINAPI SetParent(HWND,HWND);
4560 BOOL WINAPI SetPropA(HWND,LPCSTR,HANDLE);
4561 BOOL WINAPI SetPropW(HWND,LPCWSTR,HANDLE);
4562 #define SetProp WINELIB_NAME_AW(SetProp)
4563 BOOL WINAPI SetRect(LPRECT,INT,INT,INT,INT);
4564 BOOL WINAPI SetRectEmpty(LPRECT);
4565 INT WINAPI SetScrollInfo(HWND,INT,const SCROLLINFO*,BOOL);
4566 INT WINAPI SetScrollPos(HWND,INT,INT,BOOL);
4567 BOOL WINAPI SetScrollRange(HWND,INT,INT,INT,BOOL);
4568 #define SetSysModalWindow(hwnd) ((HWND)0)
4569 BOOL WINAPI SetSystemCursor(HCURSOR,DWORD);
4570 BOOL WINAPI SetSystemMenu(HWND,HMENU);
4571 UINT_PTR WINAPI SetSystemTimer(HWND,UINT_PTR,UINT,TIMERPROC);
4572 UINT_PTR WINAPI SetTimer(HWND,UINT_PTR,UINT,TIMERPROC);
4573 BOOL WINAPI SetUserObjectSecurity(HANDLE,PSECURITY_INFORMATION,PSECURITY_DESCRIPTOR);
4574 LONG WINAPI SetWindowLongA(HWND,INT,LONG);
4575 LONG WINAPI SetWindowLongW(HWND,INT,LONG);
4576 #define SetWindowLong WINELIB_NAME_AW(SetWindowLong)
4578 LONG_PTR WINAPI SetWindowLongPtrA(HWND,INT,LONG_PTR);
4579 LONG_PTR WINAPI SetWindowLongPtrW(HWND,INT,LONG_PTR);
4581 #define SetWindowLongPtrA SetWindowLongA
4582 #define SetWindowLongPtrW SetWindowLongW
4584 #define SetWindowLongPtr WINELIB_NAME_AW(SetWindowLongPtr)
4585 BOOL WINAPI SetWindowPlacement(HWND,const WINDOWPLACEMENT*);
4586 HHOOK WINAPI SetWindowsHookA(INT,HOOKPROC);
4587 HHOOK WINAPI SetWindowsHookW(INT,HOOKPROC);
4588 #define SetWindowsHook WINELIB_NAME_AW(SetWindowsHook)
4589 HHOOK WINAPI SetWindowsHookExA(INT,HOOKPROC,HINSTANCE,DWORD);
4590 HHOOK WINAPI SetWindowsHookExW(INT,HOOKPROC,HINSTANCE,DWORD);
4591 #define SetWindowsHookEx WINELIB_NAME_AW(SetWindowsHookEx)
4592 BOOL WINAPI SetWindowPos(HWND,HWND,INT,INT,INT,INT,UINT);
4593 INT WINAPI SetWindowRgn(HWND,HRGN,BOOL);
4594 BOOL WINAPI SetWindowTextA(HWND,LPCSTR);
4595 BOOL WINAPI SetWindowTextW(HWND,LPCWSTR);
4596 #define SetWindowText WINELIB_NAME_AW(SetWindowText)
4597 WORD WINAPI SetWindowWord(HWND,INT,WORD);
4598 BOOL WINAPI ShowCaret(HWND);
4599 INT WINAPI ShowCursor(BOOL);
4600 BOOL WINAPI ShowScrollBar(HWND,INT,BOOL);
4601 BOOL WINAPI ShowOwnedPopups(HWND,BOOL);
4602 BOOL WINAPI ShowWindow(HWND,INT);
4603 BOOL WINAPI ShowWindowAsync(HWND,INT);
4604 BOOL WINAPI SubtractRect(LPRECT,const RECT*,const RECT*);
4605 BOOL WINAPI SwapMouseButton(BOOL);
4606 VOID WINAPI SwitchToThisWindow(HWND,BOOL);
4607 BOOL WINAPI SystemParametersInfoA(UINT,UINT,LPVOID,UINT);
4608 BOOL WINAPI SystemParametersInfoW(UINT,UINT,LPVOID,UINT);
4609 #define SystemParametersInfo WINELIB_NAME_AW(SystemParametersInfo)
4610 LONG WINAPI TabbedTextOutA(HDC,INT,INT,LPCSTR,INT,INT,const INT*,INT);
4611 LONG WINAPI TabbedTextOutW(HDC,INT,INT,LPCWSTR,INT,INT,const INT*,INT);
4612 #define TabbedTextOut WINELIB_NAME_AW(TabbedTextOut)
4613 INT WINAPI ToAscii(UINT,UINT,LPBYTE,LPWORD,UINT);
4614 INT WINAPI ToAsciiEx(UINT,UINT,LPBYTE,LPWORD,UINT,HKL);
4615 BOOL WINAPI TrackMouseEvent(LPTRACKMOUSEEVENT);
4616 BOOL WINAPI TrackPopupMenu(HMENU,UINT,INT,INT,INT,HWND,const RECT*);
4617 INT WINAPI TranslateAcceleratorA(HWND,HACCEL,LPMSG);
4618 INT WINAPI TranslateAcceleratorW(HWND,HACCEL,LPMSG);
4619 #define TranslateAccelerator WINELIB_NAME_AW(TranslateAccelerator)
4620 BOOL WINAPI TranslateMDISysAccel(HWND,LPMSG);
4621 BOOL WINAPI TranslateMessage(const MSG*);
4622 BOOL WINAPI UnhookWindowsHook(INT,HOOKPROC);
4623 BOOL WINAPI UnhookWindowsHookEx(HHOOK);
4624 BOOL WINAPI UnionRect(LPRECT,const RECT*,const RECT*);
4625 BOOL WINAPI UnregisterClassA(LPCSTR,HINSTANCE);
4626 BOOL WINAPI UnregisterClassW(LPCWSTR,HINSTANCE);
4627 #define UnregisterClass WINELIB_NAME_AW(UnregisterClass)
4628 BOOL WINAPI UpdateWindow(HWND);
4629 UINT WINAPI UserRealizePalette(HDC);
4630 BOOL WINAPI ValidateRect(HWND,const RECT*);
4631 BOOL WINAPI ValidateRgn(HWND,HRGN);
4632 SHORT WINAPI VkKeyScanA(CHAR);
4633 SHORT WINAPI VkKeyScanW(WCHAR);
4634 #define VkKeyScan WINELIB_NAME_AW(VkKeyScan)
4635 WORD WINAPI VkKeyScanExA(CHAR, HKL);
4636 WORD WINAPI VkKeyScanExW(WCHAR, HKL);
4637 #define VkKeyScanEx WINELIB_NAME_AW(VkKeyScanEx)
4638 BOOL WINAPI WaitMessage(void);
4639 HWND WINAPI WindowFromDC(HDC);
4640 HWND WINAPI WindowFromPoint(POINT);
4641 BOOL WINAPI WinHelpA(HWND,LPCSTR,UINT,ULONG_PTR);
4642 BOOL WINAPI WinHelpW(HWND,LPCWSTR,UINT,ULONG_PTR);
4643 #define WinHelp WINELIB_NAME_AW(WinHelp)
4644 INT WINAPIV wsprintfA(LPSTR,LPCSTR,...);
4645 INT WINAPIV wsprintfW(LPWSTR,LPCWSTR,...);
4646 #define wsprintf WINELIB_NAME_AW(wsprintf)
4647 INT WINAPI wvsprintfA(LPSTR,LPCSTR,va_list);
4648 INT WINAPI wvsprintfW(LPWSTR,LPCWSTR,va_list);
4649 #define wvsprintf WINELIB_NAME_AW(wvsprintf)
4651 /* Undocumented functions */
4653 /* NOTE: This is SYSTEM.3, not USER.182, which is also named KillSystemTimer */
4654 WORD WINAPI SYSTEM_KillSystemTimer( WORD );
4660 #endif /* _WINUSER_ */