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