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_) && !defined(WINE_UNIX_LIB)
23 #define WINUSERAPI DECLSPEC_HIDDEN
38 /* Define a bunch of callback types */
41 typedef INT_PTR (CALLBACK
*DLGPROC
)(HWND
,UINT
,WPARAM
,LPARAM
);
42 typedef BOOL (CALLBACK
*DRAWSTATEPROC
)(HDC
,LPARAM
,WPARAM
,int,int);
43 typedef INT (CALLBACK
*EDITWORDBREAKPROCA
)(LPSTR
,INT
,INT
,INT
);
44 typedef INT (CALLBACK
*EDITWORDBREAKPROCW
)(LPWSTR
,INT
,INT
,INT
);
45 typedef BOOL (CALLBACK
*GRAYSTRINGPROC
)(HDC
,LPARAM
,INT
);
46 typedef LRESULT (CALLBACK
*HOOKPROC
)(INT
,WPARAM
,LPARAM
);
47 typedef BOOL (CALLBACK
*NAMEENUMPROCA
)(LPSTR
,LPARAM
);
48 typedef BOOL (CALLBACK
*NAMEENUMPROCW
)(LPWSTR
,LPARAM
);
49 typedef BOOL (CALLBACK
*PROPENUMPROCA
)(HWND
,LPCSTR
,HANDLE
);
50 typedef BOOL (CALLBACK
*PROPENUMPROCW
)(HWND
,LPCWSTR
,HANDLE
);
51 typedef BOOL (CALLBACK
*PROPENUMPROCEXA
)(HWND
,LPSTR
,HANDLE
,ULONG_PTR
);
52 typedef BOOL (CALLBACK
*PROPENUMPROCEXW
)(HWND
,LPWSTR
,HANDLE
,ULONG_PTR
);
53 typedef VOID (CALLBACK
*SENDASYNCPROC
)(HWND
,UINT
,ULONG_PTR
,LRESULT
);
54 typedef VOID (CALLBACK
*TIMERPROC
)(HWND
,UINT
,UINT_PTR
,DWORD
);
55 typedef VOID (CALLBACK
*WINEVENTPROC
)(HWINEVENTHOOK
,DWORD
,HWND
,LONG
,LONG
,
57 typedef BOOL (CALLBACK
*WNDENUMPROC
)(HWND
,LPARAM
);
60 typedef FARPROC DLGPROC
;
61 typedef FARPROC DRAWSTATEPROC
;
62 typedef FARPROC EDITWORDBREAKPROCA
;
63 typedef FARPROC EDITWORDBREAKPROCW
;
64 typedef FARPROC GRAYSTRINGPROC
;
65 typedef FARPROC HOOKPROC
;
66 typedef FARPROC NAMEENUMPROCA
;
67 typedef FARPROC NAMEENUMPROCW
;
68 typedef FARPROC PROPENUMPROCA
;
69 typedef FARPROC PROPENUMPROCW
;
70 typedef FARPROC PROPENUMPROCEXA
;
71 typedef FARPROC PROPENUMPROCEXW
;
72 typedef FARPROC SENDASYNCPROC
;
73 typedef FARPROC TIMERPROC
;
74 typedef FARPROC WINEVENTPROC
;
75 typedef FARPROC WNDENUMPROC
;
78 typedef NAMEENUMPROCA WINSTAENUMPROCA
;
79 typedef NAMEENUMPROCA DESKTOPENUMPROCA
;
80 typedef NAMEENUMPROCW WINSTAENUMPROCW
;
81 typedef NAMEENUMPROCW DESKTOPENUMPROCW
;
83 typedef LRESULT (CALLBACK
*WNDPROC
)(HWND
,UINT
,WPARAM
,LPARAM
);
85 DECL_WINELIB_TYPE_AW(DESKTOPENUMPROC
)
86 DECL_WINELIB_TYPE_AW(EDITWORDBREAKPROC
)
87 DECL_WINELIB_TYPE_AW(NAMEENUMPROC
)
88 DECL_WINELIB_TYPE_AW(PROPENUMPROC
)
89 DECL_WINELIB_TYPE_AW(PROPENUMPROCEX
)
90 DECL_WINELIB_TYPE_AW(WINSTAENUMPROC
)
94 typedef void* HPOWERNOTIFY
;
99 #define UOI_USER_SID 4
101 #define WSF_VISIBLE 1
102 #define DF_ALLOWOTHERACCOUNTHOOK 1
104 #define CWF_CREATE_ONLY 0x01
106 typedef struct tagUSEROBJECTFLAGS
{
110 } USEROBJECTFLAGS
, *PUSEROBJECTFLAGS
;
112 typedef struct tagBSMINFO
{
117 } BSMINFO
, *PBSMINFO
;
119 /* Window stations */
120 #define WINSTA_ENUMDESKTOPS 0x0001
121 #define WINSTA_READATTRIBUTES 0x0002
122 #define WINSTA_ACCESSCLIPBOARD 0x0004
123 #define WINSTA_CREATEDESKTOP 0x0008
124 #define WINSTA_WRITEATTRIBUTES 0x0010
125 #define WINSTA_ACCESSGLOBALATOMS 0x0020
126 #define WINSTA_EXITWINDOWS 0x0040
127 #define WINSTA_ENUMERATE 0x0100
128 #define WINSTA_READSCREEN 0x0200
129 #define WINSTA_ALL_ACCESS 0x037f
132 #define DESKTOP_READOBJECTS 0x0001
133 #define DESKTOP_CREATEWINDOW 0x0002
134 #define DESKTOP_CREATEMENU 0x0004
135 #define DESKTOP_HOOKCONTROL 0x0008
136 #define DESKTOP_JOURNALRECORD 0x0010
137 #define DESKTOP_JOURNALPLAYBACK 0x0020
138 #define DESKTOP_ENUMERATE 0x0040
139 #define DESKTOP_WRITEOBJECTS 0x0080
140 #define DESKTOP_SWITCHDESKTOP 0x0100
143 /* flags for FILTERKEYS dwFlags field */
144 #define FKF_AVAILABLE 0x00000002
145 #define FKF_CLICKON 0x00000040
146 #define FKF_FILTERKEYSON 0x00000001
147 #define FKF_HOTKEYACTIVE 0x00000004
148 #define FKF_HOTKEYSOUND 0x00000010
149 #define FKF_CONFIRMHOTKEY 0x00000008
150 #define FKF_INDICATOR 0x00000020
152 typedef struct tagFILTERKEYS
160 } FILTERKEYS
, *LPFILTERKEYS
;
162 /* flags for TOGGLEKEYS dwFlags field */
163 #define TKF_AVAILABLE 0x00000002
164 #define TKF_CONFIRMHOTKEY 0x00000008
165 #define TKF_HOTKEYACTIVE 0x00000004
166 #define TKF_HOTKEYSOUND 0x00000010
167 #define TKF_TOGGLEKEYSON 0x00000001
169 typedef struct tagTOGGLEKEYS
173 } TOGGLEKEYS
, *LPTOGGLEKEYS
;
175 /* flags for MOUSEKEYS dwFlags field */
176 #define MKF_AVAILABLE 0x00000002
177 #define MKF_CONFIRMHOTKEY 0x00000008
178 #define MKF_HOTKEYACTIVE 0x00000004
179 #define MKF_HOTKEYSOUND 0x00000010
180 #define MKF_INDICATOR 0x00000020
181 #define MKF_MOUSEKEYSON 0x00000001
182 #define MKF_MODIFIERS 0x00000040
183 #define MKF_REPLACENUMBERS 0x00000080
185 typedef struct tagMOUSEKEYS
190 DWORD iTimeToMaxSpeed
;
194 } MOUSEKEYS
, *LPMOUSEKEYS
;
196 /* struct and defines for GetMouseMovePointsEx */
197 #define GMMP_USE_DISPLAY_POINTS 1
198 #define GMMP_USE_HIGH_RESOLUTION_POINTS 2
200 typedef struct tagMOUSEMOVEPOINT
{
204 ULONG_PTR dwExtraInfo
;
205 } MOUSEMOVEPOINT
,*PMOUSEMOVEPOINT
,*LPMOUSEMOVEPOINT
;
207 /* flags for STICKYKEYS dwFlags field */
208 #define SKF_AUDIBLEFEEDBACK 0x00000040
209 #define SKF_AVAILABLE 0x00000002
210 #define SKF_CONFIRMHOTKEY 0x00000008
211 #define SKF_HOTKEYACTIVE 0x00000004
212 #define SKF_HOTKEYSOUND 0x00000010
213 #define SKF_INDICATOR 0x00000020
214 #define SKF_STICKYKEYSON 0x00000001
215 #define SKF_TRISTATE 0x00000080
216 #define SKF_TWOKEYSOFF 0x00000100
218 typedef struct tagSTICKYKEYS
222 } STICKYKEYS
, *LPSTICKYKEYS
;
224 /* flags for ACCESSTIMEOUT dwFlags field */
225 #define ATF_ONOFFFEEDBACK 0x00000002
226 #define ATF_AVAILABLE 0x00000004
227 #define ATF_TIMEOUTON 0x00000001
229 typedef struct tagACCESSTIMEOUT
234 } ACCESSTIMEOUT
, *LPACCESSTIMEOUT
;
236 /* flags for SERIALKEYS dwFlags field */
237 #define SERKF_ACTIVE 0x00000008
238 #define SERKF_AVAILABLE 0x00000002
239 #define SERKF_INDICATOR 0x00000004
240 #define SERKF_SERIALKEYSON 0x00000001
242 typedef struct tagSERIALKEYSA
246 LPSTR lpszActivePort
;
251 } SERIALKEYSA
, *LPSERIALKEYSA
;
253 typedef struct tagSERIALKEYSW
{
256 LPWSTR lpszActivePort
;
261 } SERIALKEYSW
,*LPSERIALKEYSW
;
263 DECL_WINELIB_TYPE_AW(SERIALKEYS
)
264 DECL_WINELIB_TYPE_AW(LPSERIALKEYS
)
266 /* flags for SOUNDSENTRY dwFlags field */
267 #define SSF_AVAILABLE 0x00000002
268 #define SSF_SOUNDSENTRYON 0x00000001
270 #define SSTF_BORDER 0x00000002
271 #define SSTF_CHARS 0x00000001
272 #define SSTF_DISPLAY 0x00000003
273 #define SSTF_NONE 0x00000000
275 #define SSGF_DISPLAY 0x00000003
276 #define SSGF_NONE 0x00000000
278 #define SSWF_DISPLAY 0x00000003
279 #define SSWF_NONE 0x00000000
280 #define SSWF_TITLE 0x00000001
281 #define SSWF_WINDOW 0x00000002
283 typedef struct tagSOUNDSENTRYA
288 DWORD iFSTextEffectMSec
;
289 DWORD iFSTextEffectColorBits
;
291 DWORD iFSGrafEffectMSec
;
292 DWORD iFSGrafEffectColor
;
293 DWORD iWindowsEffect
;
294 DWORD iWindowsEffectMSec
;
295 LPSTR lpszWindowsEffectDLL
;
296 DWORD iWindowsEffectOrdinal
;
297 } SOUNDSENTRYA
, *LPSOUNDSENTRYA
;
299 typedef struct tagSOUNDSENTRYW
304 DWORD iFSTextEffectMSec
;
305 DWORD iFSTextEffectColorBits
;
307 DWORD iFSGrafEffectMSec
;
308 DWORD iFSGrafEffectColor
;
309 DWORD iWindowsEffect
;
310 DWORD iWindowsEffectMSec
;
311 LPWSTR lpszWindowsEffectDLL
;
312 DWORD iWindowsEffectOrdinal
;
313 } SOUNDSENTRYW
, *LPSOUNDSENTRYW
;
315 DECL_WINELIB_TYPE_AW(SOUNDSENTRY
)
316 DECL_WINELIB_TYPE_AW(LPSOUNDSENTRY
)
318 /* flags for HIGHCONTRAST dwFlags field */
319 #define HCF_HIGHCONTRASTON 0x00000001
320 #define HCF_AVAILABLE 0x00000002
321 #define HCF_HOTKEYACTIVE 0x00000004
322 #define HCF_CONFIRMHOTKEY 0x00000008
323 #define HCF_HOTKEYSOUND 0x00000010
324 #define HCF_INDICATOR 0x00000020
325 #define HCF_HOTKEYAVAILABLE 0x00000040
327 typedef struct tagHIGHCONTRASTA
331 LPSTR lpszDefaultScheme
;
332 } HIGHCONTRASTA
, *LPHIGHCONTRASTA
;
334 typedef struct tagHIGHCONTRASTW
338 LPWSTR lpszDefaultScheme
;
339 } HIGHCONTRASTW
, *LPHIGHCONTRASTW
;
341 DECL_WINELIB_TYPE_AW(HIGHCONTRAST
)
342 DECL_WINELIB_TYPE_AW(LPHIGHCONTRAST
)
344 typedef struct tagEVENTMSG
351 } EVENTMSG
, *PEVENTMSG
, *LPEVENTMSG
;
353 /* WH_KEYBOARD_LL structure */
354 typedef struct tagKBDLLHOOKSTRUCT
360 ULONG_PTR dwExtraInfo
;
361 } KBDLLHOOKSTRUCT
, *LPKBDLLHOOKSTRUCT
, *PKBDLLHOOKSTRUCT
;
363 #define LLKHF_EXTENDED (KF_EXTENDED >> 8)
364 #define LLKHF_INJECTED 0x00000010
365 #define LLKHF_ALTDOWN (KF_ALTDOWN >> 8)
366 #define LLKHF_UP (KF_UP >> 8)
368 /* WH_MOUSE_LL structure */
369 typedef struct tagMSLLHOOKSTRUCT
375 ULONG_PTR dwExtraInfo
;
376 } MSLLHOOKSTRUCT
, *LPMSLLHOOKSTRUCT
, *PMSLLHOOKSTRUCT
;
378 #define LLMHF_INJECTED 0x00000001
380 /* Mouse hook structure */
387 ULONG_PTR dwExtraInfo
;
388 } MOUSEHOOKSTRUCT
, *PMOUSEHOOKSTRUCT
, *LPMOUSEHOOKSTRUCT
;
392 struct { /* MOUSEHOOKSTRUCT */
396 ULONG_PTR dwExtraInfo
;
399 } MOUSEHOOKSTRUCTEX
, *PMOUSEHOOKSTRUCTEX
, *LPMOUSEHOOKSTRUCTEX
;
402 /* Hardware hook structure */
410 } HARDWAREHOOKSTRUCT
, *PHARDWAREHOOKSTRUCT
, *LPHARDWAREHOOKSTRUCT
;
413 /* Debug hook structure */
415 typedef struct tagDEBUGHOOKINFO
418 DWORD idThreadInstaller
;
422 } DEBUGHOOKINFO
, *PDEBUGHOOKINFO
, *LPDEBUGHOOKINFO
;
427 #define KLF_ACTIVATE 0x00000001
428 #define KLF_SUBSTITUTE_OK 0x00000002
429 #define KLF_UNLOADPREVIOUS 0x00000004
430 #define KLF_REORDER 0x00000008
431 #define KLF_REPLACELANG 0x00000010
432 #define KLF_NOTELLSHELL 0x00000080
433 #define KLF_SETFORPROCESS 0x00000100
434 #define KLF_SHIFTLOCK 0x00010000
435 #define KLF_RESET 0x40000000
437 #define KL_NAMELENGTH 9
439 typedef struct tagMOUSEINPUT
446 ULONG_PTR dwExtraInfo
;
447 } MOUSEINPUT
, *PMOUSEINPUT
, *LPMOUSEINPUT
;
449 typedef struct tagKEYBDINPUT
455 ULONG_PTR dwExtraInfo
;
456 } KEYBDINPUT
, *PKEYBDINPUT
, *LPKEYBDINPUT
;
458 typedef struct tagHARDWAREINPUT
463 } HARDWAREINPUT
, *PHARDWAREINPUT
, *LPHARDWAREINPUT
;
465 #define INPUT_MOUSE 0
466 #define INPUT_KEYBOARD 1
467 #define INPUT_HARDWARE 2
469 typedef struct tagINPUT
478 } INPUT
, *PINPUT
, *LPINPUT
;
480 DECLARE_HANDLE(HRAWINPUT
);
482 typedef struct tagRAWINPUTDEVICELIST
486 } RAWINPUTDEVICELIST
, *PRAWINPUTDEVICELIST
;
488 typedef struct tagRAWHID
{
494 typedef struct tagRAWKEYBOARD
{
500 ULONG ExtraInformation
;
501 } RAWKEYBOARD
, *PRAWKEYBOARD
, *LPRAWKEYBOARD
;
503 typedef struct tagRAWMOUSE
{
508 USHORT usButtonFlags
;
515 ULONG ulExtraInformation
;
516 } RAWMOUSE
, *PRAWMOUSE
, *LPRAWMOUSE
;
518 typedef struct tagRAWINPUTHEADER
{
523 } RAWINPUTHEADER
, *PRAWINPUTHEADER
;
525 typedef struct tagRAWINPUT
{
526 RAWINPUTHEADER header
;
529 RAWKEYBOARD keyboard
;
532 } RAWINPUT
, *PRAWINPUT
, *LPRAWINPUT
;
534 typedef struct tagRAWINPUTDEVICE
{
539 } RAWINPUTDEVICE
, *PRAWINPUTDEVICE
, *LPRAWINPUTDEVICE
;
541 typedef struct tagRID_DEVICE_INFO_MOUSE
{
543 DWORD dwNumberOfButtons
;
545 BOOL fHasHorizontalWheel
;
546 } RID_DEVICE_INFO_MOUSE
, *PRID_DEVICE_INFO_MOUSE
;
548 typedef struct tagRID_DEVICE_INFO_KEYBOARD
{
551 DWORD dwKeyboardMode
;
552 DWORD dwNumberOfFunctionKeys
;
553 DWORD dwNumberOfIndicators
;
554 DWORD dwNumberOfKeysTotal
;
555 } RID_DEVICE_INFO_KEYBOARD
, *PRID_DEVICE_INFO_KEYBOARD
;
557 typedef struct tagRID_DEVICE_INFO_HID
{
560 DWORD dwVersionNumber
;
563 } RID_DEVICE_INFO_HID
, *PRID_DEVICE_INFO_HID
;
565 typedef struct tagRID_DEVICE_INFO
{
569 RID_DEVICE_INFO_MOUSE mouse
;
570 RID_DEVICE_INFO_KEYBOARD keyboard
;
571 RID_DEVICE_INFO_HID hid
;
573 } RID_DEVICE_INFO
, *PRID_DEVICE_INFO
, *LPRID_DEVICE_INFO
;
575 #define GET_RAWINPUT_CODE_WPARAM(wParam) ((wParam) & 0xff)
578 #define RIM_INPUTSINK 1
580 #define RIM_TYPEMOUSE 0
581 #define RIM_TYPEKEYBOARD 1
582 #define RIM_TYPEHID 2
584 #define RI_MOUSE_LEFT_BUTTON_DOWN 0x0001
585 #define RI_MOUSE_LEFT_BUTTON_UP 0x0002
586 #define RI_MOUSE_RIGHT_BUTTON_DOWN 0x0004
587 #define RI_MOUSE_RIGHT_BUTTON_UP 0x0008
588 #define RI_MOUSE_MIDDLE_BUTTON_DOWN 0x0010
589 #define RI_MOUSE_MIDDLE_BUTTON_UP 0x0020
591 #define RI_MOUSE_BUTTON_1_DOWN RI_MOUSE_LEFT_BUTTON_DOWN
592 #define RI_MOUSE_BUTTON_1_UP RI_MOUSE_LEFT_BUTTON_UP
593 #define RI_MOUSE_BUTTON_2_DOWN RI_MOUSE_RIGHT_BUTTON_DOWN
594 #define RI_MOUSE_BUTTON_2_UP RI_MOUSE_RIGHT_BUTTON_UP
595 #define RI_MOUSE_BUTTON_3_DOWN RI_MOUSE_MIDDLE_BUTTON_DOWN
596 #define RI_MOUSE_BUTTON_3_UP RI_MOUSE_MIDDLE_BUTTON_UP
598 #define RI_MOUSE_BUTTON_4_DOWN 0x0040
599 #define RI_MOUSE_BUTTON_4_UP 0x0080
600 #define RI_MOUSE_BUTTON_5_DOWN 0x0100
601 #define RI_MOUSE_BUTTON_5_UP 0x0200
602 #define RI_MOUSE_WHEEL 0x0400
603 #define RI_MOUSE_HORIZONTAL_WHEEL 0x0800
605 #define MOUSE_MOVE_RELATIVE 0x00
606 #define MOUSE_MOVE_ABSOLUTE 0x01
607 #define MOUSE_VIRTUAL_DESKTOP 0x02
608 #define MOUSE_ATTRIBUTES_CHANGED 0x04
609 #define MOUSE_MOVE_NOCOALESCE 0x08
611 #define KEYBOARD_OVERRUN_MAKE_CODE 0xFF
613 #define RI_KEY_MAKE 0x00
614 #define RI_KEY_BREAK 0x01
615 #define RI_KEY_E0 0x02
616 #define RI_KEY_E1 0x04
617 #define RI_KEY_TERMSRV_SET_LED 0x08
618 #define RI_KEY_TERMSRV_SHADOW 0x10
620 #define RAWINPUT_ALIGN(x) (((x) + sizeof(DWORD_PTR) - 1) & ~(sizeof(DWORD_PTR) - 1))
621 #define NEXTRAWINPUTBLOCK(ptr) ((PRAWINPUT)RAWINPUT_ALIGN((ULONG_PTR)((PBYTE)(ptr) + (ptr)->header.dwSize)))
623 #define RID_INPUT 0x10000003
624 #define RID_HEADER 0x10000005
626 #define RIDI_PREPARSEDDATA 0x20000005
627 #define RIDI_DEVICENAME 0x20000007
628 #define RIDI_DEVICEINFO 0x2000000b
630 #define RIDEV_REMOVE 0x00000001
631 #define RIDEV_EXCLUDE 0x00000010
632 #define RIDEV_PAGEONLY 0x00000020
633 #define RIDEV_NOLEGACY 0x00000030
634 #define RIDEV_INPUTSINK 0x00000100
635 #define RIDEV_CAPTUREMOUSE 0x00000200
636 #define RIDEV_NOHOTKEYS 0x00000200
637 #define RIDEV_APPKEYS 0x00000400
638 #define RIDEV_EXINPUTSINK 0x00001000
639 #define RIDEV_DEVNOTIFY 0x00002000
640 #define RIDEV_EXMODEMASK 0x000000F0
642 #define RIDEV_EXMODE(mode) ((mode) & RIDEV_EXMODEMASK)
644 typedef struct tagGESTURECONFIG
{
648 } GESTURECONFIG
, *PGESTURECONFIG
;
650 #define GIDC_ARRIVAL 1
651 #define GIDC_REMOVAL 2
653 #define GC_PAN 0x00000001
654 #define GC_PAN_WITH_SINGLE_FINGER_VERTICALLY 0x00000002
655 #define GC_PAN_WITH_SINGLE_FINGER_HORIZONTALLY 0x00000004
656 #define GC_PAN_WITH_GUTTER 0x00000008
657 #define GC_PAN_WITH_INERTIA 0x00000010
659 #define GC_ALLGESTURES 0x00000001
660 #define GC_PRESSANDTAP 0x00000001
661 #define GC_ROLLOVER GC_PRESSANDTAP
662 #define GC_ROTATE 0x00000001
663 #define GC_TWOFINGERTAP 0x00000001
664 #define GC_ZOOM 0x00000001
666 #define GESTURECONFIGMAXCOUNT 256
668 #define GCF_INCLUDE_ANCESTORS 0x00000001
675 #define GID_TWOFINGERTAP 6
676 #define GID_PRESSANDTAP 7
677 #define GID_ROLLOVER GID_PRESSANDTAP
679 #if (_WIN32_WINNT >= 0x0601)
680 #define GET_DEVICE_CHANGE_WPARAM(wParam) (LOWORD(wParam))
681 #elif (_WIN32_WINNT >= 0x0501)
682 #define GET_DEVICE_CHANGE_LPARAM(lParam) (LOWORD(lParam))
685 typedef struct tagGUITHREADINFO
696 } GUITHREADINFO
, *PGUITHREADINFO
, *LPGUITHREADINFO
;
698 #define GUI_CARETBLINKING 0x00000001
699 #define GUI_INMOVESIZE 0x00000002
700 #define GUI_INMENUMODE 0x00000004
701 #define GUI_SYSTEMMENUMODE 0x00000008
702 #define GUI_POPUPMENUMODE 0x00000010
703 #define GUI_16BITTASK 0x00000020
705 typedef enum tagINPUT_MESSAGE_DEVICE_TYPE
707 IMDT_UNAVAILABLE
= 0x00,
708 IMDT_KEYBOARD
= 0x01,
712 IMDT_TOUCHPAD
= 0x10,
713 } INPUT_MESSAGE_DEVICE_TYPE
;
715 typedef enum tagINPUT_MESSAGE_ORIGIN_ID
717 IMO_UNAVAILABLE
= 0x00,
721 } INPUT_MESSAGE_ORIGIN_ID
;
723 typedef struct tagINPUT_MESSAGE_SOURCE
725 INPUT_MESSAGE_DEVICE_TYPE deviceType
;
726 INPUT_MESSAGE_ORIGIN_ID originId
;
727 } INPUT_MESSAGE_SOURCE
;
730 /***** Dialogs *****/
732 /* Gcc on Solaris has a version of this that we don't care about */
735 #define FVIRTKEY TRUE /* Assumed to be == TRUE */
736 #define FNOINVERT 0x02
738 #define FCONTROL 0x08
742 typedef struct tagANIMATIONINFO
746 } ANIMATIONINFO
, *LPANIMATIONINFO
;
748 typedef struct tagNMHDR
755 typedef struct tagDRAWTEXTPARAMS
762 } DRAWTEXTPARAMS
,*LPDRAWTEXTPARAMS
;
770 } CWPSTRUCT
, *PCWPSTRUCT
, *LPCWPSTRUCT
;
779 } CWPRETSTRUCT
, *PCWPRETSTRUCT
, *LPCWPRETSTRUCT
;
781 typedef struct tagWINDOWPLACEMENT
788 RECT rcNormalPosition
;
789 } WINDOWPLACEMENT
, *PWINDOWPLACEMENT
, *LPWINDOWPLACEMENT
;
792 /* WINDOWPLACEMENT flags */
793 #define WPF_SETMINPOSITION 0x0001
794 #define WPF_RESTORETOMAXIMIZED 0x0002
796 /***** Dialogs *****/
798 #define IS_INTRESOURCE(x) (((ULONG_PTR)(x) >> 16) == 0)
799 #define MAKEINTRESOURCEA(i) (LPSTR)((ULONG_PTR)((WORD)(i)))
800 #define MAKEINTRESOURCEW(i) (LPWSTR)((ULONG_PTR)((WORD)(i)))
803 # ifdef WINE_NO_UNICODE_MACROS /* force using a cast */
804 # define MAKEINTRESOURCE(i) ((ULONG_PTR)((WORD)(i)))
806 # define MAKEINTRESOURCE WINELIB_NAME_AW(MAKEINTRESOURCE)
810 /* Predefined resource types */
811 #define RT_CURSOR MAKEINTRESOURCE(1)
812 #define RT_BITMAP MAKEINTRESOURCE(2)
813 #define RT_ICON MAKEINTRESOURCE(3)
814 #define RT_MENU MAKEINTRESOURCE(4)
815 #define RT_DIALOG MAKEINTRESOURCE(5)
816 #define RT_STRING MAKEINTRESOURCE(6)
817 #define RT_FONTDIR MAKEINTRESOURCE(7)
818 #define RT_FONT MAKEINTRESOURCE(8)
819 #define RT_ACCELERATOR MAKEINTRESOURCE(9)
820 #define RT_RCDATA MAKEINTRESOURCE(10)
821 #define RT_MESSAGETABLE MAKEINTRESOURCE(11)
822 #define RT_GROUP_CURSOR MAKEINTRESOURCE(12)
823 #define RT_GROUP_ICON MAKEINTRESOURCE(14)
824 #define RT_VERSION MAKEINTRESOURCE(16)
825 #define RT_DLGINCLUDE MAKEINTRESOURCE(17)
826 #define RT_PLUGPLAY MAKEINTRESOURCE(19)
827 #define RT_VXD MAKEINTRESOURCE(20)
828 #define RT_ANICURSOR MAKEINTRESOURCE(21)
829 #define RT_ANIICON MAKEINTRESOURCE(22)
830 #define RT_HTML MAKEINTRESOURCE(23)
833 #define RT_MANIFEST 24
834 #define CREATEPROCESS_MANIFEST_RESOURCE_ID 1
835 #define ISOLATIONAWARE_MANIFEST_RESOURCE_ID 2
836 #define ISOLATIONAWARE_NOSTATICIMPORT_MANIFEST_RESOURCE_ID 3
837 #define MINIMUM_RESERVED_MANIFEST_RESOURCE_ID 1
838 #define MAXIMUM_RESERVED_MANIFEST_RESOURCE_ID 16
840 #define RT_MANIFEST MAKEINTRESOURCE(24)
841 #define CREATEPROCESS_MANIFEST_RESOURCE_ID MAKEINTRESOURCE(1)
842 #define ISOLATIONAWARE_MANIFEST_RESOURCE_ID MAKEINTRESOURCE(2)
843 #define ISOLATIONAWARE_NOSTATICIMPORT_MANIFEST_RESOURCE_ID MAKEINTRESOURCE(3)
844 #define MINIMUM_RESERVED_MANIFEST_RESOURCE_ID MAKEINTRESOURCE(1)
845 #define MAXIMUM_RESERVED_MANIFEST_RESOURCE_ID MAKEINTRESOURCE(16)
848 /* cbWndExtra bytes for dialog class */
849 #define DLGWINDOWEXTRA 30
852 /* Dialog messages */
853 #define DM_GETDEFID (WM_USER+0)
854 #define DM_SETDEFID (WM_USER+1)
855 #define DM_REPOSITION (WM_USER+2)
857 #define DC_HASDEFID 0x534b
859 /* Bit flags for DRAWITEMSTRUCT.CtlType */
861 #define ODT_LISTBOX 2
862 #define ODT_COMBOBOX 3
866 /* Bit flags for DRAWITEMSTRUCT.itemAction */
867 #define ODA_DRAWENTIRE 0x1
868 #define ODA_SELECT 0x2
869 #define ODA_FOCUS 0x4
871 /* Bit flags for DRAWITEMSTRUCT.itemState */
872 #define ODS_SELECTED 0x0001 /* Selected */
873 #define ODS_GRAYED 0x0002 /* Grayed (Menus only) */
874 #define ODS_DISABLED 0x0004 /* Disabled */
875 #define ODS_CHECKED 0x0008 /* Checked (Menus only) */
876 #define ODS_FOCUS 0x0010 /* Has focus */
877 #define ODS_DEFAULT 0x0020 /* Default */
878 #define ODS_HOTLIGHT 0x0040 /* Highlighted when under mouse */
879 #define ODS_INACTIVE 0x0080 /* Inactive */
880 #define ODS_NOACCEL 0x0100 /* No keyboard accelerator */
881 #define ODS_NOFOCUSRECT 0x0200 /* No focus rectangle */
882 #define ODS_COMBOBOXEDIT 0x1000 /* Edit of a combo box */
886 #define COLOR_SCROLLBAR 0
887 #define COLOR_BACKGROUND 1
888 #define COLOR_ACTIVECAPTION 2
889 #define COLOR_INACTIVECAPTION 3
891 #define COLOR_WINDOW 5
892 #define COLOR_WINDOWFRAME 6
893 #define COLOR_MENUTEXT 7
894 #define COLOR_WINDOWTEXT 8
895 #define COLOR_CAPTIONTEXT 9
896 #define COLOR_ACTIVEBORDER 10
897 #define COLOR_INACTIVEBORDER 11
898 #define COLOR_APPWORKSPACE 12
899 #define COLOR_HIGHLIGHT 13
900 #define COLOR_HIGHLIGHTTEXT 14
901 #define COLOR_BTNFACE 15
902 #define COLOR_BTNSHADOW 16
903 #define COLOR_GRAYTEXT 17
904 #define COLOR_BTNTEXT 18
905 #define COLOR_INACTIVECAPTIONTEXT 19
906 #define COLOR_BTNHIGHLIGHT 20
908 #define COLOR_3DDKSHADOW 21
909 #define COLOR_3DLIGHT 22
910 #define COLOR_INFOTEXT 23
911 #define COLOR_INFOBK 24
912 #define COLOR_DESKTOP COLOR_BACKGROUND
913 #define COLOR_3DFACE COLOR_BTNFACE
914 #define COLOR_3DSHADOW COLOR_BTNSHADOW
915 #define COLOR_3DHIGHLIGHT COLOR_BTNHIGHLIGHT
916 #define COLOR_3DHILIGHT COLOR_BTNHIGHLIGHT
917 #define COLOR_BTNHILIGHT COLOR_BTNHIGHLIGHT
919 #define COLOR_ALTERNATEBTNFACE 25 /* undocumented, constant name unknown */
920 #define COLOR_HOTLIGHT 26
921 #define COLOR_GRADIENTACTIVECAPTION 27
922 #define COLOR_GRADIENTINACTIVECAPTION 28
923 /* win2k/xp colors */
924 #define COLOR_MENUHILIGHT 29
925 #define COLOR_MENUBAR 30
927 /* WM_CTLCOLOR values */
928 #define CTLCOLOR_MSGBOX 0
929 #define CTLCOLOR_EDIT 1
930 #define CTLCOLOR_LISTBOX 2
931 #define CTLCOLOR_BTN 3
932 #define CTLCOLOR_DLG 4
933 #define CTLCOLOR_SCROLLBAR 5
934 #define CTLCOLOR_STATIC 6
936 WINUSERAPI COLORREF WINAPI
GetSysColor(INT
);
937 WINUSERAPI BOOL WINAPI
SetSysColors(INT
,const INT
*,const COLORREF
*);
942 #define EMSIS_COMPOSITIONSTRING 1
944 /* IMESTATUS type specific data */
945 #define EIMES_GETCOMPSTRATONCE 0x0001
946 #define EIMES_CANCELCOMPSTRINFOCUS 0x0002
947 #define EIMES_COMPLETECOMPSTRKILLFOCUS 0x0004
949 /* EDITWORDBREAKPROC code values */
952 #define WB_ISDELIMITER 2
954 /* Edit control notification codes */
955 #define EN_SETFOCUS 0x0100
956 #define EN_KILLFOCUS 0x0200
957 #define EN_CHANGE 0x0300
958 #define EN_UPDATE 0x0400
959 #define EN_ERRSPACE 0x0500
960 #define EN_MAXTEXT 0x0501
961 #define EN_HSCROLL 0x0601
962 #define EN_VSCROLL 0x0602
964 /* New since win95 : EM_SETMARGIN parameters */
965 #define EC_LEFTMARGIN 0x0001
966 #define EC_RIGHTMARGIN 0x0002
967 #define EC_USEFONTINFO 0xffff
970 /* GetSystemMetrics() codes */
971 #define SM_CXSCREEN 0
972 #define SM_CYSCREEN 1
973 #define SM_CXVSCROLL 2
974 #define SM_CYHSCROLL 3
975 #define SM_CYCAPTION 4
976 #define SM_CXBORDER 5
977 #define SM_CYBORDER 6
978 #define SM_CXDLGFRAME 7
979 #define SM_CYDLGFRAME 8
980 #define SM_CYVTHUMB 9
981 #define SM_CXHTHUMB 10
984 #define SM_CXCURSOR 13
985 #define SM_CYCURSOR 14
987 #define SM_CXFULLSCREEN 16
988 #define SM_CYFULLSCREEN 17
989 #define SM_CYKANJIWINDOW 18
990 #define SM_MOUSEPRESENT 19
991 #define SM_CYVSCROLL 20
992 #define SM_CXHSCROLL 21
994 #define SM_SWAPBUTTON 23
995 #define SM_RESERVED1 24
996 #define SM_RESERVED2 25
997 #define SM_RESERVED3 26
998 #define SM_RESERVED4 27
1001 #define SM_CXSIZE 30
1002 #define SM_CYSIZE 31
1003 #define SM_CXFRAME 32
1004 #define SM_CYFRAME 33
1005 #define SM_CXMINTRACK 34
1006 #define SM_CYMINTRACK 35
1007 #define SM_CXDOUBLECLK 36
1008 #define SM_CYDOUBLECLK 37
1009 #define SM_CXICONSPACING 38
1010 #define SM_CYICONSPACING 39
1011 #define SM_MENUDROPALIGNMENT 40
1012 #define SM_PENWINDOWS 41
1013 #define SM_DBCSENABLED 42
1014 #define SM_CMOUSEBUTTONS 43
1015 #define SM_CXFIXEDFRAME SM_CXDLGFRAME
1016 #define SM_CYFIXEDFRAME SM_CYDLGFRAME
1017 #define SM_CXSIZEFRAME SM_CXFRAME
1018 #define SM_CYSIZEFRAME SM_CYFRAME
1019 #define SM_SECURE 44
1020 #define SM_CXEDGE 45
1021 #define SM_CYEDGE 46
1022 #define SM_CXMINSPACING 47
1023 #define SM_CYMINSPACING 48
1024 #define SM_CXSMICON 49
1025 #define SM_CYSMICON 50
1026 #define SM_CYSMCAPTION 51
1027 #define SM_CXSMSIZE 52
1028 #define SM_CYSMSIZE 53
1029 #define SM_CXMENUSIZE 54
1030 #define SM_CYMENUSIZE 55
1031 #define SM_ARRANGE 56
1032 #define SM_CXMINIMIZED 57
1033 #define SM_CYMINIMIZED 58
1034 #define SM_CXMAXTRACK 59
1035 #define SM_CYMAXTRACK 60
1036 #define SM_CXMAXIMIZED 61
1037 #define SM_CYMAXIMIZED 62
1038 #define SM_NETWORK 63
1039 #define SM_CLEANBOOT 67
1040 #define SM_CXDRAG 68
1041 #define SM_CYDRAG 69
1042 #define SM_SHOWSOUNDS 70
1043 #define SM_CXMENUCHECK 71
1044 #define SM_CYMENUCHECK 72
1045 #define SM_SLOWMACHINE 73
1046 #define SM_MIDEASTENABLED 74
1047 #define SM_MOUSEWHEELPRESENT 75
1048 #define SM_XVIRTUALSCREEN 76
1049 #define SM_YVIRTUALSCREEN 77
1050 #define SM_CXVIRTUALSCREEN 78
1051 #define SM_CYVIRTUALSCREEN 79
1052 #define SM_CMONITORS 80
1053 #define SM_SAMEDISPLAYFORMAT 81
1054 #define SM_IMMENABLED 82
1055 #define SM_CXFOCUSBORDER 83
1056 #define SM_CYFOCUSBORDER 84
1057 #define SM_TABLETPC 86
1058 #define SM_MEDIACENTER 87
1059 #define SM_STARTER 88
1060 #define SM_SERVERR2 89
1061 #define SM_CMETRICS 90
1062 #define SM_MOUSEHORIZONTALWHEELPRESENT 91
1063 #define SM_CXPADDEDBORDER 92
1064 #define SM_DIGITIZER 94
1065 #define SM_MAXIMUMTOUCHES 95
1067 #define SM_REMOTESESSION 0x1000
1068 #define SM_SHUTTINGDOWN 0x2000
1069 #define SM_REMOTECONTROL 0x2001
1070 #define SM_CARETBLINKINGENABLED 0x2002
1072 #define PMB_ACTIVE 0x00000001
1075 /* wParam for WM_POWERBROADCAST */
1076 #define PBT_APMQUERYSUSPEND 0x0000
1077 #define PBT_APMQUERYSTANDBY 0x0001
1078 #define PBT_APMQUERYSUSPENDFAILED 0x0002
1079 #define PBT_APMQUERYSTANDBYFAILED 0x0003
1080 #define PBT_APMSUSPEND 0x0004
1081 #define PBT_APMSTANDBY 0x0005
1082 #define PBT_APMRESUMECRITICAL 0x0006
1083 #define PBT_APMRESUMESUSPEND 0x0007
1084 #define PBT_APMRESUMESTANDBY 0x0008
1085 #define PBT_APMBATTERYLOW 0x0009
1086 #define PBT_APMPOWERSTATUSCHANGE 0x000A
1087 #define PBT_APMOEMEVENT 0x000B
1088 #define PBT_APMRESUMEAUTOMATIC 0x0012
1090 #define PBTF_APMRESUMEFROMFAILURE 0x00000001
1093 /* MsgWaitForMultipleObjectsEx flags */
1094 #define MWMO_WAITALL 0x0001
1095 #define MWMO_ALERTABLE 0x0002
1096 #define MWMO_INPUTAVAILABLE 0x0004
1098 /* WM_GETDLGCODE values */
1099 #define DLGC_WANTARROWS 0x0001
1100 #define DLGC_WANTTAB 0x0002
1101 #define DLGC_WANTALLKEYS 0x0004
1102 #define DLGC_WANTMESSAGE 0x0004
1103 #define DLGC_HASSETSEL 0x0008
1104 #define DLGC_DEFPUSHBUTTON 0x0010
1105 #define DLGC_UNDEFPUSHBUTTON 0x0020
1106 #define DLGC_RADIOBUTTON 0x0040
1107 #define DLGC_WANTCHARS 0x0080
1108 #define DLGC_STATIC 0x0100
1109 #define DLGC_BUTTON 0x2000
1111 /* Used for EnumDisplaySettingsEx */
1112 #define ENUM_CURRENT_SETTINGS ((DWORD) -1)
1113 #define ENUM_REGISTRY_SETTINGS ((DWORD) -2)
1115 /* Used by EnumDisplayDevices */
1116 #define EDD_GET_DEVICE_INTERFACE_NAME 0x00000001
1118 #define EDS_RAWMODE 0x00000002
1119 #define EDS_ROTATEDMODE 0x00000004
1121 /* Used for PrintWindow */
1122 #define PW_CLIENTONLY 0x00000001
1124 /****** Window classes ******/
1126 typedef struct tagCREATESTRUCTA
1128 LPVOID lpCreateParams
;
1129 HINSTANCE hInstance
;
1140 } CREATESTRUCTA
, *LPCREATESTRUCTA
;
1142 typedef struct tagCREATESTRUCTW
1144 LPVOID lpCreateParams
;
1145 HINSTANCE hInstance
;
1156 } CREATESTRUCTW
, *LPCREATESTRUCTW
;
1158 DECL_WINELIB_TYPE_AW(CREATESTRUCT
)
1159 DECL_WINELIB_TYPE_AW(LPCREATESTRUCT
)
1161 typedef struct tagPAINTSTRUCT
1168 BYTE rgbReserved
[32];
1169 } PAINTSTRUCT
, *PPAINTSTRUCT
, *LPPAINTSTRUCT
;
1171 typedef struct tagCLIENTCREATESTRUCT
1175 } CLIENTCREATESTRUCT
, *LPCLIENTCREATESTRUCT
;
1178 typedef struct tagMDICREATESTRUCTA
1189 } MDICREATESTRUCTA
, *LPMDICREATESTRUCTA
;
1191 typedef struct tagMDICREATESTRUCTW
1202 } MDICREATESTRUCTW
, *LPMDICREATESTRUCTW
;
1204 DECL_WINELIB_TYPE_AW(MDICREATESTRUCT
)
1205 DECL_WINELIB_TYPE_AW(LPMDICREATESTRUCT
)
1207 #define MDITILE_VERTICAL 0x0000
1208 #define MDITILE_HORIZONTAL 0x0001
1209 #define MDITILE_SKIPDISABLED 0x0002
1210 #define MDITILE_ZORDER 0x0004
1212 #define MDIS_ALLCHILDSTYLES 0x0001
1214 typedef struct tagSTYLESTRUCT
{
1217 } STYLESTRUCT
, *LPSTYLESTRUCT
;
1219 #define WC_DIALOG MAKEINTATOM(0x8002)
1221 /* Offsets for GetWindowLong() and GetWindowWord() */
1222 #define GWL_EXSTYLE (-20)
1223 #define GWL_STYLE (-16)
1224 #define GWL_ID (-12)
1225 #if !defined _WIN64 && !defined __WINESRC__
1226 # define GWL_USERDATA (-21)
1227 # define GWL_HWNDPARENT (-8)
1228 # define GWL_HINSTANCE (-6)
1229 # define GWL_WNDPROC (-4)
1230 # define DWL_MSGRESULT 0
1231 # define DWL_DLGPROC 4
1233 #endif /* _WIN64 && __WINESRC__ */
1235 /* Offsets for GetWindowLongPtr() and SetWindowLongPtr() */
1236 #define GWLP_USERDATA (-21)
1237 #define GWLP_ID (-12)
1238 #define GWLP_HWNDPARENT (-8)
1239 #define GWLP_HINSTANCE (-6)
1240 #define GWLP_WNDPROC (-4)
1241 #define DWLP_MSGRESULT 0
1242 #define DWLP_DLGPROC DWLP_MSGRESULT + sizeof(LRESULT)
1243 #define DWLP_USER DWLP_DLGPROC + sizeof(DLGPROC)
1245 /* GetWindow() constants */
1246 #define GW_HWNDFIRST 0
1247 #define GW_HWNDLAST 1
1248 #define GW_HWNDNEXT 2
1249 #define GW_HWNDPREV 3
1253 /* GetAncestor() constants */
1256 #define GA_ROOTOWNER 3
1258 /* WM_GETMINMAXINFO struct */
1259 typedef struct tagMINMAXINFO
1263 POINT ptMaxPosition
;
1264 POINT ptMinTrackSize
;
1265 POINT ptMaxTrackSize
;
1266 } MINMAXINFO
, *PMINMAXINFO
, *LPMINMAXINFO
;
1269 /* RedrawWindow() flags */
1270 #define RDW_INVALIDATE 0x0001
1271 #define RDW_INTERNALPAINT 0x0002
1272 #define RDW_ERASE 0x0004
1273 #define RDW_VALIDATE 0x0008
1274 #define RDW_NOINTERNALPAINT 0x0010
1275 #define RDW_NOERASE 0x0020
1276 #define RDW_NOCHILDREN 0x0040
1277 #define RDW_ALLCHILDREN 0x0080
1278 #define RDW_UPDATENOW 0x0100
1279 #define RDW_ERASENOW 0x0200
1280 #define RDW_FRAME 0x0400
1281 #define RDW_NOFRAME 0x0800
1284 #define DBGFILL_ALLOC 0xfd
1285 #define DBGFILL_FREE 0xfb
1286 #define DBGFILL_BUFFER 0xf9
1287 #define DBGFILL_STACK 0xf7
1289 /* WM_WINDOWPOSCHANGING/CHANGED struct */
1290 typedef struct tagWINDOWPOS
1293 HWND hwndInsertAfter
;
1299 } WINDOWPOS
, *PWINDOWPOS
, *LPWINDOWPOS
;
1302 /* WM_NCCALCSIZE parameter structure */
1307 } NCCALCSIZE_PARAMS
, *LPNCCALCSIZE_PARAMS
;
1310 #define PRF_CHECKVISIBLE __MSABI_LONG(0x00000001)
1311 #define PRF_NONCLIENT __MSABI_LONG(0x00000002)
1312 #define PRF_CLIENT __MSABI_LONG(0x00000004)
1313 #define PRF_ERASEBKGND __MSABI_LONG(0x00000008)
1314 #define PRF_CHILDREN __MSABI_LONG(0x00000010)
1315 #define PRF_OWNED __MSABI_LONG(0x00000020)
1317 /* Offsets for GetClassLong() and GetClassWord() */
1318 #if !defined _WIN64 && !defined __WINESRC__
1319 # define GCL_MENUNAME (-8)
1320 # define GCL_HBRBACKGROUND (-10)
1321 # define GCL_HCURSOR (-12)
1322 # define GCL_HICON (-14)
1323 # define GCL_HMODULE (-16)
1324 # define GCL_WNDPROC (-24)
1325 # define GCL_HICONSM (-34)
1326 #endif /* _WIN64 && __WINESRC__ */
1328 #define GCL_CBWNDEXTRA (-18)
1329 #define GCL_CBCLSEXTRA (-20)
1330 #define GCL_STYLE (-26)
1331 #define GCW_ATOM (-32)
1333 #define GCLP_MENUNAME (-8)
1334 #define GCLP_HBRBACKGROUND (-10)
1335 #define GCLP_HCURSOR (-12)
1336 #define GCLP_HICON (-14)
1337 #define GCLP_HMODULE (-16)
1338 #define GCLP_WNDPROC (-24)
1339 #define GCLP_HICONSM (-34)
1341 /* BroadcastSystemMessage flags */
1342 #define BSM_ALLCOMPONENTS 0x00000000
1343 #define BSM_VXDS 0x00000001
1344 #define BSM_NETDRIVER 0x00000002
1345 #define BSM_INSTALLABLEDRIVERS 0x00000004
1346 #define BSM_APPLICATIONS 0x00000008
1347 #define BSM_ALLDESKTOPS 0x00000010
1349 #define BSF_QUERY 0x00000001
1350 #define BSF_IGNORECURRENTTASK 0x00000002
1351 #define BSF_FLUSHDISK 0x00000004
1352 #define BSF_NOHANG 0x00000008
1353 #define BSF_POSTMESSAGE 0x00000010
1354 #define BSF_FORCEIFHUNG 0x00000020
1355 #define BSF_NOTIMEOUTIFNOTHUNG 0x00000040
1356 #define BSF_ALLOWSFW 0x00000080
1357 #define BSF_SENDNOTIFYMESSAGE 0x00000100
1358 #define BSF_RETURNHDESK 0x00000200
1359 #define BSF_LUID 0x00000400
1361 #define BROADCAST_QUERY_DENY 0x424D5144
1363 /***** Window hooks *****/
1367 #define WH_MSGFILTER (-1)
1368 #define WH_JOURNALRECORD 0
1369 #define WH_JOURNALPLAYBACK 1
1370 #define WH_KEYBOARD 2
1371 #define WH_GETMESSAGE 3
1372 #define WH_CALLWNDPROC 4
1374 #define WH_SYSMSGFILTER 6
1376 #define WH_HARDWARE 8
1379 #define WH_FOREGROUNDIDLE 11
1380 #define WH_CALLWNDPROCRET 12
1381 #define WH_KEYBOARD_LL 13
1382 #define WH_MOUSE_LL 14
1385 #define WH_MINHOOK WH_MIN
1386 #define WH_MAXHOOK WH_MAX
1388 /* Hook action codes */
1390 #define HC_GETNEXT 1
1392 #define HC_NOREMOVE 3
1393 #define HC_NOREM HC_NOREMOVE
1394 #define HC_SYSMODALON 4
1395 #define HC_SYSMODALOFF 5
1397 /* CallMsgFilter() values */
1398 #define MSGF_DIALOGBOX 0
1399 #define MSGF_MESSAGEBOX 1
1403 #define MSGF_SCROLLBAR 5
1404 #define MSGF_NEXTWINDOW 6
1406 #define MSGF_USER 0x1000
1407 #define MSGF_DDEMGR 0x8001
1409 typedef struct tagWNDCLASSA
1412 WNDPROC lpfnWndProc
;
1415 HINSTANCE hInstance
;
1418 HBRUSH hbrBackground
;
1419 LPCSTR lpszMenuName
;
1420 LPCSTR lpszClassName
;
1421 } WNDCLASSA
, *PWNDCLASSA
, *LPWNDCLASSA
;
1423 typedef struct tagWNDCLASSW
1426 WNDPROC lpfnWndProc
;
1429 HINSTANCE hInstance
;
1432 HBRUSH hbrBackground
;
1433 LPCWSTR lpszMenuName
;
1434 LPCWSTR lpszClassName
;
1435 } WNDCLASSW
, *PWNDCLASSW
, *LPWNDCLASSW
;
1437 DECL_WINELIB_TYPE_AW(WNDCLASS
)
1438 DECL_WINELIB_TYPE_AW(PWNDCLASS
)
1439 DECL_WINELIB_TYPE_AW(LPWNDCLASS
)
1441 typedef struct tagCOPYDATASTRUCT
{
1445 } COPYDATASTRUCT
, *PCOPYDATASTRUCT
;
1447 typedef struct tagMDINEXTMENU
{
1451 } MDINEXTMENU
, *PMDINEXTMENU
, *LPMDINEXTMENU
;
1453 typedef struct tagMULTIKEYHELPA
1457 CHAR szKeyphrase
[1];
1458 } MULTIKEYHELPA
, *PMULTIKEYHELPA
, *LPMULTIKEYHELPA
;
1460 typedef struct tagMULTIKEYHELPW
1464 WCHAR szKeyphrase
[1];
1465 } MULTIKEYHELPW
, *PMULTIKEYHELPW
, *LPMULTIKEYHELPW
;
1467 DECL_WINELIB_TYPE_AW(MULTIKEYHELP
)
1468 DECL_WINELIB_TYPE_AW(PMULTIKEYHELP
)
1469 DECL_WINELIB_TYPE_AW(LPMULTIKEYHELP
)
1471 typedef struct tagHELPWININFOA
{
1479 } HELPWININFOA
, *PHELPWININFOA
, *LPHELPWININFOA
;
1481 typedef struct tagHELPWININFOW
{
1488 WCHAR rgchMember
[2];
1489 } HELPWININFOW
, *PHELPWININFOW
, *LPHELPWININFOW
;
1491 DECL_WINELIB_TYPE_AW(HELPWININFO
)
1492 DECL_WINELIB_TYPE_AW(PHELPWININFO
)
1493 DECL_WINELIB_TYPE_AW(LPHELPWININFO
)
1496 /* ChangeDisplaySettings return codes */
1498 #define DISP_CHANGE_SUCCESSFUL 0
1499 #define DISP_CHANGE_RESTART 1
1500 #define DISP_CHANGE_FAILED (-1)
1501 #define DISP_CHANGE_BADMODE (-2)
1502 #define DISP_CHANGE_NOTUPDATED (-3)
1503 #define DISP_CHANGE_BADFLAGS (-4)
1504 #define DISP_CHANGE_BADPARAM (-5)
1505 #define DISP_CHANGE_BADDUALVIEW (-6)
1507 /* ChangeDisplaySettings.dwFlags */
1508 #define CDS_UPDATEREGISTRY 0x00000001
1509 #define CDS_TEST 0x00000002
1510 #define CDS_FULLSCREEN 0x00000004
1511 #define CDS_GLOBAL 0x00000008
1512 #define CDS_SET_PRIMARY 0x00000010
1513 #define CDS_VIDEOPARAMETERS 0x00000020
1514 #define CDS_ENABLE_UNSAFE_MODES 0x00000100
1515 #define CDS_DISABLE_UNSAFE_MODES 0x00000200
1516 #define CDS_NORESET 0x10000000
1517 #define CDS_RESET_EX 0x20000000
1518 #define CDS_RESET 0x40000000
1520 typedef struct tagWNDCLASSEXA
1524 WNDPROC lpfnWndProc
;
1527 HINSTANCE hInstance
;
1530 HBRUSH hbrBackground
;
1531 LPCSTR lpszMenuName
;
1532 LPCSTR lpszClassName
;
1534 } WNDCLASSEXA
, *PWNDCLASSEXA
, *LPWNDCLASSEXA
;
1536 typedef struct tagWNDCLASSEXW
1540 WNDPROC lpfnWndProc
;
1543 HINSTANCE hInstance
;
1546 HBRUSH hbrBackground
;
1547 LPCWSTR lpszMenuName
;
1548 LPCWSTR lpszClassName
;
1550 } WNDCLASSEXW
, *PWNDCLASSEXW
, *LPWNDCLASSEXW
;
1552 DECL_WINELIB_TYPE_AW(WNDCLASSEX
)
1553 DECL_WINELIB_TYPE_AW(PWNDCLASSEX
)
1554 DECL_WINELIB_TYPE_AW(LPWNDCLASSEX
)
1556 typedef struct tagMSG
1564 } MSG
, *PMSG
, *LPMSG
;
1566 #define POINTSTOPOINT(pt, pts) { (pt).x = (pts).x; (pt).y = (pts).y; }
1567 #define POINTTOPOINTS(pt) (MAKELONG((short)((pt).x), (short)((pt).y)))
1569 #define MAKELPARAM(low,high) ((LPARAM)(DWORD)MAKELONG(low,high))
1570 #define MAKEWPARAM(low,high) ((WPARAM)(DWORD)MAKELONG(low,high))
1571 #define MAKELRESULT(low,high) ((LRESULT)(DWORD)MAKELONG(low,high))
1573 /* Cursors / Icons */
1575 typedef struct _ICONINFO
{
1581 } ICONINFO
, *PICONINFO
;
1583 typedef struct _ICONINFOEXA
1592 CHAR szModName
[MAX_PATH
];
1593 CHAR szResName
[MAX_PATH
];
1594 } ICONINFOEXA
, *PICONINFOEXA
;
1596 typedef struct _ICONINFOEXW
1605 WCHAR szModName
[MAX_PATH
];
1606 WCHAR szResName
[MAX_PATH
];
1607 } ICONINFOEXW
, *PICONINFOEXW
;
1609 DECL_WINELIB_TYPE_AW(ICONINFOEX
)
1610 DECL_WINELIB_TYPE_AW(PICONINFOEX
)
1612 typedef struct tagCURSORINFO
1618 } CURSORINFO
, *PCURSORINFO
, *LPCURSORINFO
;
1620 #define CURSOR_SHOWING 0x00000001
1621 #define CURSOR_SUPPRESSED 0x00000002
1623 /* this is the 6 byte accel struct used in Win32 when presented to the user */
1624 typedef struct tagACCEL
1626 #ifdef WORDS_BIGENDIAN
1638 /* Flags for TrackPopupMenu */
1639 #define TPM_LEFTBUTTON 0x0000
1640 #define TPM_RECURSE 0x0001
1641 #define TPM_RIGHTBUTTON 0x0002
1642 #define TPM_LEFTALIGN 0x0000
1643 #define TPM_CENTERALIGN 0x0004
1644 #define TPM_RIGHTALIGN 0x0008
1645 #define TPM_TOPALIGN 0x0000
1646 #define TPM_VCENTERALIGN 0x0010
1647 #define TPM_BOTTOMALIGN 0x0020
1648 #define TPM_HORIZONTAL 0x0000
1649 #define TPM_VERTICAL 0x0040
1650 #define TPM_NONOTIFY 0x0080
1651 #define TPM_RETURNCMD 0x0100
1652 #define TPM_HORPOSANIMATION 0x0400
1653 #define TPM_HORNEGANIMATION 0x0800
1654 #define TPM_VERPOSANIMATION 0x1000
1655 #define TPM_VERNEGANIMATION 0x2000
1656 #define TPM_NOANIMATION 0x4000
1657 #define TPM_LAYOUTRTL 0x8000
1659 typedef struct tagTPMPARAMS
1663 } TPMPARAMS
, *LPTPMPARAMS
;
1667 * Combobox information
1669 typedef struct tagCOMBOBOXINFO
1678 } COMBOBOXINFO
, *PCOMBOBOXINFO
, *LPCOMBOBOXINFO
;
1680 typedef struct tagMENUITEMINFOA
{
1687 HBITMAP hbmpChecked
;
1688 HBITMAP hbmpUnchecked
;
1689 ULONG_PTR dwItemData
;
1693 } MENUITEMINFOA
, *LPMENUITEMINFOA
;
1695 typedef struct tagMENUITEMINFOW
{
1702 HBITMAP hbmpChecked
;
1703 HBITMAP hbmpUnchecked
;
1704 ULONG_PTR dwItemData
;
1708 } MENUITEMINFOW
, *LPMENUITEMINFOW
;
1710 DECL_WINELIB_TYPE_AW(MENUITEMINFO
)
1711 DECL_WINELIB_TYPE_AW(LPMENUITEMINFO
)
1712 typedef const MENUITEMINFOA
*LPCMENUITEMINFOA
;
1713 typedef const MENUITEMINFOW
*LPCMENUITEMINFOW
;
1714 DECL_WINELIB_TYPE_AW(LPCMENUITEMINFO
)
1716 typedef struct tagMENUBARINFO
{
1723 } MENUBARINFO
, *PMENUBARINFO
, *LPMENUBARINFO
;
1725 typedef struct tagMENUINFO
{
1731 DWORD dwContextHelpID
;
1732 ULONG_PTR dwMenuData
;
1733 } MENUINFO
, *LPMENUINFO
;
1735 typedef const MENUINFO
*LPCMENUINFO
;
1737 #define MIM_MAXHEIGHT 0x00000001
1738 #define MIM_BACKGROUND 0x00000002
1739 #define MIM_HELPID 0x00000004
1740 #define MIM_MENUDATA 0x00000008
1741 #define MIM_STYLE 0x00000010
1742 #define MIM_APPLYTOSUBMENUS 0x80000000
1744 #define MNS_NOCHECK 0x80000000
1745 #define MNS_MODELESS 0x40000000
1746 #define MNS_DRAGDROP 0x20000000
1747 #define MNS_AUTODISMISS 0x10000000
1748 #define MNS_NOTIFYBYPOS 0x08000000
1749 #define MNS_CHECKORBMP 0x04000000
1754 } MENUITEMTEMPLATEHEADER
, *PMENUITEMTEMPLATEHEADER
;
1761 } MENUITEMTEMPLATE
, *PMENUITEMTEMPLATE
;
1764 typedef VOID MENUTEMPLATE
;
1765 typedef PVOID
*LPMENUTEMPLATE
;
1767 /* Field specifiers for MENUITEMINFO[AW] type. */
1768 #define MIIM_STATE 0x00000001
1769 #define MIIM_ID 0x00000002
1770 #define MIIM_SUBMENU 0x00000004
1771 #define MIIM_CHECKMARKS 0x00000008
1772 #define MIIM_TYPE 0x00000010
1773 #define MIIM_DATA 0x00000020
1774 #define MIIM_STRING 0x00000040
1775 #define MIIM_BITMAP 0x00000080
1776 #define MIIM_FTYPE 0x00000100
1778 #define HBMMENU_CALLBACK ((HBITMAP) -1)
1779 #define HBMMENU_SYSTEM ((HBITMAP) 1)
1780 #define HBMMENU_MBAR_RESTORE ((HBITMAP) 2)
1781 #define HBMMENU_MBAR_MINIMIZE ((HBITMAP) 3)
1782 #define HBMMENU_MBAR_CLOSE ((HBITMAP) 5)
1783 #define HBMMENU_MBAR_CLOSE_D ((HBITMAP) 6)
1784 #define HBMMENU_MBAR_MINIMIZE_D ((HBITMAP) 7)
1785 #define HBMMENU_POPUP_CLOSE ((HBITMAP) 8)
1786 #define HBMMENU_POPUP_RESTORE ((HBITMAP) 9)
1787 #define HBMMENU_POPUP_MAXIMIZE ((HBITMAP) 10)
1788 #define HBMMENU_POPUP_MINIMIZE ((HBITMAP) 11)
1790 /* WM_H/VSCROLL commands */
1792 #define SB_LINELEFT 0
1793 #define SB_LINEDOWN 1
1794 #define SB_LINERIGHT 1
1796 #define SB_PAGELEFT 2
1797 #define SB_PAGEDOWN 3
1798 #define SB_PAGERIGHT 3
1799 #define SB_THUMBPOSITION 4
1800 #define SB_THUMBTRACK 5
1805 #define SB_ENDSCROLL 8
1807 /* Scroll bar selection constants */
1813 /* EnableScrollBar() flags */
1814 #define ESB_ENABLE_BOTH 0x0000
1815 #define ESB_DISABLE_BOTH 0x0003
1817 #define ESB_DISABLE_LEFT 0x0001
1818 #define ESB_DISABLE_RIGHT 0x0002
1820 #define ESB_DISABLE_UP 0x0001
1821 #define ESB_DISABLE_DOWN 0x0002
1823 #define ESB_DISABLE_LTUP ESB_DISABLE_LEFT
1824 #define ESB_DISABLE_RTDN ESB_DISABLE_RIGHT
1826 /* Static Control Messages */
1827 #define STM_SETICON 0x0170
1828 #define STM_GETICON 0x0171
1829 #define STM_SETIMAGE 0x0172
1830 #define STM_GETIMAGE 0x0173
1831 #define STM_MSGMAX 0x0174
1833 #define STN_CLICKED 0
1834 #define STN_DBLCLK 1
1835 #define STN_ENABLE 2
1836 #define STN_DISABLE 3
1838 /* Scrollbar messages */
1839 #define SBM_SETPOS 0x00e0
1840 #define SBM_GETPOS 0x00e1
1841 #define SBM_SETRANGE 0x00e2
1842 #define SBM_GETRANGE 0x00e3
1843 #define SBM_ENABLE_ARROWS 0x00e4
1844 #define SBM_SETRANGEREDRAW 0x00e6
1845 #define SBM_SETSCROLLINFO 0x00e9
1846 #define SBM_GETSCROLLINFO 0x00ea
1847 #define SBM_GETSCROLLBARINFO 0x00eb
1849 /* Scrollbar info */
1850 typedef struct tagSCROLLINFO
1859 } SCROLLINFO
, *LPSCROLLINFO
;
1861 typedef const SCROLLINFO
*LPCSCROLLINFO
;
1863 #define CCHILDREN_SCROLLBAR 5
1865 typedef struct tagSCROLLBARINFO
1867 DWORD cbSize
; /* Size of SCROLLBARINFO struct */
1868 RECT rcScrollBar
; /* Coordinates of the scroll bar */
1869 INT dxyLineButton
; /* Height or width */
1870 INT xyThumbTop
; /* Position of the top or the left */
1871 INT xyThumbBottom
; /* Position of the bottom or the right */
1873 DWORD rgstate
[CCHILDREN_SCROLLBAR
+1];
1874 } SCROLLBARINFO
, *PSCROLLBARINFO
, *LPSCROLLBARINFO
;
1876 /* GetScrollInfo() flags */
1877 #define SIF_RANGE 0x0001
1878 #define SIF_PAGE 0x0002
1879 #define SIF_POS 0x0004
1880 #define SIF_DISABLENOSCROLL 0x0008
1881 #define SIF_TRACKPOS 0x0010
1882 #define SIF_ALL (SIF_RANGE | SIF_PAGE | SIF_POS | SIF_TRACKPOS)
1884 /* Listbox messages */
1885 #define LB_ADDSTRING 0x0180
1886 #define LB_INSERTSTRING 0x0181
1887 #define LB_DELETESTRING 0x0182
1888 #define LB_SELITEMRANGEEX 0x0183
1889 #define LB_RESETCONTENT 0x0184
1890 #define LB_SETSEL 0x0185
1891 #define LB_SETCURSEL 0x0186
1892 #define LB_GETSEL 0x0187
1893 #define LB_GETCURSEL 0x0188
1894 #define LB_GETTEXT 0x0189
1895 #define LB_GETTEXTLEN 0x018a
1896 #define LB_GETCOUNT 0x018b
1897 #define LB_SELECTSTRING 0x018c
1898 #define LB_DIR 0x018d
1899 #define LB_GETTOPINDEX 0x018e
1900 #define LB_FINDSTRING 0x018f
1901 #define LB_GETSELCOUNT 0x0190
1902 #define LB_GETSELITEMS 0x0191
1903 #define LB_SETTABSTOPS 0x0192
1904 #define LB_GETHORIZONTALEXTENT 0x0193
1905 #define LB_SETHORIZONTALEXTENT 0x0194
1906 #define LB_SETCOLUMNWIDTH 0x0195
1907 #define LB_ADDFILE 0x0196
1908 #define LB_SETTOPINDEX 0x0197
1909 #define LB_GETITEMRECT 0x0198
1910 #define LB_GETITEMDATA 0x0199
1911 #define LB_SETITEMDATA 0x019a
1912 #define LB_SELITEMRANGE 0x019b
1913 #define LB_SETANCHORINDEX 0x019c
1914 #define LB_GETANCHORINDEX 0x019d
1915 #define LB_SETCARETINDEX 0x019e
1916 #define LB_GETCARETINDEX 0x019f
1917 #define LB_SETITEMHEIGHT 0x01a0
1918 #define LB_GETITEMHEIGHT 0x01a1
1919 #define LB_FINDSTRINGEXACT 0x01a2
1920 #define LB_CARETON 0x01a3
1921 #define LB_CARETOFF 0x01a4
1922 #define LB_SETLOCALE 0x01a5
1923 #define LB_GETLOCALE 0x01a6
1924 #define LB_SETCOUNT 0x01a7
1925 #define LB_INITSTORAGE 0x01a8
1926 #define LB_ITEMFROMPOINT 0x01a9
1927 #define LB_GETLISTBOXINFO 0x01b2
1928 #define LB_MSGMAX 0x01b3
1930 /* Listbox notification codes */
1931 #define LBN_ERRSPACE (-2)
1932 #define LBN_SELCHANGE 1
1933 #define LBN_DBLCLK 2
1934 #define LBN_SELCANCEL 3
1935 #define LBN_SETFOCUS 4
1936 #define LBN_KILLFOCUS 5
1938 /* Listbox message return values */
1941 #define LB_ERRSPACE (-2)
1943 #define LB_CTLCODE __MSABI_LONG(0)
1945 /* Combo box messages */
1946 #define CB_GETEDITSEL 0x0140
1947 #define CB_LIMITTEXT 0x0141
1948 #define CB_SETEDITSEL 0x0142
1949 #define CB_ADDSTRING 0x0143
1950 #define CB_DELETESTRING 0x0144
1951 #define CB_DIR 0x0145
1952 #define CB_GETCOUNT 0x0146
1953 #define CB_GETCURSEL 0x0147
1954 #define CB_GETLBTEXT 0x0148
1955 #define CB_GETLBTEXTLEN 0x0149
1956 #define CB_INSERTSTRING 0x014a
1957 #define CB_RESETCONTENT 0x014b
1958 #define CB_FINDSTRING 0x014c
1959 #define CB_SELECTSTRING 0x014d
1960 #define CB_SETCURSEL 0x014e
1961 #define CB_SHOWDROPDOWN 0x014f
1962 #define CB_GETITEMDATA 0x0150
1963 #define CB_SETITEMDATA 0x0151
1964 #define CB_GETDROPPEDCONTROLRECT 0x0152
1965 #define CB_SETITEMHEIGHT 0x0153
1966 #define CB_GETITEMHEIGHT 0x0154
1967 #define CB_SETEXTENDEDUI 0x0155
1968 #define CB_GETEXTENDEDUI 0x0156
1969 #define CB_GETDROPPEDSTATE 0x0157
1970 #define CB_FINDSTRINGEXACT 0x0158
1971 #define CB_SETLOCALE 0x0159
1972 #define CB_GETLOCALE 0x015a
1973 #define CB_GETTOPINDEX 0x015b
1974 #define CB_SETTOPINDEX 0x015c
1975 #define CB_GETHORIZONTALEXTENT 0x015d
1976 #define CB_SETHORIZONTALEXTENT 0x015e
1977 #define CB_GETDROPPEDWIDTH 0x015f
1978 #define CB_SETDROPPEDWIDTH 0x0160
1979 #define CB_INITSTORAGE 0x0161
1980 #define CB_MULTIPLEADDSTRING 0x0163
1981 #define CB_GETCOMBOBOXINFO 0x0164
1982 #define CB_MSGMAX 0x0165
1984 /* Combo box notification codes */
1985 #define CBN_ERRSPACE (-1)
1986 #define CBN_SELCHANGE 1
1987 #define CBN_DBLCLK 2
1988 #define CBN_SETFOCUS 3
1989 #define CBN_KILLFOCUS 4
1990 #define CBN_EDITCHANGE 5
1991 #define CBN_EDITUPDATE 6
1992 #define CBN_DROPDOWN 7
1993 #define CBN_CLOSEUP 8
1994 #define CBN_SELENDOK 9
1995 #define CBN_SELENDCANCEL 10
1997 /* Combo box message return values */
2000 #define CB_ERRSPACE (-2)
2002 #define MB_OK 0x00000000
2003 #define MB_OKCANCEL 0x00000001
2004 #define MB_ABORTRETRYIGNORE 0x00000002
2005 #define MB_YESNOCANCEL 0x00000003
2006 #define MB_YESNO 0x00000004
2007 #define MB_RETRYCANCEL 0x00000005
2008 #define MB_CANCELTRYCONTINUE 0x00000006
2009 #define MB_TYPEMASK 0x0000000F
2011 #define MB_ICONHAND 0x00000010
2012 #define MB_ICONQUESTION 0x00000020
2013 #define MB_ICONEXCLAMATION 0x00000030
2014 #define MB_ICONASTERISK 0x00000040
2015 #define MB_USERICON 0x00000080
2016 #define MB_ICONMASK 0x000000F0
2018 #define MB_ICONINFORMATION MB_ICONASTERISK
2019 #define MB_ICONSTOP MB_ICONHAND
2020 #define MB_ICONWARNING MB_ICONEXCLAMATION
2021 #define MB_ICONERROR MB_ICONHAND
2023 #define MB_DEFBUTTON1 0x00000000
2024 #define MB_DEFBUTTON2 0x00000100
2025 #define MB_DEFBUTTON3 0x00000200
2026 #define MB_DEFBUTTON4 0x00000300
2027 #define MB_DEFMASK 0x00000F00
2029 #define MB_APPLMODAL 0x00000000
2030 #define MB_SYSTEMMODAL 0x00001000
2031 #define MB_TASKMODAL 0x00002000
2032 #define MB_MODEMASK 0x00003000
2034 #define MB_HELP 0x00004000
2035 #define MB_NOFOCUS 0x00008000
2036 #define MB_MISCMASK 0x0000C000
2038 #define MB_SETFOREGROUND 0x00010000
2039 #define MB_DEFAULT_DESKTOP_ONLY 0x00020000
2040 #define MB_SERVICE_NOTIFICATION 0x00040000
2041 #define MB_TOPMOST 0x00040000
2042 #define MB_RIGHT 0x00080000
2043 #define MB_RTLREADING 0x00100000
2045 #define HELPINFO_WINDOW 0x0001
2046 #define HELPINFO_MENUITEM 0x0002
2048 /* Structure pointed to by lParam of WM_HELP */
2049 typedef struct tagHELPINFO
2051 UINT cbSize
; /* Size in bytes of this struct */
2052 INT iContextType
; /* Either HELPINFO_WINDOW or HELPINFO_MENUITEM */
2053 INT iCtrlId
; /* Control Id or a Menu item Id. */
2054 HANDLE hItemHandle
; /* hWnd of control or hMenu. */
2055 DWORD_PTR dwContextId
; /* Context Id associated with this item */
2056 POINT MousePos
; /* Mouse Position in screen co-ordinates */
2057 } HELPINFO
,*LPHELPINFO
;
2059 typedef void (CALLBACK
*MSGBOXCALLBACK
)(LPHELPINFO lpHelpInfo
);
2061 typedef struct tagMSGBOXPARAMSA
2065 HINSTANCE hInstance
;
2070 DWORD_PTR dwContextHelpId
;
2071 MSGBOXCALLBACK lpfnMsgBoxCallback
;
2073 } MSGBOXPARAMSA
, *PMSGBOXPARAMSA
, *LPMSGBOXPARAMSA
;
2075 typedef struct tagMSGBOXPARAMSW
2079 HINSTANCE hInstance
;
2081 LPCWSTR lpszCaption
;
2084 DWORD_PTR dwContextHelpId
;
2085 MSGBOXCALLBACK lpfnMsgBoxCallback
;
2087 } MSGBOXPARAMSW
, *PMSGBOXPARAMSW
, *LPMSGBOXPARAMSW
;
2089 DECL_WINELIB_TYPE_AW(MSGBOXPARAMS
)
2090 DECL_WINELIB_TYPE_AW(PMSGBOXPARAMS
)
2091 DECL_WINELIB_TYPE_AW(LPMSGBOXPARAMS
)
2093 #define MONITOR_DEFAULTTONULL 0x00000000
2094 #define MONITOR_DEFAULTTOPRIMARY 0x00000001
2095 #define MONITOR_DEFAULTTONEAREST 0x00000002
2097 #define MONITORINFOF_PRIMARY 0x00000001
2099 #ifndef CCHDEVICENAME
2100 #define CCHDEVICENAME 32
2103 typedef struct tagMONITORINFO
2109 } MONITORINFO
, *LPMONITORINFO
;
2111 typedef struct tagMONITORINFOEXA
2112 { /* the 4 first entries are the same as MONITORINFO */
2117 CHAR szDevice
[CCHDEVICENAME
];
2118 } MONITORINFOEXA
, *LPMONITORINFOEXA
;
2120 typedef struct tagMONITORINFOEXW
2121 { /* the 4 first entries are the same as MONITORINFO */
2126 WCHAR szDevice
[CCHDEVICENAME
];
2127 } MONITORINFOEXW
, *LPMONITORINFOEXW
;
2129 DECL_WINELIB_TYPE_AW(MONITORINFOEX
)
2130 DECL_WINELIB_TYPE_AW(LPMONITORINFOEX
)
2132 typedef BOOL (CALLBACK
*MONITORENUMPROC
)(HMONITOR
,HDC
,LPRECT
,LPARAM
);
2134 #include <pshpack2.h>
2136 typedef struct tagDLGTEMPLATE
2139 DWORD dwExtendedStyle
;
2147 typedef DLGTEMPLATE
*LPDLGTEMPLATEA
;
2148 typedef DLGTEMPLATE
*LPDLGTEMPLATEW
;
2149 DECL_WINELIB_TYPE_AW(LPDLGTEMPLATE
)
2150 typedef const DLGTEMPLATE
*LPCDLGTEMPLATEA
;
2151 typedef const DLGTEMPLATE
*LPCDLGTEMPLATEW
;
2152 DECL_WINELIB_TYPE_AW(LPCDLGTEMPLATE
)
2154 typedef struct tagDLGITEMTEMPLATE
2157 DWORD dwExtendedStyle
;
2165 typedef DLGITEMTEMPLATE
*PDLGITEMTEMPLATEA
;
2166 typedef DLGITEMTEMPLATE
*PDLGITEMTEMPLATEW
;
2167 DECL_WINELIB_TYPE_AW(PDLGITEMTEMPLATE
)
2168 typedef DLGITEMTEMPLATE
*LPDLGITEMTEMPLATEA
;
2169 typedef DLGITEMTEMPLATE
*LPDLGITEMTEMPLATEW
;
2170 DECL_WINELIB_TYPE_AW(LPDLGITEMTEMPLATE
)
2172 #include <poppack.h>
2174 /* CBT hook values */
2175 #define HCBT_MOVESIZE 0
2176 #define HCBT_MINMAX 1
2178 #define HCBT_CREATEWND 3
2179 #define HCBT_DESTROYWND 4
2180 #define HCBT_ACTIVATE 5
2181 #define HCBT_CLICKSKIPPED 6
2182 #define HCBT_KEYSKIPPED 7
2183 #define HCBT_SYSCOMMAND 8
2184 #define HCBT_SETFOCUS 9
2186 /* CBT hook structures */
2188 typedef struct tagCBT_CREATEWNDA
2190 CREATESTRUCTA
*lpcs
;
2191 HWND hwndInsertAfter
;
2192 } CBT_CREATEWNDA
, *LPCBT_CREATEWNDA
;
2194 typedef struct tagCBT_CREATEWNDW
2196 CREATESTRUCTW
*lpcs
;
2197 HWND hwndInsertAfter
;
2198 } CBT_CREATEWNDW
, *LPCBT_CREATEWNDW
;
2200 DECL_WINELIB_TYPE_AW(CBT_CREATEWND
)
2201 DECL_WINELIB_TYPE_AW(LPCBT_CREATEWND
)
2203 typedef struct tagCBTACTIVATESTRUCT
2207 } CBTACTIVATESTRUCT
, *LPCBTACTIVATESTRUCT
;
2210 typedef struct tagDROPSTRUCT
2217 DWORD dwControlData
;
2218 } DROPSTRUCT
, *PDROPSTRUCT
, *LPDROPSTRUCT
;
2220 #define DOF_EXECUTABLE 0x8001
2221 #define DOF_DOCUMENT 0x8002
2222 #define DOF_DIRECTORY 0x8003
2223 #define DOF_MULTIPLE 0x8004
2224 #define DOF_PROGMAN 0x0001
2225 #define DOF_SHELLDATA 0x0002
2227 /* modifiers for RegisterHotKey */
2228 #define MOD_ALT 0x0001
2229 #define MOD_CONTROL 0x0002
2230 #define MOD_SHIFT 0x0004
2231 #define MOD_WIN 0x0008
2233 /* ids for RegisterHotKey */
2234 #define IDHOT_SNAPWINDOW (-1) /* SHIFT-PRINTSCRN */
2235 #define IDHOT_SNAPDESKTOP (-2) /* PRINTSCRN */
2237 /* keybd_event flags */
2238 #define KEYEVENTF_EXTENDEDKEY 0x0001
2239 #define KEYEVENTF_KEYUP 0x0002
2240 #define KEYEVENTF_UNICODE 0x0004
2241 #define KEYEVENTF_SCANCODE 0x0008
2243 /* mouse_event flags */
2244 #define MOUSEEVENTF_MOVE 0x0001
2245 #define MOUSEEVENTF_LEFTDOWN 0x0002
2246 #define MOUSEEVENTF_LEFTUP 0x0004
2247 #define MOUSEEVENTF_RIGHTDOWN 0x0008
2248 #define MOUSEEVENTF_RIGHTUP 0x0010
2249 #define MOUSEEVENTF_MIDDLEDOWN 0x0020
2250 #define MOUSEEVENTF_MIDDLEUP 0x0040
2251 #define MOUSEEVENTF_XDOWN 0x0080
2252 #define MOUSEEVENTF_XUP 0x0100
2253 #define MOUSEEVENTF_WHEEL 0x0800
2254 #define MOUSEEVENTF_HWHEEL 0x1000
2255 #define MOUSEEVENTF_MOVE_NOCOALESCE 0x2000
2256 #define MOUSEEVENTF_VIRTUALDESK 0x4000
2257 #define MOUSEEVENTF_ABSOLUTE 0x8000
2259 /* ExitWindows() flags */
2260 #define EW_RESTARTWINDOWS 0x0042
2261 #define EW_REBOOTSYSTEM 0x0043
2262 #define EW_EXITANDEXECAPP 0x0044
2264 /* ExitWindowsEx() flags */
2265 #define EWX_LOGOFF 0
2266 #define EWX_SHUTDOWN 1
2267 #define EWX_REBOOT 2
2269 #define EWX_POWEROFF 8
2270 #define EWX_FORCEIFHUNG 16
2272 /* SetLastErrorEx types */
2273 #define SLE_ERROR 0x00000001
2274 #define SLE_MINORERROR 0x00000002
2275 #define SLE_WARNING 0x00000003
2277 /* Predefined resources */
2278 #define IDI_APPLICATION MAKEINTRESOURCE(32512)
2279 #define IDI_HAND MAKEINTRESOURCE(32513)
2280 #define IDI_QUESTION MAKEINTRESOURCE(32514)
2281 #define IDI_EXCLAMATION MAKEINTRESOURCE(32515)
2282 #define IDI_ASTERISK MAKEINTRESOURCE(32516)
2283 #define IDI_WINLOGO MAKEINTRESOURCE(32517)
2285 #define IDI_WARNING IDI_EXCLAMATION
2286 #define IDI_ERROR IDI_HAND
2287 #define IDI_INFORMATION IDI_ASTERISK
2289 #define IDC_ARROW MAKEINTRESOURCE(32512)
2290 #define IDC_IBEAM MAKEINTRESOURCE(32513)
2291 #define IDC_WAIT MAKEINTRESOURCE(32514)
2292 #define IDC_CROSS MAKEINTRESOURCE(32515)
2293 #define IDC_UPARROW MAKEINTRESOURCE(32516)
2294 #define IDC_PEN MAKEINTRESOURCE(32631)
2295 #define IDC_SIZE MAKEINTRESOURCE(32640)
2296 #define IDC_ICON MAKEINTRESOURCE(32641)
2297 #define IDC_SIZENWSE MAKEINTRESOURCE(32642)
2298 #define IDC_SIZENESW MAKEINTRESOURCE(32643)
2299 #define IDC_SIZEWE MAKEINTRESOURCE(32644)
2300 #define IDC_SIZENS MAKEINTRESOURCE(32645)
2301 #define IDC_SIZEALL MAKEINTRESOURCE(32646)
2302 #define IDC_NO MAKEINTRESOURCE(32648)
2303 #define IDC_HAND MAKEINTRESOURCE(32649)
2304 #define IDC_APPSTARTING MAKEINTRESOURCE(32650)
2305 #define IDC_HELP MAKEINTRESOURCE(32651)
2307 #define MNC_IGNORE 0
2309 #define MNC_EXECUTE 2
2310 #define MNC_SELECT 3
2312 /* SystemParametersInfo */
2313 #define SPI_GETBEEP 1
2314 #define SPI_SETBEEP 2
2315 #define SPI_GETMOUSE 3
2316 #define SPI_SETMOUSE 4
2317 #define SPI_GETBORDER 5
2318 #define SPI_SETBORDER 6
2319 #define SPI_GETKEYBOARDSPEED 10
2320 #define SPI_SETKEYBOARDSPEED 11
2321 #define SPI_LANGDRIVER 12
2322 #define SPI_ICONHORIZONTALSPACING 13
2323 #define SPI_GETSCREENSAVETIMEOUT 14
2324 #define SPI_SETSCREENSAVETIMEOUT 15
2325 #define SPI_GETSCREENSAVEACTIVE 16
2326 #define SPI_SETSCREENSAVEACTIVE 17
2327 #define SPI_GETGRIDGRANULARITY 18
2328 #define SPI_SETGRIDGRANULARITY 19
2329 #define SPI_SETDESKWALLPAPER 20
2330 #define SPI_SETDESKPATTERN 21
2331 #define SPI_GETKEYBOARDDELAY 22
2332 #define SPI_SETKEYBOARDDELAY 23
2333 #define SPI_ICONVERTICALSPACING 24
2334 #define SPI_GETICONTITLEWRAP 25
2335 #define SPI_SETICONTITLEWRAP 26
2336 #define SPI_GETMENUDROPALIGNMENT 27
2337 #define SPI_SETMENUDROPALIGNMENT 28
2338 #define SPI_SETDOUBLECLKWIDTH 29
2339 #define SPI_SETDOUBLECLKHEIGHT 30
2340 #define SPI_GETICONTITLELOGFONT 31
2341 #define SPI_SETDOUBLECLICKTIME 32
2342 #define SPI_SETMOUSEBUTTONSWAP 33
2343 #define SPI_SETICONTITLELOGFONT 34
2344 #define SPI_GETFASTTASKSWITCH 35
2345 #define SPI_SETFASTTASKSWITCH 36
2346 #define SPI_SETDRAGFULLWINDOWS 37
2347 #define SPI_GETDRAGFULLWINDOWS 38
2348 #define SPI_GETNONCLIENTMETRICS 41
2349 #define SPI_SETNONCLIENTMETRICS 42
2350 #define SPI_GETMINIMIZEDMETRICS 43
2351 #define SPI_SETMINIMIZEDMETRICS 44
2352 #define SPI_GETICONMETRICS 45
2353 #define SPI_SETICONMETRICS 46
2354 #define SPI_SETWORKAREA 47
2355 #define SPI_GETWORKAREA 48
2356 #define SPI_SETPENWINDOWS 49
2357 #define SPI_GETFILTERKEYS 50
2358 #define SPI_SETFILTERKEYS 51
2359 #define SPI_GETTOGGLEKEYS 52
2360 #define SPI_SETTOGGLEKEYS 53
2361 #define SPI_GETMOUSEKEYS 54
2362 #define SPI_SETMOUSEKEYS 55
2363 #define SPI_GETSHOWSOUNDS 56
2364 #define SPI_SETSHOWSOUNDS 57
2365 #define SPI_GETSTICKYKEYS 58
2366 #define SPI_SETSTICKYKEYS 59
2367 #define SPI_GETACCESSTIMEOUT 60
2368 #define SPI_SETACCESSTIMEOUT 61
2369 #define SPI_GETSERIALKEYS 62
2370 #define SPI_SETSERIALKEYS 63
2371 #define SPI_GETSOUNDSENTRY 64
2372 #define SPI_SETSOUNDSENTRY 65
2373 #define SPI_GETHIGHCONTRAST 66
2374 #define SPI_SETHIGHCONTRAST 67
2375 #define SPI_GETKEYBOARDPREF 68
2376 #define SPI_SETKEYBOARDPREF 69
2377 #define SPI_GETSCREENREADER 70
2378 #define SPI_SETSCREENREADER 71
2379 #define SPI_GETANIMATION 72
2380 #define SPI_SETANIMATION 73
2381 #define SPI_GETFONTSMOOTHING 74
2382 #define SPI_SETFONTSMOOTHING 75
2383 #define SPI_SETDRAGWIDTH 76
2384 #define SPI_SETDRAGHEIGHT 77
2385 #define SPI_SETHANDHELD 78
2386 #define SPI_GETLOWPOWERTIMEOUT 79
2387 #define SPI_GETPOWEROFFTIMEOUT 80
2388 #define SPI_SETLOWPOWERTIMEOUT 81
2389 #define SPI_SETPOWEROFFTIMEOUT 82
2390 #define SPI_GETLOWPOWERACTIVE 83
2391 #define SPI_GETPOWEROFFACTIVE 84
2392 #define SPI_SETLOWPOWERACTIVE 85
2393 #define SPI_SETPOWEROFFACTIVE 86
2394 #define SPI_SETCURSORS 87
2395 #define SPI_SETICONS 88
2396 #define SPI_GETDEFAULTINPUTLANG 89
2397 #define SPI_SETDEFAULTINPUTLANG 90
2398 #define SPI_SETLANGTOGGLE 91
2399 #define SPI_GETWINDOWSEXTENSION 92
2400 #define SPI_SETMOUSETRAILS 93
2401 #define SPI_GETMOUSETRAILS 94
2402 #define SPI_GETSNAPTODEFBUTTON 95
2403 #define SPI_SETSNAPTODEFBUTTON 96
2404 #define SPI_SETSCREENSAVERRUNNING 97
2405 #define SPI_SCREENSAVERRUNNING SPI_SETSCREENSAVERRUNNING
2406 #define SPI_GETMOUSEHOVERWIDTH 98
2407 #define SPI_SETMOUSEHOVERWIDTH 99
2408 #define SPI_GETMOUSEHOVERHEIGHT 100
2409 #define SPI_SETMOUSEHOVERHEIGHT 101
2410 #define SPI_GETMOUSEHOVERTIME 102
2411 #define SPI_SETMOUSEHOVERTIME 103
2412 #define SPI_GETWHEELSCROLLLINES 104
2413 #define SPI_SETWHEELSCROLLLINES 105
2414 #define SPI_GETMENUSHOWDELAY 106
2415 #define SPI_SETMENUSHOWDELAY 107
2416 #define SPI_GETWHEELSCROLLCHARS 108
2417 #define SPI_SETWHEELSCROLLCHARS 109
2418 #define SPI_GETSHOWIMEUI 110
2419 #define SPI_SETSHOWIMEUI 111
2420 #define SPI_GETMOUSESPEED 112
2421 #define SPI_SETMOUSESPEED 113
2422 #define SPI_GETSCREENSAVERRUNNING 114
2423 #define SPI_GETDESKWALLPAPER 115
2424 #define SPI_GETAUDIODESCRIPTION 116
2425 #define SPI_SETAUDIODESCRIPTION 117
2427 #define SPI_GETACTIVEWINDOWTRACKING 0x1000
2428 #define SPI_SETACTIVEWINDOWTRACKING 0x1001
2429 #define SPI_GETMENUANIMATION 0x1002
2430 #define SPI_SETMENUANIMATION 0x1003
2431 #define SPI_GETCOMBOBOXANIMATION 0x1004
2432 #define SPI_SETCOMBOBOXANIMATION 0x1005
2433 #define SPI_GETLISTBOXSMOOTHSCROLLING 0x1006
2434 #define SPI_SETLISTBOXSMOOTHSCROLLING 0x1007
2435 #define SPI_GETGRADIENTCAPTIONS 0x1008
2436 #define SPI_SETGRADIENTCAPTIONS 0x1009
2437 #define SPI_GETKEYBOARDCUES 0x100A
2438 #define SPI_SETKEYBOARDCUES 0x100B
2439 #define SPI_GETMENUUNDERLINES SPI_GETKEYBOARDCUES
2440 #define SPI_SETMENUUNDERLINES SPI_SETKEYBOARDCUES
2441 #define SPI_GETACTIVEWNDTRKZORDER 0x100C
2442 #define SPI_SETACTIVEWNDTRKZORDER 0x100D
2443 #define SPI_GETHOTTRACKING 0x100E
2444 #define SPI_SETHOTTRACKING 0x100F
2445 #define SPI_GETMENUFADE 0x1012
2446 #define SPI_SETMENUFADE 0x1013
2447 #define SPI_GETSELECTIONFADE 0x1014
2448 #define SPI_SETSELECTIONFADE 0x1015
2449 #define SPI_GETTOOLTIPANIMATION 0x1016
2450 #define SPI_SETTOOLTIPANIMATION 0x1017
2451 #define SPI_GETTOOLTIPFADE 0x1018
2452 #define SPI_SETTOOLTIPFADE 0x1019
2453 #define SPI_GETCURSORSHADOW 0x101A
2454 #define SPI_SETCURSORSHADOW 0x101B
2455 #define SPI_GETMOUSESONAR 0x101C
2456 #define SPI_SETMOUSESONAR 0x101D
2457 #define SPI_GETMOUSECLICKLOCK 0x101E
2458 #define SPI_SETMOUSECLICKLOCK 0x101F
2459 #define SPI_GETMOUSEVANISH 0x1020
2460 #define SPI_SETMOUSEVANISH 0x1021
2461 #define SPI_GETFLATMENU 0x1022
2462 #define SPI_SETFLATMENU 0x1023
2463 #define SPI_GETDROPSHADOW 0x1024
2464 #define SPI_SETDROPSHADOW 0x1025
2465 #define SPI_GETBLOCKSENDINPUTRESETS 0x1026
2466 #define SPI_SETBLOCKSENDINPUTRESETS 0x1027
2467 #define SPI_GETUIEFFECTS 0x103E
2468 #define SPI_SETUIEFFECTS 0x103F
2469 #define SPI_GETDISABLEOVERLAPPEDCONTENT 0x1040
2470 #define SPI_SETDISABLEOVERLAPPEDCONTENT 0x1041
2471 #define SPI_GETCLIENTAREAANIMATION 0x1042
2472 #define SPI_SETCLIENTAREAANIMATION 0x1043
2473 #define SPI_GETCLEARTYPE 0x1048
2474 #define SPI_SETCLEARTYPE 0x1049
2475 #define SPI_GETSPEECHRECOGNITION 0x104A
2476 #define SPI_SETSPEECHRECOGNITION 0x104B
2477 #define SPI_GETFOREGROUNDLOCKTIMEOUT 0x2000
2478 #define SPI_SETFOREGROUNDLOCKTIMEOUT 0x2001
2479 #define SPI_GETACTIVEWNDTRKTIMEOUT 0x2002
2480 #define SPI_SETACTIVEWNDTRKTIMEOUT 0x2003
2481 #define SPI_GETFOREGROUNDFLASHCOUNT 0x2004
2482 #define SPI_SETFOREGROUNDFLASHCOUNT 0x2005
2483 #define SPI_GETCARETWIDTH 0x2006
2484 #define SPI_SETCARETWIDTH 0x2007
2485 #define SPI_GETMOUSECLICKLOCKTIME 0x2008
2486 #define SPI_SETMOUSECLICKLOCKTIME 0x2009
2487 #define SPI_GETFONTSMOOTHINGTYPE 0x200A
2488 #define SPI_SETFONTSMOOTHINGTYPE 0x200B
2489 #define SPI_GETFONTSMOOTHINGCONTRAST 0x200C
2490 #define SPI_SETFONTSMOOTHINGCONTRAST 0x200D
2491 #define SPI_GETFOCUSBORDERWIDTH 0x200E
2492 #define SPI_SETFOCUSBORDERWIDTH 0x200F
2493 #define SPI_GETFOCUSBORDERHEIGHT 0x2010
2494 #define SPI_SETFOCUSBORDERHEIGHT 0x2011
2495 #define SPI_GETFONTSMOOTHINGORIENTATION 0x2012
2496 #define SPI_SETFONTSMOOTHINGORIENTATION 0x2013
2497 #define SPI_GETCONTACTVISUALIZATION 0x2018
2498 #define SPI_SETCONTACTVISUALIZATION 0x2019
2499 #define SPI_GETGESTUREVISUALIZATION 0x201A
2500 #define SPI_SETGESTUREVISUALIZATION 0x201B
2501 #define SPI_GETPENVISUALIZATION 0x201E
2502 #define SPI_SETPENVISUALIZATION 0x201F
2503 #define SPI_GETPENARBITRATIONTYPE 0x2020
2504 #define SPI_SETPENARBITRATIONTYPE 0x2021
2505 #define SPI_GETCARETTIMEOUT 0x2022
2506 #define SPI_SETCARETTIMEOUT 0x2023
2507 #define SPI_GETHANDEDNESS 0x2024
2508 #define SPI_SETHANDEDNESS 0x2025
2510 #define FE_FONTSMOOTHINGSTANDARD 0x0001
2511 #define FE_FONTSMOOTHINGCLEARTYPE 0x0002
2512 #define FE_FONTSMOOTHINGDOCKING 0x8000
2514 #define FE_FONTSMOOTHINGORIENTATIONBGR 0x0000
2515 #define FE_FONTSMOOTHINGORIENTATIONRGB 0x0001
2517 #define CONTACTVISUALIZATION_OFF 0x0000
2518 #define CONTACTVISUALIZATION_ON 0x0001
2519 #define CONTACTVISUALIZATION_PRESENTATIONMODE 0x0002
2521 #define GESTUREVISUALIZATION_OFF 0x0000
2522 #define GESTUREVISUALIZATION_ON 0x001F
2523 #define GESTUREVISUALIZATION_TAP 0x0001
2524 #define GESTUREVISUALIZATION_DOUBLETAP 0x0002
2525 #define GESTUREVISUALIZATION_PRESSANDTAP 0x0004
2526 #define GESTUREVISUALIZATION_PRESSANDHOLD 0x0008
2527 #define GESTUREVISUALIZATION_RIGHTTAP 0x0010
2529 #define PENVISUALIZATION_ON 0x0023
2530 #define PENVISUALIZATION_OFF 0x0000
2531 #define PENVISUALIZATION_TAP 0x0001
2532 #define PENVISUALIZATION_DOUBLETAP 0x0002
2533 #define PENVISUALIZATION_CURSOR 0x0020
2535 #define PENARBITRATIONTYPE_NONE 0x0000
2536 #define PENARBITRATIONTYPE_WIN8 0x0001
2537 #define PENARBITRATIONTYPE_FIS 0x0002
2538 #define PENARBITRATIONTYPE_SPT 0x0003
2539 #define PENARBITRATIONTYPE_MAX 0x0004
2541 #define SETWALLPAPER_DEFAULT ((LPWSTR)-1)
2543 /* SystemParametersInfo flags */
2545 #define SPIF_UPDATEINIFILE 1
2546 #define SPIF_SENDWININICHANGE 2
2547 #define SPIF_SENDCHANGE SPIF_SENDWININICHANGE
2549 #if defined(_WINGDI_) && !defined(NOGDI)
2550 typedef struct tagNONCLIENTMETRICSA
{
2557 LOGFONTA lfCaptionFont
;
2558 INT iSmCaptionWidth
;
2559 INT iSmCaptionHeight
;
2560 LOGFONTA lfSmCaptionFont
;
2563 LOGFONTA lfMenuFont
;
2564 LOGFONTA lfStatusFont
;
2565 LOGFONTA lfMessageFont
;
2566 INT iPaddedBorderWidth
;
2567 } NONCLIENTMETRICSA
, *PNONCLIENTMETRICSA
, *LPNONCLIENTMETRICSA
;
2569 typedef struct tagNONCLIENTMETRICSW
{
2576 LOGFONTW lfCaptionFont
;
2577 INT iSmCaptionWidth
;
2578 INT iSmCaptionHeight
;
2579 LOGFONTW lfSmCaptionFont
;
2582 LOGFONTW lfMenuFont
;
2583 LOGFONTW lfStatusFont
;
2584 LOGFONTW lfMessageFont
;
2585 INT iPaddedBorderWidth
;
2586 } NONCLIENTMETRICSW
, *PNONCLIENTMETRICSW
, *LPNONCLIENTMETRICSW
;
2588 DECL_WINELIB_TYPE_AW(NONCLIENTMETRICS
)
2589 DECL_WINELIB_TYPE_AW(PNONCLIENTMETRICS
)
2590 DECL_WINELIB_TYPE_AW(LPNONCLIENTMETRICS
)
2592 typedef struct tagICONMETRICSA
{
2598 } ICONMETRICSA
, *PICONMETRICSA
, *LPICONMETRICSA
;
2600 typedef struct tagICONMETRICSW
{
2606 } ICONMETRICSW
, *PICONMETRICSW
, *LPICONMETRICSW
;
2608 DECL_WINELIB_TYPE_AW(ICONMETRICS
)
2609 DECL_WINELIB_TYPE_AW(PICONMETRICS
)
2610 DECL_WINELIB_TYPE_AW(LPICONMETRICS
)
2612 typedef struct tagUPDATELAYEREDWINDOWINFO
2616 POINT
const* pptDst
;
2619 POINT
const* pptSrc
;
2621 BLENDFUNCTION
const* pblend
;
2623 RECT
const* prcDirty
;
2624 } UPDATELAYEREDWINDOWINFO
, *PUPDATELAYEREDWINDOWINFO
;
2626 #endif /* defined(_WINGDI_) && !defined(NOGDI) */
2628 #define ARW_BOTTOMLEFT __MSABI_LONG(0x0000)
2629 #define ARW_BOTTOMRIGHT __MSABI_LONG(0x0001)
2630 #define ARW_TOPLEFT __MSABI_LONG(0x0002)
2631 #define ARW_TOPRIGHT __MSABI_LONG(0x0003)
2632 #define ARW_STARTMASK __MSABI_LONG(0x0003)
2633 #define ARW_STARTRIGHT __MSABI_LONG(0x0001)
2634 #define ARW_STARTTOP __MSABI_LONG(0x0002)
2636 #define ARW_LEFT __MSABI_LONG(0x0000)
2637 #define ARW_RIGHT __MSABI_LONG(0x0000)
2638 #define ARW_UP __MSABI_LONG(0x0004)
2639 #define ARW_DOWN __MSABI_LONG(0x0004)
2640 #define ARW_HIDE __MSABI_LONG(0x0008)
2642 typedef struct tagMINIMIZEDMETRICS
{
2648 } MINIMIZEDMETRICS
, *PMINIMIZEDMETRICS
, *LPMINIMIZEDMETRICS
;
2650 /* Window affinity */
2651 #define WDA_NONE 0x0
2652 #define WDA_MONITOR 0x1
2654 /* Window scrolling */
2655 #define SW_SCROLLCHILDREN 0x0001
2656 #define SW_INVALIDATE 0x0002
2657 #define SW_ERASE 0x0004
2659 /* CreateWindow() coordinates */
2660 #define CW_USEDEFAULT ((INT)0x80000000)
2662 /* ChildWindowFromPointEx Flags */
2663 #define CWP_ALL 0x0000
2664 #define CWP_SKIPINVISIBLE 0x0001
2665 #define CWP_SKIPDISABLED 0x0002
2666 #define CWP_SKIPTRANSPARENT 0x0004
2668 /* PeekMessage() options */
2669 #define PM_NOREMOVE 0x0000
2670 #define PM_REMOVE 0x0001
2671 #define PM_NOYIELD 0x0002
2672 #define PM_QS_INPUT (QS_INPUT << 16)
2673 #define PM_QS_POSTMESSAGE ((QS_POSTMESSAGE | QS_HOTKEY | QS_TIMER) << 16)
2674 #define PM_QS_PAINT (QS_PAINT << 16)
2675 #define PM_QS_SENDMESSAGE (QS_SENDMESSAGE << 16)
2677 /* SetTimer() limits */
2678 #define USER_TIMER_MINIMUM 0x0000000A
2679 #define USER_TIMER_MAXIMUM 0x7FFFFFFF
2681 /* SetCoalescableTimer() tolerances */
2682 #define TIMERV_DEFAULT_COALESCING 0
2683 #define TIMERV_NO_COALESCING 0xFFFFFFFF
2684 #define TIMERV_COALESCING_MIN 1
2685 #define TIMERV_COALESCING_MAX 0x7FFFFFF5
2687 /* AnimateWindow() flags */
2688 #define AW_SLIDE 0x00040000
2689 #define AW_ACTIVATE 0x00020000
2690 #define AW_BLEND 0x00080000
2691 #define AW_HIDE 0x00010000
2692 #define AW_CENTER 0x00000010
2693 #define AW_HOR_POSITIVE 0x00000001
2694 #define AW_HOR_NEGATIVE 0x00000002
2695 #define AW_VER_POSITIVE 0x00000004
2696 #define AW_VER_NEGATIVE 0x00000008
2698 /* FlashWindowEx() flags */
2699 #define FLASHW_STOP 0x00000000
2700 #define FLASHW_CAPTION 0x00000001
2701 #define FLASHW_TRAY 0x00000002
2702 #define FLASHW_ALL (FLASHW_CAPTION|FLASHW_TRAY)
2703 #define FLASHW_TIMER 0x00000004
2704 #define FLASHW_TIMERNOFG 0x0000000C
2712 } FLASHWINFO
, *PFLASHWINFO
;
2714 /* SetLayeredWindowAttributes() flags */
2715 #define LWA_COLORKEY 0x00000001
2716 #define LWA_ALPHA 0x00000002
2718 /* UpdateLayeredWindow() flags */
2719 #define ULW_COLORKEY 0x00000001
2720 #define ULW_ALPHA 0x00000002
2721 #define ULW_OPAQUE 0x00000004
2722 #define ULW_EX_NORESIZE 0x00000008
2724 /* SetWindowPos() and WINDOWPOS flags */
2725 #define SWP_NOSIZE 0x0001
2726 #define SWP_NOMOVE 0x0002
2727 #define SWP_NOZORDER 0x0004
2728 #define SWP_NOREDRAW 0x0008
2729 #define SWP_NOACTIVATE 0x0010
2730 #define SWP_FRAMECHANGED 0x0020 /* The frame changed: send WM_NCCALCSIZE */
2731 #define SWP_SHOWWINDOW 0x0040
2732 #define SWP_HIDEWINDOW 0x0080
2733 #define SWP_NOCOPYBITS 0x0100
2734 #define SWP_NOOWNERZORDER 0x0200 /* Don't do owner Z ordering */
2736 #define SWP_DRAWFRAME SWP_FRAMECHANGED
2737 #define SWP_NOREPOSITION SWP_NOOWNERZORDER
2739 #define SWP_NOSENDCHANGING 0x0400
2740 #define SWP_DEFERERASE 0x2000
2741 #define SWP_ASYNCWINDOWPOS 0x4000
2743 /* undocumented SWP flags - from SDK 3.1 */
2744 #define SWP_NOCLIENTSIZE 0x0800
2745 #define SWP_NOCLIENTMOVE 0x1000
2746 #define SWP_STATECHANGED 0x8000
2748 #define HWND_DESKTOP ((HWND)0)
2749 #define HWND_BROADCAST ((HWND)0xffff)
2751 /* SetWindowPos() hwndInsertAfter field values */
2752 #define HWND_TOP ((HWND)0)
2753 #define HWND_BOTTOM ((HWND)1)
2754 #define HWND_TOPMOST ((HWND)-1)
2755 #define HWND_NOTOPMOST ((HWND)-2)
2756 #define HWND_MESSAGE ((HWND)-3)
2759 #define DCX_WINDOW 0x00000001
2760 #define DCX_CACHE 0x00000002
2761 #define DCX_NORESETATTRS 0x00000004
2762 #define DCX_CLIPCHILDREN 0x00000008
2763 #define DCX_CLIPSIBLINGS 0x00000010
2764 #define DCX_PARENTCLIP 0x00000020
2765 #define DCX_EXCLUDERGN 0x00000040
2766 #define DCX_INTERSECTRGN 0x00000080
2767 #define DCX_EXCLUDEUPDATE 0x00000100
2768 #define DCX_INTERSECTUPDATE 0x00000200
2769 #define DCX_LOCKWINDOWUPDATE 0x00000400
2770 #define DCX_USESTYLE 0x00010000
2771 #define DCX_NORECOMPUTE 0x00100000
2772 #define DCX_VALIDATE 0x00200000
2776 /* for GetMenuDefaultItem */
2777 #define GMDI_USEDISABLED __MSABI_LONG(0x0001)
2778 #define GMDI_GOINTOPOPUPS __MSABI_LONG(0x0002)
2780 /* DrawText() flags */
2781 #define DT_TOP 0x00000000
2782 #define DT_LEFT 0x00000000
2783 #define DT_CENTER 0x00000001
2784 #define DT_RIGHT 0x00000002
2785 #define DT_VCENTER 0x00000004
2786 #define DT_BOTTOM 0x00000008
2787 #define DT_WORDBREAK 0x00000010
2788 #define DT_SINGLELINE 0x00000020
2789 #define DT_EXPANDTABS 0x00000040
2790 #define DT_TABSTOP 0x00000080
2791 #define DT_NOCLIP 0x00000100
2792 #define DT_EXTERNALLEADING 0x00000200
2793 #define DT_CALCRECT 0x00000400
2794 #define DT_NOPREFIX 0x00000800
2795 #define DT_INTERNAL 0x00001000
2796 #define DT_EDITCONTROL 0x00002000
2797 #define DT_PATH_ELLIPSIS 0x00004000
2798 #define DT_END_ELLIPSIS 0x00008000
2799 #define DT_MODIFYSTRING 0x00010000
2800 #define DT_RTLREADING 0x00020000
2801 #define DT_WORD_ELLIPSIS 0x00040000
2802 #define DT_NOFULLWIDTHCHARBREAK 0x00080000
2803 #define DT_HIDEPREFIX 0x00100000
2804 #define DT_PREFIXONLY 0x00200000
2806 /* DrawCaption()/DrawCaptionTemp() flags */
2807 #define DC_ACTIVE 0x0001
2808 #define DC_SMALLCAP 0x0002
2809 #define DC_ICON 0x0004
2810 #define DC_TEXT 0x0008
2811 #define DC_INBUTTON 0x0010
2812 #define DC_GRADIENT 0x0020
2813 #define DC_BUTTONS 0x1000
2815 /* DrawEdge() flags */
2816 #define BDR_RAISEDOUTER 0x0001
2817 #define BDR_SUNKENOUTER 0x0002
2818 #define BDR_RAISEDINNER 0x0004
2819 #define BDR_SUNKENINNER 0x0008
2821 #define BDR_OUTER 0x0003
2822 #define BDR_INNER 0x000c
2823 #define BDR_RAISED 0x0005
2824 #define BDR_SUNKEN 0x000a
2826 #define EDGE_RAISED (BDR_RAISEDOUTER | BDR_RAISEDINNER)
2827 #define EDGE_SUNKEN (BDR_SUNKENOUTER | BDR_SUNKENINNER)
2828 #define EDGE_ETCHED (BDR_SUNKENOUTER | BDR_RAISEDINNER)
2829 #define EDGE_BUMP (BDR_RAISEDOUTER | BDR_SUNKENINNER)
2832 #define BF_LEFT 0x0001
2833 #define BF_TOP 0x0002
2834 #define BF_RIGHT 0x0004
2835 #define BF_BOTTOM 0x0008
2836 #define BF_DIAGONAL 0x0010
2837 #define BF_MIDDLE 0x0800 /* Fill in the middle */
2838 #define BF_SOFT 0x1000 /* For softer buttons */
2839 #define BF_ADJUST 0x2000 /* Calculate the space left over */
2840 #define BF_FLAT 0x4000 /* For flat rather than 3D borders */
2841 #define BF_MONO 0x8000 /* For monochrome borders */
2842 #define BF_TOPLEFT (BF_TOP | BF_LEFT)
2843 #define BF_TOPRIGHT (BF_TOP | BF_RIGHT)
2844 #define BF_BOTTOMLEFT (BF_BOTTOM | BF_LEFT)
2845 #define BF_BOTTOMRIGHT (BF_BOTTOM | BF_RIGHT)
2846 #define BF_RECT (BF_LEFT | BF_TOP | BF_RIGHT | BF_BOTTOM)
2847 #define BF_DIAGONAL_ENDTOPRIGHT (BF_DIAGONAL | BF_TOP | BF_RIGHT)
2848 #define BF_DIAGONAL_ENDTOPLEFT (BF_DIAGONAL | BF_TOP | BF_LEFT)
2849 #define BF_DIAGONAL_ENDBOTTOMLEFT (BF_DIAGONAL | BF_BOTTOM | BF_LEFT)
2850 #define BF_DIAGONAL_ENDBOTTOMRIGHT (BF_DIAGONAL | BF_BOTTOM | BF_RIGHT)
2852 /* DrawFrameControl() uType's */
2854 #define DFC_CAPTION 1
2856 #define DFC_SCROLL 3
2857 #define DFC_BUTTON 4
2858 #define DFC_POPUPMENU 5
2862 #define DFCS_CAPTIONCLOSE 0x0000
2863 #define DFCS_CAPTIONMIN 0x0001
2864 #define DFCS_CAPTIONMAX 0x0002
2865 #define DFCS_CAPTIONRESTORE 0x0003
2866 #define DFCS_CAPTIONHELP 0x0004 /* Windows 95 only */
2868 #define DFCS_MENUARROW 0x0000
2869 #define DFCS_MENUCHECK 0x0001
2870 #define DFCS_MENUBULLET 0x0002
2871 #define DFCS_MENUARROWRIGHT 0x0004
2873 #define DFCS_SCROLLUP 0x0000
2874 #define DFCS_SCROLLDOWN 0x0001
2875 #define DFCS_SCROLLLEFT 0x0002
2876 #define DFCS_SCROLLRIGHT 0x0003
2877 #define DFCS_SCROLLCOMBOBOX 0x0005
2878 #define DFCS_SCROLLSIZEGRIP 0x0008
2879 #define DFCS_SCROLLSIZEGRIPRIGHT 0x0010
2881 #define DFCS_BUTTONCHECK 0x0000
2882 #define DFCS_BUTTONRADIOIMAGE 0x0001
2883 #define DFCS_BUTTONRADIOMASK 0x0002 /* to draw nonsquare button */
2884 #define DFCS_BUTTONRADIO 0x0004
2885 #define DFCS_BUTTON3STATE 0x0008
2886 #define DFCS_BUTTONPUSH 0x0010
2888 /* additional state of the control */
2890 #define DFCS_INACTIVE 0x0100
2891 #define DFCS_PUSHED 0x0200
2892 #define DFCS_CHECKED 0x0400
2893 #define DFCS_TRANSPARENT 0x0800
2894 #define DFCS_HOT 0x1000
2895 #define DFCS_ADJUSTRECT 0x2000 /* exclude surrounding edge */
2896 #define DFCS_FLAT 0x4000
2897 #define DFCS_MONO 0x8000
2901 #define DST_COMPLEX 0x0000
2902 #define DST_TEXT 0x0001
2903 #define DST_PREFIXTEXT 0x0002
2904 #define DST_ICON 0x0003
2905 #define DST_BITMAP 0x0004
2908 #define DSS_NORMAL 0x0000
2909 #define DSS_UNION 0x0010 /* Gray string appearance */
2910 #define DSS_DISABLED 0x0020
2911 #define DSS_DEFAULT 0x0040 /* Make it bold */
2912 #define DSS_MONO 0x0080
2913 #define DSS_HIDEPREFIX 0x0200
2914 #define DSS_PREFIXONLY 0x0400
2915 #define DSS_RIGHT 0x8000
2918 /* Sent as the lParam of a WM_DRAWITEM message to instruct how an
2919 * owner drawn control is to be drawn */
2920 typedef struct tagDRAWITEMSTRUCT
2922 UINT CtlType
; /* Type of control (ODT_* flags from "winuser.h") */
2923 UINT CtlID
; /* Control ID */
2924 UINT itemID
; /* Menu item ID */
2925 UINT itemAction
; /* Action to perform (ODA_* flags from "winuser.h") */
2926 UINT itemState
; /* Item state (ODS_* flags from "winuser.h") */
2927 HWND hwndItem
; /* Control window */
2928 HDC hDC
; /* Device context to draw to */
2929 RECT rcItem
; /* Position of the control in hDC */
2930 ULONG_PTR itemData
; /* Extra data added by the application, if any */
2931 } DRAWITEMSTRUCT
, *PDRAWITEMSTRUCT
, *LPDRAWITEMSTRUCT
;
2934 typedef struct tagMEASUREITEMSTRUCT
2942 } MEASUREITEMSTRUCT
, *PMEASUREITEMSTRUCT
, *LPMEASUREITEMSTRUCT
;
2945 typedef struct tagDELETEITEMSTRUCT
2952 } DELETEITEMSTRUCT
, *PDELETEITEMSTRUCT
, *LPDELETEITEMSTRUCT
;
2955 typedef struct tagCOMPAREITEMSTRUCT
2961 ULONG_PTR itemData1
;
2963 ULONG_PTR itemData2
;
2965 } COMPAREITEMSTRUCT
, *PCOMPAREITEMSTRUCT
, *LPCOMPAREITEMSTRUCT
;
2968 /* WM_KEYUP/DOWN/CHAR HIWORD(lParam) flags */
2969 #define KF_EXTENDED 0x0100
2970 #define KF_DLGMODE 0x0800
2971 #define KF_MENUMODE 0x1000
2972 #define KF_ALTDOWN 0x2000
2973 #define KF_REPEAT 0x4000
2974 #define KF_UP 0x8000
2977 /* MapVirtualKey translation types */
2978 #define MAPVK_VK_TO_VSC 0
2979 #define MAPVK_VSC_TO_VK 1
2980 #define MAPVK_VK_TO_CHAR 2
2981 #define MAPVK_VSC_TO_VK_EX 3
2982 #define MAPVK_VK_TO_VSC_EX 4
2986 typedef struct tagTRACKMOUSEEVENT
{
2991 } TRACKMOUSEEVENT
, *LPTRACKMOUSEEVENT
;
2993 /* Queue status flags */
2994 #define QS_KEY 0x0001
2995 #define QS_MOUSEMOVE 0x0002
2996 #define QS_MOUSEBUTTON 0x0004
2997 #define QS_MOUSE (QS_MOUSEMOVE | QS_MOUSEBUTTON)
2998 #define QS_POSTMESSAGE 0x0008
2999 #define QS_TIMER 0x0010
3000 #define QS_PAINT 0x0020
3001 #define QS_SENDMESSAGE 0x0040
3002 #define QS_HOTKEY 0x0080
3003 #define QS_ALLPOSTMESSAGE 0x0100
3004 #define QS_RAWINPUT 0x0400
3005 #define QS_TOUCH 0x0800
3006 #define QS_POINTER 0x1000
3007 #define QS_INPUT (QS_MOUSE | QS_KEY | QS_RAWINPUT | QS_TOUCH | QS_POINTER)
3008 #define QS_ALLEVENTS (QS_INPUT | QS_POSTMESSAGE | QS_TIMER | QS_PAINT | QS_HOTKEY)
3009 #define QS_ALLINPUT (QS_ALLEVENTS | QS_SENDMESSAGE)
3011 /* Extra (undocumented) queue wake bits - see "Undoc. Windows" */
3012 #define QS_SMRESULT 0x8000
3014 /* InSendMessageEx flags */
3015 #define ISMEX_NOSEND 0x00000000
3016 #define ISMEX_SEND 0x00000001
3017 #define ISMEX_NOTIFY 0x00000002
3018 #define ISMEX_CALLBACK 0x00000004
3019 #define ISMEX_REPLIED 0x00000008
3021 #define DDL_READWRITE 0x0000
3022 #define DDL_READONLY 0x0001
3023 #define DDL_HIDDEN 0x0002
3024 #define DDL_SYSTEM 0x0004
3025 #define DDL_DIRECTORY 0x0010
3026 #define DDL_ARCHIVE 0x0020
3028 #define DDL_POSTMSGS 0x2000
3029 #define DDL_DRIVES 0x4000
3030 #define DDL_EXCLUSIVE 0x8000
3032 /* Shell hook values */
3033 #define HSHELL_WINDOWCREATED 1
3034 #define HSHELL_WINDOWDESTROYED 2
3035 #define HSHELL_ACTIVATESHELLWINDOW 3
3036 #define HSHELL_WINDOWACTIVATED 4
3037 #define HSHELL_GETMINRECT 5
3038 #define HSHELL_REDRAW 6
3039 #define HSHELL_TASKMAN 7
3040 #define HSHELL_LANGUAGE 8
3041 #define HSHELL_SYSMENU 9
3042 #define HSHELL_ENDTASK 10
3043 #define HSHELL_ACCESSIBILITYSTATE 11
3044 #define HSHELL_APPCOMMAND 12
3045 #define HSHELL_WINDOWREPLACED 13
3046 #define HSHELL_WINDOWREPLACING 14
3048 #define HSHELL_HIGHBIT 0x8000
3049 #define HSHELL_FLASH (HSHELL_REDRAW|HSHELL_HIGHBIT)
3050 #define HSHELL_RUDEAPPACTIVATED (HSHELL_WINDOWACTIVATED|HSHELL_HIGHBIT)
3053 #define APPCOMMAND_BROWSER_BACKWARD 1
3054 #define APPCOMMAND_BROWSER_FORWARD 2
3055 #define APPCOMMAND_BROWSER_REFRESH 3
3056 #define APPCOMMAND_BROWSER_STOP 4
3057 #define APPCOMMAND_BROWSER_SEARCH 5
3058 #define APPCOMMAND_BROWSER_FAVORITES 6
3059 #define APPCOMMAND_BROWSER_HOME 7
3060 #define APPCOMMAND_VOLUME_MUTE 8
3061 #define APPCOMMAND_VOLUME_DOWN 9
3062 #define APPCOMMAND_VOLUME_UP 10
3063 #define APPCOMMAND_MEDIA_NEXTTRACK 11
3064 #define APPCOMMAND_MEDIA_PREVIOUSTRACK 12
3065 #define APPCOMMAND_MEDIA_STOP 13
3066 #define APPCOMMAND_MEDIA_PLAY_PAUSE 14
3067 #define APPCOMMAND_LAUNCH_MAIL 15
3068 #define APPCOMMAND_LAUNCH_MEDIA_SELECT 16
3069 #define APPCOMMAND_LAUNCH_APP1 17
3070 #define APPCOMMAND_LAUNCH_APP2 18
3071 #define APPCOMMAND_BASS_DOWN 19
3072 #define APPCOMMAND_BASS_BOOST 20
3073 #define APPCOMMAND_BASS_UP 21
3074 #define APPCOMMAND_TREBLE_DOWN 22
3075 #define APPCOMMAND_TREBLE_UP 23
3076 #define APPCOMMAND_MICROPHONE_VOLUME_MUTE 24
3077 #define APPCOMMAND_MICROPHONE_VOLUME_DOWN 25
3078 #define APPCOMMAND_MICROPHONE_VOLUME_UP 26
3079 #define APPCOMMAND_HELP 27
3080 #define APPCOMMAND_FIND 28
3081 #define APPCOMMAND_NEW 29
3082 #define APPCOMMAND_OPEN 30
3083 #define APPCOMMAND_CLOSE 31
3084 #define APPCOMMAND_SAVE 32
3085 #define APPCOMMAND_PRINT 33
3086 #define APPCOMMAND_UNDO 34
3087 #define APPCOMMAND_REDO 35
3088 #define APPCOMMAND_COPY 36
3089 #define APPCOMMAND_CUT 37
3090 #define APPCOMMAND_PASTE 38
3091 #define APPCOMMAND_REPLY_TO_MAIL 39
3092 #define APPCOMMAND_FORWARD_MAIL 40
3093 #define APPCOMMAND_SEND_MAIL 41
3094 #define APPCOMMAND_SPELL_CHECK 42
3095 #define APPCOMMAND_DICTATE_OR_COMMAND_CONTROL_TOGGLE 43
3096 #define APPCOMMAND_MIC_ON_OFF_TOGGLE 44
3097 #define APPCOMMAND_CORRECTION_LIST 45
3098 #define APPCOMMAND_MEDIA_PLAY 46
3099 #define APPCOMMAND_MEDIA_PAUSE 47
3100 #define APPCOMMAND_MEDIA_RECORD 48
3101 #define APPCOMMAND_MEDIA_FAST_FORWARD 49
3102 #define APPCOMMAND_MEDIA_REWIND 50
3103 #define APPCOMMAND_MEDIA_CHANNEL_UP 51
3104 #define APPCOMMAND_MEDIA_CHANNEL_DOWN 52
3105 #define APPCOMMAND_DELETE 53
3106 #define APPCOMMAND_DWM_FLIP3D 54
3108 #define FAPPCOMMAND_MOUSE 0x8000
3109 #define FAPPCOMMAND_KEY 0
3110 #define FAPPCOMMAND_OEM 0x1000
3111 #define FAPPCOMMAND_MASK 0xF000
3113 #define GET_APPCOMMAND_LPARAM(lParam) ((short)(HIWORD(lParam) & ~FAPPCOMMAND_MASK))
3114 #define GET_DEVICE_LPARAM(lParam) ((WORD)(HIWORD(lParam) & FAPPCOMMAND_MASK))
3115 #define GET_MOUSEORKEY_LPARAM GET_DEVICE_LPARAM
3116 #define GET_FLAGS_LPARAM(lParam) (LOWORD(lParam))
3117 #define GET_KEYSTATE_LPARAM(lParam) GET_FLAGS_LPARAM(lParam)
3120 /* types of LoadImage */
3121 #define IMAGE_BITMAP 0
3122 #define IMAGE_ICON 1
3123 #define IMAGE_CURSOR 2
3124 #define IMAGE_ENHMETAFILE 3
3126 /* loadflags to LoadImage */
3127 #define LR_DEFAULTCOLOR 0x0000
3128 #define LR_MONOCHROME 0x0001
3129 #define LR_COLOR 0x0002
3130 #define LR_COPYRETURNORG 0x0004
3131 #define LR_COPYDELETEORG 0x0008
3132 #define LR_LOADFROMFILE 0x0010
3133 #define LR_LOADTRANSPARENT 0x0020
3134 #define LR_DEFAULTSIZE 0x0040
3135 #define LR_VGACOLOR 0x0080
3136 #define LR_LOADMAP3DCOLORS 0x1000
3137 #define LR_CREATEDIBSECTION 0x2000
3138 #define LR_COPYFROMRESOURCE 0x4000
3139 #define LR_SHARED 0x8000
3141 /* Flags for DrawIconEx. */
3142 #define DI_MASK 0x0001
3143 #define DI_IMAGE 0x0002
3144 #define DI_NORMAL (DI_MASK | DI_IMAGE)
3145 #define DI_COMPAT 0x0004
3146 #define DI_DEFAULTSIZE 0x0008
3147 #define DI_NOMIRROR 0x0010
3149 /* RegisterDeviceNotification stuff */
3150 typedef PVOID HDEVNOTIFY
;
3151 typedef HDEVNOTIFY
*PHDEVNOTIFY
;
3153 #define DEVICE_NOTIFY_WINDOW_HANDLE 0x00000000
3154 #define DEVICE_NOTIFY_SERVICE_HANDLE 0x00000001
3155 #define DEVICE_NOTIFY_ALL_INTERFACE_CLASSES 0x00000004
3157 /* used for GetWindowInfo() */
3159 #define WS_ACTIVECAPTION 0x0001
3161 typedef struct tagWINDOWINFO
{
3167 DWORD dwWindowStatus
;
3168 UINT cxWindowBorders
;
3169 UINT cyWindowBorders
;
3170 ATOM atomWindowType
;
3171 WORD wCreatorVersion
;
3172 } WINDOWINFO
, *PWINDOWINFO
, *LPWINDOWINFO
;
3174 /* used for GetTitleBarInfo() */
3176 #define CCHILDREN_TITLEBAR 5
3178 typedef struct tagTITLEBARINFO
{
3181 DWORD rgstate
[CCHILDREN_TITLEBAR
+1];
3182 } TITLEBARINFO
, *PTITLEBARINFO
, *LPTITLEBARINFO
;
3184 /* used by GetLastInputInfo */
3185 typedef struct tagLASTINPUTINFO
{
3188 } LASTINPUTINFO
, *PLASTINPUTINFO
;
3190 /* used by GetAltTabInfo */
3202 } ALTTABINFO
, *PALTTABINFO
, *LPALTTABINFO
;
3204 /* SetWinEventHook() flags */
3205 #define WINEVENT_OUTOFCONTEXT 0x0
3206 #define WINEVENT_SKIPOWNTHREAD 0x1
3207 #define WINEVENT_SKIPOWNPROCESS 0x2
3208 #define WINEVENT_INCONTEXT 0x4
3210 #define ENDSESSION_LOGOFF 0x80000000
3213 #define CHILDID_SELF 0
3214 #define INDEXID_OBJECT 0
3215 #define INDEXID_CONTAINER 0
3217 /* System object Id's */
3218 #define OBJID_WINDOW 0
3219 #define OBJID_SYSMENU -1
3220 #define OBJID_TITLEBAR -2
3221 #define OBJID_MENU -3
3222 #define OBJID_CLIENT -4
3223 #define OBJID_VSCROLL -5
3224 #define OBJID_HSCROLL -6
3225 #define OBJID_SIZEGRIP -7
3226 #define OBJID_CARET -8
3227 #define OBJID_CURSOR -9
3228 #define OBJID_ALERT -10
3229 #define OBJID_SOUND -11
3230 #define OBJID_QUERYCLASSNAMEIDX -12
3231 #define OBJID_NATIVEOM -16
3233 /* User event Id limits */
3234 #define EVENT_MIN 0x00000001
3235 #define EVENT_MAX 0x7FFFFFFF
3238 #define EVENT_SYSTEM_SOUND 0x01
3239 #define EVENT_SYSTEM_ALERT 0x02
3240 #define EVENT_SYSTEM_FOREGROUND 0x03
3241 #define EVENT_SYSTEM_MENUSTART 0x04
3242 #define EVENT_SYSTEM_MENUEND 0x05
3243 #define EVENT_SYSTEM_MENUPOPUPSTART 0x06
3244 #define EVENT_SYSTEM_MENUPOPUPEND 0x07
3245 #define EVENT_SYSTEM_CAPTURESTART 0x08
3246 #define EVENT_SYSTEM_CAPTUREEND 0x09
3247 #define EVENT_SYSTEM_MOVESIZESTART 0x0A
3248 #define EVENT_SYSTEM_MOVESIZEEND 0x0B
3249 #define EVENT_SYSTEM_CONTEXTHELPSTART 0x0C
3250 #define EVENT_SYSTEM_CONTEXTHELPEND 0x0D
3251 #define EVENT_SYSTEM_DRAGDROPSTART 0x0E
3252 #define EVENT_SYSTEM_DRAGDROPEND 0x0F
3253 #define EVENT_SYSTEM_DIALOGSTART 0x10
3254 #define EVENT_SYSTEM_DIALOGEND 0x11
3255 #define EVENT_SYSTEM_SCROLLINGSTART 0x12
3256 #define EVENT_SYSTEM_SCROLLINGEND 0x13
3257 #define EVENT_SYSTEM_SWITCHSTART 0x14
3258 #define EVENT_SYSTEM_SWITCHEND 0x15
3259 #define EVENT_SYSTEM_MINIMIZESTART 0x16
3260 #define EVENT_SYSTEM_MINIMIZEEND 0x17
3262 /* Console events */
3263 #define EVENT_CONSOLE_CARET 0x4001
3264 #define EVENT_CONSOLE_UPDATE_REGION 0x4002
3265 #define EVENT_CONSOLE_UPDATE_SIMPLE 0x4003
3266 #define EVENT_CONSOLE_UPDATE_SCROLL 0x4004
3267 #define EVENT_CONSOLE_LAYOUT 0x4005
3268 #define EVENT_CONSOLE_START_APPLICATION 0x4006
3269 #define EVENT_CONSOLE_END_APPLICATION 0x4007
3271 #define CONSOLE_APPLICATION_16BIT 0x1
3272 #define CONSOLE_CARET_SELECTION 0x1
3273 #define CONSOLE_CARET_VISIBLE 0x2
3276 #define EVENT_OBJECT_CREATE 0x8000
3277 #define EVENT_OBJECT_DESTROY 0x8001
3278 #define EVENT_OBJECT_SHOW 0x8002
3279 #define EVENT_OBJECT_HIDE 0x8003
3280 #define EVENT_OBJECT_REORDER 0x8004
3281 #define EVENT_OBJECT_FOCUS 0x8005
3282 #define EVENT_OBJECT_SELECTION 0x8006
3283 #define EVENT_OBJECT_SELECTIONADD 0x8007
3284 #define EVENT_OBJECT_SELECTIONREMOVE 0x8008
3285 #define EVENT_OBJECT_SELECTIONWITHIN 0x8009
3286 #define EVENT_OBJECT_STATECHANGE 0x800A
3287 #define EVENT_OBJECT_LOCATIONCHANGE 0x800B
3288 #define EVENT_OBJECT_NAMECHANGE 0x800C
3289 #define EVENT_OBJECT_DESCRIPTIONCHANGE 0x800D
3290 #define EVENT_OBJECT_VALUECHANGE 0x800E
3291 #define EVENT_OBJECT_PARENTCHANGE 0x800F
3292 #define EVENT_OBJECT_HELPCHANGE 0x8010
3293 #define EVENT_OBJECT_DEFACTIONCHANGE 0x8011
3294 #define EVENT_OBJECT_ACCELERATORCHANGE 0x8012
3295 #define EVENT_OBJECT_INVOKED 0x8013
3298 #define SOUND_SYSTEM_STARTUP 1
3299 #define SOUND_SYSTEM_SHUTDOWN 2
3300 #define SOUND_SYSTEM_BEEP 3
3301 #define SOUND_SYSTEM_ERROR 4
3302 #define SOUND_SYSTEM_QUESTION 5
3303 #define SOUND_SYSTEM_WARNING 6
3304 #define SOUND_SYSTEM_INFORMATION 7
3305 #define SOUND_SYSTEM_MAXIMIZE 8
3306 #define SOUND_SYSTEM_MINIMIZE 9
3307 #define SOUND_SYSTEM_RESTOREUP 10
3308 #define SOUND_SYSTEM_RESTOREDOWN 11
3309 #define SOUND_SYSTEM_APPSTART 12
3310 #define SOUND_SYSTEM_FAULT 13
3311 #define SOUND_SYSTEM_APPEND 14
3312 #define SOUND_SYSTEM_MENUCOMMAND 15
3313 #define SOUND_SYSTEM_MENUPOPUP 16
3314 #define CSOUND_SYSTEM 16
3317 #define ALERT_SYSTEM_INFORMATIONAL 1
3318 #define ALERT_SYSTEM_WARNING 2
3319 #define ALERT_SYSTEM_ERROR 3
3320 #define ALERT_SYSTEM_QUERY 4
3321 #define ALERT_SYSTEM_CRITICAL 5
3322 #define CALERT_SYSTEM 6
3324 /* System state flags */
3325 #define STATE_SYSTEM_UNAVAILABLE 0x00000001
3326 #define STATE_SYSTEM_SELECTED 0x00000002
3327 #define STATE_SYSTEM_FOCUSED 0x00000004
3328 #define STATE_SYSTEM_PRESSED 0x00000008
3329 #define STATE_SYSTEM_CHECKED 0x00000010
3330 #define STATE_SYSTEM_MIXED 0x00000020
3331 #define STATE_SYSTEM_INDETERMINATE STATE_SYSTEM_MIXED
3332 #define STATE_SYSTEM_READONLY 0x00000040
3333 #define STATE_SYSTEM_HOTTRACKED 0x00000080
3334 #define STATE_SYSTEM_DEFAULT 0x00000100
3335 #define STATE_SYSTEM_EXPANDED 0x00000200
3336 #define STATE_SYSTEM_COLLAPSED 0x00000400
3337 #define STATE_SYSTEM_BUSY 0x00000800
3338 #define STATE_SYSTEM_FLOATING 0x00001000
3339 #define STATE_SYSTEM_MARQUEED 0x00002000
3340 #define STATE_SYSTEM_ANIMATED 0x00004000
3341 #define STATE_SYSTEM_INVISIBLE 0x00008000
3342 #define STATE_SYSTEM_OFFSCREEN 0x00010000
3343 #define STATE_SYSTEM_SIZEABLE 0x00020000
3344 #define STATE_SYSTEM_MOVEABLE 0x00040000
3345 #define STATE_SYSTEM_SELFVOICING 0x00080000
3346 #define STATE_SYSTEM_FOCUSABLE 0x00100000
3347 #define STATE_SYSTEM_SELECTABLE 0x00200000
3348 #define STATE_SYSTEM_LINKED 0x00400000
3349 #define STATE_SYSTEM_TRAVERSED 0x00800000
3350 #define STATE_SYSTEM_MULTISELECTABLE 0x01000000
3351 #define STATE_SYSTEM_EXTSELECTABLE 0x02000000
3352 #define STATE_SYSTEM_ALERT_LOW 0x04000000
3353 #define STATE_SYSTEM_ALERT_MEDIUM 0x08000000
3354 #define STATE_SYSTEM_ALERT_HIGH 0x10000000
3355 #define STATE_SYSTEM_PROTECTED 0x20000000
3356 #define STATE_SYSTEM_VALID 0x3FFFFFFF
3358 /* Lock codes for LockSetForegroundWindow */
3360 #define LSFW_UNLOCK 2
3362 /* Values for AllowSetForegroundWindow */
3363 #define ASFW_ANY ((DWORD)-1)
3365 #define EnumTaskWindows(handle,proc,lparam) \
3366 EnumThreadWindows(handle,proc,lparam)
3367 #define OemToAnsiA OemToCharA
3368 #define OemToAnsiW OemToCharW
3369 #define OemToAnsi WINELIB_NAME_AW(OemToAnsi)
3370 #define OemToAnsiBuffA OemToCharBuffA
3371 #define OemToAnsiBuffW OemToCharBuffW
3372 #define OemToAnsiBuff WINELIB_NAME_AW(OemToAnsiBuff)
3373 #define AnsiToOemA CharToOemA
3374 #define AnsiToOemW CharToOemW
3375 #define AnsiToOem WINELIB_NAME_AW(AnsiToOem)
3376 #define AnsiToOemBuffA CharToOemBuffA
3377 #define AnsiToOemBuffW CharToOemBuffW
3378 #define AnsiToOemBuff WINELIB_NAME_AW(AnsiToOemBuff)
3380 /* ChangeWindowMessageFilter flags */
3381 #define MSGFLT_ADD 1
3382 #define MSGFLT_REMOVE 2
3384 /* ChangeWindowMessageFilterEx defines */
3385 #define MSGFLTINFO_NONE 0
3386 #define MSGFLTINFO_ALREADYALLOWED_FORWND 1
3387 #define MSGFLTINFO_ALREADYDISALLOWED_FORWND 2
3388 #define MSGFLTINFO_ALLOWED_HIGHER 3
3390 typedef struct tagCHANGEFILTERSTRUCT
3394 } CHANGEFILTERSTRUCT
, *PCHANGEFILTERSTRUCT
;
3396 /* Actions for ChangeWindowMessageFilterEx */
3397 #define MSGFLT_RESET 0
3398 #define MSGFLT_ALLOW 1
3399 #define MSGFLT_DISALLOW 2
3401 #define USER_DEFAULT_SCREEN_DPI 96
3403 typedef enum tagAR_STATE
{
3406 AR_SUPPRESSED
= 0x2,
3407 AR_REMOTESESSION
= 0x4,
3410 AR_NOT_SUPPORTED
= 0x20,
3413 } AR_STATE
, *PAR_STATE
;
3415 typedef enum ORIENTATION_PREFERENCE
{
3416 ORIENTATION_PREFERENCE_NONE
= 0x0,
3417 ORIENTATION_PREFERENCE_LANDSCAPE
= 0x1,
3418 ORIENTATION_PREFERENCE_PORTRAIT
= 0x2,
3419 ORIENTATION_PREFERENCE_LANDSCAPE_FLIPPED
= 0x4,
3420 ORIENTATION_PREFERENCE_PORTRAIT_FLIPPED
= 0x8
3421 } ORIENTATION_PREFERENCE
;
3423 /* Touch input definitions */
3424 DECLARE_HANDLE(HTOUCHINPUT
);
3426 typedef struct tagTOUCHINPUT
{
3434 ULONG_PTR dwExtraInfo
;
3437 } TOUCHINPUT
, *PTOUCHINPUT
;
3438 typedef TOUCHINPUT
const * PCTOUCHINPUT
;
3440 #define TOUCHEVENTF_MOVE 0x0001
3441 #define TOUCHEVENTF_DOWN 0x0002
3442 #define TOUCHEVENTF_UP 0x0004
3443 #define TOUCHEVENTF_INRANGE 0x0008
3444 #define TOUCHEVENTF_PRIMARY 0x0010
3445 #define TOUCHEVENTF_NOCOALESCE 0x0020
3446 #define TOUCHEVENTF_PEN 0x0040
3447 #define TOUCHEVENTF_PALM 0x0080
3449 #define TOUCHINPUTMASKF_TIMEFROMSYSTEM 0x0001
3450 #define TOUCHINPUTMASKF_EXTRAINFO 0x0002
3451 #define TOUCHINPUTMASKF_CONTACTAREA 0x0004
3453 #define TWF_FINETOUCH 0x0001
3454 #define TWF_WANTPALM 0x0002
3456 /* Gesture definitions */
3457 DECLARE_HANDLE(HGESTUREINFO
);
3459 #define GF_BEGIN 0x00000001
3460 #define GF_INERTIA 0x00000002
3461 #define GF_END 0x00000004
3463 typedef struct tagGESTUREINFO
{
3471 ULONGLONG ullArguments
;
3473 } GESTUREINFO
, *PGESTUREINFO
;
3474 typedef GESTUREINFO
const * PCGESTUREINFO
;
3476 typedef struct tagGESTURENOTIFYSTRUCT
3483 } GESTURENOTIFYSTRUCT
, *PGESTURENOTIFYSTRUCT
;
3485 #define GID_ROTATE_ANGLE_TO_ARGUMENT(a) ((USHORT)((((a) + 2. * M_PI) / (4. * M_PI)) * 65535.))
3486 #define GID_ROTATE_ANGLE_FROM_ARGUMENT(a) ((((double)(a) / 65535.) * 4. * M_PI) - 2. * M_PI)
3488 #define POINTER_DEVICE_PRODUCT_STRING_MAX 520
3490 #define PDC_ARRIVAL 0x0001
3491 #define PDC_REMOVAL 0x0002
3492 #define PDC_ORIENTATION_0 0x0004
3493 #define PDC_ORIENTATION_90 0x0008
3494 #define PDC_ORIENTATION_180 0x0010
3495 #define PDC_ORIENTATION_270 0x0020
3496 #define PDC_MODE_DEFAULT 0x0040
3497 #define PDC_MODE_CENTERED 0x0080
3498 #define PDC_MAPPING_CHANGE 0x0100
3499 #define PDC_RESOLUTION 0x0200
3500 #define PDC_ORIGIN 0x0400
3501 #define PDC_MODE_ASPECTRATIOPRESERVED 0x0800
3503 typedef enum tagPOINTER_DEVICE_TYPE
{
3504 POINTER_DEVICE_TYPE_INTEGRATED_PEN
= 0x00000001,
3505 POINTER_DEVICE_TYPE_EXTERNAL_PEN
= 0x00000002,
3506 POINTER_DEVICE_TYPE_TOUCH
= 0x00000003,
3507 POINTER_DEVICE_TYPE_TOUCH_PAD
= 0x00000004,
3508 POINTER_DEVICE_TYPE_MAX
= 0xFFFFFFFF
3509 } POINTER_DEVICE_TYPE
;
3511 typedef struct tagPOINTER_DEVICE_INFO
{
3512 DWORD displayOrientation
;
3514 POINTER_DEVICE_TYPE pointerDeviceType
;
3516 ULONG startingCursorId
;
3517 USHORT maxActiveContacts
;
3518 WCHAR productString
[POINTER_DEVICE_PRODUCT_STRING_MAX
];
3519 } POINTER_DEVICE_INFO
;
3521 typedef struct tagPOINTER_DEVICE_PROPERTY
3528 UINT32 unitExponent
;
3531 } POINTER_DEVICE_PROPERTY
;
3533 typedef enum tagPOINTER_DEVICE_CURSOR_TYPE
3535 POINTER_DEVICE_CURSOR_TYPE_UNKNOWN
= 0x00000000,
3536 POINTER_DEVICE_CURSOR_TYPE_TIP
= 0x00000001,
3537 POINTER_DEVICE_CURSOR_TYPE_ERASER
= 0x00000002,
3538 POINTER_DEVICE_CURSOR_TYPE_MAX
= 0xFFFFFFFF,
3539 } POINTER_DEVICE_CURSOR_TYPE
;
3541 typedef struct tagPOINTER_DEVICE_CURSOR_INFO
3544 POINTER_DEVICE_CURSOR_TYPE cursor
;
3545 } POINTER_DEVICE_CURSOR_INFO
;
3547 enum tagPOINTER_INPUT_TYPE
3555 typedef DWORD POINTER_INPUT_TYPE
;
3556 typedef UINT32 POINTER_FLAGS
;
3558 #define POINTER_FLAG_NONE 0x00000000
3559 #define POINTER_FLAG_NEW 0x00000001
3560 #define POINTER_FLAG_INRANGE 0x00000002
3561 #define POINTER_FLAG_INCONTACT 0x00000004
3562 #define POINTER_FLAG_FIRSTBUTTON 0x00000010
3563 #define POINTER_FLAG_SECONDBUTTON 0x00000020
3564 #define POINTER_FLAG_THIRDBUTTON 0x00000040
3565 #define POINTER_FLAG_FOURTHBUTTON 0x00000080
3566 #define POINTER_FLAG_FIFTHBUTTON 0x00000100
3567 #define POINTER_FLAG_PRIMARY 0x00002000
3568 #define POINTER_FLAG_CONFIDENCE 0x00004000
3569 #define POINTER_FLAG_CANCELED 0x00008000
3570 #define POINTER_FLAG_DOWN 0x00010000
3571 #define POINTER_FLAG_UPDATE 0x00020000
3572 #define POINTER_FLAG_UP 0x00040000
3573 #define POINTER_FLAG_WHEEL 0x00080000
3574 #define POINTER_FLAG_HWHEEL 0x00100000
3575 #define POINTER_FLAG_CAPTURECHANGED 0x00200000
3576 #define POINTER_FLAG_HASTRANSFORM 0x00400000
3578 #define POINTER_MOD_SHIFT 0x0004
3579 #define POINTER_MOD_CTRL 0x0008
3581 typedef enum tagPOINTER_BUTTON_CHANGE_TYPE
3583 POINTER_CHANGE_NONE
,
3584 POINTER_CHANGE_FIRSTBUTTON_DOWN
,
3585 POINTER_CHANGE_FIRSTBUTTON_UP
,
3586 POINTER_CHANGE_SECONDBUTTON_DOWN
,
3587 POINTER_CHANGE_SECONDBUTTON_UP
,
3588 POINTER_CHANGE_THIRDBUTTON_DOWN
,
3589 POINTER_CHANGE_THIRDBUTTON_UP
,
3590 POINTER_CHANGE_FOURTHBUTTON_DOWN
,
3591 POINTER_CHANGE_FOURTHBUTTON_UP
,
3592 POINTER_CHANGE_FIFTHBUTTON_DOWN
,
3593 POINTER_CHANGE_FIFTHBUTTON_UP
,
3594 } POINTER_BUTTON_CHANGE_TYPE
;
3596 typedef struct tagPOINTER_INFO
3598 POINTER_INPUT_TYPE pointerType
;
3601 POINTER_FLAGS pointerFlags
;
3602 HANDLE sourceDevice
;
3604 POINT ptPixelLocation
;
3605 POINT ptHimetricLocation
;
3606 POINT ptPixelLocationRaw
;
3607 POINT ptHimetricLocationRaw
;
3609 UINT32 historyCount
;
3612 UINT64 PerformanceCount
;
3613 POINTER_BUTTON_CHANGE_TYPE ButtonChangeType
;
3616 typedef UINT32 TOUCH_FLAGS
;
3617 #define TOUCH_FLAG_NONE 0x00000000
3619 typedef UINT32 TOUCH_MASK
;
3620 #define TOUCH_MASK_NONE 0x00000000
3621 #define TOUCH_MASK_CONTACTAREA 0x00000001
3622 #define TOUCH_MASK_ORIENTATION 0x00000002
3623 #define TOUCH_MASK_PRESSURE 0x00000004
3625 typedef struct tagPOINTER_TOUCH_INFO
3627 POINTER_INFO pointerInfo
;
3628 TOUCH_FLAGS touchFlags
;
3629 TOUCH_MASK touchMask
;
3634 } POINTER_TOUCH_INFO
;
3636 typedef UINT32 PEN_FLAGS
;
3637 #define PEN_FLAG_NONE 0x00000000
3638 #define PEN_FLAG_BARREL 0x00000001
3639 #define PEN_FLAG_INVERTED 0x00000002
3640 #define PEN_FLAG_ERASER 0x00000004
3642 typedef UINT32 PEN_MASK
;
3643 #define PEN_MASK_NONE 0x00000000
3644 #define PEN_MASK_PRESSURE 0x00000001
3645 #define PEN_MASK_ROTATION 0x00000002
3646 #define PEN_MASK_TILT_X 0x00000004
3647 #define PEN_MASK_TILT_Y 0x00000008
3649 typedef struct tagPOINTER_PEN_INFO
3651 POINTER_INFO pointerInfo
;
3660 #define POINTER_MESSAGE_FLAG_NEW 0x00000001
3661 #define POINTER_MESSAGE_FLAG_INRANGE 0x00000002
3662 #define POINTER_MESSAGE_FLAG_INCONTACT 0x00000004
3663 #define POINTER_MESSAGE_FLAG_FIRSTBUTTON 0x00000010
3664 #define POINTER_MESSAGE_FLAG_SECONDBUTTON 0x00000020
3665 #define POINTER_MESSAGE_FLAG_THIRDBUTTON 0x00000040
3666 #define POINTER_MESSAGE_FLAG_FOURTHBUTTON 0x00000080
3667 #define POINTER_MESSAGE_FLAG_FIFTHBUTTON 0x00000100
3668 #define POINTER_MESSAGE_FLAG_PRIMARY 0x00002000
3669 #define POINTER_MESSAGE_FLAG_CONFIDENCE 0x00004000
3670 #define POINTER_MESSAGE_FLAG_CANCELED 0x00008000
3672 #define GET_POINTERID_WPARAM(wparam) (LOWORD(wparam))
3673 #define IS_POINTER_FLAG_SET_WPARAM(wparam, flags) ((HIWORD(wparam) & (flags)) == (flags))
3674 #define IS_POINTER_NEW_WPARAM(wparam) IS_POINTER_FLAG_SET_WPARAM(wparam, POINTER_MESSAGE_FLAG_NEW)
3675 #define IS_POINTER_INRANGE_WPARAM(wparam) IS_POINTER_FLAG_SET_WPARAM(wparam, POINTER_MESSAGE_FLAG_INRANGE)
3676 #define IS_POINTER_INCONTACT_WPARAM(wparam) IS_POINTER_FLAG_SET_WPARAM(wparam, POINTER_MESSAGE_FLAG_INCONTACT)
3677 #define IS_POINTER_FIRSTBUTTON_WPARAM(wparam) IS_POINTER_FLAG_SET_WPARAM(wparam, POINTER_MESSAGE_FLAG_FIRSTBUTTON)
3678 #define IS_POINTER_SECONDBUTTON_WPARAM(wparam) IS_POINTER_FLAG_SET_WPARAM(wparam, POINTER_MESSAGE_FLAG_SECONDBUTTON)
3679 #define IS_POINTER_THIRDBUTTON_WPARAM(wparam) IS_POINTER_FLAG_SET_WPARAM(wparam, POINTER_MESSAGE_FLAG_THIRDBUTTON)
3680 #define IS_POINTER_FOURTHBUTTON_WPARAM(wparam) IS_POINTER_FLAG_SET_WPARAM(wparam, POINTER_MESSAGE_FLAG_FOURTHBUTTON)
3681 #define IS_POINTER_FIFTHBUTTON_WPARAM(wparam) IS_POINTER_FLAG_SET_WPARAM(wparam, POINTER_MESSAGE_FLAG_FIFTHBUTTON)
3682 #define IS_POINTER_PRIMARY_WPARAM(wparam) IS_POINTER_FLAG_SET_WPARAM(wparam, POINTER_MESSAGE_FLAG_PRIMARY)
3683 #define HAS_POINTER_CONFIDENCE_WPARAM(wparam) IS_POINTER_FLAG_SET_WPARAM(wparam, POINTER_MESSAGE_FLAG_CONFIDENCE)
3684 #define IS_POINTER_CANCELED_WPARAM(wparam) IS_POINTER_FLAG_SET_WPARAM(wparam, POINTER_MESSAGE_FLAG_CANCELED)
3686 #define PA_ACTIVATE MA_ACTIVATE
3687 #define PA_NOACTIVATE MA_NOACTIVATE
3689 #define MAX_TOUCH_COUNT 256
3691 #define TOUCH_FEEDBACK_DEFAULT 0x1
3692 #define TOUCH_FEEDBACK_INDIRECT 0x2
3693 #define TOUCH_FEEDBACK_NONE 0x3
3695 #define TOUCH_HIT_TESTING_DEFAULT 0x0
3696 #define TOUCH_HIT_TESTING_CLIENT 0x1
3697 #define TOUCH_HIT_TESTING_NONE 0x2
3699 typedef struct tagTOUCH_HIT_TESTING_PROXIMITY_EVALUATION
3702 POINT adjustedPoint
;
3703 } TOUCH_HIT_TESTING_PROXIMITY_EVALUATION
, *PTOUCH_HIT_TESTING_PROXIMITY_EVALUATION
;
3705 typedef struct tagTOUCH_HIT_TESTING_INPUT
3710 RECT nonOccludedBoundingBox
;
3712 } TOUCH_HIT_TESTING_INPUT
, *PTOUCH_HIT_TESTING_INPUT
;
3714 #define TOUCH_HIT_TESTING_PROXIMITY_CLOSEST 0x0
3715 #define TOUCH_HIT_TESTING_PROXIMITY_FARTHEST 0xFFF
3719 POINTER_FEEDBACK_DEFAULT
= 1,
3720 POINTER_FEEDBACK_INDIRECT
= 2,
3721 POINTER_FEEDBACK_NONE
= 3,
3722 } POINTER_FEEDBACK_MODE
;
3724 typedef enum tagFEEDBACK_TYPE
3726 FEEDBACK_TOUCH_CONTACTVISUALIZATION
= 1,
3727 FEEDBACK_PEN_BARRELVISUALIZATION
= 2,
3728 FEEDBACK_PEN_TAP
= 3,
3729 FEEDBACK_PEN_DOUBLETAP
= 4,
3730 FEEDBACK_PEN_PRESSANDHOLD
= 5,
3731 FEEDBACK_PEN_RIGHTTAP
= 6,
3732 FEEDBACK_TOUCH_TAP
= 7,
3733 FEEDBACK_TOUCH_DOUBLETAP
= 8,
3734 FEEDBACK_TOUCH_PRESSANDHOLD
= 9,
3735 FEEDBACK_TOUCH_RIGHTTAP
= 10,
3736 FEEDBACK_GESTURE_PRESSANDTAP
= 11,
3737 FEEDBACK_MAX
= 0xFFFFFFFF
3740 #define GWFS_INCLUDE_ANCESTORS 0x00000001
3742 typedef struct tagPOINTER_TYPE_INFO
3744 POINTER_INPUT_TYPE type
;
3747 POINTER_TOUCH_INFO touchInfo
;
3748 POINTER_PEN_INFO penInfo
;
3750 } POINTER_TYPE_INFO
, *PPOINTER_TYPE_INFO
;
3752 typedef struct tagINPUT_TRANSFORM
3758 float _11
, _12
, _13
, _14
;
3759 float _21
, _22
, _23
, _24
;
3760 float _31
, _32
, _33
, _34
;
3761 float _41
, _42
, _43
, _44
;
3767 DECLARE_HANDLE(HSYNTHETICPOINTERDEVICE
);
3769 #define NID_INTEGRATED_TOUCH 0x00000001
3770 #define NID_EXTERNAL_TOUCH 0x00000002
3771 #define NID_INTEGRATED_PEN 0x00000004
3772 #define NID_EXTERNAL_PEN 0x00000008
3773 #define NID_MULTI_INPUT 0x00000040
3774 #define NID_READY 0x00000080
3776 typedef struct tagAUDIODESCRIPTION
3781 } AUDIODESCRIPTION
, *LPAUDIODESCRIPTION
;
3783 typedef struct tagMENUGETOBJECTINFO
3790 } MENUGETOBJECTINFO
, *PMENUGETOBJECTINFO
;
3792 #if defined(_WINGDI_) && !defined(NOGDI)
3793 WINUSERAPI LONG WINAPI
ChangeDisplaySettingsA(LPDEVMODEA
,DWORD
);
3794 WINUSERAPI LONG WINAPI
ChangeDisplaySettingsW(LPDEVMODEW
,DWORD
);
3795 #define ChangeDisplaySettings WINELIB_NAME_AW(ChangeDisplaySettings)
3796 WINUSERAPI LONG WINAPI
ChangeDisplaySettingsExA(LPCSTR
,LPDEVMODEA
,HWND
,DWORD
,LPVOID
);
3797 WINUSERAPI LONG WINAPI
ChangeDisplaySettingsExW(LPCWSTR
,LPDEVMODEW
,HWND
,DWORD
,LPVOID
);
3798 #define ChangeDisplaySettingsEx WINELIB_NAME_AW(ChangeDisplaySettingsEx)
3799 WINUSERAPI HDESK WINAPI
CreateDesktopA(LPCSTR
,LPCSTR
,LPDEVMODEA
,DWORD
,ACCESS_MASK
,LPSECURITY_ATTRIBUTES
);
3800 WINUSERAPI HDESK WINAPI
CreateDesktopW(LPCWSTR
,LPCWSTR
,LPDEVMODEW
,DWORD
,ACCESS_MASK
,LPSECURITY_ATTRIBUTES
);
3801 #define CreateDesktop WINELIB_NAME_AW(CreateDesktop)
3802 WINUSERAPI LONG WINAPI
DisplayConfigGetDeviceInfo(DISPLAYCONFIG_DEVICE_INFO_HEADER
*);
3803 WINUSERAPI BOOL WINAPI
EnumDisplayDevicesA(LPCSTR
,DWORD
,LPDISPLAY_DEVICEA
,DWORD
);
3804 WINUSERAPI BOOL WINAPI
EnumDisplayDevicesW(LPCWSTR
,DWORD
,LPDISPLAY_DEVICEW
,DWORD
);
3805 #define EnumDisplayDevices WINELIB_NAME_AW(EnumDisplayDevices)
3806 WINUSERAPI BOOL WINAPI
EnumDisplaySettingsA(LPCSTR
,DWORD
,LPDEVMODEA
);
3807 WINUSERAPI BOOL WINAPI
EnumDisplaySettingsW(LPCWSTR
,DWORD
,LPDEVMODEW
);
3808 #define EnumDisplaySettings WINELIB_NAME_AW(EnumDisplaySettings)
3809 WINUSERAPI BOOL WINAPI
EnumDisplaySettingsExA(LPCSTR
,DWORD
,LPDEVMODEA
,DWORD
);
3810 WINUSERAPI BOOL WINAPI
EnumDisplaySettingsExW(LPCWSTR
,DWORD
,LPDEVMODEW
,DWORD
);
3811 #define EnumDisplaySettingsEx WINELIB_NAME_AW(EnumDisplaySettingsEx)
3812 WINUSERAPI LONG WINAPI
GetDisplayConfigBufferSizes(UINT32
,UINT32
*,UINT32
*);
3813 WINUSERAPI BOOL WINAPI
UpdateLayeredWindow(HWND
,HDC
,POINT
*,SIZE
*,HDC
,POINT
*,COLORREF
,BLENDFUNCTION
*,DWORD
);
3814 WINUSERAPI BOOL WINAPI
UpdateLayeredWindowIndirect(HWND
,UPDATELAYEREDWINDOWINFO
const*);
3815 #endif /* defined(_WINGDI_) && !defined(NOGDI) */
3817 WINUSERAPI HKL WINAPI
ActivateKeyboardLayout(HKL
,UINT
);
3818 WINUSERAPI BOOL WINAPI
AddClipboardFormatListener(HWND
);
3819 WINUSERAPI BOOL WINAPI
AdjustWindowRect(LPRECT
,DWORD
,BOOL
);
3820 WINUSERAPI BOOL WINAPI
AdjustWindowRectEx(LPRECT
,DWORD
,BOOL
,DWORD
);
3821 WINUSERAPI BOOL WINAPI
AdjustWindowRectExForDpi(RECT
*,DWORD
,BOOL
,DWORD
,UINT
);
3822 WINUSERAPI BOOL WINAPI
AllowSetForegroundWindow(DWORD
);
3823 WINUSERAPI BOOL WINAPI
AnimateWindow(HWND
,DWORD
,DWORD
);
3824 #define AnsiLowerA CharLowerA
3825 #define AnsiLowerW CharLowerW
3826 #define AnsiLower WINELIB_NAME_AW(AnsiLower)
3827 #define AnsiLowerBuffA CharLowerBuffA
3828 #define AnsiLowerBuffW CharLowerBuffW
3829 #define AnsiLowerBuff WINELIB_NAME_AW(AnsiLowerBuff)
3830 #define AnsiNextA CharNextA
3831 #define AnsiNextW CharNextW
3832 #define AnsiNext WINELIB_NAME_AW(AnsiNext)
3833 #define AnsiPrevA CharPrevA
3834 #define AnsiPrevW CharPrevW
3835 #define AnsiPrev WINELIB_NAME_AW(AnsiPrev)
3836 #define AnsiUpperA CharUpperA
3837 #define AnsiUpperW CharUpperW
3838 #define AnsiUpper WINELIB_NAME_AW(AnsiUpper)
3839 #define AnsiUpperBuffA CharUpperBuffA
3840 #define AnsiUpperBuffW CharUpperBuffW
3841 #define AnsiUpperBuff WINELIB_NAME_AW(AnsiUpperBuff)
3842 WINUSERAPI BOOL WINAPI
AnyPopup(void);
3843 WINUSERAPI BOOL WINAPI
AppendMenuA(HMENU
,UINT
,UINT_PTR
,LPCSTR
);
3844 WINUSERAPI BOOL WINAPI
AppendMenuW(HMENU
,UINT
,UINT_PTR
,LPCWSTR
);
3845 #define AppendMenu WINELIB_NAME_AW(AppendMenu)
3846 WINUSERAPI BOOL WINAPI
AreDpiAwarenessContextsEqual(DPI_AWARENESS_CONTEXT
,DPI_AWARENESS_CONTEXT
);
3847 WINUSERAPI UINT WINAPI
ArrangeIconicWindows(HWND
);
3848 WINUSERAPI BOOL WINAPI
AttachThreadInput(DWORD
,DWORD
,BOOL
);
3849 WINUSERAPI HDWP WINAPI
BeginDeferWindowPos(INT
);
3850 WINUSERAPI HDC WINAPI
BeginPaint(HWND
,LPPAINTSTRUCT
);
3851 WINUSERAPI BOOL WINAPI
BlockInput(BOOL
);
3852 WINUSERAPI BOOL WINAPI
BringWindowToTop(HWND
);
3853 WINUSERAPI LONG WINAPI
BroadcastSystemMessageA(DWORD
,LPDWORD
,UINT
,WPARAM
,LPARAM
);
3854 WINUSERAPI LONG WINAPI
BroadcastSystemMessageW(DWORD
,LPDWORD
,UINT
,WPARAM
,LPARAM
);
3855 #define BroadcastSystemMessage WINELIB_NAME_AW(BroadcastSystemMessage)
3856 WINUSERAPI LONG WINAPI
BroadcastSystemMessageExA(DWORD
,LPDWORD
,UINT
,WPARAM
,LPARAM
,PBSMINFO
);
3857 WINUSERAPI LONG WINAPI
BroadcastSystemMessageExW(DWORD
,LPDWORD
,UINT
,WPARAM
,LPARAM
,PBSMINFO
);
3858 #define BroadcastSystemMessageEx WINELIB_NAME_AW(BroadcastSystemMessageEx)
3859 WINUSERAPI
void WINAPI
CalcChildScroll(HWND
, INT
);
3860 WINUSERAPI BOOL WINAPI
CallMsgFilterA(LPMSG
,INT
);
3861 WINUSERAPI BOOL WINAPI
CallMsgFilterW(LPMSG
,INT
);
3862 #define CallMsgFilter WINELIB_NAME_AW(CallMsgFilter)
3863 WINUSERAPI LRESULT WINAPI
CallNextHookEx(HHOOK
,INT
,WPARAM
,LPARAM
);
3864 WINUSERAPI LRESULT WINAPI
CallWindowProcA(WNDPROC
,HWND
,UINT
,WPARAM
,LPARAM
);
3865 WINUSERAPI LRESULT WINAPI
CallWindowProcW(WNDPROC
,HWND
,UINT
,WPARAM
,LPARAM
);
3866 #define CallWindowProc WINELIB_NAME_AW(CallWindowProc)
3867 WINUSERAPI WORD WINAPI
CascadeWindows(HWND
, UINT
, const RECT
*, UINT
, const HWND
*);
3868 WINUSERAPI BOOL WINAPI
ChangeClipboardChain(HWND
,HWND
);
3869 WINUSERAPI BOOL WINAPI
ChangeMenuA(HMENU
,UINT
,LPCSTR
,UINT
,UINT
);
3870 WINUSERAPI BOOL WINAPI
ChangeMenuW(HMENU
,UINT
,LPCWSTR
,UINT
,UINT
);
3871 #define ChangeMenu WINELIB_NAME_AW(ChangeMenu)
3872 WINUSERAPI BOOL WINAPI
ChangeWindowMessageFilter(UINT
,DWORD
);
3873 WINUSERAPI BOOL WINAPI
ChangeWindowMessageFilterEx(HWND
,UINT
,DWORD
,CHANGEFILTERSTRUCT
*);
3874 WINUSERAPI LPSTR WINAPI
CharLowerA(LPSTR
);
3875 WINUSERAPI LPWSTR WINAPI
CharLowerW(LPWSTR
);
3876 #define CharLower WINELIB_NAME_AW(CharLower)
3877 WINUSERAPI DWORD WINAPI
CharLowerBuffA(LPSTR
,DWORD
);
3878 WINUSERAPI DWORD WINAPI
CharLowerBuffW(LPWSTR
,DWORD
);
3879 #define CharLowerBuff WINELIB_NAME_AW(CharLowerBuff)
3880 WINUSERAPI LPSTR WINAPI
CharNextA(LPCSTR
);
3881 WINUSERAPI LPWSTR WINAPI
CharNextW(LPCWSTR
);
3882 #define CharNext WINELIB_NAME_AW(CharNext)
3883 WINUSERAPI LPSTR WINAPI
CharNextExA(WORD
,LPCSTR
,DWORD
);
3884 /* no CharNextExW (doesn't make sense) */
3885 WINUSERAPI LPSTR WINAPI
CharPrevA(LPCSTR
,LPCSTR
);
3886 WINUSERAPI LPWSTR WINAPI
CharPrevW(LPCWSTR
,LPCWSTR
);
3887 #define CharPrev WINELIB_NAME_AW(CharPrev)
3888 WINUSERAPI LPSTR WINAPI
CharPrevExA(WORD
,LPCSTR
,LPCSTR
,DWORD
);
3889 /* no CharPrevExW (doesn't make sense) */
3890 WINUSERAPI LPSTR WINAPI
CharUpperA(LPSTR
);
3891 WINUSERAPI LPWSTR WINAPI
CharUpperW(LPWSTR
);
3892 #define CharUpper WINELIB_NAME_AW(CharUpper)
3893 WINUSERAPI DWORD WINAPI
CharUpperBuffA(LPSTR
,DWORD
);
3894 WINUSERAPI DWORD WINAPI
CharUpperBuffW(LPWSTR
,DWORD
);
3895 #define CharUpperBuff WINELIB_NAME_AW(CharUpperBuff)
3896 WINUSERAPI BOOL WINAPI
CharToOemA(LPCSTR
,LPSTR
);
3897 WINUSERAPI BOOL WINAPI
CharToOemW(LPCWSTR
,LPSTR
);
3898 #define CharToOem WINELIB_NAME_AW(CharToOem)
3899 WINUSERAPI BOOL WINAPI
CharToOemBuffA(LPCSTR
,LPSTR
,DWORD
);
3900 WINUSERAPI BOOL WINAPI
CharToOemBuffW(LPCWSTR
,LPSTR
,DWORD
);
3901 #define CharToOemBuff WINELIB_NAME_AW(CharToOemBuff)
3902 WINUSERAPI BOOL WINAPI
CheckDlgButton(HWND
,INT
,UINT
);
3903 WINUSERAPI DWORD WINAPI
CheckMenuItem(HMENU
,UINT
,UINT
);
3904 WINUSERAPI BOOL WINAPI
CheckMenuRadioItem(HMENU
,UINT
,UINT
,UINT
,UINT
);
3905 WINUSERAPI BOOL WINAPI
CheckRadioButton(HWND
,int,int,int);
3906 WINUSERAPI HWND WINAPI
ChildWindowFromPoint(HWND
,POINT
);
3907 WINUSERAPI HWND WINAPI
ChildWindowFromPointEx(HWND
,POINT
,UINT
);
3908 WINUSERAPI BOOL WINAPI
ClientToScreen(HWND
,LPPOINT
);
3909 WINUSERAPI BOOL WINAPI
ClipCursor(const RECT
*);
3910 WINUSERAPI BOOL WINAPI
CloseClipboard(void);
3911 WINUSERAPI BOOL WINAPI
CloseDesktop(HDESK
);
3912 WINUSERAPI BOOL WINAPI
CloseTouchInputHandle(HTOUCHINPUT
);
3913 WINUSERAPI BOOL WINAPI
CloseGestureInfoHandle(HGESTUREINFO
);
3914 WINUSERAPI BOOL WINAPI
CloseWindow(HWND
);
3915 WINUSERAPI BOOL WINAPI
CloseWindowStation(HWINSTA
);
3916 WINUSERAPI INT WINAPI
CopyAcceleratorTableA(HACCEL
,LPACCEL
,INT
);
3917 WINUSERAPI INT WINAPI
CopyAcceleratorTableW(HACCEL
,LPACCEL
,INT
);
3918 #define CopyAcceleratorTable WINELIB_NAME_AW(CopyAcceleratorTable)
3919 #define CopyCursor(cur) ((HCURSOR)CopyIcon((HICON)(cur)))
3920 WINUSERAPI HICON WINAPI
CopyIcon(HICON
);
3921 WINUSERAPI HANDLE WINAPI
CopyImage(HANDLE
,UINT
,INT
,INT
,UINT
);
3922 WINUSERAPI BOOL WINAPI
CopyRect(RECT
*,const RECT
*);
3923 WINUSERAPI INT WINAPI
CountClipboardFormats(void);
3924 WINUSERAPI HACCEL WINAPI
CreateAcceleratorTableA(LPACCEL
,INT
);
3925 WINUSERAPI HACCEL WINAPI
CreateAcceleratorTableW(LPACCEL
,INT
);
3926 #define CreateAcceleratorTable WINELIB_NAME_AW(CreateAcceleratorTable)
3927 WINUSERAPI HICON WINAPI
CreateIconIndirect(PICONINFO
);
3928 WINUSERAPI BOOL WINAPI
CreateCaret(HWND
,HBITMAP
,INT
,INT
);
3929 WINUSERAPI HCURSOR WINAPI
CreateCursor(HINSTANCE
,INT
,INT
,INT
,INT
,LPCVOID
,LPCVOID
);
3930 #define CreateDialogA(inst,ptr,hwnd,dlg) CreateDialogParamA(inst,ptr,hwnd,dlg,0)
3931 #define CreateDialogW(inst,ptr,hwnd,dlg) CreateDialogParamW(inst,ptr,hwnd,dlg,0)
3932 #define CreateDialog WINELIB_NAME_AW(CreateDialog)
3933 #define CreateDialogIndirectA(inst,ptr,hwnd,dlg) CreateDialogIndirectParamA(inst,ptr,hwnd,dlg,0)
3934 #define CreateDialogIndirectW(inst,ptr,hwnd,dlg) CreateDialogIndirectParamW(inst,ptr,hwnd,dlg,0)
3935 #define CreateDialogIndirect WINELIB_NAME_AW(CreateDialogIndirect)
3936 WINUSERAPI HWND WINAPI
CreateDialogIndirectParamA(HINSTANCE
,LPCDLGTEMPLATEA
,HWND
,DLGPROC
,LPARAM
);
3937 WINUSERAPI HWND WINAPI
CreateDialogIndirectParamW(HINSTANCE
,LPCDLGTEMPLATEW
,HWND
,DLGPROC
,LPARAM
);
3938 #define CreateDialogIndirectParam WINELIB_NAME_AW(CreateDialogIndirectParam)
3939 WINUSERAPI HWND WINAPI
CreateDialogParamA(HINSTANCE
,LPCSTR
,HWND
,DLGPROC
,LPARAM
);
3940 WINUSERAPI HWND WINAPI
CreateDialogParamW(HINSTANCE
,LPCWSTR
,HWND
,DLGPROC
,LPARAM
);
3941 #define CreateDialogParam WINELIB_NAME_AW(CreateDialogParam)
3942 WINUSERAPI HICON WINAPI
CreateIcon(HINSTANCE
,INT
,INT
,BYTE
,BYTE
,LPCVOID
,LPCVOID
);
3943 WINUSERAPI HICON WINAPI
CreateIconFromResource(LPBYTE
,UINT
,BOOL
,DWORD
);
3944 WINUSERAPI HICON WINAPI
CreateIconFromResourceEx(LPBYTE
,UINT
,BOOL
,DWORD
,INT
,INT
,UINT
);
3945 WINUSERAPI HMENU WINAPI
CreateMenu(void);
3946 WINUSERAPI HMENU WINAPI
CreatePopupMenu(void);
3947 #define CreateWindowA(className,titleName,style,x,y,width,height,parent,menu,instance,param) CreateWindowExA(0,className,titleName,style,x,y,width,height,parent,menu,instance,param)
3948 #define CreateWindowW(className,titleName,style,x,y,width,height,parent,menu,instance,param) CreateWindowExW(0,className,titleName,style,x,y,width,height,parent,menu,instance,param)
3949 #define CreateWindow WINELIB_NAME_AW(CreateWindow)
3950 WINUSERAPI HWND WINAPI
CreateWindowExA(DWORD
,LPCSTR
,LPCSTR
,DWORD
,INT
,INT
,INT
,INT
,HWND
,HMENU
,HINSTANCE
,LPVOID
);
3951 WINUSERAPI HWND WINAPI
CreateWindowExW(DWORD
,LPCWSTR
,LPCWSTR
,DWORD
,INT
,INT
,INT
,INT
,HWND
,HMENU
,HINSTANCE
,LPVOID
);
3952 #define CreateWindowEx WINELIB_NAME_AW(CreateWindowEx)
3953 WINUSERAPI HWINSTA WINAPI
CreateWindowStationA(LPCSTR
,DWORD
,ACCESS_MASK
,LPSECURITY_ATTRIBUTES
);
3954 WINUSERAPI HWINSTA WINAPI
CreateWindowStationW(LPCWSTR
,DWORD
,ACCESS_MASK
,LPSECURITY_ATTRIBUTES
);
3955 #define CreateWindowStation WINELIB_NAME_AW(CreateWindowStation)
3956 WINUSERAPI HWND WINAPI
CreateMDIWindowA(LPCSTR
,LPCSTR
,DWORD
,INT
,INT
,INT
,INT
,HWND
,HINSTANCE
,LPARAM
);
3957 WINUSERAPI HWND WINAPI
CreateMDIWindowW(LPCWSTR
,LPCWSTR
,DWORD
,INT
,INT
,INT
,INT
,HWND
,HINSTANCE
,LPARAM
);
3958 #define CreateMDIWindow WINELIB_NAME_AW(CreateMDIWindow)
3959 WINUSERAPI HSYNTHETICPOINTERDEVICE WINAPI
CreateSyntheticPointerDevice(POINTER_INPUT_TYPE
,ULONG
,POINTER_FEEDBACK_MODE
);
3960 WINUSERAPI LRESULT WINAPI
DefDlgProcA(HWND
,UINT
,WPARAM
,LPARAM
);
3961 WINUSERAPI LRESULT WINAPI
DefDlgProcW(HWND
,UINT
,WPARAM
,LPARAM
);
3962 #define DefDlgProc WINELIB_NAME_AW(DefDlgProc)
3963 WINUSERAPI HDWP WINAPI
DeferWindowPos(HDWP
,HWND
,HWND
,INT
,INT
,INT
,INT
,UINT
);
3964 WINUSERAPI LRESULT WINAPI
DefFrameProcA(HWND
,HWND
,UINT
,WPARAM
,LPARAM
);
3965 WINUSERAPI LRESULT WINAPI
DefFrameProcW(HWND
,HWND
,UINT
,WPARAM
,LPARAM
);
3966 #define DefFrameProc WINELIB_NAME_AW(DefFrameProc)
3967 #define DefHookProc(code,wparam,lparam,phhook) CallNextHookEx(*(phhook),code,wparam,lparam)
3968 WINUSERAPI LRESULT WINAPI
DefMDIChildProcA(HWND
,UINT
,WPARAM
,LPARAM
);
3969 WINUSERAPI LRESULT WINAPI
DefMDIChildProcW(HWND
,UINT
,WPARAM
,LPARAM
);
3970 #define DefMDIChildProc WINELIB_NAME_AW(DefMDIChildProc)
3971 WINUSERAPI LRESULT WINAPI
DefRawInputProc(PRAWINPUT
*,INT
,UINT
);
3972 WINUSERAPI LRESULT WINAPI
DefWindowProcA(HWND
,UINT
,WPARAM
,LPARAM
);
3973 WINUSERAPI LRESULT WINAPI
DefWindowProcW(HWND
,UINT
,WPARAM
,LPARAM
);
3974 #define DefWindowProc WINELIB_NAME_AW(DefWindowProc)
3975 WINUSERAPI BOOL WINAPI
DeleteMenu(HMENU
,UINT
,UINT
);
3976 WINUSERAPI BOOL WINAPI
DeregisterShellHookWindow(HWND
);
3977 WINUSERAPI BOOL WINAPI
DestroyAcceleratorTable(HACCEL
);
3978 WINUSERAPI BOOL WINAPI
DestroyCaret(void);
3979 WINUSERAPI BOOL WINAPI
DestroyCursor(HCURSOR
);
3980 WINUSERAPI BOOL WINAPI
DestroyIcon(HICON
);
3981 WINUSERAPI BOOL WINAPI
DestroyMenu(HMENU
);
3982 WINUSERAPI
void WINAPI
DestroySyntheticPointerDevice(HSYNTHETICPOINTERDEVICE
);
3983 WINUSERAPI BOOL WINAPI
DestroyWindow(HWND
);
3984 #define DialogBoxA(inst,template,owner,func) DialogBoxParamA(inst,template,owner,func,0)
3985 #define DialogBoxW(inst,template,owner,func) DialogBoxParamW(inst,template,owner,func,0)
3986 #define DialogBox WINELIB_NAME_AW(DialogBox)
3987 #define DialogBoxIndirectA(inst,template,owner,func) DialogBoxIndirectParamA(inst,template,owner,func,0)
3988 #define DialogBoxIndirectW(inst,template,owner,func) DialogBoxIndirectParamW(inst,template,owner,func,0)
3989 #define DialogBoxIndirect WINELIB_NAME_AW(DialogBoxIndirect)
3990 WINUSERAPI INT_PTR WINAPI
DialogBoxIndirectParamA(HINSTANCE
,LPCDLGTEMPLATEA
,HWND
,DLGPROC
,LPARAM
);
3991 WINUSERAPI INT_PTR WINAPI
DialogBoxIndirectParamW(HINSTANCE
,LPCDLGTEMPLATEW
,HWND
,DLGPROC
,LPARAM
);
3992 #define DialogBoxIndirectParam WINELIB_NAME_AW(DialogBoxIndirectParam)
3993 WINUSERAPI INT_PTR WINAPI
DialogBoxParamA(HINSTANCE
,LPCSTR
,HWND
,DLGPROC
,LPARAM
);
3994 WINUSERAPI INT_PTR WINAPI
DialogBoxParamW(HINSTANCE
,LPCWSTR
,HWND
,DLGPROC
,LPARAM
);
3995 #define DialogBoxParam WINELIB_NAME_AW(DialogBoxParam)
3996 WINUSERAPI VOID WINAPI
DisableProcessWindowsGhosting(VOID
);
3997 WINUSERAPI LRESULT WINAPI
DispatchMessageA(const MSG
*);
3998 WINUSERAPI LRESULT WINAPI
DispatchMessageW(const MSG
*);
3999 #define DispatchMessage WINELIB_NAME_AW(DispatchMessage)
4000 WINUSERAPI INT WINAPI
DlgDirListA(HWND
,LPSTR
,INT
,INT
,UINT
);
4001 WINUSERAPI INT WINAPI
DlgDirListW(HWND
,LPWSTR
,INT
,INT
,UINT
);
4002 #define DlgDirList WINELIB_NAME_AW(DlgDirList)
4003 WINUSERAPI INT WINAPI
DlgDirListComboBoxA(HWND
,LPSTR
,INT
,INT
,UINT
);
4004 WINUSERAPI INT WINAPI
DlgDirListComboBoxW(HWND
,LPWSTR
,INT
,INT
,UINT
);
4005 #define DlgDirListComboBox WINELIB_NAME_AW(DlgDirListComboBox)
4006 WINUSERAPI BOOL WINAPI
DlgDirSelectComboBoxExA(HWND
,LPSTR
,INT
,INT
);
4007 WINUSERAPI BOOL WINAPI
DlgDirSelectComboBoxExW(HWND
,LPWSTR
,INT
,INT
);
4008 #define DlgDirSelectComboBoxEx WINELIB_NAME_AW(DlgDirSelectComboBoxEx)
4009 WINUSERAPI BOOL WINAPI
DlgDirSelectExA(HWND
,LPSTR
,INT
,INT
);
4010 WINUSERAPI BOOL WINAPI
DlgDirSelectExW(HWND
,LPWSTR
,INT
,INT
);
4011 #define DlgDirSelectEx WINELIB_NAME_AW(DlgDirSelectEx)
4012 WINUSERAPI BOOL WINAPI
DragDetect(HWND
,POINT
);
4013 WINUSERAPI DWORD WINAPI
DragObject(HWND
,HWND
,UINT
,ULONG_PTR
,HCURSOR
);
4014 WINUSERAPI BOOL WINAPI
DrawAnimatedRects(HWND
,int,const RECT
*,const RECT
*);
4015 WINUSERAPI BOOL WINAPI
DrawCaption(HWND
,HDC
,const RECT
*,UINT
);
4016 WINUSERAPI BOOL WINAPI
DrawCaptionTempA(HWND
,HDC
,const RECT
*,HFONT
,HICON
,LPCSTR
,UINT
);
4017 WINUSERAPI BOOL WINAPI
DrawCaptionTempW(HWND
,HDC
,const RECT
*,HFONT
,HICON
,LPCWSTR
,UINT
);
4018 #define DrawCaptionTemp WINELIB_NAME_AW(DrawCaptionTemp)
4019 WINUSERAPI BOOL WINAPI
DrawEdge(HDC
,LPRECT
,UINT
,UINT
);
4020 WINUSERAPI BOOL WINAPI
DrawFocusRect(HDC
,const RECT
*);
4021 WINUSERAPI BOOL WINAPI
DrawFrameControl(HDC
,LPRECT
,UINT
,UINT
);
4022 WINUSERAPI BOOL WINAPI
DrawIcon(HDC
,INT
,INT
,HICON
);
4023 WINUSERAPI BOOL WINAPI
DrawIconEx(HDC
,INT
,INT
,HICON
,INT
,INT
,UINT
,HBRUSH
,UINT
);
4024 WINUSERAPI BOOL WINAPI
DrawMenuBar(HWND
);
4025 WINUSERAPI BOOL WINAPI
DrawStateA(HDC
,HBRUSH
,DRAWSTATEPROC
,LPARAM
,WPARAM
,INT
,INT
,INT
,INT
,UINT
);
4026 WINUSERAPI BOOL WINAPI
DrawStateW(HDC
,HBRUSH
,DRAWSTATEPROC
,LPARAM
,WPARAM
,INT
,INT
,INT
,INT
,UINT
);
4027 #define DrawState WINELIB_NAME_AW(DrawState)
4028 WINUSERAPI INT WINAPI
DrawTextA(HDC
,LPCSTR
,INT
,LPRECT
,UINT
);
4029 WINUSERAPI INT WINAPI
DrawTextW(HDC
,LPCWSTR
,INT
,LPRECT
,UINT
);
4030 #define DrawText WINELIB_NAME_AW(DrawText)
4031 WINUSERAPI INT WINAPI
DrawTextExA(HDC
,LPSTR
,INT
,LPRECT
,UINT
,LPDRAWTEXTPARAMS
);
4032 WINUSERAPI INT WINAPI
DrawTextExW(HDC
,LPWSTR
,INT
,LPRECT
,UINT
,LPDRAWTEXTPARAMS
);
4033 #define DrawTextEx WINELIB_NAME_AW(DrawTextEx)
4034 WINUSERAPI BOOL WINAPI
EmptyClipboard(void);
4035 WINUSERAPI BOOL WINAPI
EnableMenuItem(HMENU
,UINT
,UINT
);
4036 WINUSERAPI BOOL WINAPI
EnableMouseInPointer(BOOL
);
4037 WINUSERAPI BOOL WINAPI
EnableMouseInPointerForThread(VOID
);
4038 WINUSERAPI BOOL WINAPI
EnableNonClientDpiScaling(HWND
);
4039 WINUSERAPI BOOL WINAPI
EnableScrollBar(HWND
,UINT
,UINT
);
4040 WINUSERAPI BOOL WINAPI
EnableWindow(HWND
,BOOL
);
4041 WINUSERAPI BOOL WINAPI
EndDeferWindowPos(HDWP
);
4042 WINUSERAPI BOOL WINAPI
EndDialog(HWND
,INT_PTR
);
4043 WINUSERAPI BOOL WINAPI
EndMenu(void);
4044 WINUSERAPI BOOL WINAPI
EndPaint(HWND
,const PAINTSTRUCT
*);
4045 WINUSERAPI BOOL WINAPI
EnumChildWindows(HWND
,WNDENUMPROC
,LPARAM
);
4046 WINUSERAPI UINT WINAPI
EnumClipboardFormats(UINT
);
4047 WINUSERAPI BOOL WINAPI
EnumDesktopsA(HWINSTA
,DESKTOPENUMPROCA
,LPARAM
);
4048 WINUSERAPI BOOL WINAPI
EnumDesktopsW(HWINSTA
,DESKTOPENUMPROCW
,LPARAM
);
4049 #define EnumDesktops WINELIB_NAME_AW(EnumDesktops)
4050 WINUSERAPI BOOL WINAPI
EnumDesktopWindows(HDESK
,WNDENUMPROC
,LPARAM
);
4051 WINUSERAPI BOOL WINAPI
EnumDisplayMonitors(HDC
,LPRECT
,MONITORENUMPROC
,LPARAM
);
4052 WINUSERAPI INT WINAPI
EnumPropsA(HWND
,PROPENUMPROCA
);
4053 WINUSERAPI INT WINAPI
EnumPropsW(HWND
,PROPENUMPROCW
);
4054 #define EnumProps WINELIB_NAME_AW(EnumProps)
4055 WINUSERAPI INT WINAPI
EnumPropsExA(HWND
,PROPENUMPROCEXA
,LPARAM
);
4056 WINUSERAPI INT WINAPI
EnumPropsExW(HWND
,PROPENUMPROCEXW
,LPARAM
);
4057 #define EnumPropsEx WINELIB_NAME_AW(EnumPropsEx)
4058 WINUSERAPI BOOL WINAPI
EnumThreadWindows(DWORD
,WNDENUMPROC
,LPARAM
);
4059 WINUSERAPI BOOL WINAPI
EnumWindows(WNDENUMPROC
,LPARAM
);
4060 WINUSERAPI BOOL WINAPI
EnumWindowStationsA(WINSTAENUMPROCA
,LPARAM
);
4061 WINUSERAPI BOOL WINAPI
EnumWindowStationsW(WINSTAENUMPROCW
,LPARAM
);
4062 #define EnumWindowStations WINELIB_NAME_AW(EnumWindowStations)
4063 WINUSERAPI BOOL WINAPI
EvaluateProximityToRect(const RECT
*,const TOUCH_HIT_TESTING_INPUT
*,TOUCH_HIT_TESTING_PROXIMITY_EVALUATION
*);
4064 WINUSERAPI BOOL WINAPI
EvaluateProximityToPolygon(UINT32
,const POINT
*,const TOUCH_HIT_TESTING_INPUT
*,TOUCH_HIT_TESTING_PROXIMITY_EVALUATION
*);
4065 WINUSERAPI INT WINAPI
ExcludeUpdateRgn(HDC
,HWND
);
4066 #define ExitWindows(a,b) ExitWindowsEx(EWX_LOGOFF,0xffffffff)
4067 WINUSERAPI BOOL WINAPI
ExitWindowsEx(UINT
,DWORD
);
4068 WINUSERAPI INT WINAPI
FillRect(HDC
,const RECT
*,HBRUSH
);
4069 WINUSERAPI HWND WINAPI
FindWindowA(LPCSTR
,LPCSTR
);
4070 WINUSERAPI HWND WINAPI
FindWindowW(LPCWSTR
,LPCWSTR
);
4071 #define FindWindow WINELIB_NAME_AW(FindWindow)
4072 WINUSERAPI HWND WINAPI
FindWindowExA(HWND
,HWND
,LPCSTR
,LPCSTR
);
4073 WINUSERAPI HWND WINAPI
FindWindowExW(HWND
,HWND
,LPCWSTR
,LPCWSTR
);
4074 #define FindWindowEx WINELIB_NAME_AW(FindWindowEx)
4075 WINUSERAPI BOOL WINAPI
FlashWindow(HWND
,BOOL
);
4076 WINUSERAPI BOOL WINAPI
FlashWindowEx(PFLASHWINFO
);
4077 WINUSERAPI INT WINAPI
FrameRect(HDC
,const RECT
*,HBRUSH
);
4078 WINUSERAPI HWND WINAPI
GetActiveWindow(void);
4079 WINUSERAPI BOOL WINAPI
GetAltTabInfoA(HWND
,INT
,PALTTABINFO
,LPSTR
,UINT
);
4080 WINUSERAPI BOOL WINAPI
GetAltTabInfoW(HWND
,INT
,PALTTABINFO
,LPWSTR
,UINT
);
4081 #define GetAltTabInfo WINELIB_NAME_AW(GetAltTabInfo)
4082 WINUSERAPI HWND WINAPI
GetAncestor(HWND
,UINT
);
4083 WINUSERAPI DWORD WINAPI
GetAppCompatFlags(HTASK
);
4084 WINUSERAPI SHORT WINAPI
GetAsyncKeyState(INT
);
4085 WINUSERAPI BOOL WINAPI
GetAutoRotationState(AR_STATE
*);
4086 WINUSERAPI DPI_AWARENESS WINAPI
GetAwarenessFromDpiAwarenessContext(DPI_AWARENESS_CONTEXT
);
4087 WINUSERAPI HWND WINAPI
GetCapture(void);
4088 WINUSERAPI UINT WINAPI
GetCaretBlinkTime(void);
4089 WINUSERAPI BOOL WINAPI
GetCaretPos(LPPOINT
);
4090 WINUSERAPI BOOL WINAPI
GetClassInfoA(HINSTANCE
,LPCSTR
,WNDCLASSA
*);
4091 WINUSERAPI BOOL WINAPI
GetClassInfoW(HINSTANCE
,LPCWSTR
,WNDCLASSW
*);
4092 #define GetClassInfo WINELIB_NAME_AW(GetClassInfo)
4093 WINUSERAPI BOOL WINAPI
GetClassInfoExA(HINSTANCE
,LPCSTR
,WNDCLASSEXA
*);
4094 WINUSERAPI BOOL WINAPI
GetClassInfoExW(HINSTANCE
,LPCWSTR
,WNDCLASSEXW
*);
4095 #define GetClassInfoEx WINELIB_NAME_AW(GetClassInfoEx)
4096 WINUSERAPI DWORD WINAPI
GetClassLongA(HWND
,INT
);
4097 WINUSERAPI DWORD WINAPI
GetClassLongW(HWND
,INT
);
4098 #define GetClassLong WINELIB_NAME_AW(GetClassLong)
4100 WINUSERAPI ULONG_PTR WINAPI
GetClassLongPtrA(HWND
,INT
);
4101 WINUSERAPI ULONG_PTR WINAPI
GetClassLongPtrW(HWND
,INT
);
4103 #define GetClassLongPtrA GetClassLongA
4104 #define GetClassLongPtrW GetClassLongW
4106 #define GetClassLongPtr WINELIB_NAME_AW(GetClassLongPtr)
4107 WINUSERAPI INT WINAPI
GetClassNameA(HWND
,LPSTR
,INT
);
4108 WINUSERAPI INT WINAPI
GetClassNameW(HWND
,LPWSTR
,INT
);
4109 #define GetClassName WINELIB_NAME_AW(GetClassName)
4110 WINUSERAPI WORD WINAPI
GetClassWord(HWND
,INT
);
4111 WINUSERAPI BOOL WINAPI
GetClientRect(HWND
,LPRECT
);
4112 WINUSERAPI HANDLE WINAPI
GetClipboardData(UINT
);
4113 WINUSERAPI INT WINAPI
GetClipboardFormatNameA(UINT
,LPSTR
,INT
);
4114 WINUSERAPI INT WINAPI
GetClipboardFormatNameW(UINT
,LPWSTR
,INT
);
4115 #define GetClipboardFormatName WINELIB_NAME_AW(GetClipboardFormatName)
4116 WINUSERAPI HWND WINAPI
GetClipboardOwner(void);
4117 WINUSERAPI DWORD WINAPI
GetClipboardSequenceNumber(VOID
);
4118 WINUSERAPI HWND WINAPI
GetClipboardViewer(void);
4119 WINUSERAPI BOOL WINAPI
GetClipCursor(LPRECT
);
4120 WINUSERAPI BOOL WINAPI
GetComboBoxInfo(HWND
,PCOMBOBOXINFO
);
4121 WINUSERAPI BOOL WINAPI
GetCurrentInputMessageSource(INPUT_MESSAGE_SOURCE
*);
4122 WINUSERAPI HCURSOR WINAPI
GetCursor(void);
4123 WINUSERAPI BOOL WINAPI
GetCursorInfo(PCURSORINFO
);
4124 WINUSERAPI HCURSOR WINAPI
GetCursorFrameInfo(HCURSOR
,DWORD
,DWORD
,DWORD
*,DWORD
*);
4125 WINUSERAPI BOOL WINAPI
GetCursorPos(LPPOINT
);
4126 WINUSERAPI HDC WINAPI
GetDC(HWND
);
4127 WINUSERAPI HDC WINAPI
GetDCEx(HWND
,HRGN
,DWORD
);
4128 WINUSERAPI HWND WINAPI
GetDesktopWindow(void);
4129 WINUSERAPI DWORD WINAPI
GetDialogBaseUnits(void);
4130 WINUSERAPI BOOL WINAPI
GetDisplayAutoRotationPreferences(ORIENTATION_PREFERENCE
*);
4131 WINUSERAPI INT WINAPI
GetDlgCtrlID(HWND
);
4132 WINUSERAPI HWND WINAPI
GetDlgItem(HWND
,INT
);
4133 WINUSERAPI UINT WINAPI
GetDlgItemInt(HWND
,INT
,BOOL
*,BOOL
);
4134 WINUSERAPI UINT WINAPI
GetDlgItemTextA(HWND
,INT
,LPSTR
,INT
);
4135 WINUSERAPI UINT WINAPI
GetDlgItemTextW(HWND
,INT
,LPWSTR
,INT
);
4136 #define GetDlgItemText WINELIB_NAME_AW(GetDlgItemText)
4137 WINUSERAPI UINT WINAPI
GetDoubleClickTime(void);
4138 WINUSERAPI BOOL WINAPI
GetDpiForMonitorInternal(HMONITOR
,UINT
,UINT
*,UINT
*);
4139 WINUSERAPI UINT WINAPI
GetDpiForWindow(HWND
);
4140 WINUSERAPI UINT WINAPI
GetDpiForSystem(void);
4141 WINUSERAPI HWND WINAPI
GetFocus(void);
4142 WINUSERAPI HWND WINAPI
GetForegroundWindow(void);
4143 WINUSERAPI BOOL WINAPI
GetGestureConfig(HWND
,DWORD
,DWORD
,UINT
*,GESTURECONFIG
*,UINT
);
4144 WINUSERAPI BOOL WINAPI
GetGestureExtraArgs(HGESTUREINFO
,UINT
,BYTE
*);
4145 WINUSERAPI BOOL WINAPI
GetGestureInfo(HGESTUREINFO
,PGESTUREINFO
);
4146 WINUSERAPI BOOL WINAPI
GetGUIThreadInfo(DWORD
,GUITHREADINFO
*);
4147 WINUSERAPI DWORD WINAPI
GetGuiResources(HANDLE
,DWORD
);
4148 WINUSERAPI BOOL WINAPI
GetIconInfo(HICON
,PICONINFO
);
4149 WINUSERAPI BOOL WINAPI
GetIconInfoExA(HICON
,ICONINFOEXA
*);
4150 WINUSERAPI BOOL WINAPI
GetIconInfoExW(HICON
,ICONINFOEXW
*);
4151 #define GetIconInfoEx WINELIB_NAME_AW(GetIconInfoEx)
4152 WINUSERAPI BOOL WINAPI
GetInputState(void);
4153 WINUSERAPI UINT WINAPI
GetInternalWindowPos(HWND
,LPRECT
,LPPOINT
);
4154 WINUSERAPI UINT WINAPI
GetKBCodePage(void);
4155 WINUSERAPI HKL WINAPI
GetKeyboardLayout(DWORD
);
4156 WINUSERAPI UINT WINAPI
GetKeyboardLayoutList(INT
,HKL
*);
4157 WINUSERAPI BOOL WINAPI
GetKeyboardState(LPBYTE
);
4158 WINUSERAPI INT WINAPI
GetKeyboardType(INT
);
4159 WINUSERAPI INT WINAPI
GetKeyNameTextA(LONG
,LPSTR
,INT
);
4160 WINUSERAPI INT WINAPI
GetKeyNameTextW(LONG
,LPWSTR
,INT
);
4161 #define GetKeyNameText WINELIB_NAME_AW(GetKeyNameText)
4162 WINUSERAPI BOOL WINAPI
GetKeyboardLayoutNameA(LPSTR
);
4163 WINUSERAPI BOOL WINAPI
GetKeyboardLayoutNameW(LPWSTR
);
4164 #define GetKeyboardLayoutName WINELIB_NAME_AW(GetKeyboardLayoutName)
4165 WINUSERAPI SHORT WINAPI
GetKeyState(INT
);
4166 WINUSERAPI HWND WINAPI
GetLastActivePopup(HWND
);
4167 WINUSERAPI BOOL WINAPI
GetLastInputInfo(PLASTINPUTINFO
);
4168 WINUSERAPI DWORD WINAPI
GetListBoxInfo(HWND
);
4169 WINUSERAPI UINT WINAPI
GetRawInputBuffer(PRAWINPUT
,PUINT
,UINT
);
4170 WINUSERAPI UINT WINAPI
GetRawInputData(HRAWINPUT
,UINT
,LPVOID
,PUINT
,UINT
);
4171 WINUSERAPI UINT WINAPI
GetRawInputDeviceInfoA(HANDLE
,UINT
,LPVOID
,PUINT
);
4172 WINUSERAPI UINT WINAPI
GetRawInputDeviceInfoW(HANDLE
,UINT
,LPVOID
,PUINT
);
4173 #define GetRawInputDeviceInfo WINELIB_NAME_AW(GetRawInputDeviceInfo)
4174 WINUSERAPI UINT WINAPI
GetRawInputDeviceList(PRAWINPUTDEVICELIST
,PUINT
,UINT
);
4175 WINUSERAPI UINT WINAPI
GetRegisteredRawInputDevices(PRAWINPUTDEVICE
,PUINT
,UINT
);
4176 WINUSERAPI BOOL WINAPI
GetLayeredWindowAttributes(HWND
,COLORREF
*,BYTE
*,DWORD
*);
4177 WINUSERAPI HMENU WINAPI
GetMenu(HWND
);
4178 WINUSERAPI BOOL WINAPI
GetMenuBarInfo(HWND
,LONG
,LONG
,PMENUBARINFO
);
4179 WINUSERAPI DWORD WINAPI
GetMenuCheckMarkDimensions(void);
4180 WINUSERAPI DWORD WINAPI
GetMenuContextHelpId(HMENU
);
4181 WINUSERAPI UINT WINAPI
GetMenuDefaultItem(HMENU
,UINT
,UINT
);
4182 WINUSERAPI BOOL WINAPI
GetMenuInfo(HMENU
,LPMENUINFO
);
4183 WINUSERAPI INT WINAPI
GetMenuItemCount(HMENU
);
4184 WINUSERAPI UINT WINAPI
GetMenuItemID(HMENU
,INT
);
4185 WINUSERAPI BOOL WINAPI
GetMenuItemInfoA(HMENU
,UINT
,BOOL
,MENUITEMINFOA
*);
4186 WINUSERAPI BOOL WINAPI
GetMenuItemInfoW(HMENU
,UINT
,BOOL
,MENUITEMINFOW
*);
4187 #define GetMenuItemInfo WINELIB_NAME_AW(GetMenuItemInfo)
4188 WINUSERAPI BOOL WINAPI
GetMenuItemRect(HWND
,HMENU
,UINT
,LPRECT
);
4189 WINUSERAPI UINT WINAPI
GetMenuState(HMENU
,UINT
,UINT
);
4190 WINUSERAPI INT WINAPI
GetMenuStringA(HMENU
,UINT
,LPSTR
,INT
,UINT
);
4191 WINUSERAPI INT WINAPI
GetMenuStringW(HMENU
,UINT
,LPWSTR
,INT
,UINT
);
4192 #define GetMenuString WINELIB_NAME_AW(GetMenuString)
4193 WINUSERAPI BOOL WINAPI
GetMessageA(LPMSG
,HWND
,UINT
,UINT
);
4194 WINUSERAPI BOOL WINAPI
GetMessageW(LPMSG
,HWND
,UINT
,UINT
);
4195 #define GetMessage WINELIB_NAME_AW(GetMessage)
4196 WINUSERAPI LPARAM WINAPI
GetMessageExtraInfo(void);
4197 WINUSERAPI DWORD WINAPI
GetMessagePos(void);
4198 WINUSERAPI LONG WINAPI
GetMessageTime(void);
4199 WINUSERAPI BOOL WINAPI
GetMonitorInfoA(HMONITOR
,LPMONITORINFO
);
4200 WINUSERAPI BOOL WINAPI
GetMonitorInfoW(HMONITOR
,LPMONITORINFO
);
4201 #define GetMonitorInfo WINELIB_NAME_AW(GetMonitorInfo)
4202 WINUSERAPI HWND WINAPI
GetNextDlgGroupItem(HWND
,HWND
,BOOL
);
4203 WINUSERAPI HWND WINAPI
GetNextDlgTabItem(HWND
,HWND
,BOOL
);
4204 #define GetNextWindow GetWindow
4205 WINUSERAPI HWND WINAPI
GetOpenClipboardWindow(void);
4206 WINUSERAPI HWND WINAPI
GetParent(HWND
);
4207 WINUSERAPI BOOL WINAPI
GetPhysicalCursorPos(POINT
*);
4208 WINUSERAPI BOOL WINAPI
GetPointerDevice(HANDLE device
,POINTER_DEVICE_INFO
*);
4209 WINUSERAPI BOOL WINAPI
GetPointerDeviceCursors(HANDLE
,UINT32
*,POINTER_DEVICE_CURSOR_INFO
*);
4210 WINUSERAPI BOOL WINAPI
GetPointerDeviceProperties(HANDLE device
,UINT32
*,POINTER_DEVICE_PROPERTY
*);
4211 WINUSERAPI BOOL WINAPI
GetPointerDeviceRects(HANDLE
,RECT
*,RECT
*);
4212 WINUSERAPI BOOL WINAPI
GetPointerDevices(UINT32
*,POINTER_DEVICE_INFO
*);
4213 WINUSERAPI BOOL WINAPI
GetPointerInputTransform(UINT32
,UINT32
,INPUT_TRANSFORM
*);
4214 WINUSERAPI BOOL WINAPI
GetPointerPenInfo(UINT32
,POINTER_PEN_INFO
*);
4215 WINUSERAPI BOOL WINAPI
GetPointerPenInfoHistory(UINT32
,UINT32
*,POINTER_PEN_INFO
*);
4216 WINUSERAPI BOOL WINAPI
GetPointerFramePenInfo(UINT32
,UINT32
*,POINTER_PEN_INFO
*);
4217 WINUSERAPI BOOL WINAPI
GetPointerFramePenInfoHistory(UINT32
,UINT32
*,UINT32
*,POINTER_PEN_INFO
*);
4218 WINUSERAPI BOOL WINAPI
GetPointerType(UINT32
,POINTER_INPUT_TYPE
*);
4219 WINUSERAPI BOOL WINAPI
GetPointerCursorId(UINT32
,UINT32
*);
4220 WINUSERAPI BOOL WINAPI
GetPointerInfo(UINT32
,POINTER_INFO
*);
4221 WINUSERAPI BOOL WINAPI
GetPointerInfoHistory(UINT32
,UINT32
*,POINTER_INFO
*);
4222 WINUSERAPI BOOL WINAPI
GetPointerFrameInfo(UINT32
,UINT32
*,POINTER_INFO
*);
4223 WINUSERAPI BOOL WINAPI
GetPointerFrameInfoHistory(UINT32
,UINT32
*,UINT32
*,POINTER_INFO
*);
4224 WINUSERAPI BOOL WINAPI
GetPointerTouchInfo(UINT32
,POINTER_TOUCH_INFO
*);
4225 WINUSERAPI BOOL WINAPI
GetPointerTouchInfoHistory(UINT32
,UINT32
*,POINTER_TOUCH_INFO
*);
4226 WINUSERAPI BOOL WINAPI
GetPointerFrameTouchInfo(UINT32
,UINT32
*,POINTER_TOUCH_INFO
*);
4227 WINUSERAPI BOOL WINAPI
GetPointerFrameTouchInfoHistory(UINT32
,UINT32
*,UINT32
*,POINTER_TOUCH_INFO
*);
4228 WINUSERAPI INT WINAPI
GetPriorityClipboardFormat(UINT
*,INT
);
4229 WINUSERAPI BOOL WINAPI
GetProcessDefaultLayout(DWORD
*);
4230 WINUSERAPI BOOL WINAPI
GetProcessDpiAwarenessInternal(HANDLE
,DPI_AWARENESS
*);
4231 WINUSERAPI HANDLE WINAPI
GetPropA(HWND
,LPCSTR
);
4232 WINUSERAPI HANDLE WINAPI
GetPropW(HWND
,LPCWSTR
);
4233 #define GetProp WINELIB_NAME_AW(GetProp)
4234 WINUSERAPI DWORD WINAPI
GetQueueStatus(UINT
);
4235 WINUSERAPI BOOL WINAPI
GetRawPointerDeviceData(UINT32
,UINT32
,UINT32
,POINTER_DEVICE_PROPERTY
*,LONG
*);
4236 WINUSERAPI BOOL WINAPI
GetScrollInfo(HWND
,INT
,LPSCROLLINFO
);
4237 WINUSERAPI BOOL WINAPI
GetScrollBarInfo(HWND
,LONG
,LPSCROLLBARINFO
);
4238 WINUSERAPI INT WINAPI
GetScrollPos(HWND
,INT
);
4239 WINUSERAPI BOOL WINAPI
GetScrollRange(HWND
,INT
,LPINT
,LPINT
);
4240 WINUSERAPI HWND WINAPI
GetShellWindow(void);
4241 WINUSERAPI HMENU WINAPI
GetSubMenu(HMENU
,INT
);
4242 WINUSERAPI HBRUSH WINAPI
GetSysColorBrush(INT
);
4243 #define GetSysModalWindow() ((HWND)0)
4244 WINUSERAPI HMENU WINAPI
GetSystemMenu(HWND
,BOOL
);
4245 WINUSERAPI INT WINAPI
GetSystemMetrics(INT
);
4246 WINUSERAPI INT WINAPI
GetSystemMetricsForDpi(INT
,UINT
);
4247 WINUSERAPI DWORD WINAPI
GetTabbedTextExtentA(HDC
,LPCSTR
,INT
,INT
,const INT
*);
4248 WINUSERAPI DWORD WINAPI
GetTabbedTextExtentW(HDC
,LPCWSTR
,INT
,INT
,const INT
*);
4249 #define GetTabbedTextExtent WINELIB_NAME_AW(GetTabbedTextExtent)
4250 WINUSERAPI BOOL WINAPI
GetTitleBarInfo(HWND
,PTITLEBARINFO
);
4251 WINUSERAPI HDESK WINAPI
GetThreadDesktop(DWORD
);
4252 WINUSERAPI DPI_AWARENESS_CONTEXT WINAPI
GetThreadDpiAwarenessContext(void);
4253 WINUSERAPI HWND WINAPI
GetTopWindow(HWND
);
4254 WINUSERAPI BOOL WINAPI
GetTouchInputInfo(HTOUCHINPUT
,UINT
,TOUCHINPUT
*,int);
4255 WINUSERAPI BOOL WINAPI
GetUpdateRect(HWND
,LPRECT
,BOOL
);
4256 WINUSERAPI INT WINAPI
GetUpdateRgn(HWND
,HRGN
,BOOL
);
4257 WINUSERAPI BOOL WINAPI
GetUpdatedClipboardFormats(UINT
*,UINT
,UINT
*);
4258 WINUSERAPI BOOL WINAPI
GetUserObjectInformationA(HANDLE
,INT
,LPVOID
,DWORD
,LPDWORD
);
4259 WINUSERAPI BOOL WINAPI
GetUserObjectInformationW(HANDLE
,INT
,LPVOID
,DWORD
,LPDWORD
);
4260 #define GetUserObjectInformation WINELIB_NAME_AW(GetUserObjectInformation)
4261 WINUSERAPI BOOL WINAPI
GetUserObjectSecurity(HANDLE
,PSECURITY_INFORMATION
,PSECURITY_DESCRIPTOR
,DWORD
,LPDWORD
);
4262 WINUSERAPI HWND WINAPI
GetWindow(HWND
,UINT
);
4263 WINUSERAPI DWORD WINAPI
GetWindowContextHelpId(HWND
);
4264 WINUSERAPI HDC WINAPI
GetWindowDC(HWND
);
4265 WINUSERAPI BOOL WINAPI
GetWindowDisplayAffinity(HWND
,DWORD
*);
4266 WINUSERAPI DPI_AWARENESS_CONTEXT WINAPI
GetWindowDpiAwarenessContext(HWND
);
4267 WINUSERAPI BOOL WINAPI
GetWindowFeedbackSetting(HWND
,FEEDBACK_TYPE
,DWORD
,UINT32
*,void*);
4268 WINUSERAPI BOOL WINAPI
GetWindowInfo(HWND
, PWINDOWINFO
);
4269 WINUSERAPI LONG WINAPI
GetWindowLongA(HWND
,INT
);
4270 WINUSERAPI LONG WINAPI
GetWindowLongW(HWND
,INT
);
4271 #define GetWindowLong WINELIB_NAME_AW(GetWindowLong)
4273 WINUSERAPI LONG_PTR WINAPI
GetWindowLongPtrA(HWND
,INT
);
4274 WINUSERAPI LONG_PTR WINAPI
GetWindowLongPtrW(HWND
,INT
);
4276 #define GetWindowLongPtrA GetWindowLongA
4277 #define GetWindowLongPtrW GetWindowLongW
4279 #define GetWindowLongPtr WINELIB_NAME_AW(GetWindowLongPtr)
4280 WINUSERAPI UINT WINAPI
GetWindowModuleFileNameA(HWND
,LPSTR
,UINT
);
4281 WINUSERAPI UINT WINAPI
GetWindowModuleFileNameW(HWND
,LPWSTR
,UINT
);
4282 #define GetWindowModuleFileName WINELIB_NAME_AW(GetWindowModuleFileName)
4283 WINUSERAPI BOOL WINAPI
GetWindowPlacement(HWND
,LPWINDOWPLACEMENT
);
4284 WINUSERAPI BOOL WINAPI
GetWindowRect(HWND
,LPRECT
);
4285 WINUSERAPI INT WINAPI
GetWindowRgnBox(HWND
,LPRECT
);
4286 WINUSERAPI INT WINAPI
GetWindowRgn(HWND
,HRGN
);
4287 WINUSERAPI HWINSTA WINAPI
GetProcessWindowStation(void);
4288 #define GetWindowTask(hwnd) ((HTASK)GetWindowThreadProcessId(hwnd,NULL))
4289 WINUSERAPI INT WINAPI
GetWindowTextA(HWND
,LPSTR
,INT
);
4290 WINUSERAPI INT WINAPI
GetWindowTextW(HWND
,LPWSTR
,INT
);
4291 #define GetWindowText WINELIB_NAME_AW(GetWindowText)
4292 WINUSERAPI INT WINAPI
GetWindowTextLengthA(HWND
);
4293 WINUSERAPI INT WINAPI
GetWindowTextLengthW(HWND
);
4294 #define GetWindowTextLength WINELIB_NAME_AW(GetWindowTextLength)
4295 WINUSERAPI DWORD WINAPI
GetWindowThreadProcessId(HWND
,LPDWORD
);
4296 WINUSERAPI WORD WINAPI
GetWindowWord(HWND
,INT
);
4297 WINUSERAPI BOOL WINAPI
GrayStringA(HDC
,HBRUSH
,GRAYSTRINGPROC
,LPARAM
,INT
,INT
,INT
,INT
,INT
);
4298 WINUSERAPI BOOL WINAPI
GrayStringW(HDC
,HBRUSH
,GRAYSTRINGPROC
,LPARAM
,INT
,INT
,INT
,INT
,INT
);
4299 #define GrayString WINELIB_NAME_AW(GrayString)
4300 WINUSERAPI BOOL WINAPI
HideCaret(HWND
);
4301 WINUSERAPI BOOL WINAPI
HiliteMenuItem(HWND
,HMENU
,UINT
,UINT
);
4302 WINUSERAPI BOOL WINAPI
InitializeTouchInjection(UINT32
,DWORD
);
4303 WINUSERAPI BOOL WINAPI
InjectSyntheticPointerInput(HSYNTHETICPOINTERDEVICE
,const POINTER_TYPE_INFO
*,UINT32
);
4304 WINUSERAPI BOOL WINAPI
InjectTouchInput(UINT32
,const POINTER_TOUCH_INFO
*);
4305 WINUSERAPI BOOL WINAPI
InSendMessage(void);
4306 WINUSERAPI DWORD WINAPI
InSendMessageEx(LPVOID
);
4307 WINUSERAPI BOOL WINAPI
InsertMenuA(HMENU
,UINT
,UINT
,UINT_PTR
,LPCSTR
);
4308 WINUSERAPI BOOL WINAPI
InsertMenuW(HMENU
,UINT
,UINT
,UINT_PTR
,LPCWSTR
);
4309 #define InsertMenu WINELIB_NAME_AW(InsertMenu)
4310 WINUSERAPI BOOL WINAPI
InsertMenuItemA(HMENU
,UINT
,BOOL
,const MENUITEMINFOA
*);
4311 WINUSERAPI BOOL WINAPI
InsertMenuItemW(HMENU
,UINT
,BOOL
,const MENUITEMINFOW
*);
4312 #define InsertMenuItem WINELIB_NAME_AW(InsertMenuItem)
4313 WINUSERAPI INT WINAPI
InternalGetWindowText(HWND
,LPWSTR
,INT
);
4314 WINUSERAPI BOOL WINAPI
IntersectRect(LPRECT
,const RECT
*,const RECT
*);
4315 WINUSERAPI BOOL WINAPI
InvalidateRect(HWND
,const RECT
*,BOOL
);
4316 WINUSERAPI BOOL WINAPI
InvalidateRgn(HWND
,HRGN
,BOOL
);
4317 WINUSERAPI BOOL WINAPI
InvertRect(HDC
,const RECT
*);
4318 WINUSERAPI BOOL WINAPI
IsCharAlphaA(CHAR
);
4319 WINUSERAPI BOOL WINAPI
IsCharAlphaW(WCHAR
);
4320 #define IsCharAlpha WINELIB_NAME_AW(IsCharAlpha)
4321 WINUSERAPI BOOL WINAPI
IsCharAlphaNumericA(CHAR
);
4322 WINUSERAPI BOOL WINAPI
IsCharAlphaNumericW(WCHAR
);
4323 #define IsCharAlphaNumeric WINELIB_NAME_AW(IsCharAlphaNumeric)
4324 WINUSERAPI BOOL WINAPI
IsCharLowerA(CHAR
);
4325 WINUSERAPI BOOL WINAPI
IsCharLowerW(WCHAR
);
4326 #define IsCharLower WINELIB_NAME_AW(IsCharLower)
4327 WINUSERAPI BOOL WINAPI
IsCharUpperA(CHAR
);
4328 WINUSERAPI BOOL WINAPI
IsCharUpperW(WCHAR
);
4329 #define IsCharUpper WINELIB_NAME_AW(IsCharUpper)
4330 WINUSERAPI BOOL WINAPI
IsChild(HWND
,HWND
);
4331 WINUSERAPI BOOL WINAPI
IsClipboardFormatAvailable(UINT
);
4332 WINUSERAPI BOOL WINAPI
IsDialogMessageA(HWND
,LPMSG
);
4333 WINUSERAPI BOOL WINAPI
IsDialogMessageW(HWND
,LPMSG
);
4334 #define IsDialogMessage WINELIB_NAME_AW(IsDialogMessage)
4335 WINUSERAPI UINT WINAPI
IsDlgButtonChecked(HWND
,int);
4336 WINUSERAPI BOOL WINAPI
IsGUIThread(BOOL
);
4337 WINUSERAPI BOOL WINAPI
IsHungAppWindow(HWND
);
4338 WINUSERAPI BOOL WINAPI
IsIconic(HWND
);
4339 WINUSERAPI BOOL WINAPI
IsMenu(HMENU
);
4340 WINUSERAPI BOOL WINAPI
IsMouseInPointerEnabled(void);
4341 WINUSERAPI BOOL WINAPI
IsProcessDPIAware(void);
4342 WINUSERAPI BOOL WINAPI
IsTouchWindow(HWND
,PULONG
);
4343 WINUSERAPI BOOL WINAPI
IsValidDpiAwarenessContext(DPI_AWARENESS_CONTEXT
);
4344 WINUSERAPI BOOL WINAPI
IsWinEventHookInstalled(DWORD
);
4345 WINUSERAPI BOOL WINAPI
IsWindow(HWND
);
4346 WINUSERAPI BOOL WINAPI
IsWindowEnabled(HWND
);
4347 WINUSERAPI BOOL WINAPI
IsWindowUnicode(HWND
);
4348 WINUSERAPI BOOL WINAPI
IsWindowVisible(HWND
);
4349 WINUSERAPI BOOL WINAPI
IsZoomed(HWND
);
4350 WINUSERAPI BOOL WINAPI
KillSystemTimer(HWND
,UINT_PTR
);
4351 WINUSERAPI BOOL WINAPI
KillTimer(HWND
,UINT_PTR
);
4352 WINUSERAPI HACCEL WINAPI
LoadAcceleratorsA(HINSTANCE
,LPCSTR
);
4353 WINUSERAPI HACCEL WINAPI
LoadAcceleratorsW(HINSTANCE
,LPCWSTR
);
4354 #define LoadAccelerators WINELIB_NAME_AW(LoadAccelerators)
4355 WINUSERAPI HBITMAP WINAPI
LoadBitmapA(HINSTANCE
,LPCSTR
);
4356 WINUSERAPI HBITMAP WINAPI
LoadBitmapW(HINSTANCE
,LPCWSTR
);
4357 #define LoadBitmap WINELIB_NAME_AW(LoadBitmap)
4358 WINUSERAPI HCURSOR WINAPI
LoadCursorA(HINSTANCE
,LPCSTR
);
4359 WINUSERAPI HCURSOR WINAPI
LoadCursorW(HINSTANCE
,LPCWSTR
);
4360 #define LoadCursor WINELIB_NAME_AW(LoadCursor)
4361 WINUSERAPI HCURSOR WINAPI
LoadCursorFromFileA(LPCSTR
);
4362 WINUSERAPI HCURSOR WINAPI
LoadCursorFromFileW(LPCWSTR
);
4363 #define LoadCursorFromFile WINELIB_NAME_AW(LoadCursorFromFile)
4364 WINUSERAPI HICON WINAPI
LoadIconA(HINSTANCE
,LPCSTR
);
4365 WINUSERAPI HICON WINAPI
LoadIconW(HINSTANCE
,LPCWSTR
);
4366 #define LoadIcon WINELIB_NAME_AW(LoadIcon)
4367 WINUSERAPI HANDLE WINAPI
LoadImageA(HINSTANCE
,LPCSTR
,UINT
,INT
,INT
,UINT
);
4368 WINUSERAPI HANDLE WINAPI
LoadImageW(HINSTANCE
,LPCWSTR
,UINT
,INT
,INT
,UINT
);
4369 #define LoadImage WINELIB_NAME_AW(LoadImage)
4370 WINUSERAPI HKL WINAPI
LoadKeyboardLayoutA(LPCSTR
,UINT
);
4371 WINUSERAPI HKL WINAPI
LoadKeyboardLayoutW(LPCWSTR
,UINT
);
4372 #define LoadKeyboardLayout WINELIB_NAME_AW(LoadKeyboardLayout)
4373 WINUSERAPI HMENU WINAPI
LoadMenuA(HINSTANCE
,LPCSTR
);
4374 WINUSERAPI HMENU WINAPI
LoadMenuW(HINSTANCE
,LPCWSTR
);
4375 #define LoadMenu WINELIB_NAME_AW(LoadMenu)
4376 WINUSERAPI HMENU WINAPI
LoadMenuIndirectA(LPCVOID
);
4377 WINUSERAPI HMENU WINAPI
LoadMenuIndirectW(LPCVOID
);
4378 #define LoadMenuIndirect WINELIB_NAME_AW(LoadMenuIndirect)
4379 WINUSERAPI INT WINAPI
LoadStringA(HINSTANCE
,UINT
,LPSTR
,INT
);
4380 WINUSERAPI INT WINAPI
LoadStringW(HINSTANCE
,UINT
,LPWSTR
,INT
);
4381 #define LoadString WINELIB_NAME_AW(LoadString)
4382 WINUSERAPI BOOL WINAPI
LogicalToPhysicalPoint(HWND
,POINT
*);
4383 WINUSERAPI BOOL WINAPI
LogicalToPhysicalPointForPerMonitorDPI(HWND
,POINT
*);
4384 WINUSERAPI BOOL WINAPI
LockSetForegroundWindow(UINT
);
4385 WINUSERAPI BOOL WINAPI
LockWindowUpdate(HWND
);
4386 WINUSERAPI BOOL WINAPI
LockWorkStation(void);
4387 WINUSERAPI INT WINAPI
LookupIconIdFromDirectory(LPBYTE
,BOOL
);
4388 WINUSERAPI INT WINAPI
LookupIconIdFromDirectoryEx(LPBYTE
,BOOL
,INT
,INT
,UINT
);
4389 WINUSERAPI UINT WINAPI
MapVirtualKeyA(UINT
,UINT
);
4390 WINUSERAPI UINT WINAPI
MapVirtualKeyW(UINT
,UINT
);
4391 #define MapVirtualKey WINELIB_NAME_AW(MapVirtualKey)
4392 WINUSERAPI UINT WINAPI
MapVirtualKeyExA(UINT
,UINT
,HKL
);
4393 WINUSERAPI UINT WINAPI
MapVirtualKeyExW(UINT
,UINT
,HKL
);
4394 #define MapVirtualKeyEx WINELIB_NAME_AW(MapVirtualKeyEx)
4395 WINUSERAPI BOOL WINAPI
MapDialogRect(HWND
,LPRECT
);
4396 WINUSERAPI INT WINAPI
MapWindowPoints(HWND
,HWND
,LPPOINT
,UINT
);
4397 WINUSERAPI INT WINAPI
MenuItemFromPoint(HWND
,HMENU
,POINT
);
4398 WINUSERAPI BOOL WINAPI
MessageBeep(UINT
);
4399 WINUSERAPI INT WINAPI
MessageBoxA(HWND
,LPCSTR
,LPCSTR
,UINT
);
4400 WINUSERAPI INT WINAPI
MessageBoxW(HWND
,LPCWSTR
,LPCWSTR
,UINT
);
4401 #define MessageBox WINELIB_NAME_AW(MessageBox)
4402 WINUSERAPI INT WINAPI
MessageBoxExA(HWND
,LPCSTR
,LPCSTR
,UINT
,WORD
);
4403 WINUSERAPI INT WINAPI
MessageBoxExW(HWND
,LPCWSTR
,LPCWSTR
,UINT
,WORD
);
4404 #define MessageBoxEx WINELIB_NAME_AW(MessageBoxEx)
4405 WINUSERAPI INT WINAPI
MessageBoxIndirectA(LPMSGBOXPARAMSA
);
4406 WINUSERAPI INT WINAPI
MessageBoxIndirectW(LPMSGBOXPARAMSW
);
4407 #define MessageBoxIndirect WINELIB_NAME_AW(MessageBoxIndirect)
4408 WINUSERAPI BOOL WINAPI
ModifyMenuA(HMENU
,UINT
,UINT
,UINT_PTR
,LPCSTR
);
4409 WINUSERAPI BOOL WINAPI
ModifyMenuW(HMENU
,UINT
,UINT
,UINT_PTR
,LPCWSTR
);
4410 #define ModifyMenu WINELIB_NAME_AW(ModifyMenu)
4411 WINUSERAPI HMONITOR WINAPI
MonitorFromPoint(POINT
,DWORD
);
4412 WINUSERAPI HMONITOR WINAPI
MonitorFromRect(const RECT
*,DWORD
);
4413 WINUSERAPI HMONITOR WINAPI
MonitorFromWindow(HWND
,DWORD
);
4414 WINUSERAPI BOOL WINAPI
MoveWindow(HWND
,INT
,INT
,INT
,INT
,BOOL
);
4415 WINUSERAPI DWORD WINAPI
MsgWaitForMultipleObjects(DWORD
,const HANDLE
*,BOOL
,DWORD
,DWORD
);
4416 WINUSERAPI DWORD WINAPI
MsgWaitForMultipleObjectsEx(DWORD
,const HANDLE
*,DWORD
,DWORD
,DWORD
);
4417 WINUSERAPI VOID WINAPI
NotifyWinEvent(DWORD
,HWND
,LONG
,LONG
);
4418 WINUSERAPI DWORD WINAPI
OemKeyScan(WORD
);
4419 WINUSERAPI BOOL WINAPI
OemToCharA(LPCSTR
,LPSTR
);
4420 WINUSERAPI BOOL WINAPI
OemToCharW(LPCSTR
,LPWSTR
);
4421 #define OemToChar WINELIB_NAME_AW(OemToChar)
4422 WINUSERAPI BOOL WINAPI
OemToCharBuffA(LPCSTR
,LPSTR
,DWORD
);
4423 WINUSERAPI BOOL WINAPI
OemToCharBuffW(LPCSTR
,LPWSTR
,DWORD
);
4424 #define OemToCharBuff WINELIB_NAME_AW(OemToCharBuff)
4425 WINUSERAPI BOOL WINAPI
OpenClipboard(HWND
);
4426 WINUSERAPI HDESK WINAPI
OpenDesktopA(LPCSTR
,DWORD
,BOOL
,ACCESS_MASK
);
4427 WINUSERAPI HDESK WINAPI
OpenDesktopW(LPCWSTR
,DWORD
,BOOL
,ACCESS_MASK
);
4428 #define OpenDesktop WINELIB_NAME_AW(OpenDesktop)
4429 WINUSERAPI BOOL WINAPI
OpenIcon(HWND
);
4430 WINUSERAPI HDESK WINAPI
OpenInputDesktop(DWORD
,BOOL
,ACCESS_MASK
);
4431 WINUSERAPI HWINSTA WINAPI
OpenWindowStationA(LPCSTR
,BOOL
,ACCESS_MASK
);
4432 WINUSERAPI HWINSTA WINAPI
OpenWindowStationW(LPCWSTR
,BOOL
,ACCESS_MASK
);
4433 #define OpenWindowStation WINELIB_NAME_AW(OpenWindowStation)
4434 WINUSERAPI BOOL WINAPI
PaintDesktop(HDC
);
4435 WINUSERAPI LRESULT WINAPI
PackTouchHitTestingProximityEvaluation(const TOUCH_HIT_TESTING_INPUT
*,const TOUCH_HIT_TESTING_PROXIMITY_EVALUATION
*);
4436 WINUSERAPI BOOL WINAPI
PeekMessageA(LPMSG
,HWND
,UINT
,UINT
,UINT
);
4437 WINUSERAPI BOOL WINAPI
PeekMessageW(LPMSG
,HWND
,UINT
,UINT
,UINT
);
4438 #define PeekMessage WINELIB_NAME_AW(PeekMessage)
4439 WINUSERAPI BOOL WINAPI
PhysicalToLogicalPoint(HWND
,POINT
*);
4440 WINUSERAPI BOOL WINAPI
PhysicalToLogicalPointForPerMonitorDPI(HWND
,POINT
*);
4441 #define PostAppMessageA(thread,msg,wparam,lparam) PostThreadMessageA((DWORD)(thread),msg,wparam,lparam)
4442 #define PostAppMessageW(thread,msg,wparam,lparam) PostThreadMessageW((DWORD)(thread),msg,wparam,lparam)
4443 #define PostAppMessage WINELIB_NAME_AW(PostAppMessage)
4444 WINUSERAPI BOOL WINAPI
PostMessageA(HWND
,UINT
,WPARAM
,LPARAM
);
4445 WINUSERAPI BOOL WINAPI
PostMessageW(HWND
,UINT
,WPARAM
,LPARAM
);
4446 #define PostMessage WINELIB_NAME_AW(PostMessage)
4447 WINUSERAPI
void WINAPI
PostQuitMessage(INT
);
4448 WINUSERAPI BOOL WINAPI
PostThreadMessageA(DWORD
,UINT
,WPARAM
,LPARAM
);
4449 WINUSERAPI BOOL WINAPI
PostThreadMessageW(DWORD
,UINT
,WPARAM
,LPARAM
);
4450 #define PostThreadMessage WINELIB_NAME_AW(PostThreadMessage)
4451 WINUSERAPI BOOL WINAPI
PrintWindow(HWND
,HDC
,UINT
);
4452 WINUSERAPI UINT WINAPI
PrivateExtractIconExA(LPCSTR
,int,HICON
*,HICON
*,UINT
);
4453 WINUSERAPI UINT WINAPI
PrivateExtractIconExW(LPCWSTR
,int,HICON
*,HICON
*,UINT
);
4454 WINUSERAPI UINT WINAPI
PrivateExtractIconsA(LPCSTR
,int,int,int,HICON
*,UINT
*,UINT
,UINT
);
4455 WINUSERAPI UINT WINAPI
PrivateExtractIconsW(LPCWSTR
,int,int,int,HICON
*,UINT
*,UINT
,UINT
);
4456 WINUSERAPI HWND WINAPI
RealChildWindowFromPoint(HWND
,POINT
);
4457 WINUSERAPI UINT WINAPI
RealGetWindowClassA(HWND
,LPSTR
,UINT
);
4458 WINUSERAPI UINT WINAPI
RealGetWindowClassW(HWND
,LPWSTR
,UINT
);
4459 #define RealGetWindowClass WINELIB_NAME_AW(RealGetWindowClass)
4460 WINUSERAPI BOOL WINAPI
RedrawWindow(HWND
,const RECT
*,HRGN
,UINT
);
4461 WINUSERAPI ATOM WINAPI
RegisterClassA(const WNDCLASSA
*);
4462 WINUSERAPI ATOM WINAPI
RegisterClassW(const WNDCLASSW
*);
4463 #define RegisterClass WINELIB_NAME_AW(RegisterClass)
4464 WINUSERAPI ATOM WINAPI
RegisterClassExA(const WNDCLASSEXA
*);
4465 WINUSERAPI ATOM WINAPI
RegisterClassExW(const WNDCLASSEXW
*);
4466 #define RegisterClassEx WINELIB_NAME_AW(RegisterClassEx)
4467 WINUSERAPI UINT WINAPI
RegisterClipboardFormatA(LPCSTR
);
4468 WINUSERAPI UINT WINAPI
RegisterClipboardFormatW(LPCWSTR
);
4469 #define RegisterClipboardFormat WINELIB_NAME_AW(RegisterClipboardFormat)
4470 WINUSERAPI HDEVNOTIFY WINAPI
RegisterDeviceNotificationA(HANDLE
,LPVOID
,DWORD
);
4471 WINUSERAPI HDEVNOTIFY WINAPI
RegisterDeviceNotificationW(HANDLE
,LPVOID
,DWORD
);
4472 #define RegisterDeviceNotification WINELIB_NAME_AW(RegisterDeviceNotification)
4473 WINUSERAPI BOOL WINAPI
RegisterHotKey(HWND
,INT
,UINT
,UINT
);
4474 WINUSERAPI BOOL WINAPI
RegisterPointerDeviceNotifications(HWND
,BOOL
);
4475 WINUSERAPI BOOL WINAPI
RegisterPointerInputTarget(HWND
,POINTER_INPUT_TYPE
);
4476 WINUSERAPI BOOL WINAPI
RegisterPointerInputTargetEx(HWND
,POINTER_INPUT_TYPE
,BOOL
);
4477 WINUSERAPI HPOWERNOTIFY WINAPI
RegisterPowerSettingNotification(HANDLE
,LPCGUID
,DWORD
);
4478 WINUSERAPI BOOL WINAPI
RegisterRawInputDevices(const RAWINPUTDEVICE
*,UINT
,UINT
);
4479 WINUSERAPI BOOL WINAPI
RegisterShellHookWindow(HWND
);
4480 WINUSERAPI HPOWERNOTIFY WINAPI
RegisterSuspendResumeNotification(HANDLE
,DWORD
);
4481 WINUSERAPI BOOL WINAPI
RegisterTouchHitTestingWindow(HWND
,ULONG
);
4482 WINUSERAPI BOOL WINAPI
RegisterTouchWindow(HWND
,ULONG
);
4483 WINUSERAPI UINT WINAPI
RegisterWindowMessageA(LPCSTR
);
4484 WINUSERAPI UINT WINAPI
RegisterWindowMessageW(LPCWSTR
);
4485 #define RegisterWindowMessage WINELIB_NAME_AW(RegisterWindowMessage)
4486 WINUSERAPI BOOL WINAPI
ReleaseCapture(void);
4487 WINUSERAPI INT WINAPI
ReleaseDC(HWND
,HDC
);
4488 WINUSERAPI BOOL WINAPI
RemoveClipboardFormatListener(HWND
);
4489 WINUSERAPI BOOL WINAPI
RemoveMenu(HMENU
,UINT
,UINT
);
4490 WINUSERAPI HANDLE WINAPI
RemovePropA(HWND
,LPCSTR
);
4491 WINUSERAPI HANDLE WINAPI
RemovePropW(HWND
,LPCWSTR
);
4492 #define RemoveProp WINELIB_NAME_AW(RemoveProp)
4493 WINUSERAPI BOOL WINAPI
ReplyMessage(LRESULT
);
4494 WINUSERAPI BOOL WINAPI
ScreenToClient(HWND
,LPPOINT
);
4495 WINUSERAPI VOID WINAPI
ScrollChildren(HWND
,UINT
,WPARAM
,LPARAM
);
4496 WINUSERAPI BOOL WINAPI
ScrollDC(HDC
,INT
,INT
,const RECT
*,const RECT
*,HRGN
,LPRECT
);
4497 WINUSERAPI BOOL WINAPI
ScrollWindow(HWND
,INT
,INT
,const RECT
*,const RECT
*);
4498 WINUSERAPI INT WINAPI
ScrollWindowEx(HWND
,INT
,INT
,const RECT
*,const RECT
*,HRGN
,LPRECT
,UINT
);
4499 WINUSERAPI LRESULT WINAPI
SendDlgItemMessageA(HWND
,INT
,UINT
,WPARAM
,LPARAM
);
4500 WINUSERAPI LRESULT WINAPI
SendDlgItemMessageW(HWND
,INT
,UINT
,WPARAM
,LPARAM
);
4501 #define SendDlgItemMessage WINELIB_NAME_AW(SendDlgItemMessage)
4502 WINUSERAPI UINT WINAPI
SendInput(UINT
,LPINPUT
,int);
4503 WINUSERAPI LRESULT WINAPI
SendMessageA(HWND
,UINT
,WPARAM
,LPARAM
);
4504 WINUSERAPI LRESULT WINAPI
SendMessageW(HWND
,UINT
,WPARAM
,LPARAM
);
4505 #define SendMessage WINELIB_NAME_AW(SendMessage)
4506 WINUSERAPI BOOL WINAPI
SendMessageCallbackA(HWND
,UINT
,WPARAM
,LPARAM
,SENDASYNCPROC
,ULONG_PTR
);
4507 WINUSERAPI BOOL WINAPI
SendMessageCallbackW(HWND
,UINT
,WPARAM
,LPARAM
,SENDASYNCPROC
,ULONG_PTR
);
4508 #define SendMessageCallback WINELIB_NAME_AW(SendMessageCallback)
4509 WINUSERAPI LRESULT WINAPI
SendMessageTimeoutA(HWND
,UINT
,WPARAM
,LPARAM
,UINT
,UINT
,PDWORD_PTR
);
4510 WINUSERAPI LRESULT WINAPI
SendMessageTimeoutW(HWND
,UINT
,WPARAM
,LPARAM
,UINT
,UINT
,PDWORD_PTR
);
4511 #define SendMessageTimeout WINELIB_NAME_AW(SendMessageTimeout)
4512 WINUSERAPI BOOL WINAPI
SendNotifyMessageA(HWND
,UINT
,WPARAM
,LPARAM
);
4513 WINUSERAPI BOOL WINAPI
SendNotifyMessageW(HWND
,UINT
,WPARAM
,LPARAM
);
4514 #define SendNotifyMessage WINELIB_NAME_AW(SendNotifyMessage)
4515 WINUSERAPI HWND WINAPI
SetActiveWindow(HWND
);
4516 WINUSERAPI HWND WINAPI
SetCapture(HWND
);
4517 WINUSERAPI BOOL WINAPI
SetCaretBlinkTime(UINT
);
4518 WINUSERAPI BOOL WINAPI
SetCaretPos(INT
,INT
);
4519 WINUSERAPI DWORD WINAPI
SetClassLongA(HWND
,INT
,LONG
);
4520 WINUSERAPI DWORD WINAPI
SetClassLongW(HWND
,INT
,LONG
);
4521 #define SetClassLong WINELIB_NAME_AW(SetClassLong)
4523 WINUSERAPI ULONG_PTR WINAPI
SetClassLongPtrA(HWND
,INT
,LONG_PTR
);
4524 WINUSERAPI ULONG_PTR WINAPI
SetClassLongPtrW(HWND
,INT
,LONG_PTR
);
4526 #define SetClassLongPtrA SetClassLongA
4527 #define SetClassLongPtrW SetClassLongW
4529 #define SetClassLongPtr WINELIB_NAME_AW(SetClassLongPtr)
4530 WINUSERAPI WORD WINAPI
SetClassWord(HWND
,INT
,WORD
);
4531 WINUSERAPI HANDLE WINAPI
SetClipboardData(UINT
,HANDLE
);
4532 WINUSERAPI HWND WINAPI
SetClipboardViewer(HWND
);
4533 WINUSERAPI UINT_PTR WINAPI
SetCoalescableTimer(HWND
,UINT_PTR
,UINT
,TIMERPROC
,ULONG
);
4534 WINUSERAPI HCURSOR WINAPI
SetCursor(HCURSOR
);
4535 WINUSERAPI BOOL WINAPI
SetCursorPos(INT
,INT
);
4536 WINUSERAPI VOID WINAPI
SetDebugErrorLevel(DWORD
);
4537 WINUSERAPI BOOL WINAPI
SetDeskWallPaper(LPCSTR
);
4538 WINUSERAPI BOOL WINAPI
SetDlgItemInt(HWND
,INT
,UINT
,BOOL
);
4539 WINUSERAPI BOOL WINAPI
SetDlgItemTextA(HWND
,INT
,LPCSTR
);
4540 WINUSERAPI BOOL WINAPI
SetDlgItemTextW(HWND
,INT
,LPCWSTR
);
4541 #define SetDlgItemText WINELIB_NAME_AW(SetDlgItemText)
4542 WINUSERAPI BOOL WINAPI
SetDoubleClickTime(UINT
);
4543 WINUSERAPI HWND WINAPI
SetFocus(HWND
);
4544 WINUSERAPI BOOL WINAPI
SetForegroundWindow(HWND
);
4545 WINUSERAPI BOOL WINAPI
SetGestureConfig(HWND
,DWORD
,UINT
,PGESTURECONFIG
,UINT
);
4546 WINUSERAPI
void WINAPI
SetInternalWindowPos(HWND
,UINT
,LPRECT
,LPPOINT
);
4547 WINUSERAPI BOOL WINAPI
SetKeyboardState(LPBYTE
);
4548 WINUSERAPI VOID WINAPI
SetLastErrorEx(DWORD
,DWORD
);
4549 WINUSERAPI BOOL WINAPI
SetLayeredWindowAttributes(HWND
,COLORREF
,BYTE
,DWORD
);
4550 WINUSERAPI BOOL WINAPI
SetMenu(HWND
,HMENU
);
4551 WINUSERAPI BOOL WINAPI
SetMenuContextHelpId(HMENU
,DWORD
);
4552 WINUSERAPI BOOL WINAPI
SetMenuDefaultItem(HMENU
,UINT
,UINT
);
4553 WINUSERAPI BOOL WINAPI
SetMenuInfo(HMENU
,LPCMENUINFO
);
4554 WINUSERAPI BOOL WINAPI
SetMenuItemBitmaps(HMENU
,UINT
,UINT
,HBITMAP
,HBITMAP
);
4555 WINUSERAPI BOOL WINAPI
SetMenuItemInfoA(HMENU
,UINT
,BOOL
,const MENUITEMINFOA
*);
4556 WINUSERAPI BOOL WINAPI
SetMenuItemInfoW(HMENU
,UINT
,BOOL
,const MENUITEMINFOW
*);
4557 #define SetMenuItemInfo WINELIB_NAME_AW(SetMenuItemInfo)
4558 WINUSERAPI LPARAM WINAPI
SetMessageExtraInfo(LPARAM
);
4559 WINUSERAPI BOOL WINAPI
SetMessageQueue(INT
);
4560 WINUSERAPI HWND WINAPI
SetParent(HWND
,HWND
);
4561 WINUSERAPI BOOL WINAPI
SetPhysicalCursorPos(INT
,INT
);
4562 WINUSERAPI BOOL WINAPI
SetProcessDPIAware(void);
4563 WINUSERAPI BOOL WINAPI
SetProcessDefaultLayout(DWORD
);
4564 WINUSERAPI BOOL WINAPI
SetProcessDpiAwarenessContext(DPI_AWARENESS_CONTEXT
);
4565 WINUSERAPI BOOL WINAPI
SetProcessDpiAwarenessInternal(DPI_AWARENESS
);
4566 WINUSERAPI BOOL WINAPI
SetProcessWindowStation(HWINSTA
);
4567 WINUSERAPI BOOL WINAPI
SetPropA(HWND
,LPCSTR
,HANDLE
);
4568 WINUSERAPI BOOL WINAPI
SetPropW(HWND
,LPCWSTR
,HANDLE
);
4569 #define SetProp WINELIB_NAME_AW(SetProp)
4570 WINUSERAPI INT WINAPI
SetScrollInfo(HWND
,INT
,const SCROLLINFO
*,BOOL
);
4571 WINUSERAPI INT WINAPI
SetScrollPos(HWND
,INT
,INT
,BOOL
);
4572 WINUSERAPI BOOL WINAPI
SetScrollRange(HWND
,INT
,INT
,INT
,BOOL
);
4573 #define SetSysModalWindow(hwnd) ((HWND)0)
4574 WINUSERAPI BOOL WINAPI
SetSystemCursor(HCURSOR
,DWORD
);
4575 WINUSERAPI BOOL WINAPI
SetSystemMenu(HWND
,HMENU
);
4576 WINUSERAPI UINT_PTR WINAPI
SetSystemTimer(HWND
,UINT_PTR
,UINT
,void*);
4577 WINUSERAPI BOOL WINAPI
SetThreadDesktop(HDESK
);
4578 WINUSERAPI DPI_AWARENESS_CONTEXT WINAPI
SetThreadDpiAwarenessContext(DPI_AWARENESS_CONTEXT
);
4579 WINUSERAPI UINT_PTR WINAPI
SetTimer(HWND
,UINT_PTR
,UINT
,TIMERPROC
);
4580 WINUSERAPI BOOL WINAPI
SetUserObjectInformationA(HANDLE
,INT
,LPVOID
,DWORD
);
4581 WINUSERAPI BOOL WINAPI
SetUserObjectInformationW(HANDLE
,INT
,LPVOID
,DWORD
);
4582 #define SetUserObjectInformation WINELIB_NAME_AW(SetUserObjectInformation)
4583 WINUSERAPI BOOL WINAPI
SetUserObjectSecurity(HANDLE
,PSECURITY_INFORMATION
,PSECURITY_DESCRIPTOR
);
4584 WINUSERAPI BOOL WINAPI
SetWindowContextHelpId(HWND
,DWORD
);
4585 WINUSERAPI BOOL WINAPI
SetWindowDisplayAffinity(HWND
,DWORD
);
4586 WINUSERAPI BOOL WINAPI
SetWindowFeedbackSetting(HWND
,FEEDBACK_TYPE
,DWORD
,UINT32
,const void*);
4587 WINUSERAPI LONG WINAPI
SetWindowLongA(HWND
,INT
,LONG
);
4588 WINUSERAPI LONG WINAPI
SetWindowLongW(HWND
,INT
,LONG
);
4589 #define SetWindowLong WINELIB_NAME_AW(SetWindowLong)
4591 WINUSERAPI LONG_PTR WINAPI
SetWindowLongPtrA(HWND
,INT
,LONG_PTR
);
4592 WINUSERAPI LONG_PTR WINAPI
SetWindowLongPtrW(HWND
,INT
,LONG_PTR
);
4594 #define SetWindowLongPtrA SetWindowLongA
4595 #define SetWindowLongPtrW SetWindowLongW
4597 #define SetWindowLongPtr WINELIB_NAME_AW(SetWindowLongPtr)
4598 WINUSERAPI BOOL WINAPI
SetWindowPlacement(HWND
,const WINDOWPLACEMENT
*);
4599 WINUSERAPI HHOOK WINAPI
SetWindowsHookA(INT
,HOOKPROC
);
4600 WINUSERAPI HHOOK WINAPI
SetWindowsHookW(INT
,HOOKPROC
);
4601 #define SetWindowsHook WINELIB_NAME_AW(SetWindowsHook)
4602 WINUSERAPI HHOOK WINAPI
SetWindowsHookExA(INT
,HOOKPROC
,HINSTANCE
,DWORD
);
4603 WINUSERAPI HHOOK WINAPI
SetWindowsHookExW(INT
,HOOKPROC
,HINSTANCE
,DWORD
);
4604 #define SetWindowsHookEx WINELIB_NAME_AW(SetWindowsHookEx)
4605 WINUSERAPI BOOL WINAPI
SetWindowPos(HWND
,HWND
,INT
,INT
,INT
,INT
,UINT
);
4606 WINUSERAPI INT WINAPI
SetWindowRgn(HWND
,HRGN
,BOOL
);
4607 WINUSERAPI BOOL WINAPI
SetWindowTextA(HWND
,LPCSTR
);
4608 WINUSERAPI BOOL WINAPI
SetWindowTextW(HWND
,LPCWSTR
);
4609 #define SetWindowText WINELIB_NAME_AW(SetWindowText)
4610 WINUSERAPI WORD WINAPI
SetWindowWord(HWND
,INT
,WORD
);
4611 WINUSERAPI HWINEVENTHOOK WINAPI
SetWinEventHook(DWORD
,DWORD
,HMODULE
,WINEVENTPROC
,DWORD
,DWORD
,DWORD
);
4612 WINUSERAPI BOOL WINAPI
ShowCaret(HWND
);
4613 WINUSERAPI INT WINAPI
ShowCursor(BOOL
);
4614 WINUSERAPI BOOL WINAPI
ShowScrollBar(HWND
,INT
,BOOL
);
4615 WINUSERAPI BOOL WINAPI
ShowOwnedPopups(HWND
,BOOL
);
4616 WINUSERAPI BOOL WINAPI
ShowWindow(HWND
,INT
);
4617 WINUSERAPI BOOL WINAPI
ShowWindowAsync(HWND
,INT
);
4618 WINUSERAPI BOOL WINAPI
ShutdownBlockReasonCreate(HWND
,LPCWSTR
);
4619 WINUSERAPI BOOL WINAPI
ShutdownBlockReasonDestroy(HWND
);
4620 WINUSERAPI BOOL WINAPI
SkipPointerFrameMessages(UINT32
);
4621 WINUSERAPI BOOL WINAPI
SubtractRect(LPRECT
,const RECT
*,const RECT
*);
4622 WINUSERAPI BOOL WINAPI
SwapMouseButton(BOOL
);
4623 WINUSERAPI BOOL WINAPI
SwitchDesktop(HDESK
);
4624 WINUSERAPI VOID WINAPI
SwitchToThisWindow(HWND
,BOOL
);
4625 WINUSERAPI BOOL WINAPI
SystemParametersInfoA(UINT
,UINT
,LPVOID
,UINT
);
4626 WINUSERAPI BOOL WINAPI
SystemParametersInfoW(UINT
,UINT
,LPVOID
,UINT
);
4627 #define SystemParametersInfo WINELIB_NAME_AW(SystemParametersInfo)
4628 WINUSERAPI BOOL WINAPI
SystemParametersInfoForDpi(UINT
,UINT
,void*,UINT
,UINT
);
4629 WINUSERAPI LONG WINAPI
TabbedTextOutA(HDC
,INT
,INT
,LPCSTR
,INT
,INT
,const INT
*,INT
);
4630 WINUSERAPI LONG WINAPI
TabbedTextOutW(HDC
,INT
,INT
,LPCWSTR
,INT
,INT
,const INT
*,INT
);
4631 #define TabbedTextOut WINELIB_NAME_AW(TabbedTextOut)
4632 WINUSERAPI WORD WINAPI
TileWindows (HWND
,UINT
,const RECT
*,UINT
,const HWND
*);
4633 WINUSERAPI INT WINAPI
ToAscii(UINT
,UINT
,const BYTE
*,LPWORD
,UINT
);
4634 WINUSERAPI INT WINAPI
ToAsciiEx(UINT
,UINT
,const BYTE
*,LPWORD
,UINT
,HKL
);
4635 WINUSERAPI INT WINAPI
ToUnicode(UINT
,UINT
,const BYTE
*,LPWSTR
,int,UINT
);
4636 WINUSERAPI INT WINAPI
ToUnicodeEx(UINT
,UINT
,const BYTE
*,LPWSTR
,int,UINT
,HKL
);
4637 WINUSERAPI BOOL WINAPI
TrackMouseEvent(LPTRACKMOUSEEVENT
);
4638 WINUSERAPI BOOL WINAPI
TrackPopupMenu(HMENU
,UINT
,INT
,INT
,INT
,HWND
,const RECT
*);
4639 WINUSERAPI BOOL WINAPI
TrackPopupMenuEx(HMENU
,UINT
,INT
,INT
,HWND
,LPTPMPARAMS
);
4640 WINUSERAPI INT WINAPI
TranslateAcceleratorA(HWND
,HACCEL
,LPMSG
);
4641 WINUSERAPI INT WINAPI
TranslateAcceleratorW(HWND
,HACCEL
,LPMSG
);
4642 #define TranslateAccelerator WINELIB_NAME_AW(TranslateAccelerator)
4643 WINUSERAPI BOOL WINAPI
TranslateMDISysAccel(HWND
,LPMSG
);
4644 WINUSERAPI BOOL WINAPI
TranslateMessage(const MSG
*);
4645 WINUSERAPI BOOL WINAPI
UnhookWinEvent(HWINEVENTHOOK
);
4646 WINUSERAPI BOOL WINAPI
UnhookWindowsHook(INT
,HOOKPROC
);
4647 WINUSERAPI BOOL WINAPI
UnhookWindowsHookEx(HHOOK
);
4648 WINUSERAPI BOOL WINAPI
UnloadKeyboardLayout(HKL
);
4649 WINUSERAPI BOOL WINAPI
UnionRect(LPRECT
,const RECT
*,const RECT
*);
4650 WINUSERAPI BOOL WINAPI
UnregisterClassA(LPCSTR
,HINSTANCE
);
4651 WINUSERAPI BOOL WINAPI
UnregisterClassW(LPCWSTR
,HINSTANCE
);
4652 #define UnregisterClass WINELIB_NAME_AW(UnregisterClass)
4653 WINUSERAPI BOOL WINAPI
UnregisterDeviceNotification(HDEVNOTIFY
);
4654 WINUSERAPI BOOL WINAPI
UnregisterHotKey(HWND
,INT
);
4655 WINUSERAPI BOOL WINAPI
UnregisterPointerInputTarget(HWND
,POINTER_INPUT_TYPE
);
4656 WINUSERAPI BOOL WINAPI
UnregisterPointerInputTargetEx(HWND
,POINTER_INPUT_TYPE
);
4657 WINUSERAPI BOOL WINAPI
UnregisterPowerSettingNotification(HPOWERNOTIFY
);
4658 WINUSERAPI BOOL WINAPI
UnregisterSuspendResumeNotification(HPOWERNOTIFY
);
4659 WINUSERAPI BOOL WINAPI
UnregisterTouchWindow(HWND
);
4660 WINUSERAPI BOOL WINAPI
UpdateWindow(HWND
);
4661 WINUSERAPI BOOL WINAPI
UserHandleGrantAccess(HANDLE
,HANDLE
,BOOL
);
4662 WINUSERAPI UINT WINAPI
UserRealizePalette(HDC
);
4663 WINUSERAPI BOOL WINAPI
ValidateRect(HWND
,const RECT
*);
4664 WINUSERAPI BOOL WINAPI
ValidateRgn(HWND
,HRGN
);
4665 WINUSERAPI SHORT WINAPI
VkKeyScanA(CHAR
);
4666 WINUSERAPI SHORT WINAPI
VkKeyScanW(WCHAR
);
4667 #define VkKeyScan WINELIB_NAME_AW(VkKeyScan)
4668 WINUSERAPI WORD WINAPI
VkKeyScanExA(CHAR
, HKL
);
4669 WINUSERAPI WORD WINAPI
VkKeyScanExW(WCHAR
, HKL
);
4670 #define VkKeyScanEx WINELIB_NAME_AW(VkKeyScanEx)
4671 WINUSERAPI DWORD WINAPI
WaitForInputIdle(HANDLE
,DWORD
);
4672 WINUSERAPI BOOL WINAPI
WaitMessage(void);
4673 WINUSERAPI HWND WINAPI
WindowFromDC(HDC
);
4674 WINUSERAPI HWND WINAPI
WindowFromPoint(POINT
);
4675 WINUSERAPI BOOL WINAPI
WinHelpA(HWND
,LPCSTR
,UINT
,ULONG_PTR
);
4676 WINUSERAPI BOOL WINAPI
WinHelpW(HWND
,LPCWSTR
,UINT
,ULONG_PTR
);
4677 #define WinHelp WINELIB_NAME_AW(WinHelp)
4678 WINUSERAPI VOID WINAPI
keybd_event(BYTE
,BYTE
,DWORD
,ULONG_PTR
);
4679 WINUSERAPI VOID WINAPI
mouse_event(DWORD
,DWORD
,DWORD
,DWORD
,ULONG_PTR
);
4680 WINUSERAPI INT WINAPIV
wsprintfA(LPSTR
,LPCSTR
,...);
4681 WINUSERAPI INT WINAPIV
wsprintfW(LPWSTR
,LPCWSTR
,...);
4682 #define wsprintf WINELIB_NAME_AW(wsprintf)
4683 WINUSERAPI INT WINAPI
wvsprintfA(LPSTR
,LPCSTR
,__ms_va_list
);
4684 WINUSERAPI INT WINAPI
wvsprintfW(LPWSTR
,LPCWSTR
,__ms_va_list
);
4685 #define wvsprintf WINELIB_NAME_AW(wvsprintf)
4687 #if !defined(__WINESRC__) || defined(WINE_NO_INLINE_RECT)
4689 WINUSERAPI BOOL WINAPI
EqualRect(const RECT
*,const RECT
*);
4690 WINUSERAPI BOOL WINAPI
InflateRect(LPRECT
,INT
,INT
);
4691 WINUSERAPI BOOL WINAPI
IsRectEmpty(const RECT
*);
4692 WINUSERAPI BOOL WINAPI
OffsetRect(LPRECT
,INT
,INT
);
4693 WINUSERAPI BOOL WINAPI
PtInRect(const RECT
*,POINT
);
4694 WINUSERAPI BOOL WINAPI
SetRect(LPRECT
,INT
,INT
,INT
,INT
);
4695 WINUSERAPI BOOL WINAPI
SetRectEmpty(LPRECT
);
4699 /* Inline versions of common RECT helpers */
4701 static inline BOOL WINAPI
EqualRect(const RECT
*rect1
, const RECT
*rect2
)
4703 if (!rect1
|| !rect2
) return FALSE
;
4704 return ((rect1
->left
== rect2
->left
) && (rect1
->right
== rect2
->right
) &&
4705 (rect1
->top
== rect2
->top
) && (rect1
->bottom
== rect2
->bottom
));
4708 static inline BOOL WINAPI
InflateRect(LPRECT rect
, INT x
, INT y
)
4710 if (!rect
) return FALSE
;
4718 static inline BOOL WINAPI
IsRectEmpty(const RECT
*rect
)
4720 if (!rect
) return TRUE
;
4721 return ((rect
->left
>= rect
->right
) || (rect
->top
>= rect
->bottom
));
4724 static inline BOOL WINAPI
OffsetRect(LPRECT rect
, INT x
, INT y
)
4726 if (!rect
) return FALSE
;
4734 static inline BOOL WINAPI
PtInRect(const RECT
*rect
, POINT pt
)
4736 if (!rect
) return FALSE
;
4737 return ((pt
.x
>= rect
->left
) && (pt
.x
< rect
->right
) &&
4738 (pt
.y
>= rect
->top
) && (pt
.y
< rect
->bottom
));
4741 static inline BOOL WINAPI
SetRect(LPRECT rect
, INT left
, INT top
, INT right
, INT bottom
)
4743 if (!rect
) return FALSE
;
4745 rect
->right
= right
;
4747 rect
->bottom
= bottom
;
4751 static inline BOOL WINAPI
SetRectEmpty(LPRECT rect
)
4753 if (!rect
) return FALSE
;
4754 rect
->left
= rect
->right
= rect
->top
= rect
->bottom
= 0;
4758 #endif /* !defined(__WINESRC__) || defined(WINE_NO_INLINE_RECT) */
4760 /* Undocumented functions */
4762 /* NOTE: This is SYSTEM.3, not USER.182, which is also named KillSystemTimer */
4763 WORD WINAPI
SYSTEM_KillSystemTimer( WORD
);
4766 WINUSERAPI BOOL CDECL
__wine_send_input( HWND hwnd
, const INPUT
*input
, const RAWINPUT
*rawinput
);
4768 /* Uxtheme hook functions and struct */
4770 /* Scroll bar hit testing */
4773 SCROLL_NOWHERE
, /* Outside the scroll bar */
4774 SCROLL_TOP_ARROW
, /* Top or left arrow */
4775 SCROLL_TOP_RECT
, /* Rectangle between the top arrow and the thumb */
4776 SCROLL_THUMB
, /* Thumb rectangle */
4777 SCROLL_BOTTOM_RECT
, /* Rectangle between the thumb and the bottom arrow */
4778 SCROLL_BOTTOM_ARROW
/* Bottom or right arrow */
4781 /* Scroll bar tracking information */
4782 struct SCROLL_TRACKING_INFO
4784 HWND win
; /* Tracking window */
4785 INT bar
; /* SB_HORZ/SB_VERT/SB_CTL */
4786 INT thumb_pos
; /* Thumb position */
4787 INT thumb_val
; /* Current thumb value from thumb position */
4788 BOOL vertical
; /* Is scroll bar vertical */
4789 enum SCROLL_HITTEST hit_test
; /* Hit Test code of the last button-down event */
4792 enum NONCLIENT_BUTTON_TYPE
4794 MENU_CLOSE_BUTTON
, /* Menu close button */
4795 MENU_MIN_BUTTON
, /* Menu min button */
4796 MENU_MAX_BUTTON
, /* Menu max button */
4797 MENU_RESTORE_BUTTON
, /* Menu restore button */
4798 MENU_HELP_BUTTON
, /* Menu help button */
4801 struct user_api_hook
4803 LRESULT (WINAPI
*pDefDlgProc
)(HWND
, UINT
, WPARAM
, LPARAM
, BOOL
);
4804 void (WINAPI
*pNonClientButtonDraw
)(HWND
, HDC
, enum NONCLIENT_BUTTON_TYPE
, RECT
, BOOL
, BOOL
);
4805 void (WINAPI
*pScrollBarDraw
)(HWND
, HDC
, INT
, enum SCROLL_HITTEST
,
4806 const struct SCROLL_TRACKING_INFO
*, BOOL
, BOOL
, RECT
*, UINT
,
4807 INT
, INT
, INT
, BOOL
);
4808 LRESULT (WINAPI
*pScrollBarWndProc
)(HWND
, UINT
, WPARAM
, LPARAM
, BOOL
);
4811 WINUSERAPI BOOL WINAPI
RegisterUserApiHook(const struct user_api_hook
*new_hook
, struct user_api_hook
*old_hook
);
4812 WINUSERAPI
void WINAPI
UnregisterUserApiHook(void);
4819 #endif /* _WINUSER_ */