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