oleaut32: Implement OleLoadPictureFile.
[wine.git] / include / winuser.h
blob7c387e69f549f0d479611924531b592c27d49be0
1 /*
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
19 #ifndef _WINUSER_
20 #define _WINUSER_
22 #ifndef WINUSERAPI
23 #if !defined(_USER32_) && !defined(WINE_UNIX_LIB)
24 #define WINUSERAPI DECLSPEC_IMPORT
25 #else
26 #define WINUSERAPI DECLSPEC_EXPORT
27 #endif
28 #endif
30 #ifndef RC_INVOKED
31 #include <stdarg.h>
32 #endif
33 #include <winuser.rh>
36 #ifdef __cplusplus
37 extern "C" {
38 #endif
40 /* Define a bunch of callback types */
42 #if defined(STRICT)
43 typedef INT_PTR (CALLBACK *DLGPROC)(HWND,UINT,WPARAM,LPARAM);
44 typedef BOOL (CALLBACK *DRAWSTATEPROC)(HDC,LPARAM,WPARAM,int,int);
45 typedef INT (CALLBACK *EDITWORDBREAKPROCA)(LPSTR,INT,INT,INT);
46 typedef INT (CALLBACK *EDITWORDBREAKPROCW)(LPWSTR,INT,INT,INT);
47 typedef BOOL (CALLBACK *GRAYSTRINGPROC)(HDC,LPARAM,INT);
48 typedef LRESULT (CALLBACK *HOOKPROC)(INT,WPARAM,LPARAM);
49 typedef BOOL (CALLBACK *NAMEENUMPROCA)(LPSTR,LPARAM);
50 typedef BOOL (CALLBACK *NAMEENUMPROCW)(LPWSTR,LPARAM);
51 typedef BOOL (CALLBACK *PROPENUMPROCA)(HWND,LPCSTR,HANDLE);
52 typedef BOOL (CALLBACK *PROPENUMPROCW)(HWND,LPCWSTR,HANDLE);
53 typedef BOOL (CALLBACK *PROPENUMPROCEXA)(HWND,LPSTR,HANDLE,ULONG_PTR);
54 typedef BOOL (CALLBACK *PROPENUMPROCEXW)(HWND,LPWSTR,HANDLE,ULONG_PTR);
55 typedef VOID (CALLBACK *SENDASYNCPROC)(HWND,UINT,ULONG_PTR,LRESULT);
56 typedef VOID (CALLBACK *TIMERPROC)(HWND,UINT,UINT_PTR,DWORD);
57 typedef VOID (CALLBACK *WINEVENTPROC)(HWINEVENTHOOK,DWORD,HWND,LONG,LONG,
58 DWORD,DWORD);
59 typedef BOOL (CALLBACK *WNDENUMPROC)(HWND,LPARAM);
61 #else
62 typedef FARPROC DLGPROC;
63 typedef FARPROC DRAWSTATEPROC;
64 typedef FARPROC EDITWORDBREAKPROCA;
65 typedef FARPROC EDITWORDBREAKPROCW;
66 typedef FARPROC GRAYSTRINGPROC;
67 typedef FARPROC HOOKPROC;
68 typedef FARPROC NAMEENUMPROCA;
69 typedef FARPROC NAMEENUMPROCW;
70 typedef FARPROC PROPENUMPROCA;
71 typedef FARPROC PROPENUMPROCW;
72 typedef FARPROC PROPENUMPROCEXA;
73 typedef FARPROC PROPENUMPROCEXW;
74 typedef FARPROC SENDASYNCPROC;
75 typedef FARPROC TIMERPROC;
76 typedef FARPROC WINEVENTPROC;
77 typedef FARPROC WNDENUMPROC;
78 #endif /* STRICT */
80 typedef NAMEENUMPROCA WINSTAENUMPROCA;
81 typedef NAMEENUMPROCA DESKTOPENUMPROCA;
82 typedef NAMEENUMPROCW WINSTAENUMPROCW;
83 typedef NAMEENUMPROCW DESKTOPENUMPROCW;
85 typedef LRESULT (CALLBACK *WNDPROC)(HWND,UINT,WPARAM,LPARAM);
87 DECL_WINELIB_TYPE_AW(DESKTOPENUMPROC)
88 DECL_WINELIB_TYPE_AW(EDITWORDBREAKPROC)
89 DECL_WINELIB_TYPE_AW(NAMEENUMPROC)
90 DECL_WINELIB_TYPE_AW(PROPENUMPROC)
91 DECL_WINELIB_TYPE_AW(PROPENUMPROCEX)
92 DECL_WINELIB_TYPE_AW(WINSTAENUMPROC)
95 typedef HANDLE HDWP;
96 typedef void* HPOWERNOTIFY;
98 #define UOI_FLAGS 1
99 #define UOI_NAME 2
100 #define UOI_TYPE 3
101 #define UOI_USER_SID 4
103 #define WSF_VISIBLE 1
104 #define DF_ALLOWOTHERACCOUNTHOOK 1
106 #define CWF_CREATE_ONLY 0x01
108 typedef struct tagUSEROBJECTFLAGS {
109 BOOL fInherit;
110 BOOL fReserved;
111 DWORD dwFlags;
112 } USEROBJECTFLAGS, *PUSEROBJECTFLAGS;
114 typedef struct tagBSMINFO {
115 UINT cbSize;
116 HDESK hdesk;
117 HWND hwnd;
118 LUID luid;
119 } BSMINFO, *PBSMINFO;
121 /* Window stations */
122 #define WINSTA_ENUMDESKTOPS 0x0001
123 #define WINSTA_READATTRIBUTES 0x0002
124 #define WINSTA_ACCESSCLIPBOARD 0x0004
125 #define WINSTA_CREATEDESKTOP 0x0008
126 #define WINSTA_WRITEATTRIBUTES 0x0010
127 #define WINSTA_ACCESSGLOBALATOMS 0x0020
128 #define WINSTA_EXITWINDOWS 0x0040
129 #define WINSTA_ENUMERATE 0x0100
130 #define WINSTA_READSCREEN 0x0200
131 #define WINSTA_ALL_ACCESS 0x037f
133 /* Desktops */
134 #define DESKTOP_READOBJECTS 0x0001
135 #define DESKTOP_CREATEWINDOW 0x0002
136 #define DESKTOP_CREATEMENU 0x0004
137 #define DESKTOP_HOOKCONTROL 0x0008
138 #define DESKTOP_JOURNALRECORD 0x0010
139 #define DESKTOP_JOURNALPLAYBACK 0x0020
140 #define DESKTOP_ENUMERATE 0x0040
141 #define DESKTOP_WRITEOBJECTS 0x0080
142 #define DESKTOP_SWITCHDESKTOP 0x0100
145 /* flags for FILTERKEYS dwFlags field */
146 #define FKF_AVAILABLE 0x00000002
147 #define FKF_CLICKON 0x00000040
148 #define FKF_FILTERKEYSON 0x00000001
149 #define FKF_HOTKEYACTIVE 0x00000004
150 #define FKF_HOTKEYSOUND 0x00000010
151 #define FKF_CONFIRMHOTKEY 0x00000008
152 #define FKF_INDICATOR 0x00000020
154 typedef struct tagFILTERKEYS
156 UINT cbSize;
157 DWORD dwFlags;
158 DWORD iWaitMSec;
159 DWORD iDelayMSec;
160 DWORD iRepeatMSec;
161 DWORD iBounceMSec;
162 } FILTERKEYS, *LPFILTERKEYS;
164 /* flags for TOGGLEKEYS dwFlags field */
165 #define TKF_AVAILABLE 0x00000002
166 #define TKF_CONFIRMHOTKEY 0x00000008
167 #define TKF_HOTKEYACTIVE 0x00000004
168 #define TKF_HOTKEYSOUND 0x00000010
169 #define TKF_TOGGLEKEYSON 0x00000001
171 typedef struct tagTOGGLEKEYS
173 DWORD cbSize;
174 DWORD dwFlags;
175 } TOGGLEKEYS, *LPTOGGLEKEYS;
177 /* flags for MOUSEKEYS dwFlags field */
178 #define MKF_AVAILABLE 0x00000002
179 #define MKF_CONFIRMHOTKEY 0x00000008
180 #define MKF_HOTKEYACTIVE 0x00000004
181 #define MKF_HOTKEYSOUND 0x00000010
182 #define MKF_INDICATOR 0x00000020
183 #define MKF_MOUSEKEYSON 0x00000001
184 #define MKF_MODIFIERS 0x00000040
185 #define MKF_REPLACENUMBERS 0x00000080
187 typedef struct tagMOUSEKEYS
189 UINT cbSize;
190 DWORD dwFlags;
191 DWORD iMaxSpeed;
192 DWORD iTimeToMaxSpeed;
193 DWORD iCtrlSpeed;
194 DWORD dwReserved1;
195 DWORD dwReserved2;
196 } MOUSEKEYS, *LPMOUSEKEYS;
198 /* struct and defines for GetMouseMovePointsEx */
199 #define GMMP_USE_DISPLAY_POINTS 1
200 #define GMMP_USE_HIGH_RESOLUTION_POINTS 2
202 typedef struct tagMOUSEMOVEPOINT {
203 int x;
204 int y;
205 DWORD time;
206 ULONG_PTR dwExtraInfo;
207 } MOUSEMOVEPOINT,*PMOUSEMOVEPOINT,*LPMOUSEMOVEPOINT;
209 /* flags for STICKYKEYS dwFlags field */
210 #define SKF_AUDIBLEFEEDBACK 0x00000040
211 #define SKF_AVAILABLE 0x00000002
212 #define SKF_CONFIRMHOTKEY 0x00000008
213 #define SKF_HOTKEYACTIVE 0x00000004
214 #define SKF_HOTKEYSOUND 0x00000010
215 #define SKF_INDICATOR 0x00000020
216 #define SKF_STICKYKEYSON 0x00000001
217 #define SKF_TRISTATE 0x00000080
218 #define SKF_TWOKEYSOFF 0x00000100
220 typedef struct tagSTICKYKEYS
222 DWORD cbSize;
223 DWORD dwFlags;
224 } STICKYKEYS, *LPSTICKYKEYS;
226 /* flags for ACCESSTIMEOUT dwFlags field */
227 #define ATF_ONOFFFEEDBACK 0x00000002
228 #define ATF_AVAILABLE 0x00000004
229 #define ATF_TIMEOUTON 0x00000001
231 typedef struct tagACCESSTIMEOUT
233 UINT cbSize;
234 DWORD dwFlags;
235 DWORD iTimeOutMSec;
236 } ACCESSTIMEOUT, *LPACCESSTIMEOUT;
238 /* flags for SERIALKEYS dwFlags field */
239 #define SERKF_ACTIVE 0x00000008
240 #define SERKF_AVAILABLE 0x00000002
241 #define SERKF_INDICATOR 0x00000004
242 #define SERKF_SERIALKEYSON 0x00000001
244 typedef struct tagSERIALKEYSA
246 UINT cbSize;
247 DWORD dwFlags;
248 LPSTR lpszActivePort;
249 LPSTR lpszPort;
250 UINT iBaudRate;
251 UINT iPortState;
252 UINT iActive;
253 } SERIALKEYSA, *LPSERIALKEYSA;
255 typedef struct tagSERIALKEYSW {
256 UINT cbSize;
257 DWORD dwFlags;
258 LPWSTR lpszActivePort;
259 LPWSTR lpszPort;
260 UINT iBaudRate;
261 UINT iPortState;
262 UINT iActive;
263 } SERIALKEYSW,*LPSERIALKEYSW;
265 DECL_WINELIB_TYPE_AW(SERIALKEYS)
266 DECL_WINELIB_TYPE_AW(LPSERIALKEYS)
268 /* flags for SOUNDSENTRY dwFlags field */
269 #define SSF_AVAILABLE 0x00000002
270 #define SSF_SOUNDSENTRYON 0x00000001
272 #define SSTF_BORDER 0x00000002
273 #define SSTF_CHARS 0x00000001
274 #define SSTF_DISPLAY 0x00000003
275 #define SSTF_NONE 0x00000000
277 #define SSGF_DISPLAY 0x00000003
278 #define SSGF_NONE 0x00000000
280 #define SSWF_DISPLAY 0x00000003
281 #define SSWF_NONE 0x00000000
282 #define SSWF_TITLE 0x00000001
283 #define SSWF_WINDOW 0x00000002
285 typedef struct tagSOUNDSENTRYA
287 UINT cbSize;
288 DWORD dwFlags;
289 DWORD iFSTextEffect;
290 DWORD iFSTextEffectMSec;
291 DWORD iFSTextEffectColorBits;
292 DWORD iFSGrafEffect;
293 DWORD iFSGrafEffectMSec;
294 DWORD iFSGrafEffectColor;
295 DWORD iWindowsEffect;
296 DWORD iWindowsEffectMSec;
297 LPSTR lpszWindowsEffectDLL;
298 DWORD iWindowsEffectOrdinal;
299 } SOUNDSENTRYA, *LPSOUNDSENTRYA;
301 typedef struct tagSOUNDSENTRYW
303 UINT cbSize;
304 DWORD dwFlags;
305 DWORD iFSTextEffect;
306 DWORD iFSTextEffectMSec;
307 DWORD iFSTextEffectColorBits;
308 DWORD iFSGrafEffect;
309 DWORD iFSGrafEffectMSec;
310 DWORD iFSGrafEffectColor;
311 DWORD iWindowsEffect;
312 DWORD iWindowsEffectMSec;
313 LPWSTR lpszWindowsEffectDLL;
314 DWORD iWindowsEffectOrdinal;
315 } SOUNDSENTRYW, *LPSOUNDSENTRYW;
317 DECL_WINELIB_TYPE_AW(SOUNDSENTRY)
318 DECL_WINELIB_TYPE_AW(LPSOUNDSENTRY)
320 /* flags for HIGHCONTRAST dwFlags field */
321 #define HCF_HIGHCONTRASTON 0x00000001
322 #define HCF_AVAILABLE 0x00000002
323 #define HCF_HOTKEYACTIVE 0x00000004
324 #define HCF_CONFIRMHOTKEY 0x00000008
325 #define HCF_HOTKEYSOUND 0x00000010
326 #define HCF_INDICATOR 0x00000020
327 #define HCF_HOTKEYAVAILABLE 0x00000040
329 typedef struct tagHIGHCONTRASTA
331 UINT cbSize;
332 DWORD dwFlags;
333 LPSTR lpszDefaultScheme;
334 } HIGHCONTRASTA, *LPHIGHCONTRASTA;
336 typedef struct tagHIGHCONTRASTW
338 UINT cbSize;
339 DWORD dwFlags;
340 LPWSTR lpszDefaultScheme;
341 } HIGHCONTRASTW, *LPHIGHCONTRASTW;
343 DECL_WINELIB_TYPE_AW(HIGHCONTRAST)
344 DECL_WINELIB_TYPE_AW(LPHIGHCONTRAST)
346 typedef struct tagEVENTMSG
348 UINT message;
349 UINT paramL;
350 UINT paramH;
351 DWORD time;
352 HWND hwnd;
353 } EVENTMSG, *PEVENTMSG, *LPEVENTMSG;
355 /* WH_KEYBOARD_LL structure */
356 typedef struct tagKBDLLHOOKSTRUCT
358 DWORD vkCode;
359 DWORD scanCode;
360 DWORD flags;
361 DWORD time;
362 ULONG_PTR dwExtraInfo;
363 } KBDLLHOOKSTRUCT, *LPKBDLLHOOKSTRUCT, *PKBDLLHOOKSTRUCT;
365 #define LLKHF_EXTENDED (KF_EXTENDED >> 8)
366 #define LLKHF_INJECTED 0x00000010
367 #define LLKHF_ALTDOWN (KF_ALTDOWN >> 8)
368 #define LLKHF_UP (KF_UP >> 8)
370 /* WH_MOUSE_LL structure */
371 typedef struct tagMSLLHOOKSTRUCT
373 POINT pt;
374 DWORD mouseData;
375 DWORD flags;
376 DWORD time;
377 ULONG_PTR dwExtraInfo;
378 } MSLLHOOKSTRUCT, *LPMSLLHOOKSTRUCT, *PMSLLHOOKSTRUCT;
380 #define LLMHF_INJECTED 0x00000001
382 /* Mouse hook structure */
384 typedef struct
386 POINT pt;
387 HWND hwnd;
388 UINT wHitTestCode;
389 ULONG_PTR dwExtraInfo;
390 } MOUSEHOOKSTRUCT, *PMOUSEHOOKSTRUCT, *LPMOUSEHOOKSTRUCT;
392 typedef struct
394 struct { /* MOUSEHOOKSTRUCT */
395 POINT pt;
396 HWND hwnd;
397 UINT wHitTestCode;
398 ULONG_PTR dwExtraInfo;
399 } DUMMYSTRUCTNAME;
400 DWORD mouseData;
401 } MOUSEHOOKSTRUCTEX, *PMOUSEHOOKSTRUCTEX, *LPMOUSEHOOKSTRUCTEX;
404 /* Hardware hook structure */
406 typedef struct
408 HWND hwnd;
409 UINT message;
410 WPARAM wParam;
411 LPARAM lParam;
412 } HARDWAREHOOKSTRUCT, *PHARDWAREHOOKSTRUCT, *LPHARDWAREHOOKSTRUCT;
415 /* Debug hook structure */
417 typedef struct tagDEBUGHOOKINFO
419 DWORD idThread;
420 DWORD idThreadInstaller;
421 LPARAM lParam;
422 WPARAM wParam;
423 INT code;
424 } DEBUGHOOKINFO, *PDEBUGHOOKINFO, *LPDEBUGHOOKINFO;
426 #define HKL_PREV 0
427 #define HKL_NEXT 1
429 #define KLF_ACTIVATE 0x00000001
430 #define KLF_SUBSTITUTE_OK 0x00000002
431 #define KLF_UNLOADPREVIOUS 0x00000004
432 #define KLF_REORDER 0x00000008
433 #define KLF_REPLACELANG 0x00000010
434 #define KLF_NOTELLSHELL 0x00000080
435 #define KLF_SETFORPROCESS 0x00000100
436 #define KLF_SHIFTLOCK 0x00010000
437 #define KLF_RESET 0x40000000
439 #define KL_NAMELENGTH 9
441 typedef struct tagMOUSEINPUT
443 LONG dx;
444 LONG dy;
445 DWORD mouseData;
446 DWORD dwFlags;
447 DWORD time;
448 ULONG_PTR dwExtraInfo;
449 } MOUSEINPUT, *PMOUSEINPUT, *LPMOUSEINPUT;
451 typedef struct tagKEYBDINPUT
453 WORD wVk;
454 WORD wScan;
455 DWORD dwFlags;
456 DWORD time;
457 ULONG_PTR dwExtraInfo;
458 } KEYBDINPUT, *PKEYBDINPUT, *LPKEYBDINPUT;
460 typedef struct tagHARDWAREINPUT
462 DWORD uMsg;
463 WORD wParamL;
464 WORD wParamH;
465 } HARDWAREINPUT, *PHARDWAREINPUT, *LPHARDWAREINPUT;
467 #define INPUT_MOUSE 0
468 #define INPUT_KEYBOARD 1
469 #define INPUT_HARDWARE 2
471 typedef struct tagINPUT
473 DWORD type;
474 union
476 MOUSEINPUT mi;
477 KEYBDINPUT ki;
478 HARDWAREINPUT hi;
479 } DUMMYUNIONNAME;
480 } INPUT, *PINPUT, *LPINPUT;
482 DECLARE_HANDLE(HRAWINPUT);
484 typedef struct tagRAWINPUTDEVICELIST
486 HANDLE hDevice;
487 DWORD dwType;
488 } RAWINPUTDEVICELIST, *PRAWINPUTDEVICELIST;
490 typedef struct tagRAWHID {
491 DWORD dwSizeHid;
492 DWORD dwCount;
493 BYTE bRawData[1];
494 } RAWHID, *LPRAWHID;
496 typedef struct tagRAWKEYBOARD {
497 USHORT MakeCode;
498 USHORT Flags;
499 USHORT Reserved;
500 USHORT VKey;
501 UINT Message;
502 ULONG ExtraInformation;
503 } RAWKEYBOARD, *PRAWKEYBOARD, *LPRAWKEYBOARD;
505 typedef struct tagRAWMOUSE {
506 USHORT usFlags;
507 union {
508 ULONG ulButtons;
509 struct {
510 USHORT usButtonFlags;
511 USHORT usButtonData;
512 } DUMMYSTRUCTNAME;
513 } DUMMYUNIONNAME;
514 ULONG ulRawButtons;
515 LONG lLastX;
516 LONG lLastY;
517 ULONG ulExtraInformation;
518 } RAWMOUSE, *PRAWMOUSE, *LPRAWMOUSE;
520 typedef struct tagRAWINPUTHEADER {
521 DWORD dwType;
522 DWORD dwSize;
523 HANDLE hDevice;
524 WPARAM wParam;
525 } RAWINPUTHEADER, *PRAWINPUTHEADER;
527 typedef struct tagRAWINPUT {
528 RAWINPUTHEADER header;
529 union {
530 RAWMOUSE mouse;
531 RAWKEYBOARD keyboard;
532 RAWHID hid;
533 } data;
534 } RAWINPUT, *PRAWINPUT, *LPRAWINPUT;
536 typedef struct tagRAWINPUTDEVICE {
537 USHORT usUsagePage;
538 USHORT usUsage;
539 DWORD dwFlags;
540 HWND hwndTarget;
541 } RAWINPUTDEVICE, *PRAWINPUTDEVICE, *LPRAWINPUTDEVICE;
543 typedef struct tagRID_DEVICE_INFO_MOUSE {
544 DWORD dwId;
545 DWORD dwNumberOfButtons;
546 DWORD dwSampleRate;
547 BOOL fHasHorizontalWheel;
548 } RID_DEVICE_INFO_MOUSE, *PRID_DEVICE_INFO_MOUSE;
550 typedef struct tagRID_DEVICE_INFO_KEYBOARD {
551 DWORD dwType;
552 DWORD dwSubType;
553 DWORD dwKeyboardMode;
554 DWORD dwNumberOfFunctionKeys;
555 DWORD dwNumberOfIndicators;
556 DWORD dwNumberOfKeysTotal;
557 } RID_DEVICE_INFO_KEYBOARD, *PRID_DEVICE_INFO_KEYBOARD;
559 typedef struct tagRID_DEVICE_INFO_HID {
560 DWORD dwVendorId;
561 DWORD dwProductId;
562 DWORD dwVersionNumber;
563 USHORT usUsagePage;
564 USHORT usUsage;
565 } RID_DEVICE_INFO_HID, *PRID_DEVICE_INFO_HID;
567 typedef struct tagRID_DEVICE_INFO {
568 DWORD cbSize;
569 DWORD dwType;
570 union {
571 RID_DEVICE_INFO_MOUSE mouse;
572 RID_DEVICE_INFO_KEYBOARD keyboard;
573 RID_DEVICE_INFO_HID hid;
574 } DUMMYUNIONNAME;
575 } RID_DEVICE_INFO, *PRID_DEVICE_INFO, *LPRID_DEVICE_INFO;
577 #define GET_RAWINPUT_CODE_WPARAM(wParam) ((wParam) & 0xff)
579 #define RIM_INPUT 0
580 #define RIM_INPUTSINK 1
582 #define RIM_TYPEMOUSE 0
583 #define RIM_TYPEKEYBOARD 1
584 #define RIM_TYPEHID 2
586 #define RI_MOUSE_LEFT_BUTTON_DOWN 0x0001
587 #define RI_MOUSE_LEFT_BUTTON_UP 0x0002
588 #define RI_MOUSE_RIGHT_BUTTON_DOWN 0x0004
589 #define RI_MOUSE_RIGHT_BUTTON_UP 0x0008
590 #define RI_MOUSE_MIDDLE_BUTTON_DOWN 0x0010
591 #define RI_MOUSE_MIDDLE_BUTTON_UP 0x0020
593 #define RI_MOUSE_BUTTON_1_DOWN RI_MOUSE_LEFT_BUTTON_DOWN
594 #define RI_MOUSE_BUTTON_1_UP RI_MOUSE_LEFT_BUTTON_UP
595 #define RI_MOUSE_BUTTON_2_DOWN RI_MOUSE_RIGHT_BUTTON_DOWN
596 #define RI_MOUSE_BUTTON_2_UP RI_MOUSE_RIGHT_BUTTON_UP
597 #define RI_MOUSE_BUTTON_3_DOWN RI_MOUSE_MIDDLE_BUTTON_DOWN
598 #define RI_MOUSE_BUTTON_3_UP RI_MOUSE_MIDDLE_BUTTON_UP
600 #define RI_MOUSE_BUTTON_4_DOWN 0x0040
601 #define RI_MOUSE_BUTTON_4_UP 0x0080
602 #define RI_MOUSE_BUTTON_5_DOWN 0x0100
603 #define RI_MOUSE_BUTTON_5_UP 0x0200
604 #define RI_MOUSE_WHEEL 0x0400
605 #define RI_MOUSE_HORIZONTAL_WHEEL 0x0800
607 #define MOUSE_MOVE_RELATIVE 0x00
608 #define MOUSE_MOVE_ABSOLUTE 0x01
609 #define MOUSE_VIRTUAL_DESKTOP 0x02
610 #define MOUSE_ATTRIBUTES_CHANGED 0x04
611 #define MOUSE_MOVE_NOCOALESCE 0x08
613 #define KEYBOARD_OVERRUN_MAKE_CODE 0xFF
615 #define RI_KEY_MAKE 0x00
616 #define RI_KEY_BREAK 0x01
617 #define RI_KEY_E0 0x02
618 #define RI_KEY_E1 0x04
619 #define RI_KEY_TERMSRV_SET_LED 0x08
620 #define RI_KEY_TERMSRV_SHADOW 0x10
622 #define RAWINPUT_ALIGN(x) (((x) + sizeof(DWORD_PTR) - 1) & ~(sizeof(DWORD_PTR) - 1))
623 #define NEXTRAWINPUTBLOCK(ptr) ((PRAWINPUT)RAWINPUT_ALIGN((ULONG_PTR)((PBYTE)(ptr) + (ptr)->header.dwSize)))
625 #define RID_INPUT 0x10000003
626 #define RID_HEADER 0x10000005
628 #define RIDI_PREPARSEDDATA 0x20000005
629 #define RIDI_DEVICENAME 0x20000007
630 #define RIDI_DEVICEINFO 0x2000000b
632 #define RIDEV_REMOVE 0x00000001
633 #define RIDEV_EXCLUDE 0x00000010
634 #define RIDEV_PAGEONLY 0x00000020
635 #define RIDEV_NOLEGACY 0x00000030
636 #define RIDEV_INPUTSINK 0x00000100
637 #define RIDEV_CAPTUREMOUSE 0x00000200
638 #define RIDEV_NOHOTKEYS 0x00000200
639 #define RIDEV_APPKEYS 0x00000400
640 #define RIDEV_EXINPUTSINK 0x00001000
641 #define RIDEV_DEVNOTIFY 0x00002000
642 #define RIDEV_EXMODEMASK 0x000000F0
644 #define RIDEV_EXMODE(mode) ((mode) & RIDEV_EXMODEMASK)
646 typedef struct tagGESTURECONFIG {
647 DWORD dwID;
648 DWORD dwWant;
649 DWORD dwBlock;
650 } GESTURECONFIG, *PGESTURECONFIG;
652 #define GIDC_ARRIVAL 1
653 #define GIDC_REMOVAL 2
655 #define GC_PAN 0x00000001
656 #define GC_PAN_WITH_SINGLE_FINGER_VERTICALLY 0x00000002
657 #define GC_PAN_WITH_SINGLE_FINGER_HORIZONTALLY 0x00000004
658 #define GC_PAN_WITH_GUTTER 0x00000008
659 #define GC_PAN_WITH_INERTIA 0x00000010
661 #define GC_ALLGESTURES 0x00000001
662 #define GC_PRESSANDTAP 0x00000001
663 #define GC_ROLLOVER GC_PRESSANDTAP
664 #define GC_ROTATE 0x00000001
665 #define GC_TWOFINGERTAP 0x00000001
666 #define GC_ZOOM 0x00000001
668 #define GESTURECONFIGMAXCOUNT 256
670 #define GCF_INCLUDE_ANCESTORS 0x00000001
672 #define GID_BEGIN 1
673 #define GID_END 2
674 #define GID_ZOOM 3
675 #define GID_PAN 4
676 #define GID_ROTATE 5
677 #define GID_TWOFINGERTAP 6
678 #define GID_PRESSANDTAP 7
679 #define GID_ROLLOVER GID_PRESSANDTAP
681 #if (_WIN32_WINNT >= 0x0601)
682 #define GET_DEVICE_CHANGE_WPARAM(wParam) (LOWORD(wParam))
683 #elif (_WIN32_WINNT >= 0x0501)
684 #define GET_DEVICE_CHANGE_LPARAM(lParam) (LOWORD(lParam))
685 #endif
687 typedef struct tagGUITHREADINFO
689 DWORD cbSize;
690 DWORD flags;
691 HWND hwndActive;
692 HWND hwndFocus;
693 HWND hwndCapture;
694 HWND hwndMenuOwner;
695 HWND hwndMoveSize;
696 HWND hwndCaret;
697 RECT rcCaret;
698 } GUITHREADINFO, *PGUITHREADINFO, *LPGUITHREADINFO;
700 #define GUI_CARETBLINKING 0x00000001
701 #define GUI_INMOVESIZE 0x00000002
702 #define GUI_INMENUMODE 0x00000004
703 #define GUI_SYSTEMMENUMODE 0x00000008
704 #define GUI_POPUPMENUMODE 0x00000010
705 #define GUI_16BITTASK 0x00000020
707 typedef enum tagINPUT_MESSAGE_DEVICE_TYPE
709 IMDT_UNAVAILABLE = 0x00,
710 IMDT_KEYBOARD = 0x01,
711 IMDT_MOUSE = 0x02,
712 IMDT_TOUCH = 0x04,
713 IMDT_PEN = 0x08,
714 IMDT_TOUCHPAD = 0x10,
715 } INPUT_MESSAGE_DEVICE_TYPE;
717 typedef enum tagINPUT_MESSAGE_ORIGIN_ID
719 IMO_UNAVAILABLE = 0x00,
720 IMO_HARDWARE = 0x01,
721 IMO_INJECTED = 0x02,
722 IMO_SYSTEM = 0x04,
723 } INPUT_MESSAGE_ORIGIN_ID;
725 typedef struct tagINPUT_MESSAGE_SOURCE
727 INPUT_MESSAGE_DEVICE_TYPE deviceType;
728 INPUT_MESSAGE_ORIGIN_ID originId;
729 } INPUT_MESSAGE_SOURCE;
732 /***** Dialogs *****/
734 /* Gcc on Solaris has a version of this that we don't care about */
735 #undef FSHIFT
737 #define FVIRTKEY TRUE /* Assumed to be == TRUE */
738 #define FNOINVERT 0x02
739 #define FSHIFT 0x04
740 #define FCONTROL 0x08
741 #define FALT 0x10
744 typedef struct tagANIMATIONINFO
746 UINT cbSize;
747 INT iMinAnimate;
748 } ANIMATIONINFO, *LPANIMATIONINFO;
750 typedef struct tagNMHDR
752 HWND hwndFrom;
753 UINT_PTR idFrom;
754 UINT code;
755 } NMHDR, *LPNMHDR;
757 typedef struct tagDRAWTEXTPARAMS
759 UINT cbSize;
760 INT iTabLength;
761 INT iLeftMargin;
762 INT iRightMargin;
763 UINT uiLengthDrawn;
764 } DRAWTEXTPARAMS,*LPDRAWTEXTPARAMS;
766 typedef struct
768 LPARAM lParam;
769 WPARAM wParam;
770 UINT message;
771 HWND hwnd;
772 } CWPSTRUCT, *PCWPSTRUCT, *LPCWPSTRUCT;
774 typedef struct
776 LRESULT lResult;
777 LPARAM lParam;
778 WPARAM wParam;
779 DWORD message;
780 HWND hwnd;
781 } CWPRETSTRUCT, *PCWPRETSTRUCT, *LPCWPRETSTRUCT;
783 typedef struct tagWINDOWPLACEMENT
785 UINT length;
786 UINT flags;
787 UINT showCmd;
788 POINT ptMinPosition;
789 POINT ptMaxPosition;
790 RECT rcNormalPosition;
791 } WINDOWPLACEMENT, *PWINDOWPLACEMENT, *LPWINDOWPLACEMENT;
794 /* WINDOWPLACEMENT flags */
795 #define WPF_SETMINPOSITION 0x0001
796 #define WPF_RESTORETOMAXIMIZED 0x0002
798 /***** Dialogs *****/
800 #define IS_INTRESOURCE(x) (((ULONG_PTR)(x) >> 16) == 0)
801 #define MAKEINTRESOURCEA(i) (LPSTR)((ULONG_PTR)((WORD)(i)))
802 #define MAKEINTRESOURCEW(i) (LPWSTR)((ULONG_PTR)((WORD)(i)))
804 #ifndef RC_INVOKED
805 # ifdef WINE_NO_UNICODE_MACROS /* force using a cast */
806 # define MAKEINTRESOURCE(i) ((ULONG_PTR)((WORD)(i)))
807 # else
808 # define MAKEINTRESOURCE WINELIB_NAME_AW(MAKEINTRESOURCE)
809 # endif
810 #endif
812 /* Predefined resource types */
813 #define RT_CURSOR MAKEINTRESOURCE(1)
814 #define RT_BITMAP MAKEINTRESOURCE(2)
815 #define RT_ICON MAKEINTRESOURCE(3)
816 #define RT_MENU MAKEINTRESOURCE(4)
817 #define RT_DIALOG MAKEINTRESOURCE(5)
818 #define RT_STRING MAKEINTRESOURCE(6)
819 #define RT_FONTDIR MAKEINTRESOURCE(7)
820 #define RT_FONT MAKEINTRESOURCE(8)
821 #define RT_ACCELERATOR MAKEINTRESOURCE(9)
822 #define RT_RCDATA MAKEINTRESOURCE(10)
823 #define RT_MESSAGETABLE MAKEINTRESOURCE(11)
824 #define RT_GROUP_CURSOR MAKEINTRESOURCE(12)
825 #define RT_GROUP_ICON MAKEINTRESOURCE(14)
826 #define RT_VERSION MAKEINTRESOURCE(16)
827 #define RT_DLGINCLUDE MAKEINTRESOURCE(17)
828 #define RT_PLUGPLAY MAKEINTRESOURCE(19)
829 #define RT_VXD MAKEINTRESOURCE(20)
830 #define RT_ANICURSOR MAKEINTRESOURCE(21)
831 #define RT_ANIICON MAKEINTRESOURCE(22)
832 #define RT_HTML MAKEINTRESOURCE(23)
834 #ifdef RC_INVOKED
835 #define RT_MANIFEST 24
836 #define CREATEPROCESS_MANIFEST_RESOURCE_ID 1
837 #define ISOLATIONAWARE_MANIFEST_RESOURCE_ID 2
838 #define ISOLATIONAWARE_NOSTATICIMPORT_MANIFEST_RESOURCE_ID 3
839 #define MINIMUM_RESERVED_MANIFEST_RESOURCE_ID 1
840 #define MAXIMUM_RESERVED_MANIFEST_RESOURCE_ID 16
841 #else
842 #define RT_MANIFEST MAKEINTRESOURCE(24)
843 #define CREATEPROCESS_MANIFEST_RESOURCE_ID MAKEINTRESOURCE(1)
844 #define ISOLATIONAWARE_MANIFEST_RESOURCE_ID MAKEINTRESOURCE(2)
845 #define ISOLATIONAWARE_NOSTATICIMPORT_MANIFEST_RESOURCE_ID MAKEINTRESOURCE(3)
846 #define MINIMUM_RESERVED_MANIFEST_RESOURCE_ID MAKEINTRESOURCE(1)
847 #define MAXIMUM_RESERVED_MANIFEST_RESOURCE_ID MAKEINTRESOURCE(16)
848 #endif
850 /* cbWndExtra bytes for dialog class */
851 #define DLGWINDOWEXTRA 30
854 /* Dialog messages */
855 #define DM_GETDEFID (WM_USER+0)
856 #define DM_SETDEFID (WM_USER+1)
857 #define DM_REPOSITION (WM_USER+2)
859 #define DC_HASDEFID 0x534b
861 /* Bit flags for DRAWITEMSTRUCT.CtlType */
862 #define ODT_MENU 1
863 #define ODT_LISTBOX 2
864 #define ODT_COMBOBOX 3
865 #define ODT_BUTTON 4
866 #define ODT_STATIC 5
868 /* Bit flags for DRAWITEMSTRUCT.itemAction */
869 #define ODA_DRAWENTIRE 0x1
870 #define ODA_SELECT 0x2
871 #define ODA_FOCUS 0x4
873 /* Bit flags for DRAWITEMSTRUCT.itemState */
874 #define ODS_SELECTED 0x0001 /* Selected */
875 #define ODS_GRAYED 0x0002 /* Grayed (Menus only) */
876 #define ODS_DISABLED 0x0004 /* Disabled */
877 #define ODS_CHECKED 0x0008 /* Checked (Menus only) */
878 #define ODS_FOCUS 0x0010 /* Has focus */
879 #define ODS_DEFAULT 0x0020 /* Default */
880 #define ODS_HOTLIGHT 0x0040 /* Highlighted when under mouse */
881 #define ODS_INACTIVE 0x0080 /* Inactive */
882 #define ODS_NOACCEL 0x0100 /* No keyboard accelerator */
883 #define ODS_NOFOCUSRECT 0x0200 /* No focus rectangle */
884 #define ODS_COMBOBOXEDIT 0x1000 /* Edit of a combo box */
886 #ifndef NOCOLOR
888 #define COLOR_SCROLLBAR 0
889 #define COLOR_BACKGROUND 1
890 #define COLOR_ACTIVECAPTION 2
891 #define COLOR_INACTIVECAPTION 3
892 #define COLOR_MENU 4
893 #define COLOR_WINDOW 5
894 #define COLOR_WINDOWFRAME 6
895 #define COLOR_MENUTEXT 7
896 #define COLOR_WINDOWTEXT 8
897 #define COLOR_CAPTIONTEXT 9
898 #define COLOR_ACTIVEBORDER 10
899 #define COLOR_INACTIVEBORDER 11
900 #define COLOR_APPWORKSPACE 12
901 #define COLOR_HIGHLIGHT 13
902 #define COLOR_HIGHLIGHTTEXT 14
903 #define COLOR_BTNFACE 15
904 #define COLOR_BTNSHADOW 16
905 #define COLOR_GRAYTEXT 17
906 #define COLOR_BTNTEXT 18
907 #define COLOR_INACTIVECAPTIONTEXT 19
908 #define COLOR_BTNHIGHLIGHT 20
909 /* win95 colors */
910 #define COLOR_3DDKSHADOW 21
911 #define COLOR_3DLIGHT 22
912 #define COLOR_INFOTEXT 23
913 #define COLOR_INFOBK 24
914 #define COLOR_DESKTOP COLOR_BACKGROUND
915 #define COLOR_3DFACE COLOR_BTNFACE
916 #define COLOR_3DSHADOW COLOR_BTNSHADOW
917 #define COLOR_3DHIGHLIGHT COLOR_BTNHIGHLIGHT
918 #define COLOR_3DHILIGHT COLOR_BTNHIGHLIGHT
919 #define COLOR_BTNHILIGHT COLOR_BTNHIGHLIGHT
920 /* win98 colors */
921 #define COLOR_ALTERNATEBTNFACE 25 /* undocumented, constant name unknown */
922 #define COLOR_HOTLIGHT 26
923 #define COLOR_GRADIENTACTIVECAPTION 27
924 #define COLOR_GRADIENTINACTIVECAPTION 28
925 /* win2k/xp colors */
926 #define COLOR_MENUHILIGHT 29
927 #define COLOR_MENUBAR 30
929 /* WM_CTLCOLOR values */
930 #define CTLCOLOR_MSGBOX 0
931 #define CTLCOLOR_EDIT 1
932 #define CTLCOLOR_LISTBOX 2
933 #define CTLCOLOR_BTN 3
934 #define CTLCOLOR_DLG 4
935 #define CTLCOLOR_SCROLLBAR 5
936 #define CTLCOLOR_STATIC 6
938 WINUSERAPI COLORREF WINAPI GetSysColor(INT);
939 WINUSERAPI BOOL WINAPI SetSysColors(INT,const INT*,const COLORREF*);
941 #endif /* NOCOLOR */
943 /* IMESTATUS type */
944 #define EMSIS_COMPOSITIONSTRING 1
946 /* IMESTATUS type specific data */
947 #define EIMES_GETCOMPSTRATONCE 0x0001
948 #define EIMES_CANCELCOMPSTRINFOCUS 0x0002
949 #define EIMES_COMPLETECOMPSTRKILLFOCUS 0x0004
951 /* EDITWORDBREAKPROC code values */
952 #define WB_LEFT 0
953 #define WB_RIGHT 1
954 #define WB_ISDELIMITER 2
956 /* Edit control notification codes */
957 #define EN_SETFOCUS 0x0100
958 #define EN_KILLFOCUS 0x0200
959 #define EN_CHANGE 0x0300
960 #define EN_UPDATE 0x0400
961 #define EN_ERRSPACE 0x0500
962 #define EN_MAXTEXT 0x0501
963 #define EN_HSCROLL 0x0601
964 #define EN_VSCROLL 0x0602
966 /* New since win95 : EM_SETMARGIN parameters */
967 #define EC_LEFTMARGIN 0x0001
968 #define EC_RIGHTMARGIN 0x0002
969 #define EC_USEFONTINFO 0xffff
972 /* GetSystemMetrics() codes */
973 #define SM_CXSCREEN 0
974 #define SM_CYSCREEN 1
975 #define SM_CXVSCROLL 2
976 #define SM_CYHSCROLL 3
977 #define SM_CYCAPTION 4
978 #define SM_CXBORDER 5
979 #define SM_CYBORDER 6
980 #define SM_CXDLGFRAME 7
981 #define SM_CYDLGFRAME 8
982 #define SM_CYVTHUMB 9
983 #define SM_CXHTHUMB 10
984 #define SM_CXICON 11
985 #define SM_CYICON 12
986 #define SM_CXCURSOR 13
987 #define SM_CYCURSOR 14
988 #define SM_CYMENU 15
989 #define SM_CXFULLSCREEN 16
990 #define SM_CYFULLSCREEN 17
991 #define SM_CYKANJIWINDOW 18
992 #define SM_MOUSEPRESENT 19
993 #define SM_CYVSCROLL 20
994 #define SM_CXHSCROLL 21
995 #define SM_DEBUG 22
996 #define SM_SWAPBUTTON 23
997 #define SM_RESERVED1 24
998 #define SM_RESERVED2 25
999 #define SM_RESERVED3 26
1000 #define SM_RESERVED4 27
1001 #define SM_CXMIN 28
1002 #define SM_CYMIN 29
1003 #define SM_CXSIZE 30
1004 #define SM_CYSIZE 31
1005 #define SM_CXFRAME 32
1006 #define SM_CYFRAME 33
1007 #define SM_CXMINTRACK 34
1008 #define SM_CYMINTRACK 35
1009 #define SM_CXDOUBLECLK 36
1010 #define SM_CYDOUBLECLK 37
1011 #define SM_CXICONSPACING 38
1012 #define SM_CYICONSPACING 39
1013 #define SM_MENUDROPALIGNMENT 40
1014 #define SM_PENWINDOWS 41
1015 #define SM_DBCSENABLED 42
1016 #define SM_CMOUSEBUTTONS 43
1017 #define SM_CXFIXEDFRAME SM_CXDLGFRAME
1018 #define SM_CYFIXEDFRAME SM_CYDLGFRAME
1019 #define SM_CXSIZEFRAME SM_CXFRAME
1020 #define SM_CYSIZEFRAME SM_CYFRAME
1021 #define SM_SECURE 44
1022 #define SM_CXEDGE 45
1023 #define SM_CYEDGE 46
1024 #define SM_CXMINSPACING 47
1025 #define SM_CYMINSPACING 48
1026 #define SM_CXSMICON 49
1027 #define SM_CYSMICON 50
1028 #define SM_CYSMCAPTION 51
1029 #define SM_CXSMSIZE 52
1030 #define SM_CYSMSIZE 53
1031 #define SM_CXMENUSIZE 54
1032 #define SM_CYMENUSIZE 55
1033 #define SM_ARRANGE 56
1034 #define SM_CXMINIMIZED 57
1035 #define SM_CYMINIMIZED 58
1036 #define SM_CXMAXTRACK 59
1037 #define SM_CYMAXTRACK 60
1038 #define SM_CXMAXIMIZED 61
1039 #define SM_CYMAXIMIZED 62
1040 #define SM_NETWORK 63
1041 #define SM_CLEANBOOT 67
1042 #define SM_CXDRAG 68
1043 #define SM_CYDRAG 69
1044 #define SM_SHOWSOUNDS 70
1045 #define SM_CXMENUCHECK 71
1046 #define SM_CYMENUCHECK 72
1047 #define SM_SLOWMACHINE 73
1048 #define SM_MIDEASTENABLED 74
1049 #define SM_MOUSEWHEELPRESENT 75
1050 #define SM_XVIRTUALSCREEN 76
1051 #define SM_YVIRTUALSCREEN 77
1052 #define SM_CXVIRTUALSCREEN 78
1053 #define SM_CYVIRTUALSCREEN 79
1054 #define SM_CMONITORS 80
1055 #define SM_SAMEDISPLAYFORMAT 81
1056 #define SM_IMMENABLED 82
1057 #define SM_CXFOCUSBORDER 83
1058 #define SM_CYFOCUSBORDER 84
1059 #define SM_TABLETPC 86
1060 #define SM_MEDIACENTER 87
1061 #define SM_STARTER 88
1062 #define SM_SERVERR2 89
1063 #define SM_CMETRICS 90
1064 #define SM_MOUSEHORIZONTALWHEELPRESENT 91
1065 #define SM_CXPADDEDBORDER 92
1066 #define SM_DIGITIZER 94
1067 #define SM_MAXIMUMTOUCHES 95
1069 #define SM_REMOTESESSION 0x1000
1070 #define SM_SHUTTINGDOWN 0x2000
1071 #define SM_REMOTECONTROL 0x2001
1072 #define SM_CARETBLINKINGENABLED 0x2002
1074 #define PMB_ACTIVE 0x00000001
1077 /* wParam for WM_POWERBROADCAST */
1078 #define PBT_APMQUERYSUSPEND 0x0000
1079 #define PBT_APMQUERYSTANDBY 0x0001
1080 #define PBT_APMQUERYSUSPENDFAILED 0x0002
1081 #define PBT_APMQUERYSTANDBYFAILED 0x0003
1082 #define PBT_APMSUSPEND 0x0004
1083 #define PBT_APMSTANDBY 0x0005
1084 #define PBT_APMRESUMECRITICAL 0x0006
1085 #define PBT_APMRESUMESUSPEND 0x0007
1086 #define PBT_APMRESUMESTANDBY 0x0008
1087 #define PBT_APMBATTERYLOW 0x0009
1088 #define PBT_APMPOWERSTATUSCHANGE 0x000A
1089 #define PBT_APMOEMEVENT 0x000B
1090 #define PBT_APMRESUMEAUTOMATIC 0x0012
1092 #define PBTF_APMRESUMEFROMFAILURE 0x00000001
1095 /* MsgWaitForMultipleObjectsEx flags */
1096 #define MWMO_WAITALL 0x0001
1097 #define MWMO_ALERTABLE 0x0002
1098 #define MWMO_INPUTAVAILABLE 0x0004
1100 /* WM_GETDLGCODE values */
1101 #define DLGC_WANTARROWS 0x0001
1102 #define DLGC_WANTTAB 0x0002
1103 #define DLGC_WANTALLKEYS 0x0004
1104 #define DLGC_WANTMESSAGE 0x0004
1105 #define DLGC_HASSETSEL 0x0008
1106 #define DLGC_DEFPUSHBUTTON 0x0010
1107 #define DLGC_UNDEFPUSHBUTTON 0x0020
1108 #define DLGC_RADIOBUTTON 0x0040
1109 #define DLGC_WANTCHARS 0x0080
1110 #define DLGC_STATIC 0x0100
1111 #define DLGC_BUTTON 0x2000
1113 /* Used for EnumDisplaySettingsEx */
1114 #define ENUM_CURRENT_SETTINGS ((DWORD) -1)
1115 #define ENUM_REGISTRY_SETTINGS ((DWORD) -2)
1117 /* Used by EnumDisplayDevices */
1118 #define EDD_GET_DEVICE_INTERFACE_NAME 0x00000001
1120 #define EDS_RAWMODE 0x00000002
1121 #define EDS_ROTATEDMODE 0x00000004
1123 /* Used for PrintWindow */
1124 #define PW_CLIENTONLY 0x00000001
1126 /****** Window classes ******/
1128 typedef struct tagCREATESTRUCTA
1130 LPVOID lpCreateParams;
1131 HINSTANCE hInstance;
1132 HMENU hMenu;
1133 HWND hwndParent;
1134 INT cy;
1135 INT cx;
1136 INT y;
1137 INT x;
1138 LONG style;
1139 LPCSTR lpszName;
1140 LPCSTR lpszClass;
1141 DWORD dwExStyle;
1142 } CREATESTRUCTA, *LPCREATESTRUCTA;
1144 typedef struct tagCREATESTRUCTW
1146 LPVOID lpCreateParams;
1147 HINSTANCE hInstance;
1148 HMENU hMenu;
1149 HWND hwndParent;
1150 INT cy;
1151 INT cx;
1152 INT y;
1153 INT x;
1154 LONG style;
1155 LPCWSTR lpszName;
1156 LPCWSTR lpszClass;
1157 DWORD dwExStyle;
1158 } CREATESTRUCTW, *LPCREATESTRUCTW;
1160 DECL_WINELIB_TYPE_AW(CREATESTRUCT)
1161 DECL_WINELIB_TYPE_AW(LPCREATESTRUCT)
1163 typedef struct tagPAINTSTRUCT
1165 HDC hdc;
1166 BOOL fErase;
1167 RECT rcPaint;
1168 BOOL fRestore;
1169 BOOL fIncUpdate;
1170 BYTE rgbReserved[32];
1171 } PAINTSTRUCT, *PPAINTSTRUCT, *LPPAINTSTRUCT;
1173 typedef struct tagCLIENTCREATESTRUCT
1175 HMENU hWindowMenu;
1176 UINT idFirstChild;
1177 } CLIENTCREATESTRUCT, *LPCLIENTCREATESTRUCT;
1180 typedef struct tagMDICREATESTRUCTA
1182 LPCSTR szClass;
1183 LPCSTR szTitle;
1184 HINSTANCE hOwner;
1185 INT x;
1186 INT y;
1187 INT cx;
1188 INT cy;
1189 DWORD style;
1190 LPARAM lParam;
1191 } MDICREATESTRUCTA, *LPMDICREATESTRUCTA;
1193 typedef struct tagMDICREATESTRUCTW
1195 LPCWSTR szClass;
1196 LPCWSTR szTitle;
1197 HINSTANCE hOwner;
1198 INT x;
1199 INT y;
1200 INT cx;
1201 INT cy;
1202 DWORD style;
1203 LPARAM lParam;
1204 } MDICREATESTRUCTW, *LPMDICREATESTRUCTW;
1206 DECL_WINELIB_TYPE_AW(MDICREATESTRUCT)
1207 DECL_WINELIB_TYPE_AW(LPMDICREATESTRUCT)
1209 #define MDITILE_VERTICAL 0x0000
1210 #define MDITILE_HORIZONTAL 0x0001
1211 #define MDITILE_SKIPDISABLED 0x0002
1212 #define MDITILE_ZORDER 0x0004
1214 #define MDIS_ALLCHILDSTYLES 0x0001
1216 typedef struct tagSTYLESTRUCT {
1217 DWORD styleOld;
1218 DWORD styleNew;
1219 } STYLESTRUCT, *LPSTYLESTRUCT;
1221 #define WC_DIALOG MAKEINTATOM(0x8002)
1223 /* Offsets for GetWindowLong() and GetWindowWord() */
1224 #define GWL_EXSTYLE (-20)
1225 #define GWL_STYLE (-16)
1226 #define GWL_ID (-12)
1227 #if !defined _WIN64 && !defined __WINESRC__
1228 # define GWL_USERDATA (-21)
1229 # define GWL_HWNDPARENT (-8)
1230 # define GWL_HINSTANCE (-6)
1231 # define GWL_WNDPROC (-4)
1232 # define DWL_MSGRESULT 0
1233 # define DWL_DLGPROC 4
1234 # define DWL_USER 8
1235 #endif /* _WIN64 && __WINESRC__ */
1237 /* Offsets for GetWindowLongPtr() and SetWindowLongPtr() */
1238 #define GWLP_USERDATA (-21)
1239 #define GWLP_ID (-12)
1240 #define GWLP_HWNDPARENT (-8)
1241 #define GWLP_HINSTANCE (-6)
1242 #define GWLP_WNDPROC (-4)
1243 #define DWLP_MSGRESULT 0
1244 #define DWLP_DLGPROC DWLP_MSGRESULT + sizeof(LRESULT)
1245 #define DWLP_USER DWLP_DLGPROC + sizeof(DLGPROC)
1247 /* GetWindow() constants */
1248 #define GW_HWNDFIRST 0
1249 #define GW_HWNDLAST 1
1250 #define GW_HWNDNEXT 2
1251 #define GW_HWNDPREV 3
1252 #define GW_OWNER 4
1253 #define GW_CHILD 5
1255 /* GetAncestor() constants */
1256 #define GA_PARENT 1
1257 #define GA_ROOT 2
1258 #define GA_ROOTOWNER 3
1260 /* WM_GETMINMAXINFO struct */
1261 typedef struct tagMINMAXINFO
1263 POINT ptReserved;
1264 POINT ptMaxSize;
1265 POINT ptMaxPosition;
1266 POINT ptMinTrackSize;
1267 POINT ptMaxTrackSize;
1268 } MINMAXINFO, *PMINMAXINFO, *LPMINMAXINFO;
1271 /* RedrawWindow() flags */
1272 #define RDW_INVALIDATE 0x0001
1273 #define RDW_INTERNALPAINT 0x0002
1274 #define RDW_ERASE 0x0004
1275 #define RDW_VALIDATE 0x0008
1276 #define RDW_NOINTERNALPAINT 0x0010
1277 #define RDW_NOERASE 0x0020
1278 #define RDW_NOCHILDREN 0x0040
1279 #define RDW_ALLCHILDREN 0x0080
1280 #define RDW_UPDATENOW 0x0100
1281 #define RDW_ERASENOW 0x0200
1282 #define RDW_FRAME 0x0400
1283 #define RDW_NOFRAME 0x0800
1285 /* debug flags */
1286 #define DBGFILL_ALLOC 0xfd
1287 #define DBGFILL_FREE 0xfb
1288 #define DBGFILL_BUFFER 0xf9
1289 #define DBGFILL_STACK 0xf7
1291 /* WM_WINDOWPOSCHANGING/CHANGED struct */
1292 typedef struct tagWINDOWPOS
1294 HWND hwnd;
1295 HWND hwndInsertAfter;
1296 INT x;
1297 INT y;
1298 INT cx;
1299 INT cy;
1300 UINT flags;
1301 } WINDOWPOS, *PWINDOWPOS, *LPWINDOWPOS;
1304 /* WM_NCCALCSIZE parameter structure */
1305 typedef struct
1307 RECT rgrc[3];
1308 WINDOWPOS *lppos;
1309 } NCCALCSIZE_PARAMS, *LPNCCALCSIZE_PARAMS;
1312 #define PRF_CHECKVISIBLE __MSABI_LONG(0x00000001)
1313 #define PRF_NONCLIENT __MSABI_LONG(0x00000002)
1314 #define PRF_CLIENT __MSABI_LONG(0x00000004)
1315 #define PRF_ERASEBKGND __MSABI_LONG(0x00000008)
1316 #define PRF_CHILDREN __MSABI_LONG(0x00000010)
1317 #define PRF_OWNED __MSABI_LONG(0x00000020)
1319 /* Offsets for GetClassLong() and GetClassWord() */
1320 #if !defined _WIN64 && !defined __WINESRC__
1321 # define GCL_MENUNAME (-8)
1322 # define GCL_HBRBACKGROUND (-10)
1323 # define GCL_HCURSOR (-12)
1324 # define GCL_HICON (-14)
1325 # define GCL_HMODULE (-16)
1326 # define GCL_WNDPROC (-24)
1327 # define GCL_HICONSM (-34)
1328 #endif /* _WIN64 && __WINESRC__ */
1330 #define GCL_CBWNDEXTRA (-18)
1331 #define GCL_CBCLSEXTRA (-20)
1332 #define GCL_STYLE (-26)
1333 #define GCW_ATOM (-32)
1335 #define GCLP_MENUNAME (-8)
1336 #define GCLP_HBRBACKGROUND (-10)
1337 #define GCLP_HCURSOR (-12)
1338 #define GCLP_HICON (-14)
1339 #define GCLP_HMODULE (-16)
1340 #define GCLP_WNDPROC (-24)
1341 #define GCLP_HICONSM (-34)
1343 /* BroadcastSystemMessage flags */
1344 #define BSM_ALLCOMPONENTS 0x00000000
1345 #define BSM_VXDS 0x00000001
1346 #define BSM_NETDRIVER 0x00000002
1347 #define BSM_INSTALLABLEDRIVERS 0x00000004
1348 #define BSM_APPLICATIONS 0x00000008
1349 #define BSM_ALLDESKTOPS 0x00000010
1351 #define BSF_QUERY 0x00000001
1352 #define BSF_IGNORECURRENTTASK 0x00000002
1353 #define BSF_FLUSHDISK 0x00000004
1354 #define BSF_NOHANG 0x00000008
1355 #define BSF_POSTMESSAGE 0x00000010
1356 #define BSF_FORCEIFHUNG 0x00000020
1357 #define BSF_NOTIMEOUTIFNOTHUNG 0x00000040
1358 #define BSF_ALLOWSFW 0x00000080
1359 #define BSF_SENDNOTIFYMESSAGE 0x00000100
1360 #define BSF_RETURNHDESK 0x00000200
1361 #define BSF_LUID 0x00000400
1363 #define BROADCAST_QUERY_DENY 0x424D5144
1365 /***** Window hooks *****/
1367 /* Hook values */
1368 #define WH_MIN (-1)
1369 #define WH_MSGFILTER (-1)
1370 #define WH_JOURNALRECORD 0
1371 #define WH_JOURNALPLAYBACK 1
1372 #define WH_KEYBOARD 2
1373 #define WH_GETMESSAGE 3
1374 #define WH_CALLWNDPROC 4
1375 #define WH_CBT 5
1376 #define WH_SYSMSGFILTER 6
1377 #define WH_MOUSE 7
1378 #define WH_HARDWARE 8
1379 #define WH_DEBUG 9
1380 #define WH_SHELL 10
1381 #define WH_FOREGROUNDIDLE 11
1382 #define WH_CALLWNDPROCRET 12
1383 #define WH_KEYBOARD_LL 13
1384 #define WH_MOUSE_LL 14
1385 #define WH_MAX 14
1387 #define WH_MINHOOK WH_MIN
1388 #define WH_MAXHOOK WH_MAX
1390 /* Hook action codes */
1391 #define HC_ACTION 0
1392 #define HC_GETNEXT 1
1393 #define HC_SKIP 2
1394 #define HC_NOREMOVE 3
1395 #define HC_NOREM HC_NOREMOVE
1396 #define HC_SYSMODALON 4
1397 #define HC_SYSMODALOFF 5
1399 /* CallMsgFilter() values */
1400 #define MSGF_DIALOGBOX 0
1401 #define MSGF_MESSAGEBOX 1
1402 #define MSGF_MENU 2
1403 #define MSGF_MOVE 3
1404 #define MSGF_SIZE 4
1405 #define MSGF_SCROLLBAR 5
1406 #define MSGF_NEXTWINDOW 6
1407 #define MSGF_MAX 8
1408 #define MSGF_USER 0x1000
1409 #define MSGF_DDEMGR 0x8001
1411 typedef struct tagWNDCLASSA
1413 UINT style;
1414 WNDPROC lpfnWndProc;
1415 INT cbClsExtra;
1416 INT cbWndExtra;
1417 HINSTANCE hInstance;
1418 HICON hIcon;
1419 HCURSOR hCursor;
1420 HBRUSH hbrBackground;
1421 LPCSTR lpszMenuName;
1422 LPCSTR lpszClassName;
1423 } WNDCLASSA, *PWNDCLASSA, *LPWNDCLASSA;
1425 typedef struct tagWNDCLASSW
1427 UINT style;
1428 WNDPROC lpfnWndProc;
1429 INT cbClsExtra;
1430 INT cbWndExtra;
1431 HINSTANCE hInstance;
1432 HICON hIcon;
1433 HCURSOR hCursor;
1434 HBRUSH hbrBackground;
1435 LPCWSTR lpszMenuName;
1436 LPCWSTR lpszClassName;
1437 } WNDCLASSW, *PWNDCLASSW, *LPWNDCLASSW;
1439 DECL_WINELIB_TYPE_AW(WNDCLASS)
1440 DECL_WINELIB_TYPE_AW(PWNDCLASS)
1441 DECL_WINELIB_TYPE_AW(LPWNDCLASS)
1443 typedef struct tagCOPYDATASTRUCT {
1444 ULONG_PTR dwData;
1445 DWORD cbData;
1446 PVOID lpData;
1447 } COPYDATASTRUCT, *PCOPYDATASTRUCT;
1449 typedef struct tagMDINEXTMENU {
1450 HMENU hmenuIn;
1451 HMENU hmenuNext;
1452 HWND hwndNext;
1453 } MDINEXTMENU, *PMDINEXTMENU, *LPMDINEXTMENU;
1455 typedef struct tagMULTIKEYHELPA
1457 DWORD mkSize;
1458 CHAR mkKeylist;
1459 CHAR szKeyphrase[1];
1460 } MULTIKEYHELPA, *PMULTIKEYHELPA, *LPMULTIKEYHELPA;
1462 typedef struct tagMULTIKEYHELPW
1464 DWORD mkSize;
1465 WCHAR mkKeylist;
1466 WCHAR szKeyphrase[1];
1467 } MULTIKEYHELPW, *PMULTIKEYHELPW, *LPMULTIKEYHELPW;
1469 DECL_WINELIB_TYPE_AW(MULTIKEYHELP)
1470 DECL_WINELIB_TYPE_AW(PMULTIKEYHELP)
1471 DECL_WINELIB_TYPE_AW(LPMULTIKEYHELP)
1473 typedef struct tagHELPWININFOA {
1474 int wStructSize;
1475 int x;
1476 int y;
1477 int dx;
1478 int dy;
1479 int wMax;
1480 CHAR rgchMember[2];
1481 } HELPWININFOA, *PHELPWININFOA, *LPHELPWININFOA;
1483 typedef struct tagHELPWININFOW {
1484 int wStructSize;
1485 int x;
1486 int y;
1487 int dx;
1488 int dy;
1489 int wMax;
1490 WCHAR rgchMember[2];
1491 } HELPWININFOW, *PHELPWININFOW, *LPHELPWININFOW;
1493 DECL_WINELIB_TYPE_AW(HELPWININFO)
1494 DECL_WINELIB_TYPE_AW(PHELPWININFO)
1495 DECL_WINELIB_TYPE_AW(LPHELPWININFO)
1498 /* ChangeDisplaySettings return codes */
1500 #define DISP_CHANGE_SUCCESSFUL 0
1501 #define DISP_CHANGE_RESTART 1
1502 #define DISP_CHANGE_FAILED (-1)
1503 #define DISP_CHANGE_BADMODE (-2)
1504 #define DISP_CHANGE_NOTUPDATED (-3)
1505 #define DISP_CHANGE_BADFLAGS (-4)
1506 #define DISP_CHANGE_BADPARAM (-5)
1507 #define DISP_CHANGE_BADDUALVIEW (-6)
1509 /* ChangeDisplaySettings.dwFlags */
1510 #define CDS_UPDATEREGISTRY 0x00000001
1511 #define CDS_TEST 0x00000002
1512 #define CDS_FULLSCREEN 0x00000004
1513 #define CDS_GLOBAL 0x00000008
1514 #define CDS_SET_PRIMARY 0x00000010
1515 #define CDS_VIDEOPARAMETERS 0x00000020
1516 #define CDS_ENABLE_UNSAFE_MODES 0x00000100
1517 #define CDS_DISABLE_UNSAFE_MODES 0x00000200
1518 #define CDS_NORESET 0x10000000
1519 #define CDS_RESET_EX 0x20000000
1520 #define CDS_RESET 0x40000000
1522 typedef struct tagWNDCLASSEXA
1524 UINT cbSize;
1525 UINT style;
1526 WNDPROC lpfnWndProc;
1527 INT cbClsExtra;
1528 INT cbWndExtra;
1529 HINSTANCE hInstance;
1530 HICON hIcon;
1531 HCURSOR hCursor;
1532 HBRUSH hbrBackground;
1533 LPCSTR lpszMenuName;
1534 LPCSTR lpszClassName;
1535 HICON hIconSm;
1536 } WNDCLASSEXA, *PWNDCLASSEXA, *LPWNDCLASSEXA;
1538 typedef struct tagWNDCLASSEXW
1540 UINT cbSize;
1541 UINT style;
1542 WNDPROC lpfnWndProc;
1543 INT cbClsExtra;
1544 INT cbWndExtra;
1545 HINSTANCE hInstance;
1546 HICON hIcon;
1547 HCURSOR hCursor;
1548 HBRUSH hbrBackground;
1549 LPCWSTR lpszMenuName;
1550 LPCWSTR lpszClassName;
1551 HICON hIconSm;
1552 } WNDCLASSEXW, *PWNDCLASSEXW, *LPWNDCLASSEXW;
1554 DECL_WINELIB_TYPE_AW(WNDCLASSEX)
1555 DECL_WINELIB_TYPE_AW(PWNDCLASSEX)
1556 DECL_WINELIB_TYPE_AW(LPWNDCLASSEX)
1558 typedef struct tagMSG
1560 HWND hwnd;
1561 UINT message;
1562 WPARAM wParam;
1563 LPARAM lParam;
1564 DWORD time;
1565 POINT pt;
1566 } MSG, *PMSG, *LPMSG;
1568 #define POINTSTOPOINT(pt, pts) { (pt).x = (pts).x; (pt).y = (pts).y; }
1569 #define POINTTOPOINTS(pt) (MAKELONG((short)((pt).x), (short)((pt).y)))
1571 #define MAKELPARAM(low,high) ((LPARAM)(DWORD)MAKELONG(low,high))
1572 #define MAKEWPARAM(low,high) ((WPARAM)(DWORD)MAKELONG(low,high))
1573 #define MAKELRESULT(low,high) ((LRESULT)(DWORD)MAKELONG(low,high))
1575 /* Cursors / Icons */
1577 typedef struct _ICONINFO {
1578 BOOL fIcon;
1579 DWORD xHotspot;
1580 DWORD yHotspot;
1581 HBITMAP hbmMask;
1582 HBITMAP hbmColor;
1583 } ICONINFO, *PICONINFO;
1585 typedef struct _ICONINFOEXA
1587 DWORD cbSize;
1588 BOOL fIcon;
1589 DWORD xHotspot;
1590 DWORD yHotspot;
1591 HBITMAP hbmMask;
1592 HBITMAP hbmColor;
1593 WORD wResID;
1594 CHAR szModName[MAX_PATH];
1595 CHAR szResName[MAX_PATH];
1596 } ICONINFOEXA, *PICONINFOEXA;
1598 typedef struct _ICONINFOEXW
1600 DWORD cbSize;
1601 BOOL fIcon;
1602 DWORD xHotspot;
1603 DWORD yHotspot;
1604 HBITMAP hbmMask;
1605 HBITMAP hbmColor;
1606 WORD wResID;
1607 WCHAR szModName[MAX_PATH];
1608 WCHAR szResName[MAX_PATH];
1609 } ICONINFOEXW, *PICONINFOEXW;
1611 DECL_WINELIB_TYPE_AW(ICONINFOEX)
1612 DECL_WINELIB_TYPE_AW(PICONINFOEX)
1614 typedef struct tagCURSORINFO
1616 DWORD cbSize;
1617 DWORD flags;
1618 HCURSOR hCursor;
1619 POINT ptScreenPos;
1620 } CURSORINFO, *PCURSORINFO, *LPCURSORINFO;
1622 #define CURSOR_SHOWING 0x00000001
1623 #define CURSOR_SUPPRESSED 0x00000002
1625 /* this is the 6 byte accel struct used in Win32 when presented to the user */
1626 typedef struct tagACCEL
1628 BYTE fVirt;
1629 WORD key;
1630 WORD cmd;
1631 } ACCEL, *LPACCEL;
1634 /* Flags for TrackPopupMenu */
1635 #define TPM_LEFTBUTTON 0x0000
1636 #define TPM_RECURSE 0x0001
1637 #define TPM_RIGHTBUTTON 0x0002
1638 #define TPM_LEFTALIGN 0x0000
1639 #define TPM_CENTERALIGN 0x0004
1640 #define TPM_RIGHTALIGN 0x0008
1641 #define TPM_TOPALIGN 0x0000
1642 #define TPM_VCENTERALIGN 0x0010
1643 #define TPM_BOTTOMALIGN 0x0020
1644 #define TPM_HORIZONTAL 0x0000
1645 #define TPM_VERTICAL 0x0040
1646 #define TPM_NONOTIFY 0x0080
1647 #define TPM_RETURNCMD 0x0100
1648 #define TPM_HORPOSANIMATION 0x0400
1649 #define TPM_HORNEGANIMATION 0x0800
1650 #define TPM_VERPOSANIMATION 0x1000
1651 #define TPM_VERNEGANIMATION 0x2000
1652 #define TPM_NOANIMATION 0x4000
1653 #define TPM_LAYOUTRTL 0x8000
1655 typedef struct tagTPMPARAMS
1657 UINT cbSize;
1658 RECT rcExclude;
1659 } TPMPARAMS, *LPTPMPARAMS;
1663 * Combobox information
1665 typedef struct tagCOMBOBOXINFO
1667 DWORD cbSize;
1668 RECT rcItem;
1669 RECT rcButton;
1670 DWORD stateButton;
1671 HWND hwndCombo;
1672 HWND hwndItem;
1673 HWND hwndList;
1674 } COMBOBOXINFO, *PCOMBOBOXINFO, *LPCOMBOBOXINFO;
1676 typedef struct tagMENUITEMINFOA {
1677 UINT cbSize;
1678 UINT fMask;
1679 UINT fType;
1680 UINT fState;
1681 UINT wID;
1682 HMENU hSubMenu;
1683 HBITMAP hbmpChecked;
1684 HBITMAP hbmpUnchecked;
1685 ULONG_PTR dwItemData;
1686 LPSTR dwTypeData;
1687 UINT cch;
1688 HBITMAP hbmpItem;
1689 } MENUITEMINFOA, *LPMENUITEMINFOA;
1691 typedef struct tagMENUITEMINFOW {
1692 UINT cbSize;
1693 UINT fMask;
1694 UINT fType;
1695 UINT fState;
1696 UINT wID;
1697 HMENU hSubMenu;
1698 HBITMAP hbmpChecked;
1699 HBITMAP hbmpUnchecked;
1700 ULONG_PTR dwItemData;
1701 LPWSTR dwTypeData;
1702 UINT cch;
1703 HBITMAP hbmpItem;
1704 } MENUITEMINFOW, *LPMENUITEMINFOW;
1706 DECL_WINELIB_TYPE_AW(MENUITEMINFO)
1707 DECL_WINELIB_TYPE_AW(LPMENUITEMINFO)
1708 typedef const MENUITEMINFOA *LPCMENUITEMINFOA;
1709 typedef const MENUITEMINFOW *LPCMENUITEMINFOW;
1710 DECL_WINELIB_TYPE_AW(LPCMENUITEMINFO)
1712 typedef struct tagMENUBARINFO {
1713 DWORD cbSize;
1714 RECT rcBar;
1715 HMENU hMenu;
1716 HWND hwndMenu;
1717 BOOL fBarFocused:1;
1718 BOOL fFocused:1;
1719 } MENUBARINFO, *PMENUBARINFO, *LPMENUBARINFO;
1721 typedef struct tagMENUINFO {
1722 DWORD cbSize;
1723 DWORD fMask;
1724 DWORD dwStyle;
1725 UINT cyMax;
1726 HBRUSH hbrBack;
1727 DWORD dwContextHelpID;
1728 ULONG_PTR dwMenuData;
1729 } MENUINFO, *LPMENUINFO;
1731 typedef const MENUINFO *LPCMENUINFO;
1733 #define MIM_MAXHEIGHT 0x00000001
1734 #define MIM_BACKGROUND 0x00000002
1735 #define MIM_HELPID 0x00000004
1736 #define MIM_MENUDATA 0x00000008
1737 #define MIM_STYLE 0x00000010
1738 #define MIM_APPLYTOSUBMENUS 0x80000000
1740 #define MNS_NOCHECK 0x80000000
1741 #define MNS_MODELESS 0x40000000
1742 #define MNS_DRAGDROP 0x20000000
1743 #define MNS_AUTODISMISS 0x10000000
1744 #define MNS_NOTIFYBYPOS 0x08000000
1745 #define MNS_CHECKORBMP 0x04000000
1747 typedef struct {
1748 WORD versionNumber;
1749 WORD offset;
1750 } MENUITEMTEMPLATEHEADER, *PMENUITEMTEMPLATEHEADER;
1753 typedef struct {
1754 WORD mtOption;
1755 WORD mtID;
1756 WCHAR mtString[1];
1757 } MENUITEMTEMPLATE, *PMENUITEMTEMPLATE;
1760 typedef VOID MENUTEMPLATE;
1761 typedef PVOID *LPMENUTEMPLATE;
1763 /* Field specifiers for MENUITEMINFO[AW] type. */
1764 #define MIIM_STATE 0x00000001
1765 #define MIIM_ID 0x00000002
1766 #define MIIM_SUBMENU 0x00000004
1767 #define MIIM_CHECKMARKS 0x00000008
1768 #define MIIM_TYPE 0x00000010
1769 #define MIIM_DATA 0x00000020
1770 #define MIIM_STRING 0x00000040
1771 #define MIIM_BITMAP 0x00000080
1772 #define MIIM_FTYPE 0x00000100
1774 #define HBMMENU_CALLBACK ((HBITMAP) -1)
1775 #define HBMMENU_SYSTEM ((HBITMAP) 1)
1776 #define HBMMENU_MBAR_RESTORE ((HBITMAP) 2)
1777 #define HBMMENU_MBAR_MINIMIZE ((HBITMAP) 3)
1778 #define HBMMENU_MBAR_CLOSE ((HBITMAP) 5)
1779 #define HBMMENU_MBAR_CLOSE_D ((HBITMAP) 6)
1780 #define HBMMENU_MBAR_MINIMIZE_D ((HBITMAP) 7)
1781 #define HBMMENU_POPUP_CLOSE ((HBITMAP) 8)
1782 #define HBMMENU_POPUP_RESTORE ((HBITMAP) 9)
1783 #define HBMMENU_POPUP_MAXIMIZE ((HBITMAP) 10)
1784 #define HBMMENU_POPUP_MINIMIZE ((HBITMAP) 11)
1786 /* WM_H/VSCROLL commands */
1787 #define SB_LINEUP 0
1788 #define SB_LINELEFT 0
1789 #define SB_LINEDOWN 1
1790 #define SB_LINERIGHT 1
1791 #define SB_PAGEUP 2
1792 #define SB_PAGELEFT 2
1793 #define SB_PAGEDOWN 3
1794 #define SB_PAGERIGHT 3
1795 #define SB_THUMBPOSITION 4
1796 #define SB_THUMBTRACK 5
1797 #define SB_TOP 6
1798 #define SB_LEFT 6
1799 #define SB_BOTTOM 7
1800 #define SB_RIGHT 7
1801 #define SB_ENDSCROLL 8
1803 /* Scroll bar selection constants */
1804 #define SB_HORZ 0
1805 #define SB_VERT 1
1806 #define SB_CTL 2
1807 #define SB_BOTH 3
1809 /* EnableScrollBar() flags */
1810 #define ESB_ENABLE_BOTH 0x0000
1811 #define ESB_DISABLE_BOTH 0x0003
1813 #define ESB_DISABLE_LEFT 0x0001
1814 #define ESB_DISABLE_RIGHT 0x0002
1816 #define ESB_DISABLE_UP 0x0001
1817 #define ESB_DISABLE_DOWN 0x0002
1819 #define ESB_DISABLE_LTUP ESB_DISABLE_LEFT
1820 #define ESB_DISABLE_RTDN ESB_DISABLE_RIGHT
1822 /* Static Control Messages */
1823 #define STM_SETICON 0x0170
1824 #define STM_GETICON 0x0171
1825 #define STM_SETIMAGE 0x0172
1826 #define STM_GETIMAGE 0x0173
1827 #define STM_MSGMAX 0x0174
1829 #define STN_CLICKED 0
1830 #define STN_DBLCLK 1
1831 #define STN_ENABLE 2
1832 #define STN_DISABLE 3
1834 /* Scrollbar messages */
1835 #define SBM_SETPOS 0x00e0
1836 #define SBM_GETPOS 0x00e1
1837 #define SBM_SETRANGE 0x00e2
1838 #define SBM_GETRANGE 0x00e3
1839 #define SBM_ENABLE_ARROWS 0x00e4
1840 #define SBM_SETRANGEREDRAW 0x00e6
1841 #define SBM_SETSCROLLINFO 0x00e9
1842 #define SBM_GETSCROLLINFO 0x00ea
1843 #define SBM_GETSCROLLBARINFO 0x00eb
1845 /* Scrollbar info */
1846 typedef struct tagSCROLLINFO
1848 UINT cbSize;
1849 UINT fMask;
1850 INT nMin;
1851 INT nMax;
1852 UINT nPage;
1853 INT nPos;
1854 INT nTrackPos;
1855 } SCROLLINFO, *LPSCROLLINFO;
1857 typedef const SCROLLINFO *LPCSCROLLINFO;
1859 #define CCHILDREN_SCROLLBAR 5
1861 typedef struct tagSCROLLBARINFO
1863 DWORD cbSize; /* Size of SCROLLBARINFO struct */
1864 RECT rcScrollBar; /* Coordinates of the scroll bar */
1865 INT dxyLineButton; /* Height or width */
1866 INT xyThumbTop; /* Position of the top or the left */
1867 INT xyThumbBottom; /* Position of the bottom or the right */
1868 INT reserved;
1869 DWORD rgstate[CCHILDREN_SCROLLBAR+1];
1870 } SCROLLBARINFO, *PSCROLLBARINFO, *LPSCROLLBARINFO;
1872 /* GetScrollInfo() flags */
1873 #define SIF_RANGE 0x0001
1874 #define SIF_PAGE 0x0002
1875 #define SIF_POS 0x0004
1876 #define SIF_DISABLENOSCROLL 0x0008
1877 #define SIF_TRACKPOS 0x0010
1878 #define SIF_ALL (SIF_RANGE | SIF_PAGE | SIF_POS | SIF_TRACKPOS)
1880 /* Listbox messages */
1881 #define LB_ADDSTRING 0x0180
1882 #define LB_INSERTSTRING 0x0181
1883 #define LB_DELETESTRING 0x0182
1884 #define LB_SELITEMRANGEEX 0x0183
1885 #define LB_RESETCONTENT 0x0184
1886 #define LB_SETSEL 0x0185
1887 #define LB_SETCURSEL 0x0186
1888 #define LB_GETSEL 0x0187
1889 #define LB_GETCURSEL 0x0188
1890 #define LB_GETTEXT 0x0189
1891 #define LB_GETTEXTLEN 0x018a
1892 #define LB_GETCOUNT 0x018b
1893 #define LB_SELECTSTRING 0x018c
1894 #define LB_DIR 0x018d
1895 #define LB_GETTOPINDEX 0x018e
1896 #define LB_FINDSTRING 0x018f
1897 #define LB_GETSELCOUNT 0x0190
1898 #define LB_GETSELITEMS 0x0191
1899 #define LB_SETTABSTOPS 0x0192
1900 #define LB_GETHORIZONTALEXTENT 0x0193
1901 #define LB_SETHORIZONTALEXTENT 0x0194
1902 #define LB_SETCOLUMNWIDTH 0x0195
1903 #define LB_ADDFILE 0x0196
1904 #define LB_SETTOPINDEX 0x0197
1905 #define LB_GETITEMRECT 0x0198
1906 #define LB_GETITEMDATA 0x0199
1907 #define LB_SETITEMDATA 0x019a
1908 #define LB_SELITEMRANGE 0x019b
1909 #define LB_SETANCHORINDEX 0x019c
1910 #define LB_GETANCHORINDEX 0x019d
1911 #define LB_SETCARETINDEX 0x019e
1912 #define LB_GETCARETINDEX 0x019f
1913 #define LB_SETITEMHEIGHT 0x01a0
1914 #define LB_GETITEMHEIGHT 0x01a1
1915 #define LB_FINDSTRINGEXACT 0x01a2
1916 #define LB_CARETON 0x01a3
1917 #define LB_CARETOFF 0x01a4
1918 #define LB_SETLOCALE 0x01a5
1919 #define LB_GETLOCALE 0x01a6
1920 #define LB_SETCOUNT 0x01a7
1921 #define LB_INITSTORAGE 0x01a8
1922 #define LB_ITEMFROMPOINT 0x01a9
1923 #define LB_GETLISTBOXINFO 0x01b2
1924 #define LB_MSGMAX 0x01b3
1926 /* Listbox notification codes */
1927 #define LBN_ERRSPACE (-2)
1928 #define LBN_SELCHANGE 1
1929 #define LBN_DBLCLK 2
1930 #define LBN_SELCANCEL 3
1931 #define LBN_SETFOCUS 4
1932 #define LBN_KILLFOCUS 5
1934 /* Listbox message return values */
1935 #define LB_OKAY 0
1936 #define LB_ERR (-1)
1937 #define LB_ERRSPACE (-2)
1939 #define LB_CTLCODE __MSABI_LONG(0)
1941 /* Combo box messages */
1942 #define CB_GETEDITSEL 0x0140
1943 #define CB_LIMITTEXT 0x0141
1944 #define CB_SETEDITSEL 0x0142
1945 #define CB_ADDSTRING 0x0143
1946 #define CB_DELETESTRING 0x0144
1947 #define CB_DIR 0x0145
1948 #define CB_GETCOUNT 0x0146
1949 #define CB_GETCURSEL 0x0147
1950 #define CB_GETLBTEXT 0x0148
1951 #define CB_GETLBTEXTLEN 0x0149
1952 #define CB_INSERTSTRING 0x014a
1953 #define CB_RESETCONTENT 0x014b
1954 #define CB_FINDSTRING 0x014c
1955 #define CB_SELECTSTRING 0x014d
1956 #define CB_SETCURSEL 0x014e
1957 #define CB_SHOWDROPDOWN 0x014f
1958 #define CB_GETITEMDATA 0x0150
1959 #define CB_SETITEMDATA 0x0151
1960 #define CB_GETDROPPEDCONTROLRECT 0x0152
1961 #define CB_SETITEMHEIGHT 0x0153
1962 #define CB_GETITEMHEIGHT 0x0154
1963 #define CB_SETEXTENDEDUI 0x0155
1964 #define CB_GETEXTENDEDUI 0x0156
1965 #define CB_GETDROPPEDSTATE 0x0157
1966 #define CB_FINDSTRINGEXACT 0x0158
1967 #define CB_SETLOCALE 0x0159
1968 #define CB_GETLOCALE 0x015a
1969 #define CB_GETTOPINDEX 0x015b
1970 #define CB_SETTOPINDEX 0x015c
1971 #define CB_GETHORIZONTALEXTENT 0x015d
1972 #define CB_SETHORIZONTALEXTENT 0x015e
1973 #define CB_GETDROPPEDWIDTH 0x015f
1974 #define CB_SETDROPPEDWIDTH 0x0160
1975 #define CB_INITSTORAGE 0x0161
1976 #define CB_MULTIPLEADDSTRING 0x0163
1977 #define CB_GETCOMBOBOXINFO 0x0164
1978 #define CB_MSGMAX 0x0165
1980 /* Combo box notification codes */
1981 #define CBN_ERRSPACE (-1)
1982 #define CBN_SELCHANGE 1
1983 #define CBN_DBLCLK 2
1984 #define CBN_SETFOCUS 3
1985 #define CBN_KILLFOCUS 4
1986 #define CBN_EDITCHANGE 5
1987 #define CBN_EDITUPDATE 6
1988 #define CBN_DROPDOWN 7
1989 #define CBN_CLOSEUP 8
1990 #define CBN_SELENDOK 9
1991 #define CBN_SELENDCANCEL 10
1993 /* Combo box message return values */
1994 #define CB_OKAY 0
1995 #define CB_ERR (-1)
1996 #define CB_ERRSPACE (-2)
1998 #define MB_OK 0x00000000
1999 #define MB_OKCANCEL 0x00000001
2000 #define MB_ABORTRETRYIGNORE 0x00000002
2001 #define MB_YESNOCANCEL 0x00000003
2002 #define MB_YESNO 0x00000004
2003 #define MB_RETRYCANCEL 0x00000005
2004 #define MB_CANCELTRYCONTINUE 0x00000006
2005 #define MB_TYPEMASK 0x0000000F
2007 #define MB_ICONHAND 0x00000010
2008 #define MB_ICONQUESTION 0x00000020
2009 #define MB_ICONEXCLAMATION 0x00000030
2010 #define MB_ICONASTERISK 0x00000040
2011 #define MB_USERICON 0x00000080
2012 #define MB_ICONMASK 0x000000F0
2014 #define MB_ICONINFORMATION MB_ICONASTERISK
2015 #define MB_ICONSTOP MB_ICONHAND
2016 #define MB_ICONWARNING MB_ICONEXCLAMATION
2017 #define MB_ICONERROR MB_ICONHAND
2019 #define MB_DEFBUTTON1 0x00000000
2020 #define MB_DEFBUTTON2 0x00000100
2021 #define MB_DEFBUTTON3 0x00000200
2022 #define MB_DEFBUTTON4 0x00000300
2023 #define MB_DEFMASK 0x00000F00
2025 #define MB_APPLMODAL 0x00000000
2026 #define MB_SYSTEMMODAL 0x00001000
2027 #define MB_TASKMODAL 0x00002000
2028 #define MB_MODEMASK 0x00003000
2030 #define MB_HELP 0x00004000
2031 #define MB_NOFOCUS 0x00008000
2032 #define MB_MISCMASK 0x0000C000
2034 #define MB_SETFOREGROUND 0x00010000
2035 #define MB_DEFAULT_DESKTOP_ONLY 0x00020000
2036 #define MB_SERVICE_NOTIFICATION 0x00040000
2037 #define MB_TOPMOST 0x00040000
2038 #define MB_RIGHT 0x00080000
2039 #define MB_RTLREADING 0x00100000
2041 #define HELPINFO_WINDOW 0x0001
2042 #define HELPINFO_MENUITEM 0x0002
2044 /* Structure pointed to by lParam of WM_HELP */
2045 typedef struct tagHELPINFO
2047 UINT cbSize; /* Size in bytes of this struct */
2048 INT iContextType; /* Either HELPINFO_WINDOW or HELPINFO_MENUITEM */
2049 INT iCtrlId; /* Control Id or a Menu item Id. */
2050 HANDLE hItemHandle; /* hWnd of control or hMenu. */
2051 DWORD_PTR dwContextId; /* Context Id associated with this item */
2052 POINT MousePos; /* Mouse Position in screen co-ordinates */
2053 } HELPINFO,*LPHELPINFO;
2055 typedef void (CALLBACK *MSGBOXCALLBACK)(LPHELPINFO lpHelpInfo);
2057 typedef struct tagMSGBOXPARAMSA
2059 UINT cbSize;
2060 HWND hwndOwner;
2061 HINSTANCE hInstance;
2062 LPCSTR lpszText;
2063 LPCSTR lpszCaption;
2064 DWORD dwStyle;
2065 LPCSTR lpszIcon;
2066 DWORD_PTR dwContextHelpId;
2067 MSGBOXCALLBACK lpfnMsgBoxCallback;
2068 DWORD dwLanguageId;
2069 } MSGBOXPARAMSA, *PMSGBOXPARAMSA, *LPMSGBOXPARAMSA;
2071 typedef struct tagMSGBOXPARAMSW
2073 UINT cbSize;
2074 HWND hwndOwner;
2075 HINSTANCE hInstance;
2076 LPCWSTR lpszText;
2077 LPCWSTR lpszCaption;
2078 DWORD dwStyle;
2079 LPCWSTR lpszIcon;
2080 DWORD_PTR dwContextHelpId;
2081 MSGBOXCALLBACK lpfnMsgBoxCallback;
2082 DWORD dwLanguageId;
2083 } MSGBOXPARAMSW, *PMSGBOXPARAMSW, *LPMSGBOXPARAMSW;
2085 DECL_WINELIB_TYPE_AW(MSGBOXPARAMS)
2086 DECL_WINELIB_TYPE_AW(PMSGBOXPARAMS)
2087 DECL_WINELIB_TYPE_AW(LPMSGBOXPARAMS)
2089 #define MONITOR_DEFAULTTONULL 0x00000000
2090 #define MONITOR_DEFAULTTOPRIMARY 0x00000001
2091 #define MONITOR_DEFAULTTONEAREST 0x00000002
2093 #define MONITORINFOF_PRIMARY 0x00000001
2095 #ifndef CCHDEVICENAME
2096 #define CCHDEVICENAME 32
2097 #endif
2099 typedef struct tagMONITORINFO
2101 DWORD cbSize;
2102 RECT rcMonitor;
2103 RECT rcWork;
2104 DWORD dwFlags;
2105 } MONITORINFO, *LPMONITORINFO;
2107 typedef struct tagMONITORINFOEXA
2108 { /* the 4 first entries are the same as MONITORINFO */
2109 DWORD cbSize;
2110 RECT rcMonitor;
2111 RECT rcWork;
2112 DWORD dwFlags;
2113 CHAR szDevice[CCHDEVICENAME];
2114 } MONITORINFOEXA, *LPMONITORINFOEXA;
2116 typedef struct tagMONITORINFOEXW
2117 { /* the 4 first entries are the same as MONITORINFO */
2118 DWORD cbSize;
2119 RECT rcMonitor;
2120 RECT rcWork;
2121 DWORD dwFlags;
2122 WCHAR szDevice[CCHDEVICENAME];
2123 } MONITORINFOEXW, *LPMONITORINFOEXW;
2125 DECL_WINELIB_TYPE_AW(MONITORINFOEX)
2126 DECL_WINELIB_TYPE_AW(LPMONITORINFOEX)
2128 typedef BOOL (CALLBACK *MONITORENUMPROC)(HMONITOR,HDC,LPRECT,LPARAM);
2130 #include <pshpack2.h>
2132 typedef struct tagDLGTEMPLATE
2134 DWORD style;
2135 DWORD dwExtendedStyle;
2136 WORD cdit;
2137 short x;
2138 short y;
2139 short cx;
2140 short cy;
2141 } DLGTEMPLATE;
2143 typedef DLGTEMPLATE *LPDLGTEMPLATEA;
2144 typedef DLGTEMPLATE *LPDLGTEMPLATEW;
2145 DECL_WINELIB_TYPE_AW(LPDLGTEMPLATE)
2146 typedef const DLGTEMPLATE *LPCDLGTEMPLATEA;
2147 typedef const DLGTEMPLATE *LPCDLGTEMPLATEW;
2148 DECL_WINELIB_TYPE_AW(LPCDLGTEMPLATE)
2150 typedef struct tagDLGITEMTEMPLATE
2152 DWORD style;
2153 DWORD dwExtendedStyle;
2154 short x;
2155 short y;
2156 short cx;
2157 short cy;
2158 WORD id;
2159 } DLGITEMTEMPLATE;
2161 typedef DLGITEMTEMPLATE *PDLGITEMTEMPLATEA;
2162 typedef DLGITEMTEMPLATE *PDLGITEMTEMPLATEW;
2163 DECL_WINELIB_TYPE_AW(PDLGITEMTEMPLATE)
2164 typedef DLGITEMTEMPLATE *LPDLGITEMTEMPLATEA;
2165 typedef DLGITEMTEMPLATE *LPDLGITEMTEMPLATEW;
2166 DECL_WINELIB_TYPE_AW(LPDLGITEMTEMPLATE)
2168 #include <poppack.h>
2170 /* CBT hook values */
2171 #define HCBT_MOVESIZE 0
2172 #define HCBT_MINMAX 1
2173 #define HCBT_QS 2
2174 #define HCBT_CREATEWND 3
2175 #define HCBT_DESTROYWND 4
2176 #define HCBT_ACTIVATE 5
2177 #define HCBT_CLICKSKIPPED 6
2178 #define HCBT_KEYSKIPPED 7
2179 #define HCBT_SYSCOMMAND 8
2180 #define HCBT_SETFOCUS 9
2182 /* CBT hook structures */
2184 typedef struct tagCBT_CREATEWNDA
2186 CREATESTRUCTA *lpcs;
2187 HWND hwndInsertAfter;
2188 } CBT_CREATEWNDA, *LPCBT_CREATEWNDA;
2190 typedef struct tagCBT_CREATEWNDW
2192 CREATESTRUCTW *lpcs;
2193 HWND hwndInsertAfter;
2194 } CBT_CREATEWNDW, *LPCBT_CREATEWNDW;
2196 DECL_WINELIB_TYPE_AW(CBT_CREATEWND)
2197 DECL_WINELIB_TYPE_AW(LPCBT_CREATEWND)
2199 typedef struct tagCBTACTIVATESTRUCT
2201 BOOL fMouse;
2202 HWND hWndActive;
2203 } CBTACTIVATESTRUCT, *LPCBTACTIVATESTRUCT;
2206 typedef struct tagDROPSTRUCT
2208 HWND hwndSource;
2209 HWND hwndSink;
2210 DWORD wFmt;
2211 ULONG_PTR dwData;
2212 POINT ptDrop;
2213 DWORD dwControlData;
2214 } DROPSTRUCT, *PDROPSTRUCT, *LPDROPSTRUCT;
2216 #define DOF_EXECUTABLE 0x8001
2217 #define DOF_DOCUMENT 0x8002
2218 #define DOF_DIRECTORY 0x8003
2219 #define DOF_MULTIPLE 0x8004
2220 #define DOF_PROGMAN 0x0001
2221 #define DOF_SHELLDATA 0x0002
2223 /* modifiers for RegisterHotKey */
2224 #define MOD_ALT 0x0001
2225 #define MOD_CONTROL 0x0002
2226 #define MOD_SHIFT 0x0004
2227 #define MOD_WIN 0x0008
2229 /* ids for RegisterHotKey */
2230 #define IDHOT_SNAPWINDOW (-1) /* SHIFT-PRINTSCRN */
2231 #define IDHOT_SNAPDESKTOP (-2) /* PRINTSCRN */
2233 /* keybd_event flags */
2234 #define KEYEVENTF_EXTENDEDKEY 0x0001
2235 #define KEYEVENTF_KEYUP 0x0002
2236 #define KEYEVENTF_UNICODE 0x0004
2237 #define KEYEVENTF_SCANCODE 0x0008
2239 /* mouse_event flags */
2240 #define MOUSEEVENTF_MOVE 0x0001
2241 #define MOUSEEVENTF_LEFTDOWN 0x0002
2242 #define MOUSEEVENTF_LEFTUP 0x0004
2243 #define MOUSEEVENTF_RIGHTDOWN 0x0008
2244 #define MOUSEEVENTF_RIGHTUP 0x0010
2245 #define MOUSEEVENTF_MIDDLEDOWN 0x0020
2246 #define MOUSEEVENTF_MIDDLEUP 0x0040
2247 #define MOUSEEVENTF_XDOWN 0x0080
2248 #define MOUSEEVENTF_XUP 0x0100
2249 #define MOUSEEVENTF_WHEEL 0x0800
2250 #define MOUSEEVENTF_HWHEEL 0x1000
2251 #define MOUSEEVENTF_MOVE_NOCOALESCE 0x2000
2252 #define MOUSEEVENTF_VIRTUALDESK 0x4000
2253 #define MOUSEEVENTF_ABSOLUTE 0x8000
2255 /* ExitWindows() flags */
2256 #define EW_RESTARTWINDOWS 0x0042
2257 #define EW_REBOOTSYSTEM 0x0043
2258 #define EW_EXITANDEXECAPP 0x0044
2260 /* ExitWindowsEx() flags */
2261 #define EWX_LOGOFF 0
2262 #define EWX_SHUTDOWN 1
2263 #define EWX_REBOOT 2
2264 #define EWX_FORCE 4
2265 #define EWX_POWEROFF 8
2266 #define EWX_FORCEIFHUNG 16
2268 /* SetLastErrorEx types */
2269 #define SLE_ERROR 0x00000001
2270 #define SLE_MINORERROR 0x00000002
2271 #define SLE_WARNING 0x00000003
2273 /* Predefined resources */
2274 #define IDI_APPLICATION MAKEINTRESOURCE(32512)
2275 #define IDI_HAND MAKEINTRESOURCE(32513)
2276 #define IDI_QUESTION MAKEINTRESOURCE(32514)
2277 #define IDI_EXCLAMATION MAKEINTRESOURCE(32515)
2278 #define IDI_ASTERISK MAKEINTRESOURCE(32516)
2279 #define IDI_WINLOGO MAKEINTRESOURCE(32517)
2281 #define IDI_WARNING IDI_EXCLAMATION
2282 #define IDI_ERROR IDI_HAND
2283 #define IDI_INFORMATION IDI_ASTERISK
2285 #define IDC_ARROW MAKEINTRESOURCE(32512)
2286 #define IDC_IBEAM MAKEINTRESOURCE(32513)
2287 #define IDC_WAIT MAKEINTRESOURCE(32514)
2288 #define IDC_CROSS MAKEINTRESOURCE(32515)
2289 #define IDC_UPARROW MAKEINTRESOURCE(32516)
2290 #define IDC_PEN MAKEINTRESOURCE(32631)
2291 #define IDC_SIZE MAKEINTRESOURCE(32640)
2292 #define IDC_ICON MAKEINTRESOURCE(32641)
2293 #define IDC_SIZENWSE MAKEINTRESOURCE(32642)
2294 #define IDC_SIZENESW MAKEINTRESOURCE(32643)
2295 #define IDC_SIZEWE MAKEINTRESOURCE(32644)
2296 #define IDC_SIZENS MAKEINTRESOURCE(32645)
2297 #define IDC_SIZEALL MAKEINTRESOURCE(32646)
2298 #define IDC_NO MAKEINTRESOURCE(32648)
2299 #define IDC_HAND MAKEINTRESOURCE(32649)
2300 #define IDC_APPSTARTING MAKEINTRESOURCE(32650)
2301 #define IDC_HELP MAKEINTRESOURCE(32651)
2303 #define MNC_IGNORE 0
2304 #define MNC_CLOSE 1
2305 #define MNC_EXECUTE 2
2306 #define MNC_SELECT 3
2308 /* SystemParametersInfo */
2309 #define SPI_GETBEEP 1
2310 #define SPI_SETBEEP 2
2311 #define SPI_GETMOUSE 3
2312 #define SPI_SETMOUSE 4
2313 #define SPI_GETBORDER 5
2314 #define SPI_SETBORDER 6
2315 #define SPI_GETKEYBOARDSPEED 10
2316 #define SPI_SETKEYBOARDSPEED 11
2317 #define SPI_LANGDRIVER 12
2318 #define SPI_ICONHORIZONTALSPACING 13
2319 #define SPI_GETSCREENSAVETIMEOUT 14
2320 #define SPI_SETSCREENSAVETIMEOUT 15
2321 #define SPI_GETSCREENSAVEACTIVE 16
2322 #define SPI_SETSCREENSAVEACTIVE 17
2323 #define SPI_GETGRIDGRANULARITY 18
2324 #define SPI_SETGRIDGRANULARITY 19
2325 #define SPI_SETDESKWALLPAPER 20
2326 #define SPI_SETDESKPATTERN 21
2327 #define SPI_GETKEYBOARDDELAY 22
2328 #define SPI_SETKEYBOARDDELAY 23
2329 #define SPI_ICONVERTICALSPACING 24
2330 #define SPI_GETICONTITLEWRAP 25
2331 #define SPI_SETICONTITLEWRAP 26
2332 #define SPI_GETMENUDROPALIGNMENT 27
2333 #define SPI_SETMENUDROPALIGNMENT 28
2334 #define SPI_SETDOUBLECLKWIDTH 29
2335 #define SPI_SETDOUBLECLKHEIGHT 30
2336 #define SPI_GETICONTITLELOGFONT 31
2337 #define SPI_SETDOUBLECLICKTIME 32
2338 #define SPI_SETMOUSEBUTTONSWAP 33
2339 #define SPI_SETICONTITLELOGFONT 34
2340 #define SPI_GETFASTTASKSWITCH 35
2341 #define SPI_SETFASTTASKSWITCH 36
2342 #define SPI_SETDRAGFULLWINDOWS 37
2343 #define SPI_GETDRAGFULLWINDOWS 38
2344 #define SPI_GETNONCLIENTMETRICS 41
2345 #define SPI_SETNONCLIENTMETRICS 42
2346 #define SPI_GETMINIMIZEDMETRICS 43
2347 #define SPI_SETMINIMIZEDMETRICS 44
2348 #define SPI_GETICONMETRICS 45
2349 #define SPI_SETICONMETRICS 46
2350 #define SPI_SETWORKAREA 47
2351 #define SPI_GETWORKAREA 48
2352 #define SPI_SETPENWINDOWS 49
2353 #define SPI_GETFILTERKEYS 50
2354 #define SPI_SETFILTERKEYS 51
2355 #define SPI_GETTOGGLEKEYS 52
2356 #define SPI_SETTOGGLEKEYS 53
2357 #define SPI_GETMOUSEKEYS 54
2358 #define SPI_SETMOUSEKEYS 55
2359 #define SPI_GETSHOWSOUNDS 56
2360 #define SPI_SETSHOWSOUNDS 57
2361 #define SPI_GETSTICKYKEYS 58
2362 #define SPI_SETSTICKYKEYS 59
2363 #define SPI_GETACCESSTIMEOUT 60
2364 #define SPI_SETACCESSTIMEOUT 61
2365 #define SPI_GETSERIALKEYS 62
2366 #define SPI_SETSERIALKEYS 63
2367 #define SPI_GETSOUNDSENTRY 64
2368 #define SPI_SETSOUNDSENTRY 65
2369 #define SPI_GETHIGHCONTRAST 66
2370 #define SPI_SETHIGHCONTRAST 67
2371 #define SPI_GETKEYBOARDPREF 68
2372 #define SPI_SETKEYBOARDPREF 69
2373 #define SPI_GETSCREENREADER 70
2374 #define SPI_SETSCREENREADER 71
2375 #define SPI_GETANIMATION 72
2376 #define SPI_SETANIMATION 73
2377 #define SPI_GETFONTSMOOTHING 74
2378 #define SPI_SETFONTSMOOTHING 75
2379 #define SPI_SETDRAGWIDTH 76
2380 #define SPI_SETDRAGHEIGHT 77
2381 #define SPI_SETHANDHELD 78
2382 #define SPI_GETLOWPOWERTIMEOUT 79
2383 #define SPI_GETPOWEROFFTIMEOUT 80
2384 #define SPI_SETLOWPOWERTIMEOUT 81
2385 #define SPI_SETPOWEROFFTIMEOUT 82
2386 #define SPI_GETLOWPOWERACTIVE 83
2387 #define SPI_GETPOWEROFFACTIVE 84
2388 #define SPI_SETLOWPOWERACTIVE 85
2389 #define SPI_SETPOWEROFFACTIVE 86
2390 #define SPI_SETCURSORS 87
2391 #define SPI_SETICONS 88
2392 #define SPI_GETDEFAULTINPUTLANG 89
2393 #define SPI_SETDEFAULTINPUTLANG 90
2394 #define SPI_SETLANGTOGGLE 91
2395 #define SPI_GETWINDOWSEXTENSION 92
2396 #define SPI_SETMOUSETRAILS 93
2397 #define SPI_GETMOUSETRAILS 94
2398 #define SPI_GETSNAPTODEFBUTTON 95
2399 #define SPI_SETSNAPTODEFBUTTON 96
2400 #define SPI_SETSCREENSAVERRUNNING 97
2401 #define SPI_SCREENSAVERRUNNING SPI_SETSCREENSAVERRUNNING
2402 #define SPI_GETMOUSEHOVERWIDTH 98
2403 #define SPI_SETMOUSEHOVERWIDTH 99
2404 #define SPI_GETMOUSEHOVERHEIGHT 100
2405 #define SPI_SETMOUSEHOVERHEIGHT 101
2406 #define SPI_GETMOUSEHOVERTIME 102
2407 #define SPI_SETMOUSEHOVERTIME 103
2408 #define SPI_GETWHEELSCROLLLINES 104
2409 #define SPI_SETWHEELSCROLLLINES 105
2410 #define SPI_GETMENUSHOWDELAY 106
2411 #define SPI_SETMENUSHOWDELAY 107
2412 #define SPI_GETWHEELSCROLLCHARS 108
2413 #define SPI_SETWHEELSCROLLCHARS 109
2414 #define SPI_GETSHOWIMEUI 110
2415 #define SPI_SETSHOWIMEUI 111
2416 #define SPI_GETMOUSESPEED 112
2417 #define SPI_SETMOUSESPEED 113
2418 #define SPI_GETSCREENSAVERRUNNING 114
2419 #define SPI_GETDESKWALLPAPER 115
2420 #define SPI_GETAUDIODESCRIPTION 116
2421 #define SPI_SETAUDIODESCRIPTION 117
2423 #define SPI_GETACTIVEWINDOWTRACKING 0x1000
2424 #define SPI_SETACTIVEWINDOWTRACKING 0x1001
2425 #define SPI_GETMENUANIMATION 0x1002
2426 #define SPI_SETMENUANIMATION 0x1003
2427 #define SPI_GETCOMBOBOXANIMATION 0x1004
2428 #define SPI_SETCOMBOBOXANIMATION 0x1005
2429 #define SPI_GETLISTBOXSMOOTHSCROLLING 0x1006
2430 #define SPI_SETLISTBOXSMOOTHSCROLLING 0x1007
2431 #define SPI_GETGRADIENTCAPTIONS 0x1008
2432 #define SPI_SETGRADIENTCAPTIONS 0x1009
2433 #define SPI_GETKEYBOARDCUES 0x100A
2434 #define SPI_SETKEYBOARDCUES 0x100B
2435 #define SPI_GETMENUUNDERLINES SPI_GETKEYBOARDCUES
2436 #define SPI_SETMENUUNDERLINES SPI_SETKEYBOARDCUES
2437 #define SPI_GETACTIVEWNDTRKZORDER 0x100C
2438 #define SPI_SETACTIVEWNDTRKZORDER 0x100D
2439 #define SPI_GETHOTTRACKING 0x100E
2440 #define SPI_SETHOTTRACKING 0x100F
2441 #define SPI_GETMENUFADE 0x1012
2442 #define SPI_SETMENUFADE 0x1013
2443 #define SPI_GETSELECTIONFADE 0x1014
2444 #define SPI_SETSELECTIONFADE 0x1015
2445 #define SPI_GETTOOLTIPANIMATION 0x1016
2446 #define SPI_SETTOOLTIPANIMATION 0x1017
2447 #define SPI_GETTOOLTIPFADE 0x1018
2448 #define SPI_SETTOOLTIPFADE 0x1019
2449 #define SPI_GETCURSORSHADOW 0x101A
2450 #define SPI_SETCURSORSHADOW 0x101B
2451 #define SPI_GETMOUSESONAR 0x101C
2452 #define SPI_SETMOUSESONAR 0x101D
2453 #define SPI_GETMOUSECLICKLOCK 0x101E
2454 #define SPI_SETMOUSECLICKLOCK 0x101F
2455 #define SPI_GETMOUSEVANISH 0x1020
2456 #define SPI_SETMOUSEVANISH 0x1021
2457 #define SPI_GETFLATMENU 0x1022
2458 #define SPI_SETFLATMENU 0x1023
2459 #define SPI_GETDROPSHADOW 0x1024
2460 #define SPI_SETDROPSHADOW 0x1025
2461 #define SPI_GETBLOCKSENDINPUTRESETS 0x1026
2462 #define SPI_SETBLOCKSENDINPUTRESETS 0x1027
2463 #define SPI_GETUIEFFECTS 0x103E
2464 #define SPI_SETUIEFFECTS 0x103F
2465 #define SPI_GETDISABLEOVERLAPPEDCONTENT 0x1040
2466 #define SPI_SETDISABLEOVERLAPPEDCONTENT 0x1041
2467 #define SPI_GETCLIENTAREAANIMATION 0x1042
2468 #define SPI_SETCLIENTAREAANIMATION 0x1043
2469 #define SPI_GETCLEARTYPE 0x1048
2470 #define SPI_SETCLEARTYPE 0x1049
2471 #define SPI_GETSPEECHRECOGNITION 0x104A
2472 #define SPI_SETSPEECHRECOGNITION 0x104B
2473 #define SPI_GETFOREGROUNDLOCKTIMEOUT 0x2000
2474 #define SPI_SETFOREGROUNDLOCKTIMEOUT 0x2001
2475 #define SPI_GETACTIVEWNDTRKTIMEOUT 0x2002
2476 #define SPI_SETACTIVEWNDTRKTIMEOUT 0x2003
2477 #define SPI_GETFOREGROUNDFLASHCOUNT 0x2004
2478 #define SPI_SETFOREGROUNDFLASHCOUNT 0x2005
2479 #define SPI_GETCARETWIDTH 0x2006
2480 #define SPI_SETCARETWIDTH 0x2007
2481 #define SPI_GETMOUSECLICKLOCKTIME 0x2008
2482 #define SPI_SETMOUSECLICKLOCKTIME 0x2009
2483 #define SPI_GETFONTSMOOTHINGTYPE 0x200A
2484 #define SPI_SETFONTSMOOTHINGTYPE 0x200B
2485 #define SPI_GETFONTSMOOTHINGCONTRAST 0x200C
2486 #define SPI_SETFONTSMOOTHINGCONTRAST 0x200D
2487 #define SPI_GETFOCUSBORDERWIDTH 0x200E
2488 #define SPI_SETFOCUSBORDERWIDTH 0x200F
2489 #define SPI_GETFOCUSBORDERHEIGHT 0x2010
2490 #define SPI_SETFOCUSBORDERHEIGHT 0x2011
2491 #define SPI_GETFONTSMOOTHINGORIENTATION 0x2012
2492 #define SPI_SETFONTSMOOTHINGORIENTATION 0x2013
2493 #define SPI_GETCONTACTVISUALIZATION 0x2018
2494 #define SPI_SETCONTACTVISUALIZATION 0x2019
2495 #define SPI_GETGESTUREVISUALIZATION 0x201A
2496 #define SPI_SETGESTUREVISUALIZATION 0x201B
2497 #define SPI_GETPENVISUALIZATION 0x201E
2498 #define SPI_SETPENVISUALIZATION 0x201F
2499 #define SPI_GETPENARBITRATIONTYPE 0x2020
2500 #define SPI_SETPENARBITRATIONTYPE 0x2021
2501 #define SPI_GETCARETTIMEOUT 0x2022
2502 #define SPI_SETCARETTIMEOUT 0x2023
2503 #define SPI_GETHANDEDNESS 0x2024
2504 #define SPI_SETHANDEDNESS 0x2025
2506 #define FE_FONTSMOOTHINGSTANDARD 0x0001
2507 #define FE_FONTSMOOTHINGCLEARTYPE 0x0002
2508 #define FE_FONTSMOOTHINGDOCKING 0x8000
2510 #define FE_FONTSMOOTHINGORIENTATIONBGR 0x0000
2511 #define FE_FONTSMOOTHINGORIENTATIONRGB 0x0001
2513 #define CONTACTVISUALIZATION_OFF 0x0000
2514 #define CONTACTVISUALIZATION_ON 0x0001
2515 #define CONTACTVISUALIZATION_PRESENTATIONMODE 0x0002
2517 #define GESTUREVISUALIZATION_OFF 0x0000
2518 #define GESTUREVISUALIZATION_ON 0x001F
2519 #define GESTUREVISUALIZATION_TAP 0x0001
2520 #define GESTUREVISUALIZATION_DOUBLETAP 0x0002
2521 #define GESTUREVISUALIZATION_PRESSANDTAP 0x0004
2522 #define GESTUREVISUALIZATION_PRESSANDHOLD 0x0008
2523 #define GESTUREVISUALIZATION_RIGHTTAP 0x0010
2525 #define PENVISUALIZATION_ON 0x0023
2526 #define PENVISUALIZATION_OFF 0x0000
2527 #define PENVISUALIZATION_TAP 0x0001
2528 #define PENVISUALIZATION_DOUBLETAP 0x0002
2529 #define PENVISUALIZATION_CURSOR 0x0020
2531 #define PENARBITRATIONTYPE_NONE 0x0000
2532 #define PENARBITRATIONTYPE_WIN8 0x0001
2533 #define PENARBITRATIONTYPE_FIS 0x0002
2534 #define PENARBITRATIONTYPE_SPT 0x0003
2535 #define PENARBITRATIONTYPE_MAX 0x0004
2537 #define SETWALLPAPER_DEFAULT ((LPWSTR)-1)
2539 /* SystemParametersInfo flags */
2541 #define SPIF_UPDATEINIFILE 1
2542 #define SPIF_SENDWININICHANGE 2
2543 #define SPIF_SENDCHANGE SPIF_SENDWININICHANGE
2545 #if defined(_WINGDI_) && !defined(NOGDI)
2546 typedef struct tagNONCLIENTMETRICSA {
2547 UINT cbSize;
2548 INT iBorderWidth;
2549 INT iScrollWidth;
2550 INT iScrollHeight;
2551 INT iCaptionWidth;
2552 INT iCaptionHeight;
2553 LOGFONTA lfCaptionFont;
2554 INT iSmCaptionWidth;
2555 INT iSmCaptionHeight;
2556 LOGFONTA lfSmCaptionFont;
2557 INT iMenuWidth;
2558 INT iMenuHeight;
2559 LOGFONTA lfMenuFont;
2560 LOGFONTA lfStatusFont;
2561 LOGFONTA lfMessageFont;
2562 INT iPaddedBorderWidth;
2563 } NONCLIENTMETRICSA, *PNONCLIENTMETRICSA, *LPNONCLIENTMETRICSA;
2565 typedef struct tagNONCLIENTMETRICSW {
2566 UINT cbSize;
2567 INT iBorderWidth;
2568 INT iScrollWidth;
2569 INT iScrollHeight;
2570 INT iCaptionWidth;
2571 INT iCaptionHeight;
2572 LOGFONTW lfCaptionFont;
2573 INT iSmCaptionWidth;
2574 INT iSmCaptionHeight;
2575 LOGFONTW lfSmCaptionFont;
2576 INT iMenuWidth;
2577 INT iMenuHeight;
2578 LOGFONTW lfMenuFont;
2579 LOGFONTW lfStatusFont;
2580 LOGFONTW lfMessageFont;
2581 INT iPaddedBorderWidth;
2582 } NONCLIENTMETRICSW, *PNONCLIENTMETRICSW, *LPNONCLIENTMETRICSW;
2584 DECL_WINELIB_TYPE_AW(NONCLIENTMETRICS)
2585 DECL_WINELIB_TYPE_AW(PNONCLIENTMETRICS)
2586 DECL_WINELIB_TYPE_AW(LPNONCLIENTMETRICS)
2588 typedef struct tagICONMETRICSA {
2589 UINT cbSize;
2590 int iHorzSpacing;
2591 int iVertSpacing;
2592 int iTitleWrap;
2593 LOGFONTA lfFont;
2594 } ICONMETRICSA, *PICONMETRICSA, *LPICONMETRICSA;
2596 typedef struct tagICONMETRICSW {
2597 UINT cbSize;
2598 int iHorzSpacing;
2599 int iVertSpacing;
2600 int iTitleWrap;
2601 LOGFONTW lfFont;
2602 } ICONMETRICSW, *PICONMETRICSW, *LPICONMETRICSW;
2604 DECL_WINELIB_TYPE_AW(ICONMETRICS)
2605 DECL_WINELIB_TYPE_AW(PICONMETRICS)
2606 DECL_WINELIB_TYPE_AW(LPICONMETRICS)
2608 typedef struct tagUPDATELAYEREDWINDOWINFO
2610 DWORD cbSize;
2611 HDC hdcDst;
2612 POINT const* pptDst;
2613 SIZE const* psize;
2614 HDC hdcSrc;
2615 POINT const* pptSrc;
2616 COLORREF crKey;
2617 BLENDFUNCTION const* pblend;
2618 DWORD dwFlags;
2619 RECT const* prcDirty;
2620 } UPDATELAYEREDWINDOWINFO, *PUPDATELAYEREDWINDOWINFO;
2622 #endif /* defined(_WINGDI_) && !defined(NOGDI) */
2624 #define ARW_BOTTOMLEFT __MSABI_LONG(0x0000)
2625 #define ARW_BOTTOMRIGHT __MSABI_LONG(0x0001)
2626 #define ARW_TOPLEFT __MSABI_LONG(0x0002)
2627 #define ARW_TOPRIGHT __MSABI_LONG(0x0003)
2628 #define ARW_STARTMASK __MSABI_LONG(0x0003)
2629 #define ARW_STARTRIGHT __MSABI_LONG(0x0001)
2630 #define ARW_STARTTOP __MSABI_LONG(0x0002)
2632 #define ARW_LEFT __MSABI_LONG(0x0000)
2633 #define ARW_RIGHT __MSABI_LONG(0x0000)
2634 #define ARW_UP __MSABI_LONG(0x0004)
2635 #define ARW_DOWN __MSABI_LONG(0x0004)
2636 #define ARW_HIDE __MSABI_LONG(0x0008)
2638 typedef struct tagMINIMIZEDMETRICS {
2639 UINT cbSize;
2640 int iWidth;
2641 int iHorzGap;
2642 int iVertGap;
2643 int iArrange;
2644 } MINIMIZEDMETRICS, *PMINIMIZEDMETRICS, *LPMINIMIZEDMETRICS;
2646 /* Window affinity */
2647 #define WDA_NONE 0x0
2648 #define WDA_MONITOR 0x1
2650 /* Window scrolling */
2651 #define SW_SCROLLCHILDREN 0x0001
2652 #define SW_INVALIDATE 0x0002
2653 #define SW_ERASE 0x0004
2655 /* CreateWindow() coordinates */
2656 #define CW_USEDEFAULT ((INT)0x80000000)
2658 /* ChildWindowFromPointEx Flags */
2659 #define CWP_ALL 0x0000
2660 #define CWP_SKIPINVISIBLE 0x0001
2661 #define CWP_SKIPDISABLED 0x0002
2662 #define CWP_SKIPTRANSPARENT 0x0004
2664 /* PeekMessage() options */
2665 #define PM_NOREMOVE 0x0000
2666 #define PM_REMOVE 0x0001
2667 #define PM_NOYIELD 0x0002
2668 #define PM_QS_INPUT (QS_INPUT << 16)
2669 #define PM_QS_POSTMESSAGE ((QS_POSTMESSAGE | QS_HOTKEY | QS_TIMER) << 16)
2670 #define PM_QS_PAINT (QS_PAINT << 16)
2671 #define PM_QS_SENDMESSAGE (QS_SENDMESSAGE << 16)
2673 /* SetTimer() limits */
2674 #define USER_TIMER_MINIMUM 0x0000000A
2675 #define USER_TIMER_MAXIMUM 0x7FFFFFFF
2677 /* SetCoalescableTimer() tolerances */
2678 #define TIMERV_DEFAULT_COALESCING 0
2679 #define TIMERV_NO_COALESCING 0xFFFFFFFF
2680 #define TIMERV_COALESCING_MIN 1
2681 #define TIMERV_COALESCING_MAX 0x7FFFFFF5
2683 /* AnimateWindow() flags */
2684 #define AW_SLIDE 0x00040000
2685 #define AW_ACTIVATE 0x00020000
2686 #define AW_BLEND 0x00080000
2687 #define AW_HIDE 0x00010000
2688 #define AW_CENTER 0x00000010
2689 #define AW_HOR_POSITIVE 0x00000001
2690 #define AW_HOR_NEGATIVE 0x00000002
2691 #define AW_VER_POSITIVE 0x00000004
2692 #define AW_VER_NEGATIVE 0x00000008
2694 /* FlashWindowEx() flags */
2695 #define FLASHW_STOP 0x00000000
2696 #define FLASHW_CAPTION 0x00000001
2697 #define FLASHW_TRAY 0x00000002
2698 #define FLASHW_ALL (FLASHW_CAPTION|FLASHW_TRAY)
2699 #define FLASHW_TIMER 0x00000004
2700 #define FLASHW_TIMERNOFG 0x0000000C
2702 typedef struct {
2703 UINT cbSize;
2704 HWND hwnd;
2705 DWORD dwFlags;
2706 UINT uCount;
2707 DWORD dwTimeout;
2708 } FLASHWINFO, *PFLASHWINFO;
2710 /* SetLayeredWindowAttributes() flags */
2711 #define LWA_COLORKEY 0x00000001
2712 #define LWA_ALPHA 0x00000002
2714 /* UpdateLayeredWindow() flags */
2715 #define ULW_COLORKEY 0x00000001
2716 #define ULW_ALPHA 0x00000002
2717 #define ULW_OPAQUE 0x00000004
2718 #define ULW_EX_NORESIZE 0x00000008
2720 /* SetWindowPos() and WINDOWPOS flags */
2721 #define SWP_NOSIZE 0x0001
2722 #define SWP_NOMOVE 0x0002
2723 #define SWP_NOZORDER 0x0004
2724 #define SWP_NOREDRAW 0x0008
2725 #define SWP_NOACTIVATE 0x0010
2726 #define SWP_FRAMECHANGED 0x0020 /* The frame changed: send WM_NCCALCSIZE */
2727 #define SWP_SHOWWINDOW 0x0040
2728 #define SWP_HIDEWINDOW 0x0080
2729 #define SWP_NOCOPYBITS 0x0100
2730 #define SWP_NOOWNERZORDER 0x0200 /* Don't do owner Z ordering */
2732 #define SWP_DRAWFRAME SWP_FRAMECHANGED
2733 #define SWP_NOREPOSITION SWP_NOOWNERZORDER
2735 #define SWP_NOSENDCHANGING 0x0400
2736 #define SWP_DEFERERASE 0x2000
2737 #define SWP_ASYNCWINDOWPOS 0x4000
2739 /* undocumented SWP flags - from SDK 3.1 */
2740 #define SWP_NOCLIENTSIZE 0x0800
2741 #define SWP_NOCLIENTMOVE 0x1000
2742 #define SWP_STATECHANGED 0x8000
2744 #define HWND_DESKTOP ((HWND)0)
2745 #define HWND_BROADCAST ((HWND)0xffff)
2747 /* SetWindowPos() hwndInsertAfter field values */
2748 #define HWND_TOP ((HWND)0)
2749 #define HWND_BOTTOM ((HWND)1)
2750 #define HWND_TOPMOST ((HWND)-1)
2751 #define HWND_NOTOPMOST ((HWND)-2)
2752 #define HWND_MESSAGE ((HWND)-3)
2754 /* GetDCEx flags */
2755 #define DCX_WINDOW 0x00000001
2756 #define DCX_CACHE 0x00000002
2757 #define DCX_NORESETATTRS 0x00000004
2758 #define DCX_CLIPCHILDREN 0x00000008
2759 #define DCX_CLIPSIBLINGS 0x00000010
2760 #define DCX_PARENTCLIP 0x00000020
2761 #define DCX_EXCLUDERGN 0x00000040
2762 #define DCX_INTERSECTRGN 0x00000080
2763 #define DCX_EXCLUDEUPDATE 0x00000100
2764 #define DCX_INTERSECTUPDATE 0x00000200
2765 #define DCX_LOCKWINDOWUPDATE 0x00000400
2766 #define DCX_USESTYLE 0x00010000
2767 #define DCX_NORECOMPUTE 0x00100000
2768 #define DCX_VALIDATE 0x00200000
2772 /* for GetMenuDefaultItem */
2773 #define GMDI_USEDISABLED __MSABI_LONG(0x0001)
2774 #define GMDI_GOINTOPOPUPS __MSABI_LONG(0x0002)
2776 /* DrawText() flags */
2777 #define DT_TOP 0x00000000
2778 #define DT_LEFT 0x00000000
2779 #define DT_CENTER 0x00000001
2780 #define DT_RIGHT 0x00000002
2781 #define DT_VCENTER 0x00000004
2782 #define DT_BOTTOM 0x00000008
2783 #define DT_WORDBREAK 0x00000010
2784 #define DT_SINGLELINE 0x00000020
2785 #define DT_EXPANDTABS 0x00000040
2786 #define DT_TABSTOP 0x00000080
2787 #define DT_NOCLIP 0x00000100
2788 #define DT_EXTERNALLEADING 0x00000200
2789 #define DT_CALCRECT 0x00000400
2790 #define DT_NOPREFIX 0x00000800
2791 #define DT_INTERNAL 0x00001000
2792 #define DT_EDITCONTROL 0x00002000
2793 #define DT_PATH_ELLIPSIS 0x00004000
2794 #define DT_END_ELLIPSIS 0x00008000
2795 #define DT_MODIFYSTRING 0x00010000
2796 #define DT_RTLREADING 0x00020000
2797 #define DT_WORD_ELLIPSIS 0x00040000
2798 #define DT_NOFULLWIDTHCHARBREAK 0x00080000
2799 #define DT_HIDEPREFIX 0x00100000
2800 #define DT_PREFIXONLY 0x00200000
2802 /* DrawCaption()/DrawCaptionTemp() flags */
2803 #define DC_ACTIVE 0x0001
2804 #define DC_SMALLCAP 0x0002
2805 #define DC_ICON 0x0004
2806 #define DC_TEXT 0x0008
2807 #define DC_INBUTTON 0x0010
2808 #define DC_GRADIENT 0x0020
2809 #define DC_BUTTONS 0x1000
2811 /* DrawEdge() flags */
2812 #define BDR_RAISEDOUTER 0x0001
2813 #define BDR_SUNKENOUTER 0x0002
2814 #define BDR_RAISEDINNER 0x0004
2815 #define BDR_SUNKENINNER 0x0008
2817 #define BDR_OUTER 0x0003
2818 #define BDR_INNER 0x000c
2819 #define BDR_RAISED 0x0005
2820 #define BDR_SUNKEN 0x000a
2822 #define EDGE_RAISED (BDR_RAISEDOUTER | BDR_RAISEDINNER)
2823 #define EDGE_SUNKEN (BDR_SUNKENOUTER | BDR_SUNKENINNER)
2824 #define EDGE_ETCHED (BDR_SUNKENOUTER | BDR_RAISEDINNER)
2825 #define EDGE_BUMP (BDR_RAISEDOUTER | BDR_SUNKENINNER)
2827 /* border flags */
2828 #define BF_LEFT 0x0001
2829 #define BF_TOP 0x0002
2830 #define BF_RIGHT 0x0004
2831 #define BF_BOTTOM 0x0008
2832 #define BF_DIAGONAL 0x0010
2833 #define BF_MIDDLE 0x0800 /* Fill in the middle */
2834 #define BF_SOFT 0x1000 /* For softer buttons */
2835 #define BF_ADJUST 0x2000 /* Calculate the space left over */
2836 #define BF_FLAT 0x4000 /* For flat rather than 3D borders */
2837 #define BF_MONO 0x8000 /* For monochrome borders */
2838 #define BF_TOPLEFT (BF_TOP | BF_LEFT)
2839 #define BF_TOPRIGHT (BF_TOP | BF_RIGHT)
2840 #define BF_BOTTOMLEFT (BF_BOTTOM | BF_LEFT)
2841 #define BF_BOTTOMRIGHT (BF_BOTTOM | BF_RIGHT)
2842 #define BF_RECT (BF_LEFT | BF_TOP | BF_RIGHT | BF_BOTTOM)
2843 #define BF_DIAGONAL_ENDTOPRIGHT (BF_DIAGONAL | BF_TOP | BF_RIGHT)
2844 #define BF_DIAGONAL_ENDTOPLEFT (BF_DIAGONAL | BF_TOP | BF_LEFT)
2845 #define BF_DIAGONAL_ENDBOTTOMLEFT (BF_DIAGONAL | BF_BOTTOM | BF_LEFT)
2846 #define BF_DIAGONAL_ENDBOTTOMRIGHT (BF_DIAGONAL | BF_BOTTOM | BF_RIGHT)
2848 /* DrawFrameControl() uType's */
2850 #define DFC_CAPTION 1
2851 #define DFC_MENU 2
2852 #define DFC_SCROLL 3
2853 #define DFC_BUTTON 4
2854 #define DFC_POPUPMENU 5
2856 /* uState's */
2858 #define DFCS_CAPTIONCLOSE 0x0000
2859 #define DFCS_CAPTIONMIN 0x0001
2860 #define DFCS_CAPTIONMAX 0x0002
2861 #define DFCS_CAPTIONRESTORE 0x0003
2862 #define DFCS_CAPTIONHELP 0x0004 /* Windows 95 only */
2864 #define DFCS_MENUARROW 0x0000
2865 #define DFCS_MENUCHECK 0x0001
2866 #define DFCS_MENUBULLET 0x0002
2867 #define DFCS_MENUARROWRIGHT 0x0004
2869 #define DFCS_SCROLLUP 0x0000
2870 #define DFCS_SCROLLDOWN 0x0001
2871 #define DFCS_SCROLLLEFT 0x0002
2872 #define DFCS_SCROLLRIGHT 0x0003
2873 #define DFCS_SCROLLCOMBOBOX 0x0005
2874 #define DFCS_SCROLLSIZEGRIP 0x0008
2875 #define DFCS_SCROLLSIZEGRIPRIGHT 0x0010
2877 #define DFCS_BUTTONCHECK 0x0000
2878 #define DFCS_BUTTONRADIOIMAGE 0x0001
2879 #define DFCS_BUTTONRADIOMASK 0x0002 /* to draw nonsquare button */
2880 #define DFCS_BUTTONRADIO 0x0004
2881 #define DFCS_BUTTON3STATE 0x0008
2882 #define DFCS_BUTTONPUSH 0x0010
2884 /* additional state of the control */
2886 #define DFCS_INACTIVE 0x0100
2887 #define DFCS_PUSHED 0x0200
2888 #define DFCS_CHECKED 0x0400
2889 #define DFCS_TRANSPARENT 0x0800
2890 #define DFCS_HOT 0x1000
2891 #define DFCS_ADJUSTRECT 0x2000 /* exclude surrounding edge */
2892 #define DFCS_FLAT 0x4000
2893 #define DFCS_MONO 0x8000
2896 /* Image type */
2897 #define DST_COMPLEX 0x0000
2898 #define DST_TEXT 0x0001
2899 #define DST_PREFIXTEXT 0x0002
2900 #define DST_ICON 0x0003
2901 #define DST_BITMAP 0x0004
2903 /* State type */
2904 #define DSS_NORMAL 0x0000
2905 #define DSS_UNION 0x0010 /* Gray string appearance */
2906 #define DSS_DISABLED 0x0020
2907 #define DSS_DEFAULT 0x0040 /* Make it bold */
2908 #define DSS_MONO 0x0080
2909 #define DSS_HIDEPREFIX 0x0200
2910 #define DSS_PREFIXONLY 0x0400
2911 #define DSS_RIGHT 0x8000
2914 /* Sent as the lParam of a WM_DRAWITEM message to instruct how an
2915 * owner drawn control is to be drawn */
2916 typedef struct tagDRAWITEMSTRUCT
2918 UINT CtlType; /* Type of control (ODT_* flags from "winuser.h") */
2919 UINT CtlID; /* Control ID */
2920 UINT itemID; /* Menu item ID */
2921 UINT itemAction; /* Action to perform (ODA_* flags from "winuser.h") */
2922 UINT itemState; /* Item state (ODS_* flags from "winuser.h") */
2923 HWND hwndItem; /* Control window */
2924 HDC hDC; /* Device context to draw to */
2925 RECT rcItem; /* Position of the control in hDC */
2926 ULONG_PTR itemData; /* Extra data added by the application, if any */
2927 } DRAWITEMSTRUCT, *PDRAWITEMSTRUCT, *LPDRAWITEMSTRUCT;
2930 typedef struct tagMEASUREITEMSTRUCT
2932 UINT CtlType;
2933 UINT CtlID;
2934 UINT itemID;
2935 UINT itemWidth;
2936 UINT itemHeight;
2937 ULONG_PTR itemData;
2938 } MEASUREITEMSTRUCT, *PMEASUREITEMSTRUCT, *LPMEASUREITEMSTRUCT;
2941 typedef struct tagDELETEITEMSTRUCT
2943 UINT CtlType;
2944 UINT CtlID;
2945 UINT itemID;
2946 HWND hwndItem;
2947 ULONG_PTR itemData;
2948 } DELETEITEMSTRUCT, *PDELETEITEMSTRUCT, *LPDELETEITEMSTRUCT;
2951 typedef struct tagCOMPAREITEMSTRUCT
2953 UINT CtlType;
2954 UINT CtlID;
2955 HWND hwndItem;
2956 UINT itemID1;
2957 ULONG_PTR itemData1;
2958 UINT itemID2;
2959 ULONG_PTR itemData2;
2960 DWORD dwLocaleId;
2961 } COMPAREITEMSTRUCT, *PCOMPAREITEMSTRUCT, *LPCOMPAREITEMSTRUCT;
2964 /* WM_KEYUP/DOWN/CHAR HIWORD(lParam) flags */
2965 #define KF_EXTENDED 0x0100
2966 #define KF_DLGMODE 0x0800
2967 #define KF_MENUMODE 0x1000
2968 #define KF_ALTDOWN 0x2000
2969 #define KF_REPEAT 0x4000
2970 #define KF_UP 0x8000
2973 /* MapVirtualKey translation types */
2974 #define MAPVK_VK_TO_VSC 0
2975 #define MAPVK_VSC_TO_VK 1
2976 #define MAPVK_VK_TO_CHAR 2
2977 #define MAPVK_VSC_TO_VK_EX 3
2978 #define MAPVK_VK_TO_VSC_EX 4
2982 typedef struct tagTRACKMOUSEEVENT {
2983 DWORD cbSize;
2984 DWORD dwFlags;
2985 HWND hwndTrack;
2986 DWORD dwHoverTime;
2987 } TRACKMOUSEEVENT, *LPTRACKMOUSEEVENT;
2989 /* Queue status flags */
2990 #define QS_KEY 0x0001
2991 #define QS_MOUSEMOVE 0x0002
2992 #define QS_MOUSEBUTTON 0x0004
2993 #define QS_MOUSE (QS_MOUSEMOVE | QS_MOUSEBUTTON)
2994 #define QS_POSTMESSAGE 0x0008
2995 #define QS_TIMER 0x0010
2996 #define QS_PAINT 0x0020
2997 #define QS_SENDMESSAGE 0x0040
2998 #define QS_HOTKEY 0x0080
2999 #define QS_ALLPOSTMESSAGE 0x0100
3000 #define QS_RAWINPUT 0x0400
3001 #define QS_TOUCH 0x0800
3002 #define QS_POINTER 0x1000
3003 #define QS_INPUT (QS_MOUSE | QS_KEY | QS_RAWINPUT | QS_TOUCH | QS_POINTER)
3004 #define QS_ALLEVENTS (QS_INPUT | QS_POSTMESSAGE | QS_TIMER | QS_PAINT | QS_HOTKEY)
3005 #define QS_ALLINPUT (QS_ALLEVENTS | QS_SENDMESSAGE)
3007 /* Extra (undocumented) queue wake bits - see "Undoc. Windows" */
3008 #define QS_SMRESULT 0x8000
3010 /* InSendMessageEx flags */
3011 #define ISMEX_NOSEND 0x00000000
3012 #define ISMEX_SEND 0x00000001
3013 #define ISMEX_NOTIFY 0x00000002
3014 #define ISMEX_CALLBACK 0x00000004
3015 #define ISMEX_REPLIED 0x00000008
3017 #define DDL_READWRITE 0x0000
3018 #define DDL_READONLY 0x0001
3019 #define DDL_HIDDEN 0x0002
3020 #define DDL_SYSTEM 0x0004
3021 #define DDL_DIRECTORY 0x0010
3022 #define DDL_ARCHIVE 0x0020
3024 #define DDL_POSTMSGS 0x2000
3025 #define DDL_DRIVES 0x4000
3026 #define DDL_EXCLUSIVE 0x8000
3028 /* Shell hook values */
3029 #define HSHELL_WINDOWCREATED 1
3030 #define HSHELL_WINDOWDESTROYED 2
3031 #define HSHELL_ACTIVATESHELLWINDOW 3
3032 #define HSHELL_WINDOWACTIVATED 4
3033 #define HSHELL_GETMINRECT 5
3034 #define HSHELL_REDRAW 6
3035 #define HSHELL_TASKMAN 7
3036 #define HSHELL_LANGUAGE 8
3037 #define HSHELL_SYSMENU 9
3038 #define HSHELL_ENDTASK 10
3039 #define HSHELL_ACCESSIBILITYSTATE 11
3040 #define HSHELL_APPCOMMAND 12
3041 #define HSHELL_WINDOWREPLACED 13
3042 #define HSHELL_WINDOWREPLACING 14
3044 #define HSHELL_HIGHBIT 0x8000
3045 #define HSHELL_FLASH (HSHELL_REDRAW|HSHELL_HIGHBIT)
3046 #define HSHELL_RUDEAPPACTIVATED (HSHELL_WINDOWACTIVATED|HSHELL_HIGHBIT)
3048 /* App commands */
3049 #define APPCOMMAND_BROWSER_BACKWARD 1
3050 #define APPCOMMAND_BROWSER_FORWARD 2
3051 #define APPCOMMAND_BROWSER_REFRESH 3
3052 #define APPCOMMAND_BROWSER_STOP 4
3053 #define APPCOMMAND_BROWSER_SEARCH 5
3054 #define APPCOMMAND_BROWSER_FAVORITES 6
3055 #define APPCOMMAND_BROWSER_HOME 7
3056 #define APPCOMMAND_VOLUME_MUTE 8
3057 #define APPCOMMAND_VOLUME_DOWN 9
3058 #define APPCOMMAND_VOLUME_UP 10
3059 #define APPCOMMAND_MEDIA_NEXTTRACK 11
3060 #define APPCOMMAND_MEDIA_PREVIOUSTRACK 12
3061 #define APPCOMMAND_MEDIA_STOP 13
3062 #define APPCOMMAND_MEDIA_PLAY_PAUSE 14
3063 #define APPCOMMAND_LAUNCH_MAIL 15
3064 #define APPCOMMAND_LAUNCH_MEDIA_SELECT 16
3065 #define APPCOMMAND_LAUNCH_APP1 17
3066 #define APPCOMMAND_LAUNCH_APP2 18
3067 #define APPCOMMAND_BASS_DOWN 19
3068 #define APPCOMMAND_BASS_BOOST 20
3069 #define APPCOMMAND_BASS_UP 21
3070 #define APPCOMMAND_TREBLE_DOWN 22
3071 #define APPCOMMAND_TREBLE_UP 23
3072 #define APPCOMMAND_MICROPHONE_VOLUME_MUTE 24
3073 #define APPCOMMAND_MICROPHONE_VOLUME_DOWN 25
3074 #define APPCOMMAND_MICROPHONE_VOLUME_UP 26
3075 #define APPCOMMAND_HELP 27
3076 #define APPCOMMAND_FIND 28
3077 #define APPCOMMAND_NEW 29
3078 #define APPCOMMAND_OPEN 30
3079 #define APPCOMMAND_CLOSE 31
3080 #define APPCOMMAND_SAVE 32
3081 #define APPCOMMAND_PRINT 33
3082 #define APPCOMMAND_UNDO 34
3083 #define APPCOMMAND_REDO 35
3084 #define APPCOMMAND_COPY 36
3085 #define APPCOMMAND_CUT 37
3086 #define APPCOMMAND_PASTE 38
3087 #define APPCOMMAND_REPLY_TO_MAIL 39
3088 #define APPCOMMAND_FORWARD_MAIL 40
3089 #define APPCOMMAND_SEND_MAIL 41
3090 #define APPCOMMAND_SPELL_CHECK 42
3091 #define APPCOMMAND_DICTATE_OR_COMMAND_CONTROL_TOGGLE 43
3092 #define APPCOMMAND_MIC_ON_OFF_TOGGLE 44
3093 #define APPCOMMAND_CORRECTION_LIST 45
3094 #define APPCOMMAND_MEDIA_PLAY 46
3095 #define APPCOMMAND_MEDIA_PAUSE 47
3096 #define APPCOMMAND_MEDIA_RECORD 48
3097 #define APPCOMMAND_MEDIA_FAST_FORWARD 49
3098 #define APPCOMMAND_MEDIA_REWIND 50
3099 #define APPCOMMAND_MEDIA_CHANNEL_UP 51
3100 #define APPCOMMAND_MEDIA_CHANNEL_DOWN 52
3101 #define APPCOMMAND_DELETE 53
3102 #define APPCOMMAND_DWM_FLIP3D 54
3104 #define FAPPCOMMAND_MOUSE 0x8000
3105 #define FAPPCOMMAND_KEY 0
3106 #define FAPPCOMMAND_OEM 0x1000
3107 #define FAPPCOMMAND_MASK 0xF000
3109 #define GET_APPCOMMAND_LPARAM(lParam) ((short)(HIWORD(lParam) & ~FAPPCOMMAND_MASK))
3110 #define GET_DEVICE_LPARAM(lParam) ((WORD)(HIWORD(lParam) & FAPPCOMMAND_MASK))
3111 #define GET_MOUSEORKEY_LPARAM GET_DEVICE_LPARAM
3112 #define GET_FLAGS_LPARAM(lParam) (LOWORD(lParam))
3113 #define GET_KEYSTATE_LPARAM(lParam) GET_FLAGS_LPARAM(lParam)
3116 /* types of LoadImage */
3117 #define IMAGE_BITMAP 0
3118 #define IMAGE_ICON 1
3119 #define IMAGE_CURSOR 2
3120 #define IMAGE_ENHMETAFILE 3
3122 /* loadflags to LoadImage */
3123 #define LR_DEFAULTCOLOR 0x0000
3124 #define LR_MONOCHROME 0x0001
3125 #define LR_COLOR 0x0002
3126 #define LR_COPYRETURNORG 0x0004
3127 #define LR_COPYDELETEORG 0x0008
3128 #define LR_LOADFROMFILE 0x0010
3129 #define LR_LOADTRANSPARENT 0x0020
3130 #define LR_DEFAULTSIZE 0x0040
3131 #define LR_VGACOLOR 0x0080
3132 #define LR_LOADMAP3DCOLORS 0x1000
3133 #define LR_CREATEDIBSECTION 0x2000
3134 #define LR_COPYFROMRESOURCE 0x4000
3135 #define LR_SHARED 0x8000
3137 /* Flags for DrawIconEx. */
3138 #define DI_MASK 0x0001
3139 #define DI_IMAGE 0x0002
3140 #define DI_NORMAL (DI_MASK | DI_IMAGE)
3141 #define DI_COMPAT 0x0004
3142 #define DI_DEFAULTSIZE 0x0008
3143 #define DI_NOMIRROR 0x0010
3145 /* RegisterDeviceNotification stuff */
3146 typedef PVOID HDEVNOTIFY;
3147 typedef HDEVNOTIFY *PHDEVNOTIFY;
3149 #define DEVICE_NOTIFY_WINDOW_HANDLE 0x00000000
3150 #define DEVICE_NOTIFY_SERVICE_HANDLE 0x00000001
3151 #define DEVICE_NOTIFY_ALL_INTERFACE_CLASSES 0x00000004
3153 /* used for GetWindowInfo() */
3155 #define WS_ACTIVECAPTION 0x0001
3157 typedef struct tagWINDOWINFO {
3158 DWORD cbSize;
3159 RECT rcWindow;
3160 RECT rcClient;
3161 DWORD dwStyle;
3162 DWORD dwExStyle;
3163 DWORD dwWindowStatus;
3164 UINT cxWindowBorders;
3165 UINT cyWindowBorders;
3166 ATOM atomWindowType;
3167 WORD wCreatorVersion;
3168 } WINDOWINFO, *PWINDOWINFO, *LPWINDOWINFO;
3170 /* used for GetTitleBarInfo() */
3172 #define CCHILDREN_TITLEBAR 5
3174 typedef struct tagTITLEBARINFO {
3175 DWORD cbSize;
3176 RECT rcTitleBar;
3177 DWORD rgstate[CCHILDREN_TITLEBAR+1];
3178 } TITLEBARINFO, *PTITLEBARINFO, *LPTITLEBARINFO;
3180 /* used by GetLastInputInfo */
3181 typedef struct tagLASTINPUTINFO {
3182 UINT cbSize;
3183 DWORD dwTime;
3184 } LASTINPUTINFO, *PLASTINPUTINFO;
3186 /* used by GetAltTabInfo */
3187 typedef struct
3189 DWORD cbSize;
3190 INT cItems;
3191 INT cColumns;
3192 INT cRows;
3193 INT iColFocus;
3194 INT iRowFocus;
3195 INT cxItem;
3196 INT cyItem;
3197 POINT ptStart;
3198 } ALTTABINFO, *PALTTABINFO, *LPALTTABINFO;
3200 /* SetWinEventHook() flags */
3201 #define WINEVENT_OUTOFCONTEXT 0x0
3202 #define WINEVENT_SKIPOWNTHREAD 0x1
3203 #define WINEVENT_SKIPOWNPROCESS 0x2
3204 #define WINEVENT_INCONTEXT 0x4
3206 #define ENDSESSION_LOGOFF 0x80000000
3208 /* Object Id's */
3209 #define CHILDID_SELF 0
3210 #define INDEXID_OBJECT 0
3211 #define INDEXID_CONTAINER 0
3213 /* System object Id's */
3214 #define OBJID_WINDOW 0
3215 #define OBJID_SYSMENU -1
3216 #define OBJID_TITLEBAR -2
3217 #define OBJID_MENU -3
3218 #define OBJID_CLIENT -4
3219 #define OBJID_VSCROLL -5
3220 #define OBJID_HSCROLL -6
3221 #define OBJID_SIZEGRIP -7
3222 #define OBJID_CARET -8
3223 #define OBJID_CURSOR -9
3224 #define OBJID_ALERT -10
3225 #define OBJID_SOUND -11
3226 #define OBJID_QUERYCLASSNAMEIDX -12
3227 #define OBJID_NATIVEOM -16
3229 /* User event Id limits */
3230 #define EVENT_MIN 0x00000001
3231 #define EVENT_MAX 0x7FFFFFFF
3232 #define EVENT_SYSTEM_END 0x000000FF
3233 #define EVENT_OEM_DEFINED_START 0x00000101
3234 #define EVENT_OEM_DEFINED_END 0x000001FF
3235 #define EVENT_CONSOLE_END 0x000040FF
3236 #define EVENT_UIA_EVENTID_START 0x00004E00
3237 #define EVENT_UIA_EVENTID_END 0x00004EFF
3238 #define EVENT_UIA_PROPID_START 0x00007500
3239 #define EVENT_UIA_PROPID_END 0x000075FF
3240 #define EVENT_OBJECT_END 0x000080FF
3241 #define EVENT_AIA_START 0x0000A000
3242 #define EVENT_AIA_END 0x0000AFFF
3244 /* System events */
3245 #define EVENT_SYSTEM_SOUND 0x01
3246 #define EVENT_SYSTEM_ALERT 0x02
3247 #define EVENT_SYSTEM_FOREGROUND 0x03
3248 #define EVENT_SYSTEM_MENUSTART 0x04
3249 #define EVENT_SYSTEM_MENUEND 0x05
3250 #define EVENT_SYSTEM_MENUPOPUPSTART 0x06
3251 #define EVENT_SYSTEM_MENUPOPUPEND 0x07
3252 #define EVENT_SYSTEM_CAPTURESTART 0x08
3253 #define EVENT_SYSTEM_CAPTUREEND 0x09
3254 #define EVENT_SYSTEM_MOVESIZESTART 0x0A
3255 #define EVENT_SYSTEM_MOVESIZEEND 0x0B
3256 #define EVENT_SYSTEM_CONTEXTHELPSTART 0x0C
3257 #define EVENT_SYSTEM_CONTEXTHELPEND 0x0D
3258 #define EVENT_SYSTEM_DRAGDROPSTART 0x0E
3259 #define EVENT_SYSTEM_DRAGDROPEND 0x0F
3260 #define EVENT_SYSTEM_DIALOGSTART 0x10
3261 #define EVENT_SYSTEM_DIALOGEND 0x11
3262 #define EVENT_SYSTEM_SCROLLINGSTART 0x12
3263 #define EVENT_SYSTEM_SCROLLINGEND 0x13
3264 #define EVENT_SYSTEM_SWITCHSTART 0x14
3265 #define EVENT_SYSTEM_SWITCHEND 0x15
3266 #define EVENT_SYSTEM_MINIMIZESTART 0x16
3267 #define EVENT_SYSTEM_MINIMIZEEND 0x17
3268 #define EVENT_SYSTEM_DESKTOPSWITCH 0x20
3269 #define EVENT_SYSTEM_SWITCHER_APPGRABBED 0x24
3270 #define EVENT_SYSTEM_SWITCHER_APPOVERTARGET 0x25
3271 #define EVENT_SYSTEM_SWITCHER_APPDROPPED 0x26
3272 #define EVENT_SYSTEM_SWITCHER_CANCELLED 0x27
3273 #define EVENT_SYSTEM_IME_KEY_NOTIFICATION 0x29
3276 /* Console events */
3277 #define EVENT_CONSOLE_CARET 0x4001
3278 #define EVENT_CONSOLE_UPDATE_REGION 0x4002
3279 #define EVENT_CONSOLE_UPDATE_SIMPLE 0x4003
3280 #define EVENT_CONSOLE_UPDATE_SCROLL 0x4004
3281 #define EVENT_CONSOLE_LAYOUT 0x4005
3282 #define EVENT_CONSOLE_START_APPLICATION 0x4006
3283 #define EVENT_CONSOLE_END_APPLICATION 0x4007
3285 #define CONSOLE_APPLICATION_16BIT 0x1
3286 #define CONSOLE_CARET_SELECTION 0x1
3287 #define CONSOLE_CARET_VISIBLE 0x2
3289 /* Object events */
3290 #define EVENT_OBJECT_CREATE 0x8000
3291 #define EVENT_OBJECT_DESTROY 0x8001
3292 #define EVENT_OBJECT_SHOW 0x8002
3293 #define EVENT_OBJECT_HIDE 0x8003
3294 #define EVENT_OBJECT_REORDER 0x8004
3295 #define EVENT_OBJECT_FOCUS 0x8005
3296 #define EVENT_OBJECT_SELECTION 0x8006
3297 #define EVENT_OBJECT_SELECTIONADD 0x8007
3298 #define EVENT_OBJECT_SELECTIONREMOVE 0x8008
3299 #define EVENT_OBJECT_SELECTIONWITHIN 0x8009
3300 #define EVENT_OBJECT_STATECHANGE 0x800A
3301 #define EVENT_OBJECT_LOCATIONCHANGE 0x800B
3302 #define EVENT_OBJECT_NAMECHANGE 0x800C
3303 #define EVENT_OBJECT_DESCRIPTIONCHANGE 0x800D
3304 #define EVENT_OBJECT_VALUECHANGE 0x800E
3305 #define EVENT_OBJECT_PARENTCHANGE 0x800F
3306 #define EVENT_OBJECT_HELPCHANGE 0x8010
3307 #define EVENT_OBJECT_DEFACTIONCHANGE 0x8011
3308 #define EVENT_OBJECT_ACCELERATORCHANGE 0x8012
3309 #define EVENT_OBJECT_INVOKED 0x8013
3310 #define EVENT_OBJECT_TEXTSELECTIONCHANGED 0x8014
3311 #define EVENT_OBJECT_CONTENTSCROLLED 0x8015
3312 /* Typo matches Window's headers, ARRANGMENT should be ARRANGEMENT presumably. */
3313 #define EVENT_SYSTEM_ARRANGMENTPREVIEW 0x8016
3314 #define EVENT_OBJECT_CLOAKED 0x8017
3315 #define EVENT_OBJECT_UNCLOAKED 0x8018
3316 #define EVENT_OBJECT_LIVEREGIONCHANGED 0x8019
3317 #define EVENT_OBJECT_HOSTEDOBJECTSINVALIDATED 0x8020
3318 #define EVENT_OBJECT_DRAGSTART 0x8021
3319 #define EVENT_OBJECT_DRAGCANCEL 0x8022
3320 #define EVENT_OBJECT_DRAGCOMPLETE 0x8023
3321 #define EVENT_OBJECT_DRAGENTER 0x8024
3322 #define EVENT_OBJECT_DRAGLEAVE 0x8025
3323 #define EVENT_OBJECT_DRAGDROPPED 0x8026
3324 #define EVENT_OBJECT_IME_SHOW 0x8027
3325 #define EVENT_OBJECT_IME_HIDE 0x8028
3326 #define EVENT_OBJECT_IME_CHANGE 0x8029
3327 #define EVENT_OBJECT_TEXTEDIT_CONVERSIONTARGETCHANGED 0x8030
3329 /* Sound events */
3330 #define SOUND_SYSTEM_STARTUP 1
3331 #define SOUND_SYSTEM_SHUTDOWN 2
3332 #define SOUND_SYSTEM_BEEP 3
3333 #define SOUND_SYSTEM_ERROR 4
3334 #define SOUND_SYSTEM_QUESTION 5
3335 #define SOUND_SYSTEM_WARNING 6
3336 #define SOUND_SYSTEM_INFORMATION 7
3337 #define SOUND_SYSTEM_MAXIMIZE 8
3338 #define SOUND_SYSTEM_MINIMIZE 9
3339 #define SOUND_SYSTEM_RESTOREUP 10
3340 #define SOUND_SYSTEM_RESTOREDOWN 11
3341 #define SOUND_SYSTEM_APPSTART 12
3342 #define SOUND_SYSTEM_FAULT 13
3343 #define SOUND_SYSTEM_APPEND 14
3344 #define SOUND_SYSTEM_MENUCOMMAND 15
3345 #define SOUND_SYSTEM_MENUPOPUP 16
3346 #define CSOUND_SYSTEM 16
3348 /* Alert events */
3349 #define ALERT_SYSTEM_INFORMATIONAL 1
3350 #define ALERT_SYSTEM_WARNING 2
3351 #define ALERT_SYSTEM_ERROR 3
3352 #define ALERT_SYSTEM_QUERY 4
3353 #define ALERT_SYSTEM_CRITICAL 5
3354 #define CALERT_SYSTEM 6
3356 /* System state flags */
3357 #define STATE_SYSTEM_UNAVAILABLE 0x00000001
3358 #define STATE_SYSTEM_SELECTED 0x00000002
3359 #define STATE_SYSTEM_FOCUSED 0x00000004
3360 #define STATE_SYSTEM_PRESSED 0x00000008
3361 #define STATE_SYSTEM_CHECKED 0x00000010
3362 #define STATE_SYSTEM_MIXED 0x00000020
3363 #define STATE_SYSTEM_INDETERMINATE STATE_SYSTEM_MIXED
3364 #define STATE_SYSTEM_READONLY 0x00000040
3365 #define STATE_SYSTEM_HOTTRACKED 0x00000080
3366 #define STATE_SYSTEM_DEFAULT 0x00000100
3367 #define STATE_SYSTEM_EXPANDED 0x00000200
3368 #define STATE_SYSTEM_COLLAPSED 0x00000400
3369 #define STATE_SYSTEM_BUSY 0x00000800
3370 #define STATE_SYSTEM_FLOATING 0x00001000
3371 #define STATE_SYSTEM_MARQUEED 0x00002000
3372 #define STATE_SYSTEM_ANIMATED 0x00004000
3373 #define STATE_SYSTEM_INVISIBLE 0x00008000
3374 #define STATE_SYSTEM_OFFSCREEN 0x00010000
3375 #define STATE_SYSTEM_SIZEABLE 0x00020000
3376 #define STATE_SYSTEM_MOVEABLE 0x00040000
3377 #define STATE_SYSTEM_SELFVOICING 0x00080000
3378 #define STATE_SYSTEM_FOCUSABLE 0x00100000
3379 #define STATE_SYSTEM_SELECTABLE 0x00200000
3380 #define STATE_SYSTEM_LINKED 0x00400000
3381 #define STATE_SYSTEM_TRAVERSED 0x00800000
3382 #define STATE_SYSTEM_MULTISELECTABLE 0x01000000
3383 #define STATE_SYSTEM_EXTSELECTABLE 0x02000000
3384 #define STATE_SYSTEM_ALERT_LOW 0x04000000
3385 #define STATE_SYSTEM_ALERT_MEDIUM 0x08000000
3386 #define STATE_SYSTEM_ALERT_HIGH 0x10000000
3387 #define STATE_SYSTEM_PROTECTED 0x20000000
3388 #define STATE_SYSTEM_VALID 0x3FFFFFFF
3390 /* Lock codes for LockSetForegroundWindow */
3391 #define LSFW_LOCK 1
3392 #define LSFW_UNLOCK 2
3394 /* Values for AllowSetForegroundWindow */
3395 #define ASFW_ANY ((DWORD)-1)
3397 #define EnumTaskWindows(handle,proc,lparam) \
3398 EnumThreadWindows(handle,proc,lparam)
3399 #define OemToAnsiA OemToCharA
3400 #define OemToAnsiW OemToCharW
3401 #define OemToAnsi WINELIB_NAME_AW(OemToAnsi)
3402 #define OemToAnsiBuffA OemToCharBuffA
3403 #define OemToAnsiBuffW OemToCharBuffW
3404 #define OemToAnsiBuff WINELIB_NAME_AW(OemToAnsiBuff)
3405 #define AnsiToOemA CharToOemA
3406 #define AnsiToOemW CharToOemW
3407 #define AnsiToOem WINELIB_NAME_AW(AnsiToOem)
3408 #define AnsiToOemBuffA CharToOemBuffA
3409 #define AnsiToOemBuffW CharToOemBuffW
3410 #define AnsiToOemBuff WINELIB_NAME_AW(AnsiToOemBuff)
3412 /* ChangeWindowMessageFilter flags */
3413 #define MSGFLT_ADD 1
3414 #define MSGFLT_REMOVE 2
3416 /* ChangeWindowMessageFilterEx defines */
3417 #define MSGFLTINFO_NONE 0
3418 #define MSGFLTINFO_ALREADYALLOWED_FORWND 1
3419 #define MSGFLTINFO_ALREADYDISALLOWED_FORWND 2
3420 #define MSGFLTINFO_ALLOWED_HIGHER 3
3422 typedef struct tagCHANGEFILTERSTRUCT
3424 DWORD cbSize;
3425 DWORD ExtStatus;
3426 } CHANGEFILTERSTRUCT, *PCHANGEFILTERSTRUCT;
3428 /* Actions for ChangeWindowMessageFilterEx */
3429 #define MSGFLT_RESET 0
3430 #define MSGFLT_ALLOW 1
3431 #define MSGFLT_DISALLOW 2
3433 #define USER_DEFAULT_SCREEN_DPI 96
3435 typedef enum tagAR_STATE {
3436 AR_ENABLED = 0x0,
3437 AR_DISABLED = 0x1,
3438 AR_SUPPRESSED = 0x2,
3439 AR_REMOTESESSION = 0x4,
3440 AR_MULTIMON = 0x8,
3441 AR_NOSENSOR = 0x10,
3442 AR_NOT_SUPPORTED = 0x20,
3443 AR_DOCKED = 0x40,
3444 AR_LAPTOP = 0x80
3445 } AR_STATE, *PAR_STATE;
3447 typedef enum ORIENTATION_PREFERENCE {
3448 ORIENTATION_PREFERENCE_NONE = 0x0,
3449 ORIENTATION_PREFERENCE_LANDSCAPE = 0x1,
3450 ORIENTATION_PREFERENCE_PORTRAIT = 0x2,
3451 ORIENTATION_PREFERENCE_LANDSCAPE_FLIPPED = 0x4,
3452 ORIENTATION_PREFERENCE_PORTRAIT_FLIPPED = 0x8
3453 } ORIENTATION_PREFERENCE;
3455 /* Touch input definitions */
3456 DECLARE_HANDLE(HTOUCHINPUT);
3458 typedef struct tagTOUCHINPUT {
3459 LONG x;
3460 LONG y;
3461 HANDLE hSource;
3462 DWORD dwID;
3463 DWORD dwFlags;
3464 DWORD dwMask;
3465 DWORD dwTime;
3466 ULONG_PTR dwExtraInfo;
3467 DWORD cxContact;
3468 DWORD cyContact;
3469 } TOUCHINPUT, *PTOUCHINPUT;
3470 typedef TOUCHINPUT const * PCTOUCHINPUT;
3472 #define TOUCHEVENTF_MOVE 0x0001
3473 #define TOUCHEVENTF_DOWN 0x0002
3474 #define TOUCHEVENTF_UP 0x0004
3475 #define TOUCHEVENTF_INRANGE 0x0008
3476 #define TOUCHEVENTF_PRIMARY 0x0010
3477 #define TOUCHEVENTF_NOCOALESCE 0x0020
3478 #define TOUCHEVENTF_PEN 0x0040
3479 #define TOUCHEVENTF_PALM 0x0080
3481 #define TOUCHINPUTMASKF_TIMEFROMSYSTEM 0x0001
3482 #define TOUCHINPUTMASKF_EXTRAINFO 0x0002
3483 #define TOUCHINPUTMASKF_CONTACTAREA 0x0004
3485 #define TWF_FINETOUCH 0x0001
3486 #define TWF_WANTPALM 0x0002
3488 /* Gesture definitions */
3489 DECLARE_HANDLE(HGESTUREINFO);
3491 #define GF_BEGIN 0x00000001
3492 #define GF_INERTIA 0x00000002
3493 #define GF_END 0x00000004
3495 typedef struct tagGESTUREINFO {
3496 UINT cbSize;
3497 DWORD dwFlags;
3498 DWORD dwID;
3499 HWND hwndTarget;
3500 POINTS ptsLocation;
3501 DWORD dwInstanceID;
3502 DWORD dwSequenceID;
3503 ULONGLONG ullArguments;
3504 UINT cbExtraArgs;
3505 } GESTUREINFO, *PGESTUREINFO;
3506 typedef GESTUREINFO const * PCGESTUREINFO;
3508 typedef struct tagGESTURENOTIFYSTRUCT
3510 UINT cbSize;
3511 DWORD dwFlags;
3512 HWND hwndTarget;
3513 POINTS ptsLocation;
3514 DWORD dwInstanceID;
3515 } GESTURENOTIFYSTRUCT, *PGESTURENOTIFYSTRUCT;
3517 #define GID_ROTATE_ANGLE_TO_ARGUMENT(a) ((USHORT)((((a) + 2. * M_PI) / (4. * M_PI)) * 65535.))
3518 #define GID_ROTATE_ANGLE_FROM_ARGUMENT(a) ((((double)(a) / 65535.) * 4. * M_PI) - 2. * M_PI)
3520 #define POINTER_DEVICE_PRODUCT_STRING_MAX 520
3522 #define PDC_ARRIVAL 0x0001
3523 #define PDC_REMOVAL 0x0002
3524 #define PDC_ORIENTATION_0 0x0004
3525 #define PDC_ORIENTATION_90 0x0008
3526 #define PDC_ORIENTATION_180 0x0010
3527 #define PDC_ORIENTATION_270 0x0020
3528 #define PDC_MODE_DEFAULT 0x0040
3529 #define PDC_MODE_CENTERED 0x0080
3530 #define PDC_MAPPING_CHANGE 0x0100
3531 #define PDC_RESOLUTION 0x0200
3532 #define PDC_ORIGIN 0x0400
3533 #define PDC_MODE_ASPECTRATIOPRESERVED 0x0800
3535 typedef enum tagPOINTER_DEVICE_TYPE {
3536 POINTER_DEVICE_TYPE_INTEGRATED_PEN = 0x00000001,
3537 POINTER_DEVICE_TYPE_EXTERNAL_PEN = 0x00000002,
3538 POINTER_DEVICE_TYPE_TOUCH = 0x00000003,
3539 POINTER_DEVICE_TYPE_TOUCH_PAD = 0x00000004,
3540 POINTER_DEVICE_TYPE_MAX = 0xFFFFFFFF
3541 } POINTER_DEVICE_TYPE;
3543 typedef struct tagPOINTER_DEVICE_INFO {
3544 DWORD displayOrientation;
3545 HANDLE device;
3546 POINTER_DEVICE_TYPE pointerDeviceType;
3547 HMONITOR monitor;
3548 ULONG startingCursorId;
3549 USHORT maxActiveContacts;
3550 WCHAR productString[POINTER_DEVICE_PRODUCT_STRING_MAX];
3551 } POINTER_DEVICE_INFO;
3553 typedef struct tagPOINTER_DEVICE_PROPERTY
3555 INT32 logicalMin;
3556 INT32 logicalMax;
3557 INT32 physicalMin;
3558 INT32 physicalMax;
3559 UINT32 unit;
3560 UINT32 unitExponent;
3561 USHORT usagePageId;
3562 USHORT usageId;
3563 } POINTER_DEVICE_PROPERTY;
3565 typedef enum tagPOINTER_DEVICE_CURSOR_TYPE
3567 POINTER_DEVICE_CURSOR_TYPE_UNKNOWN = 0x00000000,
3568 POINTER_DEVICE_CURSOR_TYPE_TIP = 0x00000001,
3569 POINTER_DEVICE_CURSOR_TYPE_ERASER = 0x00000002,
3570 POINTER_DEVICE_CURSOR_TYPE_MAX = 0xFFFFFFFF,
3571 } POINTER_DEVICE_CURSOR_TYPE;
3573 typedef struct tagPOINTER_DEVICE_CURSOR_INFO
3575 UINT32 cursorId;
3576 POINTER_DEVICE_CURSOR_TYPE cursor;
3577 } POINTER_DEVICE_CURSOR_INFO;
3579 enum tagPOINTER_INPUT_TYPE
3581 PT_POINTER = 1,
3582 PT_TOUCH = 2,
3583 PT_PEN = 3,
3584 PT_MOUSE = 4,
3585 PT_TOUCHPAD = 5,
3587 typedef DWORD POINTER_INPUT_TYPE;
3588 typedef UINT32 POINTER_FLAGS;
3590 #define POINTER_FLAG_NONE 0x00000000
3591 #define POINTER_FLAG_NEW 0x00000001
3592 #define POINTER_FLAG_INRANGE 0x00000002
3593 #define POINTER_FLAG_INCONTACT 0x00000004
3594 #define POINTER_FLAG_FIRSTBUTTON 0x00000010
3595 #define POINTER_FLAG_SECONDBUTTON 0x00000020
3596 #define POINTER_FLAG_THIRDBUTTON 0x00000040
3597 #define POINTER_FLAG_FOURTHBUTTON 0x00000080
3598 #define POINTER_FLAG_FIFTHBUTTON 0x00000100
3599 #define POINTER_FLAG_PRIMARY 0x00002000
3600 #define POINTER_FLAG_CONFIDENCE 0x00004000
3601 #define POINTER_FLAG_CANCELED 0x00008000
3602 #define POINTER_FLAG_DOWN 0x00010000
3603 #define POINTER_FLAG_UPDATE 0x00020000
3604 #define POINTER_FLAG_UP 0x00040000
3605 #define POINTER_FLAG_WHEEL 0x00080000
3606 #define POINTER_FLAG_HWHEEL 0x00100000
3607 #define POINTER_FLAG_CAPTURECHANGED 0x00200000
3608 #define POINTER_FLAG_HASTRANSFORM 0x00400000
3610 #define POINTER_MOD_SHIFT 0x0004
3611 #define POINTER_MOD_CTRL 0x0008
3613 typedef enum tagPOINTER_BUTTON_CHANGE_TYPE
3615 POINTER_CHANGE_NONE,
3616 POINTER_CHANGE_FIRSTBUTTON_DOWN,
3617 POINTER_CHANGE_FIRSTBUTTON_UP,
3618 POINTER_CHANGE_SECONDBUTTON_DOWN,
3619 POINTER_CHANGE_SECONDBUTTON_UP,
3620 POINTER_CHANGE_THIRDBUTTON_DOWN,
3621 POINTER_CHANGE_THIRDBUTTON_UP,
3622 POINTER_CHANGE_FOURTHBUTTON_DOWN,
3623 POINTER_CHANGE_FOURTHBUTTON_UP,
3624 POINTER_CHANGE_FIFTHBUTTON_DOWN,
3625 POINTER_CHANGE_FIFTHBUTTON_UP,
3626 } POINTER_BUTTON_CHANGE_TYPE;
3628 typedef struct tagPOINTER_INFO
3630 POINTER_INPUT_TYPE pointerType;
3631 UINT32 pointerId;
3632 UINT32 frameId;
3633 POINTER_FLAGS pointerFlags;
3634 HANDLE sourceDevice;
3635 HWND hwndTarget;
3636 POINT ptPixelLocation;
3637 POINT ptHimetricLocation;
3638 POINT ptPixelLocationRaw;
3639 POINT ptHimetricLocationRaw;
3640 DWORD dwTime;
3641 UINT32 historyCount;
3642 INT32 InputData;
3643 DWORD dwKeyStates;
3644 UINT64 PerformanceCount;
3645 POINTER_BUTTON_CHANGE_TYPE ButtonChangeType;
3646 } POINTER_INFO;
3648 typedef UINT32 TOUCH_FLAGS;
3649 #define TOUCH_FLAG_NONE 0x00000000
3651 typedef UINT32 TOUCH_MASK;
3652 #define TOUCH_MASK_NONE 0x00000000
3653 #define TOUCH_MASK_CONTACTAREA 0x00000001
3654 #define TOUCH_MASK_ORIENTATION 0x00000002
3655 #define TOUCH_MASK_PRESSURE 0x00000004
3657 typedef struct tagPOINTER_TOUCH_INFO
3659 POINTER_INFO pointerInfo;
3660 TOUCH_FLAGS touchFlags;
3661 TOUCH_MASK touchMask;
3662 RECT rcContact;
3663 RECT rcContactRaw;
3664 UINT32 orientation;
3665 UINT32 pressure;
3666 } POINTER_TOUCH_INFO;
3668 typedef UINT32 PEN_FLAGS;
3669 #define PEN_FLAG_NONE 0x00000000
3670 #define PEN_FLAG_BARREL 0x00000001
3671 #define PEN_FLAG_INVERTED 0x00000002
3672 #define PEN_FLAG_ERASER 0x00000004
3674 typedef UINT32 PEN_MASK;
3675 #define PEN_MASK_NONE 0x00000000
3676 #define PEN_MASK_PRESSURE 0x00000001
3677 #define PEN_MASK_ROTATION 0x00000002
3678 #define PEN_MASK_TILT_X 0x00000004
3679 #define PEN_MASK_TILT_Y 0x00000008
3681 typedef struct tagPOINTER_PEN_INFO
3683 POINTER_INFO pointerInfo;
3684 PEN_FLAGS penFlags;
3685 PEN_MASK penMask;
3686 UINT32 pressure;
3687 UINT32 rotation;
3688 INT32 tiltX;
3689 INT32 tiltY;
3690 } POINTER_PEN_INFO;
3692 #define POINTER_MESSAGE_FLAG_NEW 0x00000001
3693 #define POINTER_MESSAGE_FLAG_INRANGE 0x00000002
3694 #define POINTER_MESSAGE_FLAG_INCONTACT 0x00000004
3695 #define POINTER_MESSAGE_FLAG_FIRSTBUTTON 0x00000010
3696 #define POINTER_MESSAGE_FLAG_SECONDBUTTON 0x00000020
3697 #define POINTER_MESSAGE_FLAG_THIRDBUTTON 0x00000040
3698 #define POINTER_MESSAGE_FLAG_FOURTHBUTTON 0x00000080
3699 #define POINTER_MESSAGE_FLAG_FIFTHBUTTON 0x00000100
3700 #define POINTER_MESSAGE_FLAG_PRIMARY 0x00002000
3701 #define POINTER_MESSAGE_FLAG_CONFIDENCE 0x00004000
3702 #define POINTER_MESSAGE_FLAG_CANCELED 0x00008000
3704 #define GET_POINTERID_WPARAM(wparam) (LOWORD(wparam))
3705 #define IS_POINTER_FLAG_SET_WPARAM(wparam, flags) ((HIWORD(wparam) & (flags)) == (flags))
3706 #define IS_POINTER_NEW_WPARAM(wparam) IS_POINTER_FLAG_SET_WPARAM(wparam, POINTER_MESSAGE_FLAG_NEW)
3707 #define IS_POINTER_INRANGE_WPARAM(wparam) IS_POINTER_FLAG_SET_WPARAM(wparam, POINTER_MESSAGE_FLAG_INRANGE)
3708 #define IS_POINTER_INCONTACT_WPARAM(wparam) IS_POINTER_FLAG_SET_WPARAM(wparam, POINTER_MESSAGE_FLAG_INCONTACT)
3709 #define IS_POINTER_FIRSTBUTTON_WPARAM(wparam) IS_POINTER_FLAG_SET_WPARAM(wparam, POINTER_MESSAGE_FLAG_FIRSTBUTTON)
3710 #define IS_POINTER_SECONDBUTTON_WPARAM(wparam) IS_POINTER_FLAG_SET_WPARAM(wparam, POINTER_MESSAGE_FLAG_SECONDBUTTON)
3711 #define IS_POINTER_THIRDBUTTON_WPARAM(wparam) IS_POINTER_FLAG_SET_WPARAM(wparam, POINTER_MESSAGE_FLAG_THIRDBUTTON)
3712 #define IS_POINTER_FOURTHBUTTON_WPARAM(wparam) IS_POINTER_FLAG_SET_WPARAM(wparam, POINTER_MESSAGE_FLAG_FOURTHBUTTON)
3713 #define IS_POINTER_FIFTHBUTTON_WPARAM(wparam) IS_POINTER_FLAG_SET_WPARAM(wparam, POINTER_MESSAGE_FLAG_FIFTHBUTTON)
3714 #define IS_POINTER_PRIMARY_WPARAM(wparam) IS_POINTER_FLAG_SET_WPARAM(wparam, POINTER_MESSAGE_FLAG_PRIMARY)
3715 #define HAS_POINTER_CONFIDENCE_WPARAM(wparam) IS_POINTER_FLAG_SET_WPARAM(wparam, POINTER_MESSAGE_FLAG_CONFIDENCE)
3716 #define IS_POINTER_CANCELED_WPARAM(wparam) IS_POINTER_FLAG_SET_WPARAM(wparam, POINTER_MESSAGE_FLAG_CANCELED)
3718 #define PA_ACTIVATE MA_ACTIVATE
3719 #define PA_NOACTIVATE MA_NOACTIVATE
3721 #define MAX_TOUCH_COUNT 256
3723 #define TOUCH_FEEDBACK_DEFAULT 0x1
3724 #define TOUCH_FEEDBACK_INDIRECT 0x2
3725 #define TOUCH_FEEDBACK_NONE 0x3
3727 #define TOUCH_HIT_TESTING_DEFAULT 0x0
3728 #define TOUCH_HIT_TESTING_CLIENT 0x1
3729 #define TOUCH_HIT_TESTING_NONE 0x2
3731 typedef struct tagTOUCH_HIT_TESTING_PROXIMITY_EVALUATION
3733 UINT16 score;
3734 POINT adjustedPoint;
3735 } TOUCH_HIT_TESTING_PROXIMITY_EVALUATION, *PTOUCH_HIT_TESTING_PROXIMITY_EVALUATION;
3737 typedef struct tagTOUCH_HIT_TESTING_INPUT
3739 UINT32 pointerId;
3740 POINT point;
3741 RECT boundingBox;
3742 RECT nonOccludedBoundingBox;
3743 UINT32 orientation;
3744 } TOUCH_HIT_TESTING_INPUT, *PTOUCH_HIT_TESTING_INPUT;
3746 #define TOUCH_HIT_TESTING_PROXIMITY_CLOSEST 0x0
3747 #define TOUCH_HIT_TESTING_PROXIMITY_FARTHEST 0xFFF
3749 typedef enum
3751 POINTER_FEEDBACK_DEFAULT = 1,
3752 POINTER_FEEDBACK_INDIRECT = 2,
3753 POINTER_FEEDBACK_NONE = 3,
3754 } POINTER_FEEDBACK_MODE;
3756 typedef enum tagFEEDBACK_TYPE
3758 FEEDBACK_TOUCH_CONTACTVISUALIZATION = 1,
3759 FEEDBACK_PEN_BARRELVISUALIZATION = 2,
3760 FEEDBACK_PEN_TAP = 3,
3761 FEEDBACK_PEN_DOUBLETAP = 4,
3762 FEEDBACK_PEN_PRESSANDHOLD = 5,
3763 FEEDBACK_PEN_RIGHTTAP = 6,
3764 FEEDBACK_TOUCH_TAP = 7,
3765 FEEDBACK_TOUCH_DOUBLETAP = 8,
3766 FEEDBACK_TOUCH_PRESSANDHOLD = 9,
3767 FEEDBACK_TOUCH_RIGHTTAP = 10,
3768 FEEDBACK_GESTURE_PRESSANDTAP = 11,
3769 FEEDBACK_MAX = 0xFFFFFFFF
3770 } FEEDBACK_TYPE;
3772 #define GWFS_INCLUDE_ANCESTORS 0x00000001
3774 typedef struct tagPOINTER_TYPE_INFO
3776 POINTER_INPUT_TYPE type;
3777 union
3779 POINTER_TOUCH_INFO touchInfo;
3780 POINTER_PEN_INFO penInfo;
3781 } DUMMYUNIONNAME;
3782 } POINTER_TYPE_INFO, *PPOINTER_TYPE_INFO;
3784 typedef struct tagINPUT_TRANSFORM
3786 union
3788 struct
3790 float _11, _12, _13, _14;
3791 float _21, _22, _23, _24;
3792 float _31, _32, _33, _34;
3793 float _41, _42, _43, _44;
3794 } DUMMYSTRUCTNAME;
3795 float m[4][4];
3796 } DUMMYUNIONNAME;
3797 } INPUT_TRANSFORM;
3799 DECLARE_HANDLE(HSYNTHETICPOINTERDEVICE);
3801 #define NID_INTEGRATED_TOUCH 0x00000001
3802 #define NID_EXTERNAL_TOUCH 0x00000002
3803 #define NID_INTEGRATED_PEN 0x00000004
3804 #define NID_EXTERNAL_PEN 0x00000008
3805 #define NID_MULTI_INPUT 0x00000040
3806 #define NID_READY 0x00000080
3808 typedef struct tagAUDIODESCRIPTION
3810 UINT cbSize;
3811 BOOL Enabled;
3812 LCID Locale;
3813 } AUDIODESCRIPTION, *LPAUDIODESCRIPTION;
3815 typedef struct tagMENUGETOBJECTINFO
3817 DWORD dwFlags;
3818 UINT uPos;
3819 HMENU hmenu;
3820 void *riid;
3821 void *pvObj;
3822 } MENUGETOBJECTINFO, *PMENUGETOBJECTINFO;
3824 #if defined(_WINGDI_) && !defined(NOGDI)
3825 WINUSERAPI LONG WINAPI ChangeDisplaySettingsA(LPDEVMODEA,DWORD);
3826 WINUSERAPI LONG WINAPI ChangeDisplaySettingsW(LPDEVMODEW,DWORD);
3827 #define ChangeDisplaySettings WINELIB_NAME_AW(ChangeDisplaySettings)
3828 WINUSERAPI LONG WINAPI ChangeDisplaySettingsExA(LPCSTR,LPDEVMODEA,HWND,DWORD,LPVOID);
3829 WINUSERAPI LONG WINAPI ChangeDisplaySettingsExW(LPCWSTR,LPDEVMODEW,HWND,DWORD,LPVOID);
3830 #define ChangeDisplaySettingsEx WINELIB_NAME_AW(ChangeDisplaySettingsEx)
3831 WINUSERAPI HDESK WINAPI CreateDesktopA(LPCSTR,LPCSTR,LPDEVMODEA,DWORD,ACCESS_MASK,LPSECURITY_ATTRIBUTES);
3832 WINUSERAPI HDESK WINAPI CreateDesktopW(LPCWSTR,LPCWSTR,LPDEVMODEW,DWORD,ACCESS_MASK,LPSECURITY_ATTRIBUTES);
3833 #define CreateDesktop WINELIB_NAME_AW(CreateDesktop)
3834 WINUSERAPI LONG WINAPI DisplayConfigGetDeviceInfo(DISPLAYCONFIG_DEVICE_INFO_HEADER *);
3835 WINUSERAPI BOOL WINAPI EnumDisplayDevicesA(LPCSTR,DWORD,LPDISPLAY_DEVICEA,DWORD);
3836 WINUSERAPI BOOL WINAPI EnumDisplayDevicesW(LPCWSTR,DWORD,LPDISPLAY_DEVICEW,DWORD);
3837 #define EnumDisplayDevices WINELIB_NAME_AW(EnumDisplayDevices)
3838 WINUSERAPI BOOL WINAPI EnumDisplaySettingsA(LPCSTR,DWORD,LPDEVMODEA);
3839 WINUSERAPI BOOL WINAPI EnumDisplaySettingsW(LPCWSTR,DWORD,LPDEVMODEW);
3840 #define EnumDisplaySettings WINELIB_NAME_AW(EnumDisplaySettings)
3841 WINUSERAPI BOOL WINAPI EnumDisplaySettingsExA(LPCSTR,DWORD,LPDEVMODEA,DWORD);
3842 WINUSERAPI BOOL WINAPI EnumDisplaySettingsExW(LPCWSTR,DWORD,LPDEVMODEW,DWORD);
3843 #define EnumDisplaySettingsEx WINELIB_NAME_AW(EnumDisplaySettingsEx)
3844 WINUSERAPI LONG WINAPI GetDisplayConfigBufferSizes(UINT32,UINT32*,UINT32*);
3845 WINUSERAPI BOOL WINAPI UpdateLayeredWindow(HWND,HDC,POINT*,SIZE*,HDC,POINT*,COLORREF,BLENDFUNCTION*,DWORD);
3846 WINUSERAPI BOOL WINAPI UpdateLayeredWindowIndirect(HWND,UPDATELAYEREDWINDOWINFO const*);
3847 #endif /* defined(_WINGDI_) && !defined(NOGDI) */
3849 WINUSERAPI HKL WINAPI ActivateKeyboardLayout(HKL,UINT);
3850 WINUSERAPI BOOL WINAPI AddClipboardFormatListener(HWND);
3851 WINUSERAPI BOOL WINAPI AdjustWindowRect(LPRECT,DWORD,BOOL);
3852 WINUSERAPI BOOL WINAPI AdjustWindowRectEx(LPRECT,DWORD,BOOL,DWORD);
3853 WINUSERAPI BOOL WINAPI AdjustWindowRectExForDpi(RECT*,DWORD,BOOL,DWORD,UINT);
3854 WINUSERAPI BOOL WINAPI AllowSetForegroundWindow(DWORD);
3855 WINUSERAPI BOOL WINAPI AnimateWindow(HWND,DWORD,DWORD);
3856 #define AnsiLowerA CharLowerA
3857 #define AnsiLowerW CharLowerW
3858 #define AnsiLower WINELIB_NAME_AW(AnsiLower)
3859 #define AnsiLowerBuffA CharLowerBuffA
3860 #define AnsiLowerBuffW CharLowerBuffW
3861 #define AnsiLowerBuff WINELIB_NAME_AW(AnsiLowerBuff)
3862 #define AnsiNextA CharNextA
3863 #define AnsiNextW CharNextW
3864 #define AnsiNext WINELIB_NAME_AW(AnsiNext)
3865 #define AnsiPrevA CharPrevA
3866 #define AnsiPrevW CharPrevW
3867 #define AnsiPrev WINELIB_NAME_AW(AnsiPrev)
3868 #define AnsiUpperA CharUpperA
3869 #define AnsiUpperW CharUpperW
3870 #define AnsiUpper WINELIB_NAME_AW(AnsiUpper)
3871 #define AnsiUpperBuffA CharUpperBuffA
3872 #define AnsiUpperBuffW CharUpperBuffW
3873 #define AnsiUpperBuff WINELIB_NAME_AW(AnsiUpperBuff)
3874 WINUSERAPI BOOL WINAPI AnyPopup(void);
3875 WINUSERAPI BOOL WINAPI AppendMenuA(HMENU,UINT,UINT_PTR,LPCSTR);
3876 WINUSERAPI BOOL WINAPI AppendMenuW(HMENU,UINT,UINT_PTR,LPCWSTR);
3877 #define AppendMenu WINELIB_NAME_AW(AppendMenu)
3878 WINUSERAPI BOOL WINAPI AreDpiAwarenessContextsEqual(DPI_AWARENESS_CONTEXT,DPI_AWARENESS_CONTEXT);
3879 WINUSERAPI UINT WINAPI ArrangeIconicWindows(HWND);
3880 WINUSERAPI BOOL WINAPI AttachThreadInput(DWORD,DWORD,BOOL);
3881 WINUSERAPI HDWP WINAPI BeginDeferWindowPos(INT);
3882 WINUSERAPI HDC WINAPI BeginPaint(HWND,LPPAINTSTRUCT);
3883 WINUSERAPI BOOL WINAPI BlockInput(BOOL);
3884 WINUSERAPI BOOL WINAPI BringWindowToTop(HWND);
3885 WINUSERAPI LONG WINAPI BroadcastSystemMessageA(DWORD,LPDWORD,UINT,WPARAM,LPARAM);
3886 WINUSERAPI LONG WINAPI BroadcastSystemMessageW(DWORD,LPDWORD,UINT,WPARAM,LPARAM);
3887 #define BroadcastSystemMessage WINELIB_NAME_AW(BroadcastSystemMessage)
3888 WINUSERAPI LONG WINAPI BroadcastSystemMessageExA(DWORD,LPDWORD,UINT,WPARAM,LPARAM,PBSMINFO);
3889 WINUSERAPI LONG WINAPI BroadcastSystemMessageExW(DWORD,LPDWORD,UINT,WPARAM,LPARAM,PBSMINFO);
3890 #define BroadcastSystemMessageEx WINELIB_NAME_AW(BroadcastSystemMessageEx)
3891 WINUSERAPI void WINAPI CalcChildScroll(HWND, INT);
3892 WINUSERAPI BOOL WINAPI CallMsgFilterA(LPMSG,INT);
3893 WINUSERAPI BOOL WINAPI CallMsgFilterW(LPMSG,INT);
3894 #define CallMsgFilter WINELIB_NAME_AW(CallMsgFilter)
3895 WINUSERAPI LRESULT WINAPI CallNextHookEx(HHOOK,INT,WPARAM,LPARAM);
3896 WINUSERAPI LRESULT WINAPI CallWindowProcA(WNDPROC,HWND,UINT,WPARAM,LPARAM);
3897 WINUSERAPI LRESULT WINAPI CallWindowProcW(WNDPROC,HWND,UINT,WPARAM,LPARAM);
3898 #define CallWindowProc WINELIB_NAME_AW(CallWindowProc)
3899 WINUSERAPI WORD WINAPI CascadeWindows(HWND, UINT, const RECT *, UINT, const HWND *);
3900 WINUSERAPI BOOL WINAPI ChangeClipboardChain(HWND,HWND);
3901 WINUSERAPI BOOL WINAPI ChangeMenuA(HMENU,UINT,LPCSTR,UINT,UINT);
3902 WINUSERAPI BOOL WINAPI ChangeMenuW(HMENU,UINT,LPCWSTR,UINT,UINT);
3903 #define ChangeMenu WINELIB_NAME_AW(ChangeMenu)
3904 WINUSERAPI BOOL WINAPI ChangeWindowMessageFilter(UINT,DWORD);
3905 WINUSERAPI BOOL WINAPI ChangeWindowMessageFilterEx(HWND,UINT,DWORD,CHANGEFILTERSTRUCT*);
3906 WINUSERAPI LPSTR WINAPI CharLowerA(LPSTR);
3907 WINUSERAPI LPWSTR WINAPI CharLowerW(LPWSTR);
3908 #define CharLower WINELIB_NAME_AW(CharLower)
3909 WINUSERAPI DWORD WINAPI CharLowerBuffA(LPSTR,DWORD);
3910 WINUSERAPI DWORD WINAPI CharLowerBuffW(LPWSTR,DWORD);
3911 #define CharLowerBuff WINELIB_NAME_AW(CharLowerBuff)
3912 WINUSERAPI LPSTR WINAPI CharNextA(LPCSTR);
3913 WINUSERAPI LPWSTR WINAPI CharNextW(LPCWSTR);
3914 #define CharNext WINELIB_NAME_AW(CharNext)
3915 WINUSERAPI LPSTR WINAPI CharNextExA(WORD,LPCSTR,DWORD);
3916 /* no CharNextExW (doesn't make sense) */
3917 WINUSERAPI LPSTR WINAPI CharPrevA(LPCSTR,LPCSTR);
3918 WINUSERAPI LPWSTR WINAPI CharPrevW(LPCWSTR,LPCWSTR);
3919 #define CharPrev WINELIB_NAME_AW(CharPrev)
3920 WINUSERAPI LPSTR WINAPI CharPrevExA(WORD,LPCSTR,LPCSTR,DWORD);
3921 /* no CharPrevExW (doesn't make sense) */
3922 WINUSERAPI LPSTR WINAPI CharUpperA(LPSTR);
3923 WINUSERAPI LPWSTR WINAPI CharUpperW(LPWSTR);
3924 #define CharUpper WINELIB_NAME_AW(CharUpper)
3925 WINUSERAPI DWORD WINAPI CharUpperBuffA(LPSTR,DWORD);
3926 WINUSERAPI DWORD WINAPI CharUpperBuffW(LPWSTR,DWORD);
3927 #define CharUpperBuff WINELIB_NAME_AW(CharUpperBuff)
3928 WINUSERAPI BOOL WINAPI CharToOemA(LPCSTR,LPSTR);
3929 WINUSERAPI BOOL WINAPI CharToOemW(LPCWSTR,LPSTR);
3930 #define CharToOem WINELIB_NAME_AW(CharToOem)
3931 WINUSERAPI BOOL WINAPI CharToOemBuffA(LPCSTR,LPSTR,DWORD);
3932 WINUSERAPI BOOL WINAPI CharToOemBuffW(LPCWSTR,LPSTR,DWORD);
3933 #define CharToOemBuff WINELIB_NAME_AW(CharToOemBuff)
3934 WINUSERAPI BOOL WINAPI CheckDlgButton(HWND,INT,UINT);
3935 WINUSERAPI DWORD WINAPI CheckMenuItem(HMENU,UINT,UINT);
3936 WINUSERAPI BOOL WINAPI CheckMenuRadioItem(HMENU,UINT,UINT,UINT,UINT);
3937 WINUSERAPI BOOL WINAPI CheckRadioButton(HWND,int,int,int);
3938 WINUSERAPI HWND WINAPI ChildWindowFromPoint(HWND,POINT);
3939 WINUSERAPI HWND WINAPI ChildWindowFromPointEx(HWND,POINT,UINT);
3940 WINUSERAPI BOOL WINAPI ClientToScreen(HWND,LPPOINT);
3941 WINUSERAPI BOOL WINAPI ClipCursor(const RECT*);
3942 WINUSERAPI BOOL WINAPI CloseClipboard(void);
3943 WINUSERAPI BOOL WINAPI CloseDesktop(HDESK);
3944 WINUSERAPI BOOL WINAPI CloseTouchInputHandle(HTOUCHINPUT);
3945 WINUSERAPI BOOL WINAPI CloseGestureInfoHandle(HGESTUREINFO);
3946 WINUSERAPI BOOL WINAPI CloseWindow(HWND);
3947 WINUSERAPI BOOL WINAPI CloseWindowStation(HWINSTA);
3948 WINUSERAPI INT WINAPI CopyAcceleratorTableA(HACCEL,LPACCEL,INT);
3949 WINUSERAPI INT WINAPI CopyAcceleratorTableW(HACCEL,LPACCEL,INT);
3950 #define CopyAcceleratorTable WINELIB_NAME_AW(CopyAcceleratorTable)
3951 #define CopyCursor(cur) ((HCURSOR)CopyIcon((HICON)(cur)))
3952 WINUSERAPI HICON WINAPI CopyIcon(HICON);
3953 WINUSERAPI HANDLE WINAPI CopyImage(HANDLE,UINT,INT,INT,UINT);
3954 WINUSERAPI BOOL WINAPI CopyRect(RECT*,const RECT*);
3955 WINUSERAPI INT WINAPI CountClipboardFormats(void);
3956 WINUSERAPI HACCEL WINAPI CreateAcceleratorTableA(LPACCEL,INT);
3957 WINUSERAPI HACCEL WINAPI CreateAcceleratorTableW(LPACCEL,INT);
3958 #define CreateAcceleratorTable WINELIB_NAME_AW(CreateAcceleratorTable)
3959 WINUSERAPI HICON WINAPI CreateIconIndirect(PICONINFO);
3960 WINUSERAPI BOOL WINAPI CreateCaret(HWND,HBITMAP,INT,INT);
3961 WINUSERAPI HCURSOR WINAPI CreateCursor(HINSTANCE,INT,INT,INT,INT,LPCVOID,LPCVOID);
3962 #define CreateDialogA(inst,ptr,hwnd,dlg) CreateDialogParamA(inst,ptr,hwnd,dlg,0)
3963 #define CreateDialogW(inst,ptr,hwnd,dlg) CreateDialogParamW(inst,ptr,hwnd,dlg,0)
3964 #define CreateDialog WINELIB_NAME_AW(CreateDialog)
3965 #define CreateDialogIndirectA(inst,ptr,hwnd,dlg) CreateDialogIndirectParamA(inst,ptr,hwnd,dlg,0)
3966 #define CreateDialogIndirectW(inst,ptr,hwnd,dlg) CreateDialogIndirectParamW(inst,ptr,hwnd,dlg,0)
3967 #define CreateDialogIndirect WINELIB_NAME_AW(CreateDialogIndirect)
3968 WINUSERAPI HWND WINAPI CreateDialogIndirectParamA(HINSTANCE,LPCDLGTEMPLATEA,HWND,DLGPROC,LPARAM);
3969 WINUSERAPI HWND WINAPI CreateDialogIndirectParamW(HINSTANCE,LPCDLGTEMPLATEW,HWND,DLGPROC,LPARAM);
3970 #define CreateDialogIndirectParam WINELIB_NAME_AW(CreateDialogIndirectParam)
3971 WINUSERAPI HWND WINAPI CreateDialogParamA(HINSTANCE,LPCSTR,HWND,DLGPROC,LPARAM);
3972 WINUSERAPI HWND WINAPI CreateDialogParamW(HINSTANCE,LPCWSTR,HWND,DLGPROC,LPARAM);
3973 #define CreateDialogParam WINELIB_NAME_AW(CreateDialogParam)
3974 WINUSERAPI HICON WINAPI CreateIcon(HINSTANCE,INT,INT,BYTE,BYTE,LPCVOID,LPCVOID);
3975 WINUSERAPI HICON WINAPI CreateIconFromResource(LPBYTE,UINT,BOOL,DWORD);
3976 WINUSERAPI HICON WINAPI CreateIconFromResourceEx(LPBYTE,UINT,BOOL,DWORD,INT,INT,UINT);
3977 WINUSERAPI HMENU WINAPI CreateMenu(void);
3978 WINUSERAPI HMENU WINAPI CreatePopupMenu(void);
3979 #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)
3980 #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)
3981 #define CreateWindow WINELIB_NAME_AW(CreateWindow)
3982 WINUSERAPI HWND WINAPI CreateWindowExA(DWORD,LPCSTR,LPCSTR,DWORD,INT,INT,INT,INT,HWND,HMENU,HINSTANCE,LPVOID);
3983 WINUSERAPI HWND WINAPI CreateWindowExW(DWORD,LPCWSTR,LPCWSTR,DWORD,INT,INT,INT,INT,HWND,HMENU,HINSTANCE,LPVOID);
3984 #define CreateWindowEx WINELIB_NAME_AW(CreateWindowEx)
3985 WINUSERAPI HWINSTA WINAPI CreateWindowStationA(LPCSTR,DWORD,ACCESS_MASK,LPSECURITY_ATTRIBUTES);
3986 WINUSERAPI HWINSTA WINAPI CreateWindowStationW(LPCWSTR,DWORD,ACCESS_MASK,LPSECURITY_ATTRIBUTES);
3987 #define CreateWindowStation WINELIB_NAME_AW(CreateWindowStation)
3988 WINUSERAPI HWND WINAPI CreateMDIWindowA(LPCSTR,LPCSTR,DWORD,INT,INT,INT,INT,HWND,HINSTANCE,LPARAM);
3989 WINUSERAPI HWND WINAPI CreateMDIWindowW(LPCWSTR,LPCWSTR,DWORD,INT,INT,INT,INT,HWND,HINSTANCE,LPARAM);
3990 #define CreateMDIWindow WINELIB_NAME_AW(CreateMDIWindow)
3991 WINUSERAPI HSYNTHETICPOINTERDEVICE WINAPI CreateSyntheticPointerDevice(POINTER_INPUT_TYPE,ULONG,POINTER_FEEDBACK_MODE);
3992 WINUSERAPI LRESULT WINAPI DefDlgProcA(HWND,UINT,WPARAM,LPARAM);
3993 WINUSERAPI LRESULT WINAPI DefDlgProcW(HWND,UINT,WPARAM,LPARAM);
3994 #define DefDlgProc WINELIB_NAME_AW(DefDlgProc)
3995 WINUSERAPI HDWP WINAPI DeferWindowPos(HDWP,HWND,HWND,INT,INT,INT,INT,UINT);
3996 WINUSERAPI LRESULT WINAPI DefFrameProcA(HWND,HWND,UINT,WPARAM,LPARAM);
3997 WINUSERAPI LRESULT WINAPI DefFrameProcW(HWND,HWND,UINT,WPARAM,LPARAM);
3998 #define DefFrameProc WINELIB_NAME_AW(DefFrameProc)
3999 #define DefHookProc(code,wparam,lparam,phhook) CallNextHookEx(*(phhook),code,wparam,lparam)
4000 WINUSERAPI LRESULT WINAPI DefMDIChildProcA(HWND,UINT,WPARAM,LPARAM);
4001 WINUSERAPI LRESULT WINAPI DefMDIChildProcW(HWND,UINT,WPARAM,LPARAM);
4002 #define DefMDIChildProc WINELIB_NAME_AW(DefMDIChildProc)
4003 WINUSERAPI LRESULT WINAPI DefRawInputProc(PRAWINPUT*,INT,UINT);
4004 WINUSERAPI LRESULT WINAPI DefWindowProcA(HWND,UINT,WPARAM,LPARAM);
4005 WINUSERAPI LRESULT WINAPI DefWindowProcW(HWND,UINT,WPARAM,LPARAM);
4006 #define DefWindowProc WINELIB_NAME_AW(DefWindowProc)
4007 WINUSERAPI BOOL WINAPI DeleteMenu(HMENU,UINT,UINT);
4008 WINUSERAPI BOOL WINAPI DeregisterShellHookWindow(HWND);
4009 WINUSERAPI BOOL WINAPI DestroyAcceleratorTable(HACCEL);
4010 WINUSERAPI BOOL WINAPI DestroyCaret(void);
4011 WINUSERAPI BOOL WINAPI DestroyCursor(HCURSOR);
4012 WINUSERAPI BOOL WINAPI DestroyIcon(HICON);
4013 WINUSERAPI BOOL WINAPI DestroyMenu(HMENU);
4014 WINUSERAPI void WINAPI DestroySyntheticPointerDevice(HSYNTHETICPOINTERDEVICE);
4015 WINUSERAPI BOOL WINAPI DestroyWindow(HWND);
4016 #define DialogBoxA(inst,template,owner,func) DialogBoxParamA(inst,template,owner,func,0)
4017 #define DialogBoxW(inst,template,owner,func) DialogBoxParamW(inst,template,owner,func,0)
4018 #define DialogBox WINELIB_NAME_AW(DialogBox)
4019 #define DialogBoxIndirectA(inst,template,owner,func) DialogBoxIndirectParamA(inst,template,owner,func,0)
4020 #define DialogBoxIndirectW(inst,template,owner,func) DialogBoxIndirectParamW(inst,template,owner,func,0)
4021 #define DialogBoxIndirect WINELIB_NAME_AW(DialogBoxIndirect)
4022 WINUSERAPI INT_PTR WINAPI DialogBoxIndirectParamA(HINSTANCE,LPCDLGTEMPLATEA,HWND,DLGPROC,LPARAM);
4023 WINUSERAPI INT_PTR WINAPI DialogBoxIndirectParamW(HINSTANCE,LPCDLGTEMPLATEW,HWND,DLGPROC,LPARAM);
4024 #define DialogBoxIndirectParam WINELIB_NAME_AW(DialogBoxIndirectParam)
4025 WINUSERAPI INT_PTR WINAPI DialogBoxParamA(HINSTANCE,LPCSTR,HWND,DLGPROC,LPARAM);
4026 WINUSERAPI INT_PTR WINAPI DialogBoxParamW(HINSTANCE,LPCWSTR,HWND,DLGPROC,LPARAM);
4027 #define DialogBoxParam WINELIB_NAME_AW(DialogBoxParam)
4028 WINUSERAPI VOID WINAPI DisableProcessWindowsGhosting(VOID);
4029 WINUSERAPI LRESULT WINAPI DispatchMessageA(const MSG*);
4030 WINUSERAPI LRESULT WINAPI DispatchMessageW(const MSG*);
4031 #define DispatchMessage WINELIB_NAME_AW(DispatchMessage)
4032 WINUSERAPI INT WINAPI DlgDirListA(HWND,LPSTR,INT,INT,UINT);
4033 WINUSERAPI INT WINAPI DlgDirListW(HWND,LPWSTR,INT,INT,UINT);
4034 #define DlgDirList WINELIB_NAME_AW(DlgDirList)
4035 WINUSERAPI INT WINAPI DlgDirListComboBoxA(HWND,LPSTR,INT,INT,UINT);
4036 WINUSERAPI INT WINAPI DlgDirListComboBoxW(HWND,LPWSTR,INT,INT,UINT);
4037 #define DlgDirListComboBox WINELIB_NAME_AW(DlgDirListComboBox)
4038 WINUSERAPI BOOL WINAPI DlgDirSelectComboBoxExA(HWND,LPSTR,INT,INT);
4039 WINUSERAPI BOOL WINAPI DlgDirSelectComboBoxExW(HWND,LPWSTR,INT,INT);
4040 #define DlgDirSelectComboBoxEx WINELIB_NAME_AW(DlgDirSelectComboBoxEx)
4041 WINUSERAPI BOOL WINAPI DlgDirSelectExA(HWND,LPSTR,INT,INT);
4042 WINUSERAPI BOOL WINAPI DlgDirSelectExW(HWND,LPWSTR,INT,INT);
4043 #define DlgDirSelectEx WINELIB_NAME_AW(DlgDirSelectEx)
4044 WINUSERAPI BOOL WINAPI DragDetect(HWND,POINT);
4045 WINUSERAPI DWORD WINAPI DragObject(HWND,HWND,UINT,ULONG_PTR,HCURSOR);
4046 WINUSERAPI BOOL WINAPI DrawAnimatedRects(HWND,int,const RECT*,const RECT*);
4047 WINUSERAPI BOOL WINAPI DrawCaption(HWND,HDC,const RECT*,UINT);
4048 WINUSERAPI BOOL WINAPI DrawCaptionTempA(HWND,HDC,const RECT*,HFONT,HICON,LPCSTR,UINT);
4049 WINUSERAPI BOOL WINAPI DrawCaptionTempW(HWND,HDC,const RECT*,HFONT,HICON,LPCWSTR,UINT);
4050 #define DrawCaptionTemp WINELIB_NAME_AW(DrawCaptionTemp)
4051 WINUSERAPI BOOL WINAPI DrawEdge(HDC,LPRECT,UINT,UINT);
4052 WINUSERAPI BOOL WINAPI DrawFocusRect(HDC,const RECT*);
4053 WINUSERAPI BOOL WINAPI DrawFrameControl(HDC,LPRECT,UINT,UINT);
4054 WINUSERAPI BOOL WINAPI DrawIcon(HDC,INT,INT,HICON);
4055 WINUSERAPI BOOL WINAPI DrawIconEx(HDC,INT,INT,HICON,INT,INT,UINT,HBRUSH,UINT);
4056 WINUSERAPI BOOL WINAPI DrawMenuBar(HWND);
4057 WINUSERAPI BOOL WINAPI DrawStateA(HDC,HBRUSH,DRAWSTATEPROC,LPARAM,WPARAM,INT,INT,INT,INT,UINT);
4058 WINUSERAPI BOOL WINAPI DrawStateW(HDC,HBRUSH,DRAWSTATEPROC,LPARAM,WPARAM,INT,INT,INT,INT,UINT);
4059 #define DrawState WINELIB_NAME_AW(DrawState)
4060 WINUSERAPI INT WINAPI DrawTextA(HDC,LPCSTR,INT,LPRECT,UINT);
4061 WINUSERAPI INT WINAPI DrawTextW(HDC,LPCWSTR,INT,LPRECT,UINT);
4062 #define DrawText WINELIB_NAME_AW(DrawText)
4063 WINUSERAPI INT WINAPI DrawTextExA(HDC,LPSTR,INT,LPRECT,UINT,LPDRAWTEXTPARAMS);
4064 WINUSERAPI INT WINAPI DrawTextExW(HDC,LPWSTR,INT,LPRECT,UINT,LPDRAWTEXTPARAMS);
4065 #define DrawTextEx WINELIB_NAME_AW(DrawTextEx)
4066 WINUSERAPI BOOL WINAPI EmptyClipboard(void);
4067 WINUSERAPI BOOL WINAPI EnableMenuItem(HMENU,UINT,UINT);
4068 WINUSERAPI BOOL WINAPI EnableMouseInPointer(BOOL);
4069 WINUSERAPI BOOL WINAPI EnableMouseInPointerForThread(VOID);
4070 WINUSERAPI BOOL WINAPI EnableNonClientDpiScaling(HWND);
4071 WINUSERAPI BOOL WINAPI EnableScrollBar(HWND,UINT,UINT);
4072 WINUSERAPI BOOL WINAPI EnableWindow(HWND,BOOL);
4073 WINUSERAPI BOOL WINAPI EndDeferWindowPos(HDWP);
4074 WINUSERAPI BOOL WINAPI EndDialog(HWND,INT_PTR);
4075 WINUSERAPI BOOL WINAPI EndMenu(void);
4076 WINUSERAPI BOOL WINAPI EndPaint(HWND,const PAINTSTRUCT*);
4077 WINUSERAPI BOOL WINAPI EnumChildWindows(HWND,WNDENUMPROC,LPARAM);
4078 WINUSERAPI UINT WINAPI EnumClipboardFormats(UINT);
4079 WINUSERAPI BOOL WINAPI EnumDesktopsA(HWINSTA,DESKTOPENUMPROCA,LPARAM);
4080 WINUSERAPI BOOL WINAPI EnumDesktopsW(HWINSTA,DESKTOPENUMPROCW,LPARAM);
4081 #define EnumDesktops WINELIB_NAME_AW(EnumDesktops)
4082 WINUSERAPI BOOL WINAPI EnumDesktopWindows(HDESK,WNDENUMPROC,LPARAM);
4083 WINUSERAPI BOOL WINAPI EnumDisplayMonitors(HDC,LPRECT,MONITORENUMPROC,LPARAM);
4084 WINUSERAPI INT WINAPI EnumPropsA(HWND,PROPENUMPROCA);
4085 WINUSERAPI INT WINAPI EnumPropsW(HWND,PROPENUMPROCW);
4086 #define EnumProps WINELIB_NAME_AW(EnumProps)
4087 WINUSERAPI INT WINAPI EnumPropsExA(HWND,PROPENUMPROCEXA,LPARAM);
4088 WINUSERAPI INT WINAPI EnumPropsExW(HWND,PROPENUMPROCEXW,LPARAM);
4089 #define EnumPropsEx WINELIB_NAME_AW(EnumPropsEx)
4090 WINUSERAPI BOOL WINAPI EnumThreadWindows(DWORD,WNDENUMPROC,LPARAM);
4091 WINUSERAPI BOOL WINAPI EnumWindows(WNDENUMPROC,LPARAM);
4092 WINUSERAPI BOOL WINAPI EnumWindowStationsA(WINSTAENUMPROCA,LPARAM);
4093 WINUSERAPI BOOL WINAPI EnumWindowStationsW(WINSTAENUMPROCW,LPARAM);
4094 #define EnumWindowStations WINELIB_NAME_AW(EnumWindowStations)
4095 WINUSERAPI BOOL WINAPI EvaluateProximityToRect(const RECT*,const TOUCH_HIT_TESTING_INPUT*,TOUCH_HIT_TESTING_PROXIMITY_EVALUATION*);
4096 WINUSERAPI BOOL WINAPI EvaluateProximityToPolygon(UINT32,const POINT*,const TOUCH_HIT_TESTING_INPUT*,TOUCH_HIT_TESTING_PROXIMITY_EVALUATION*);
4097 WINUSERAPI INT WINAPI ExcludeUpdateRgn(HDC,HWND);
4098 #define ExitWindows(a,b) ExitWindowsEx(EWX_LOGOFF,0xffffffff)
4099 WINUSERAPI BOOL WINAPI ExitWindowsEx(UINT,DWORD);
4100 WINUSERAPI INT WINAPI FillRect(HDC,const RECT*,HBRUSH);
4101 WINUSERAPI HWND WINAPI FindWindowA(LPCSTR,LPCSTR);
4102 WINUSERAPI HWND WINAPI FindWindowW(LPCWSTR,LPCWSTR);
4103 #define FindWindow WINELIB_NAME_AW(FindWindow)
4104 WINUSERAPI HWND WINAPI FindWindowExA(HWND,HWND,LPCSTR,LPCSTR);
4105 WINUSERAPI HWND WINAPI FindWindowExW(HWND,HWND,LPCWSTR,LPCWSTR);
4106 #define FindWindowEx WINELIB_NAME_AW(FindWindowEx)
4107 WINUSERAPI BOOL WINAPI FlashWindow(HWND,BOOL);
4108 WINUSERAPI BOOL WINAPI FlashWindowEx(PFLASHWINFO);
4109 WINUSERAPI INT WINAPI FrameRect(HDC,const RECT*,HBRUSH);
4110 WINUSERAPI HWND WINAPI GetActiveWindow(void);
4111 WINUSERAPI BOOL WINAPI GetAltTabInfoA(HWND,INT,PALTTABINFO,LPSTR,UINT);
4112 WINUSERAPI BOOL WINAPI GetAltTabInfoW(HWND,INT,PALTTABINFO,LPWSTR,UINT);
4113 #define GetAltTabInfo WINELIB_NAME_AW(GetAltTabInfo)
4114 WINUSERAPI HWND WINAPI GetAncestor(HWND,UINT);
4115 WINUSERAPI DWORD WINAPI GetAppCompatFlags(HTASK);
4116 WINUSERAPI SHORT WINAPI GetAsyncKeyState(INT);
4117 WINUSERAPI BOOL WINAPI GetAutoRotationState(AR_STATE*);
4118 WINUSERAPI DPI_AWARENESS WINAPI GetAwarenessFromDpiAwarenessContext(DPI_AWARENESS_CONTEXT);
4119 WINUSERAPI HWND WINAPI GetCapture(void);
4120 WINUSERAPI UINT WINAPI GetCaretBlinkTime(void);
4121 WINUSERAPI BOOL WINAPI GetCaretPos(LPPOINT);
4122 WINUSERAPI BOOL WINAPI GetClassInfoA(HINSTANCE,LPCSTR,WNDCLASSA *);
4123 WINUSERAPI BOOL WINAPI GetClassInfoW(HINSTANCE,LPCWSTR,WNDCLASSW *);
4124 #define GetClassInfo WINELIB_NAME_AW(GetClassInfo)
4125 WINUSERAPI BOOL WINAPI GetClassInfoExA(HINSTANCE,LPCSTR,WNDCLASSEXA *);
4126 WINUSERAPI BOOL WINAPI GetClassInfoExW(HINSTANCE,LPCWSTR,WNDCLASSEXW *);
4127 #define GetClassInfoEx WINELIB_NAME_AW(GetClassInfoEx)
4128 WINUSERAPI DWORD WINAPI GetClassLongA(HWND,INT);
4129 WINUSERAPI DWORD WINAPI GetClassLongW(HWND,INT);
4130 #define GetClassLong WINELIB_NAME_AW(GetClassLong)
4131 #ifdef _WIN64
4132 WINUSERAPI ULONG_PTR WINAPI GetClassLongPtrA(HWND,INT);
4133 WINUSERAPI ULONG_PTR WINAPI GetClassLongPtrW(HWND,INT);
4134 #else
4135 #define GetClassLongPtrA GetClassLongA
4136 #define GetClassLongPtrW GetClassLongW
4137 #endif
4138 #define GetClassLongPtr WINELIB_NAME_AW(GetClassLongPtr)
4139 WINUSERAPI INT WINAPI GetClassNameA(HWND,LPSTR,INT);
4140 WINUSERAPI INT WINAPI GetClassNameW(HWND,LPWSTR,INT);
4141 #define GetClassName WINELIB_NAME_AW(GetClassName)
4142 WINUSERAPI WORD WINAPI GetClassWord(HWND,INT);
4143 WINUSERAPI BOOL WINAPI GetClientRect(HWND,LPRECT);
4144 WINUSERAPI HANDLE WINAPI GetClipboardData(UINT);
4145 WINUSERAPI INT WINAPI GetClipboardFormatNameA(UINT,LPSTR,INT);
4146 WINUSERAPI INT WINAPI GetClipboardFormatNameW(UINT,LPWSTR,INT);
4147 #define GetClipboardFormatName WINELIB_NAME_AW(GetClipboardFormatName)
4148 WINUSERAPI HWND WINAPI GetClipboardOwner(void);
4149 WINUSERAPI DWORD WINAPI GetClipboardSequenceNumber(VOID);
4150 WINUSERAPI HWND WINAPI GetClipboardViewer(void);
4151 WINUSERAPI BOOL WINAPI GetClipCursor(LPRECT);
4152 WINUSERAPI BOOL WINAPI GetComboBoxInfo(HWND,PCOMBOBOXINFO);
4153 WINUSERAPI BOOL WINAPI GetCurrentInputMessageSource(INPUT_MESSAGE_SOURCE*);
4154 WINUSERAPI HCURSOR WINAPI GetCursor(void);
4155 WINUSERAPI BOOL WINAPI GetCursorInfo(PCURSORINFO);
4156 WINUSERAPI HCURSOR WINAPI GetCursorFrameInfo(HCURSOR,DWORD,DWORD,DWORD*,DWORD*);
4157 WINUSERAPI BOOL WINAPI GetCursorPos(LPPOINT);
4158 WINUSERAPI HDC WINAPI GetDC(HWND);
4159 WINUSERAPI HDC WINAPI GetDCEx(HWND,HRGN,DWORD);
4160 WINUSERAPI HWND WINAPI GetDesktopWindow(void);
4161 WINUSERAPI DWORD WINAPI GetDialogBaseUnits(void);
4162 WINUSERAPI BOOL WINAPI GetDisplayAutoRotationPreferences(ORIENTATION_PREFERENCE*);
4163 WINUSERAPI INT WINAPI GetDlgCtrlID(HWND);
4164 WINUSERAPI HWND WINAPI GetDlgItem(HWND,INT);
4165 WINUSERAPI UINT WINAPI GetDlgItemInt(HWND,INT,BOOL*,BOOL);
4166 WINUSERAPI UINT WINAPI GetDlgItemTextA(HWND,INT,LPSTR,INT);
4167 WINUSERAPI UINT WINAPI GetDlgItemTextW(HWND,INT,LPWSTR,INT);
4168 #define GetDlgItemText WINELIB_NAME_AW(GetDlgItemText)
4169 WINUSERAPI UINT WINAPI GetDoubleClickTime(void);
4170 WINUSERAPI BOOL WINAPI GetDpiForMonitorInternal(HMONITOR,UINT,UINT*,UINT*);
4171 WINUSERAPI UINT WINAPI GetDpiForWindow(HWND);
4172 WINUSERAPI UINT WINAPI GetDpiForSystem(void);
4173 WINUSERAPI HWND WINAPI GetFocus(void);
4174 WINUSERAPI HWND WINAPI GetForegroundWindow(void);
4175 WINUSERAPI BOOL WINAPI GetGestureConfig(HWND,DWORD,DWORD,UINT*,GESTURECONFIG*,UINT);
4176 WINUSERAPI BOOL WINAPI GetGestureExtraArgs(HGESTUREINFO,UINT,BYTE*);
4177 WINUSERAPI BOOL WINAPI GetGestureInfo(HGESTUREINFO,PGESTUREINFO);
4178 WINUSERAPI BOOL WINAPI GetGUIThreadInfo(DWORD,GUITHREADINFO*);
4179 WINUSERAPI DWORD WINAPI GetGuiResources(HANDLE,DWORD);
4180 WINUSERAPI BOOL WINAPI GetIconInfo(HICON,PICONINFO);
4181 WINUSERAPI BOOL WINAPI GetIconInfoExA(HICON,ICONINFOEXA*);
4182 WINUSERAPI BOOL WINAPI GetIconInfoExW(HICON,ICONINFOEXW*);
4183 #define GetIconInfoEx WINELIB_NAME_AW(GetIconInfoEx)
4184 WINUSERAPI BOOL WINAPI GetInputState(void);
4185 WINUSERAPI UINT WINAPI GetInternalWindowPos(HWND,LPRECT,LPPOINT);
4186 WINUSERAPI UINT WINAPI GetKBCodePage(void);
4187 WINUSERAPI HKL WINAPI GetKeyboardLayout(DWORD);
4188 WINUSERAPI UINT WINAPI GetKeyboardLayoutList(INT,HKL *);
4189 WINUSERAPI BOOL WINAPI GetKeyboardState(LPBYTE);
4190 WINUSERAPI INT WINAPI GetKeyboardType(INT);
4191 WINUSERAPI INT WINAPI GetKeyNameTextA(LONG,LPSTR,INT);
4192 WINUSERAPI INT WINAPI GetKeyNameTextW(LONG,LPWSTR,INT);
4193 #define GetKeyNameText WINELIB_NAME_AW(GetKeyNameText)
4194 WINUSERAPI BOOL WINAPI GetKeyboardLayoutNameA(LPSTR);
4195 WINUSERAPI BOOL WINAPI GetKeyboardLayoutNameW(LPWSTR);
4196 #define GetKeyboardLayoutName WINELIB_NAME_AW(GetKeyboardLayoutName)
4197 WINUSERAPI SHORT WINAPI GetKeyState(INT);
4198 WINUSERAPI HWND WINAPI GetLastActivePopup(HWND);
4199 WINUSERAPI BOOL WINAPI GetLastInputInfo(PLASTINPUTINFO);
4200 WINUSERAPI DWORD WINAPI GetListBoxInfo(HWND);
4201 WINUSERAPI UINT WINAPI GetRawInputBuffer(PRAWINPUT,PUINT,UINT);
4202 WINUSERAPI UINT WINAPI GetRawInputData(HRAWINPUT,UINT,LPVOID,PUINT,UINT);
4203 WINUSERAPI UINT WINAPI GetRawInputDeviceInfoA(HANDLE,UINT,LPVOID,PUINT);
4204 WINUSERAPI UINT WINAPI GetRawInputDeviceInfoW(HANDLE,UINT,LPVOID,PUINT);
4205 #define GetRawInputDeviceInfo WINELIB_NAME_AW(GetRawInputDeviceInfo)
4206 WINUSERAPI UINT WINAPI GetRawInputDeviceList(PRAWINPUTDEVICELIST,PUINT,UINT);
4207 WINUSERAPI UINT WINAPI GetRegisteredRawInputDevices(PRAWINPUTDEVICE,PUINT,UINT);
4208 WINUSERAPI BOOL WINAPI GetLayeredWindowAttributes(HWND,COLORREF*,BYTE*,DWORD*);
4209 WINUSERAPI HMENU WINAPI GetMenu(HWND);
4210 WINUSERAPI BOOL WINAPI GetMenuBarInfo(HWND,LONG,LONG,PMENUBARINFO);
4211 WINUSERAPI DWORD WINAPI GetMenuCheckMarkDimensions(void);
4212 WINUSERAPI DWORD WINAPI GetMenuContextHelpId(HMENU);
4213 WINUSERAPI UINT WINAPI GetMenuDefaultItem(HMENU,UINT,UINT);
4214 WINUSERAPI BOOL WINAPI GetMenuInfo(HMENU,LPMENUINFO);
4215 WINUSERAPI INT WINAPI GetMenuItemCount(HMENU);
4216 WINUSERAPI UINT WINAPI GetMenuItemID(HMENU,INT);
4217 WINUSERAPI BOOL WINAPI GetMenuItemInfoA(HMENU,UINT,BOOL,MENUITEMINFOA*);
4218 WINUSERAPI BOOL WINAPI GetMenuItemInfoW(HMENU,UINT,BOOL,MENUITEMINFOW*);
4219 #define GetMenuItemInfo WINELIB_NAME_AW(GetMenuItemInfo)
4220 WINUSERAPI BOOL WINAPI GetMenuItemRect(HWND,HMENU,UINT,LPRECT);
4221 WINUSERAPI UINT WINAPI GetMenuState(HMENU,UINT,UINT);
4222 WINUSERAPI INT WINAPI GetMenuStringA(HMENU,UINT,LPSTR,INT,UINT);
4223 WINUSERAPI INT WINAPI GetMenuStringW(HMENU,UINT,LPWSTR,INT,UINT);
4224 #define GetMenuString WINELIB_NAME_AW(GetMenuString)
4225 WINUSERAPI BOOL WINAPI GetMessageA(LPMSG,HWND,UINT,UINT);
4226 WINUSERAPI BOOL WINAPI GetMessageW(LPMSG,HWND,UINT,UINT);
4227 #define GetMessage WINELIB_NAME_AW(GetMessage)
4228 WINUSERAPI LPARAM WINAPI GetMessageExtraInfo(void);
4229 WINUSERAPI DWORD WINAPI GetMessagePos(void);
4230 WINUSERAPI LONG WINAPI GetMessageTime(void);
4231 WINUSERAPI BOOL WINAPI GetMonitorInfoA(HMONITOR,LPMONITORINFO);
4232 WINUSERAPI BOOL WINAPI GetMonitorInfoW(HMONITOR,LPMONITORINFO);
4233 #define GetMonitorInfo WINELIB_NAME_AW(GetMonitorInfo)
4234 WINUSERAPI HWND WINAPI GetNextDlgGroupItem(HWND,HWND,BOOL);
4235 WINUSERAPI HWND WINAPI GetNextDlgTabItem(HWND,HWND,BOOL);
4236 #define GetNextWindow GetWindow
4237 WINUSERAPI HWND WINAPI GetOpenClipboardWindow(void);
4238 WINUSERAPI HWND WINAPI GetParent(HWND);
4239 WINUSERAPI BOOL WINAPI GetPhysicalCursorPos(POINT*);
4240 WINUSERAPI BOOL WINAPI GetPointerDevice(HANDLE device,POINTER_DEVICE_INFO*);
4241 WINUSERAPI BOOL WINAPI GetPointerDeviceCursors(HANDLE,UINT32*,POINTER_DEVICE_CURSOR_INFO*);
4242 WINUSERAPI BOOL WINAPI GetPointerDeviceProperties(HANDLE device,UINT32*,POINTER_DEVICE_PROPERTY*);
4243 WINUSERAPI BOOL WINAPI GetPointerDeviceRects(HANDLE,RECT*,RECT*);
4244 WINUSERAPI BOOL WINAPI GetPointerDevices(UINT32*,POINTER_DEVICE_INFO*);
4245 WINUSERAPI BOOL WINAPI GetPointerInputTransform(UINT32,UINT32,INPUT_TRANSFORM*);
4246 WINUSERAPI BOOL WINAPI GetPointerPenInfo(UINT32,POINTER_PEN_INFO*);
4247 WINUSERAPI BOOL WINAPI GetPointerPenInfoHistory(UINT32,UINT32*,POINTER_PEN_INFO*);
4248 WINUSERAPI BOOL WINAPI GetPointerFramePenInfo(UINT32,UINT32*,POINTER_PEN_INFO*);
4249 WINUSERAPI BOOL WINAPI GetPointerFramePenInfoHistory(UINT32,UINT32*,UINT32*,POINTER_PEN_INFO*);
4250 WINUSERAPI BOOL WINAPI GetPointerType(UINT32,POINTER_INPUT_TYPE*);
4251 WINUSERAPI BOOL WINAPI GetPointerCursorId(UINT32,UINT32*);
4252 WINUSERAPI BOOL WINAPI GetPointerInfo(UINT32,POINTER_INFO*);
4253 WINUSERAPI BOOL WINAPI GetPointerInfoHistory(UINT32,UINT32*,POINTER_INFO*);
4254 WINUSERAPI BOOL WINAPI GetPointerFrameInfo(UINT32,UINT32*,POINTER_INFO*);
4255 WINUSERAPI BOOL WINAPI GetPointerFrameInfoHistory(UINT32,UINT32*,UINT32*,POINTER_INFO*);
4256 WINUSERAPI BOOL WINAPI GetPointerTouchInfo(UINT32,POINTER_TOUCH_INFO*);
4257 WINUSERAPI BOOL WINAPI GetPointerTouchInfoHistory(UINT32,UINT32*,POINTER_TOUCH_INFO*);
4258 WINUSERAPI BOOL WINAPI GetPointerFrameTouchInfo(UINT32,UINT32*,POINTER_TOUCH_INFO*);
4259 WINUSERAPI BOOL WINAPI GetPointerFrameTouchInfoHistory(UINT32,UINT32*,UINT32*,POINTER_TOUCH_INFO*);
4260 WINUSERAPI INT WINAPI GetPriorityClipboardFormat(UINT*,INT);
4261 WINUSERAPI BOOL WINAPI GetProcessDefaultLayout(DWORD*);
4262 WINUSERAPI BOOL WINAPI GetProcessDpiAwarenessInternal(HANDLE,DPI_AWARENESS*);
4263 WINUSERAPI HANDLE WINAPI GetPropA(HWND,LPCSTR);
4264 WINUSERAPI HANDLE WINAPI GetPropW(HWND,LPCWSTR);
4265 #define GetProp WINELIB_NAME_AW(GetProp)
4266 WINUSERAPI DWORD WINAPI GetQueueStatus(UINT);
4267 WINUSERAPI BOOL WINAPI GetRawPointerDeviceData(UINT32,UINT32,UINT32,POINTER_DEVICE_PROPERTY*,LONG*);
4268 WINUSERAPI BOOL WINAPI GetScrollInfo(HWND,INT,LPSCROLLINFO);
4269 WINUSERAPI BOOL WINAPI GetScrollBarInfo(HWND,LONG,LPSCROLLBARINFO);
4270 WINUSERAPI INT WINAPI GetScrollPos(HWND,INT);
4271 WINUSERAPI BOOL WINAPI GetScrollRange(HWND,INT,LPINT,LPINT);
4272 WINUSERAPI HWND WINAPI GetShellWindow(void);
4273 WINUSERAPI HMENU WINAPI GetSubMenu(HMENU,INT);
4274 WINUSERAPI HBRUSH WINAPI GetSysColorBrush(INT);
4275 #define GetSysModalWindow() ((HWND)0)
4276 WINUSERAPI HMENU WINAPI GetSystemMenu(HWND,BOOL);
4277 WINUSERAPI INT WINAPI GetSystemMetrics(INT);
4278 WINUSERAPI INT WINAPI GetSystemMetricsForDpi(INT,UINT);
4279 WINUSERAPI DWORD WINAPI GetTabbedTextExtentA(HDC,LPCSTR,INT,INT,const INT*);
4280 WINUSERAPI DWORD WINAPI GetTabbedTextExtentW(HDC,LPCWSTR,INT,INT,const INT*);
4281 #define GetTabbedTextExtent WINELIB_NAME_AW(GetTabbedTextExtent)
4282 WINUSERAPI BOOL WINAPI GetTitleBarInfo(HWND,PTITLEBARINFO);
4283 WINUSERAPI HDESK WINAPI GetThreadDesktop(DWORD);
4284 WINUSERAPI DPI_AWARENESS_CONTEXT WINAPI GetThreadDpiAwarenessContext(void);
4285 WINUSERAPI DPI_HOSTING_BEHAVIOR WINAPI GetThreadDpiHostingBehavior(void);
4286 WINUSERAPI HWND WINAPI GetTopWindow(HWND);
4287 WINUSERAPI BOOL WINAPI GetTouchInputInfo(HTOUCHINPUT,UINT,TOUCHINPUT*,int);
4288 WINUSERAPI BOOL WINAPI GetUpdateRect(HWND,LPRECT,BOOL);
4289 WINUSERAPI INT WINAPI GetUpdateRgn(HWND,HRGN,BOOL);
4290 WINUSERAPI BOOL WINAPI GetUpdatedClipboardFormats(UINT*,UINT,UINT*);
4291 WINUSERAPI BOOL WINAPI GetUserObjectInformationA(HANDLE,INT,LPVOID,DWORD,LPDWORD);
4292 WINUSERAPI BOOL WINAPI GetUserObjectInformationW(HANDLE,INT,LPVOID,DWORD,LPDWORD);
4293 #define GetUserObjectInformation WINELIB_NAME_AW(GetUserObjectInformation)
4294 WINUSERAPI BOOL WINAPI GetUserObjectSecurity(HANDLE,PSECURITY_INFORMATION,PSECURITY_DESCRIPTOR,DWORD,LPDWORD);
4295 WINUSERAPI HWND WINAPI GetWindow(HWND,UINT);
4296 WINUSERAPI DWORD WINAPI GetWindowContextHelpId(HWND);
4297 WINUSERAPI HDC WINAPI GetWindowDC(HWND);
4298 WINUSERAPI BOOL WINAPI GetWindowDisplayAffinity(HWND,DWORD*);
4299 WINUSERAPI DPI_AWARENESS_CONTEXT WINAPI GetWindowDpiAwarenessContext(HWND);
4300 WINUSERAPI DPI_HOSTING_BEHAVIOR WINAPI GetWindowDpiHostingBehavior(HWND);
4301 WINUSERAPI BOOL WINAPI GetWindowFeedbackSetting(HWND,FEEDBACK_TYPE,DWORD,UINT32*,void*);
4302 WINUSERAPI BOOL WINAPI GetWindowInfo(HWND, PWINDOWINFO);
4303 WINUSERAPI LONG WINAPI GetWindowLongA(HWND,INT);
4304 WINUSERAPI LONG WINAPI GetWindowLongW(HWND,INT);
4305 #define GetWindowLong WINELIB_NAME_AW(GetWindowLong)
4306 #ifdef _WIN64
4307 WINUSERAPI LONG_PTR WINAPI GetWindowLongPtrA(HWND,INT);
4308 WINUSERAPI LONG_PTR WINAPI GetWindowLongPtrW(HWND,INT);
4309 #else
4310 #define GetWindowLongPtrA GetWindowLongA
4311 #define GetWindowLongPtrW GetWindowLongW
4312 #endif
4313 #define GetWindowLongPtr WINELIB_NAME_AW(GetWindowLongPtr)
4314 WINUSERAPI UINT WINAPI GetWindowModuleFileNameA(HWND,LPSTR,UINT);
4315 WINUSERAPI UINT WINAPI GetWindowModuleFileNameW(HWND,LPWSTR,UINT);
4316 #define GetWindowModuleFileName WINELIB_NAME_AW(GetWindowModuleFileName)
4317 WINUSERAPI BOOL WINAPI GetWindowPlacement(HWND,LPWINDOWPLACEMENT);
4318 WINUSERAPI BOOL WINAPI GetWindowRect(HWND,LPRECT);
4319 WINUSERAPI INT WINAPI GetWindowRgnBox(HWND,LPRECT);
4320 WINUSERAPI INT WINAPI GetWindowRgn(HWND,HRGN);
4321 WINUSERAPI HWINSTA WINAPI GetProcessWindowStation(void);
4322 #define GetWindowTask(hwnd) ((HTASK)GetWindowThreadProcessId(hwnd,NULL))
4323 WINUSERAPI INT WINAPI GetWindowTextA(HWND,LPSTR,INT);
4324 WINUSERAPI INT WINAPI GetWindowTextW(HWND,LPWSTR,INT);
4325 #define GetWindowText WINELIB_NAME_AW(GetWindowText)
4326 WINUSERAPI INT WINAPI GetWindowTextLengthA(HWND);
4327 WINUSERAPI INT WINAPI GetWindowTextLengthW(HWND);
4328 #define GetWindowTextLength WINELIB_NAME_AW(GetWindowTextLength)
4329 WINUSERAPI DWORD WINAPI GetWindowThreadProcessId(HWND,LPDWORD);
4330 WINUSERAPI WORD WINAPI GetWindowWord(HWND,INT);
4331 WINUSERAPI BOOL WINAPI GrayStringA(HDC,HBRUSH,GRAYSTRINGPROC,LPARAM,INT,INT,INT,INT,INT);
4332 WINUSERAPI BOOL WINAPI GrayStringW(HDC,HBRUSH,GRAYSTRINGPROC,LPARAM,INT,INT,INT,INT,INT);
4333 #define GrayString WINELIB_NAME_AW(GrayString)
4334 WINUSERAPI BOOL WINAPI HideCaret(HWND);
4335 WINUSERAPI BOOL WINAPI HiliteMenuItem(HWND,HMENU,UINT,UINT);
4336 WINUSERAPI BOOL WINAPI InitializeTouchInjection(UINT32,DWORD);
4337 WINUSERAPI BOOL WINAPI InjectSyntheticPointerInput(HSYNTHETICPOINTERDEVICE,const POINTER_TYPE_INFO*,UINT32);
4338 WINUSERAPI BOOL WINAPI InjectTouchInput(UINT32,const POINTER_TOUCH_INFO*);
4339 WINUSERAPI BOOL WINAPI InSendMessage(void);
4340 WINUSERAPI DWORD WINAPI InSendMessageEx(LPVOID);
4341 WINUSERAPI BOOL WINAPI InsertMenuA(HMENU,UINT,UINT,UINT_PTR,LPCSTR);
4342 WINUSERAPI BOOL WINAPI InsertMenuW(HMENU,UINT,UINT,UINT_PTR,LPCWSTR);
4343 #define InsertMenu WINELIB_NAME_AW(InsertMenu)
4344 WINUSERAPI BOOL WINAPI InsertMenuItemA(HMENU,UINT,BOOL,const MENUITEMINFOA*);
4345 WINUSERAPI BOOL WINAPI InsertMenuItemW(HMENU,UINT,BOOL,const MENUITEMINFOW*);
4346 #define InsertMenuItem WINELIB_NAME_AW(InsertMenuItem)
4347 WINUSERAPI INT WINAPI InternalGetWindowText(HWND,LPWSTR,INT);
4348 WINUSERAPI BOOL WINAPI IntersectRect(LPRECT,const RECT*,const RECT*);
4349 WINUSERAPI BOOL WINAPI InvalidateRect(HWND,const RECT*,BOOL);
4350 WINUSERAPI BOOL WINAPI InvalidateRgn(HWND,HRGN,BOOL);
4351 WINUSERAPI BOOL WINAPI InvertRect(HDC,const RECT*);
4352 WINUSERAPI BOOL WINAPI IsCharAlphaA(CHAR);
4353 WINUSERAPI BOOL WINAPI IsCharAlphaW(WCHAR);
4354 #define IsCharAlpha WINELIB_NAME_AW(IsCharAlpha)
4355 WINUSERAPI BOOL WINAPI IsCharAlphaNumericA(CHAR);
4356 WINUSERAPI BOOL WINAPI IsCharAlphaNumericW(WCHAR);
4357 #define IsCharAlphaNumeric WINELIB_NAME_AW(IsCharAlphaNumeric)
4358 WINUSERAPI BOOL WINAPI IsCharLowerA(CHAR);
4359 WINUSERAPI BOOL WINAPI IsCharLowerW(WCHAR);
4360 #define IsCharLower WINELIB_NAME_AW(IsCharLower)
4361 WINUSERAPI BOOL WINAPI IsCharUpperA(CHAR);
4362 WINUSERAPI BOOL WINAPI IsCharUpperW(WCHAR);
4363 #define IsCharUpper WINELIB_NAME_AW(IsCharUpper)
4364 WINUSERAPI BOOL WINAPI IsChild(HWND,HWND);
4365 WINUSERAPI BOOL WINAPI IsClipboardFormatAvailable(UINT);
4366 WINUSERAPI BOOL WINAPI IsDialogMessageA(HWND,LPMSG);
4367 WINUSERAPI BOOL WINAPI IsDialogMessageW(HWND,LPMSG);
4368 #define IsDialogMessage WINELIB_NAME_AW(IsDialogMessage)
4369 WINUSERAPI UINT WINAPI IsDlgButtonChecked(HWND,int);
4370 WINUSERAPI BOOL WINAPI IsGUIThread(BOOL);
4371 WINUSERAPI BOOL WINAPI IsHungAppWindow(HWND);
4372 WINUSERAPI BOOL WINAPI IsIconic(HWND);
4373 WINUSERAPI BOOL WINAPI IsMenu(HMENU);
4374 WINUSERAPI BOOL WINAPI IsMouseInPointerEnabled(void);
4375 WINUSERAPI BOOL WINAPI IsProcessDPIAware(void);
4376 WINUSERAPI BOOL WINAPI IsTouchWindow(HWND,PULONG);
4377 WINUSERAPI BOOL WINAPI IsValidDpiAwarenessContext(DPI_AWARENESS_CONTEXT);
4378 WINUSERAPI BOOL WINAPI IsWinEventHookInstalled(DWORD);
4379 WINUSERAPI BOOL WINAPI IsWindow(HWND);
4380 WINUSERAPI BOOL WINAPI IsWindowEnabled(HWND);
4381 WINUSERAPI BOOL WINAPI IsWindowUnicode(HWND);
4382 WINUSERAPI BOOL WINAPI IsWindowVisible(HWND);
4383 WINUSERAPI BOOL WINAPI IsZoomed(HWND);
4384 WINUSERAPI BOOL WINAPI KillSystemTimer(HWND,UINT_PTR);
4385 WINUSERAPI BOOL WINAPI KillTimer(HWND,UINT_PTR);
4386 WINUSERAPI HACCEL WINAPI LoadAcceleratorsA(HINSTANCE,LPCSTR);
4387 WINUSERAPI HACCEL WINAPI LoadAcceleratorsW(HINSTANCE,LPCWSTR);
4388 #define LoadAccelerators WINELIB_NAME_AW(LoadAccelerators)
4389 WINUSERAPI HBITMAP WINAPI LoadBitmapA(HINSTANCE,LPCSTR);
4390 WINUSERAPI HBITMAP WINAPI LoadBitmapW(HINSTANCE,LPCWSTR);
4391 #define LoadBitmap WINELIB_NAME_AW(LoadBitmap)
4392 WINUSERAPI HCURSOR WINAPI LoadCursorA(HINSTANCE,LPCSTR);
4393 WINUSERAPI HCURSOR WINAPI LoadCursorW(HINSTANCE,LPCWSTR);
4394 #define LoadCursor WINELIB_NAME_AW(LoadCursor)
4395 WINUSERAPI HCURSOR WINAPI LoadCursorFromFileA(LPCSTR);
4396 WINUSERAPI HCURSOR WINAPI LoadCursorFromFileW(LPCWSTR);
4397 #define LoadCursorFromFile WINELIB_NAME_AW(LoadCursorFromFile)
4398 WINUSERAPI HICON WINAPI LoadIconA(HINSTANCE,LPCSTR);
4399 WINUSERAPI HICON WINAPI LoadIconW(HINSTANCE,LPCWSTR);
4400 #define LoadIcon WINELIB_NAME_AW(LoadIcon)
4401 WINUSERAPI HANDLE WINAPI LoadImageA(HINSTANCE,LPCSTR,UINT,INT,INT,UINT);
4402 WINUSERAPI HANDLE WINAPI LoadImageW(HINSTANCE,LPCWSTR,UINT,INT,INT,UINT);
4403 #define LoadImage WINELIB_NAME_AW(LoadImage)
4404 WINUSERAPI HKL WINAPI LoadKeyboardLayoutA(LPCSTR,UINT);
4405 WINUSERAPI HKL WINAPI LoadKeyboardLayoutW(LPCWSTR,UINT);
4406 #define LoadKeyboardLayout WINELIB_NAME_AW(LoadKeyboardLayout)
4407 WINUSERAPI HMENU WINAPI LoadMenuA(HINSTANCE,LPCSTR);
4408 WINUSERAPI HMENU WINAPI LoadMenuW(HINSTANCE,LPCWSTR);
4409 #define LoadMenu WINELIB_NAME_AW(LoadMenu)
4410 WINUSERAPI HMENU WINAPI LoadMenuIndirectA(LPCVOID);
4411 WINUSERAPI HMENU WINAPI LoadMenuIndirectW(LPCVOID);
4412 #define LoadMenuIndirect WINELIB_NAME_AW(LoadMenuIndirect)
4413 WINUSERAPI INT WINAPI LoadStringA(HINSTANCE,UINT,LPSTR,INT);
4414 WINUSERAPI INT WINAPI LoadStringW(HINSTANCE,UINT,LPWSTR,INT);
4415 #define LoadString WINELIB_NAME_AW(LoadString)
4416 WINUSERAPI BOOL WINAPI LogicalToPhysicalPoint(HWND,POINT*);
4417 WINUSERAPI BOOL WINAPI LogicalToPhysicalPointForPerMonitorDPI(HWND,POINT*);
4418 WINUSERAPI BOOL WINAPI LockSetForegroundWindow(UINT);
4419 WINUSERAPI BOOL WINAPI LockWindowUpdate(HWND);
4420 WINUSERAPI BOOL WINAPI LockWorkStation(void);
4421 WINUSERAPI INT WINAPI LookupIconIdFromDirectory(LPBYTE,BOOL);
4422 WINUSERAPI INT WINAPI LookupIconIdFromDirectoryEx(LPBYTE,BOOL,INT,INT,UINT);
4423 WINUSERAPI UINT WINAPI MapVirtualKeyA(UINT,UINT);
4424 WINUSERAPI UINT WINAPI MapVirtualKeyW(UINT,UINT);
4425 #define MapVirtualKey WINELIB_NAME_AW(MapVirtualKey)
4426 WINUSERAPI UINT WINAPI MapVirtualKeyExA(UINT,UINT,HKL);
4427 WINUSERAPI UINT WINAPI MapVirtualKeyExW(UINT,UINT,HKL);
4428 #define MapVirtualKeyEx WINELIB_NAME_AW(MapVirtualKeyEx)
4429 WINUSERAPI BOOL WINAPI MapDialogRect(HWND,LPRECT);
4430 WINUSERAPI INT WINAPI MapWindowPoints(HWND,HWND,LPPOINT,UINT);
4431 WINUSERAPI INT WINAPI MenuItemFromPoint(HWND,HMENU,POINT);
4432 WINUSERAPI BOOL WINAPI MessageBeep(UINT);
4433 WINUSERAPI INT WINAPI MessageBoxA(HWND,LPCSTR,LPCSTR,UINT);
4434 WINUSERAPI INT WINAPI MessageBoxW(HWND,LPCWSTR,LPCWSTR,UINT);
4435 #define MessageBox WINELIB_NAME_AW(MessageBox)
4436 WINUSERAPI INT WINAPI MessageBoxExA(HWND,LPCSTR,LPCSTR,UINT,WORD);
4437 WINUSERAPI INT WINAPI MessageBoxExW(HWND,LPCWSTR,LPCWSTR,UINT,WORD);
4438 #define MessageBoxEx WINELIB_NAME_AW(MessageBoxEx)
4439 WINUSERAPI INT WINAPI MessageBoxIndirectA(LPMSGBOXPARAMSA);
4440 WINUSERAPI INT WINAPI MessageBoxIndirectW(LPMSGBOXPARAMSW);
4441 #define MessageBoxIndirect WINELIB_NAME_AW(MessageBoxIndirect)
4442 WINUSERAPI BOOL WINAPI ModifyMenuA(HMENU,UINT,UINT,UINT_PTR,LPCSTR);
4443 WINUSERAPI BOOL WINAPI ModifyMenuW(HMENU,UINT,UINT,UINT_PTR,LPCWSTR);
4444 #define ModifyMenu WINELIB_NAME_AW(ModifyMenu)
4445 WINUSERAPI HMONITOR WINAPI MonitorFromPoint(POINT,DWORD);
4446 WINUSERAPI HMONITOR WINAPI MonitorFromRect(const RECT*,DWORD);
4447 WINUSERAPI HMONITOR WINAPI MonitorFromWindow(HWND,DWORD);
4448 WINUSERAPI BOOL WINAPI MoveWindow(HWND,INT,INT,INT,INT,BOOL);
4449 WINUSERAPI DWORD WINAPI MsgWaitForMultipleObjects(DWORD,const HANDLE*,BOOL,DWORD,DWORD);
4450 WINUSERAPI DWORD WINAPI MsgWaitForMultipleObjectsEx(DWORD,const HANDLE*,DWORD,DWORD,DWORD);
4451 WINUSERAPI VOID WINAPI NotifyWinEvent(DWORD,HWND,LONG,LONG);
4452 WINUSERAPI DWORD WINAPI OemKeyScan(WORD);
4453 WINUSERAPI BOOL WINAPI OemToCharA(LPCSTR,LPSTR);
4454 WINUSERAPI BOOL WINAPI OemToCharW(LPCSTR,LPWSTR);
4455 #define OemToChar WINELIB_NAME_AW(OemToChar)
4456 WINUSERAPI BOOL WINAPI OemToCharBuffA(LPCSTR,LPSTR,DWORD);
4457 WINUSERAPI BOOL WINAPI OemToCharBuffW(LPCSTR,LPWSTR,DWORD);
4458 #define OemToCharBuff WINELIB_NAME_AW(OemToCharBuff)
4459 WINUSERAPI BOOL WINAPI OpenClipboard(HWND);
4460 WINUSERAPI HDESK WINAPI OpenDesktopA(LPCSTR,DWORD,BOOL,ACCESS_MASK);
4461 WINUSERAPI HDESK WINAPI OpenDesktopW(LPCWSTR,DWORD,BOOL,ACCESS_MASK);
4462 #define OpenDesktop WINELIB_NAME_AW(OpenDesktop)
4463 WINUSERAPI BOOL WINAPI OpenIcon(HWND);
4464 WINUSERAPI HDESK WINAPI OpenInputDesktop(DWORD,BOOL,ACCESS_MASK);
4465 WINUSERAPI HWINSTA WINAPI OpenWindowStationA(LPCSTR,BOOL,ACCESS_MASK);
4466 WINUSERAPI HWINSTA WINAPI OpenWindowStationW(LPCWSTR,BOOL,ACCESS_MASK);
4467 #define OpenWindowStation WINELIB_NAME_AW(OpenWindowStation)
4468 WINUSERAPI BOOL WINAPI PaintDesktop(HDC);
4469 WINUSERAPI LRESULT WINAPI PackTouchHitTestingProximityEvaluation(const TOUCH_HIT_TESTING_INPUT*,const TOUCH_HIT_TESTING_PROXIMITY_EVALUATION*);
4470 WINUSERAPI BOOL WINAPI PeekMessageA(LPMSG,HWND,UINT,UINT,UINT);
4471 WINUSERAPI BOOL WINAPI PeekMessageW(LPMSG,HWND,UINT,UINT,UINT);
4472 #define PeekMessage WINELIB_NAME_AW(PeekMessage)
4473 WINUSERAPI BOOL WINAPI PhysicalToLogicalPoint(HWND,POINT*);
4474 WINUSERAPI BOOL WINAPI PhysicalToLogicalPointForPerMonitorDPI(HWND,POINT*);
4475 #define PostAppMessageA(thread,msg,wparam,lparam) PostThreadMessageA((DWORD)(thread),msg,wparam,lparam)
4476 #define PostAppMessageW(thread,msg,wparam,lparam) PostThreadMessageW((DWORD)(thread),msg,wparam,lparam)
4477 #define PostAppMessage WINELIB_NAME_AW(PostAppMessage)
4478 WINUSERAPI BOOL WINAPI PostMessageA(HWND,UINT,WPARAM,LPARAM);
4479 WINUSERAPI BOOL WINAPI PostMessageW(HWND,UINT,WPARAM,LPARAM);
4480 #define PostMessage WINELIB_NAME_AW(PostMessage)
4481 WINUSERAPI void WINAPI PostQuitMessage(INT);
4482 WINUSERAPI BOOL WINAPI PostThreadMessageA(DWORD,UINT,WPARAM,LPARAM);
4483 WINUSERAPI BOOL WINAPI PostThreadMessageW(DWORD,UINT,WPARAM,LPARAM);
4484 #define PostThreadMessage WINELIB_NAME_AW(PostThreadMessage)
4485 WINUSERAPI BOOL WINAPI PrintWindow(HWND,HDC,UINT);
4486 WINUSERAPI UINT WINAPI PrivateExtractIconExA(LPCSTR,int,HICON*,HICON*,UINT);
4487 WINUSERAPI UINT WINAPI PrivateExtractIconExW(LPCWSTR,int,HICON*,HICON*,UINT);
4488 WINUSERAPI UINT WINAPI PrivateExtractIconsA(LPCSTR,int,int,int,HICON*,UINT*,UINT,UINT);
4489 WINUSERAPI UINT WINAPI PrivateExtractIconsW(LPCWSTR,int,int,int,HICON*,UINT*,UINT,UINT);
4490 WINUSERAPI HWND WINAPI RealChildWindowFromPoint(HWND,POINT);
4491 WINUSERAPI UINT WINAPI RealGetWindowClassA(HWND,LPSTR,UINT);
4492 WINUSERAPI UINT WINAPI RealGetWindowClassW(HWND,LPWSTR,UINT);
4493 #define RealGetWindowClass WINELIB_NAME_AW(RealGetWindowClass)
4494 WINUSERAPI BOOL WINAPI RedrawWindow(HWND,const RECT*,HRGN,UINT);
4495 WINUSERAPI ATOM WINAPI RegisterClassA(const WNDCLASSA *);
4496 WINUSERAPI ATOM WINAPI RegisterClassW(const WNDCLASSW *);
4497 #define RegisterClass WINELIB_NAME_AW(RegisterClass)
4498 WINUSERAPI ATOM WINAPI RegisterClassExA(const WNDCLASSEXA *);
4499 WINUSERAPI ATOM WINAPI RegisterClassExW(const WNDCLASSEXW *);
4500 #define RegisterClassEx WINELIB_NAME_AW(RegisterClassEx)
4501 WINUSERAPI UINT WINAPI RegisterClipboardFormatA(LPCSTR);
4502 WINUSERAPI UINT WINAPI RegisterClipboardFormatW(LPCWSTR);
4503 #define RegisterClipboardFormat WINELIB_NAME_AW(RegisterClipboardFormat)
4504 WINUSERAPI HDEVNOTIFY WINAPI RegisterDeviceNotificationA(HANDLE,LPVOID,DWORD);
4505 WINUSERAPI HDEVNOTIFY WINAPI RegisterDeviceNotificationW(HANDLE,LPVOID,DWORD);
4506 #define RegisterDeviceNotification WINELIB_NAME_AW(RegisterDeviceNotification)
4507 WINUSERAPI BOOL WINAPI RegisterHotKey(HWND,INT,UINT,UINT);
4508 WINUSERAPI BOOL WINAPI RegisterPointerDeviceNotifications(HWND,BOOL);
4509 WINUSERAPI BOOL WINAPI RegisterPointerInputTarget(HWND,POINTER_INPUT_TYPE);
4510 WINUSERAPI BOOL WINAPI RegisterPointerInputTargetEx(HWND,POINTER_INPUT_TYPE,BOOL);
4511 WINUSERAPI HPOWERNOTIFY WINAPI RegisterPowerSettingNotification(HANDLE,LPCGUID,DWORD);
4512 WINUSERAPI BOOL WINAPI RegisterRawInputDevices(const RAWINPUTDEVICE *,UINT,UINT);
4513 WINUSERAPI BOOL WINAPI RegisterShellHookWindow(HWND);
4514 WINUSERAPI HPOWERNOTIFY WINAPI RegisterSuspendResumeNotification(HANDLE,DWORD);
4515 WINUSERAPI BOOL WINAPI RegisterTouchHitTestingWindow(HWND,ULONG);
4516 WINUSERAPI BOOL WINAPI RegisterTouchWindow(HWND,ULONG);
4517 WINUSERAPI UINT WINAPI RegisterWindowMessageA(LPCSTR);
4518 WINUSERAPI UINT WINAPI RegisterWindowMessageW(LPCWSTR);
4519 #define RegisterWindowMessage WINELIB_NAME_AW(RegisterWindowMessage)
4520 WINUSERAPI BOOL WINAPI ReleaseCapture(void);
4521 WINUSERAPI INT WINAPI ReleaseDC(HWND,HDC);
4522 WINUSERAPI BOOL WINAPI RemoveClipboardFormatListener(HWND);
4523 WINUSERAPI BOOL WINAPI RemoveMenu(HMENU,UINT,UINT);
4524 WINUSERAPI HANDLE WINAPI RemovePropA(HWND,LPCSTR);
4525 WINUSERAPI HANDLE WINAPI RemovePropW(HWND,LPCWSTR);
4526 #define RemoveProp WINELIB_NAME_AW(RemoveProp)
4527 WINUSERAPI BOOL WINAPI ReplyMessage(LRESULT);
4528 WINUSERAPI BOOL WINAPI ScreenToClient(HWND,LPPOINT);
4529 WINUSERAPI VOID WINAPI ScrollChildren(HWND,UINT,WPARAM,LPARAM);
4530 WINUSERAPI BOOL WINAPI ScrollDC(HDC,INT,INT,const RECT*,const RECT*,HRGN,LPRECT);
4531 WINUSERAPI BOOL WINAPI ScrollWindow(HWND,INT,INT,const RECT*,const RECT*);
4532 WINUSERAPI INT WINAPI ScrollWindowEx(HWND,INT,INT,const RECT*,const RECT*,HRGN,LPRECT,UINT);
4533 WINUSERAPI LRESULT WINAPI SendDlgItemMessageA(HWND,INT,UINT,WPARAM,LPARAM);
4534 WINUSERAPI LRESULT WINAPI SendDlgItemMessageW(HWND,INT,UINT,WPARAM,LPARAM);
4535 #define SendDlgItemMessage WINELIB_NAME_AW(SendDlgItemMessage)
4536 WINUSERAPI UINT WINAPI SendInput(UINT,LPINPUT,int);
4537 WINUSERAPI LRESULT WINAPI SendMessageA(HWND,UINT,WPARAM,LPARAM);
4538 WINUSERAPI LRESULT WINAPI SendMessageW(HWND,UINT,WPARAM,LPARAM);
4539 #define SendMessage WINELIB_NAME_AW(SendMessage)
4540 WINUSERAPI BOOL WINAPI SendMessageCallbackA(HWND,UINT,WPARAM,LPARAM,SENDASYNCPROC,ULONG_PTR);
4541 WINUSERAPI BOOL WINAPI SendMessageCallbackW(HWND,UINT,WPARAM,LPARAM,SENDASYNCPROC,ULONG_PTR);
4542 #define SendMessageCallback WINELIB_NAME_AW(SendMessageCallback)
4543 WINUSERAPI LRESULT WINAPI SendMessageTimeoutA(HWND,UINT,WPARAM,LPARAM,UINT,UINT,PDWORD_PTR);
4544 WINUSERAPI LRESULT WINAPI SendMessageTimeoutW(HWND,UINT,WPARAM,LPARAM,UINT,UINT,PDWORD_PTR);
4545 #define SendMessageTimeout WINELIB_NAME_AW(SendMessageTimeout)
4546 WINUSERAPI BOOL WINAPI SendNotifyMessageA(HWND,UINT,WPARAM,LPARAM);
4547 WINUSERAPI BOOL WINAPI SendNotifyMessageW(HWND,UINT,WPARAM,LPARAM);
4548 #define SendNotifyMessage WINELIB_NAME_AW(SendNotifyMessage)
4549 WINUSERAPI HWND WINAPI SetActiveWindow(HWND);
4550 WINUSERAPI HWND WINAPI SetCapture(HWND);
4551 WINUSERAPI BOOL WINAPI SetCaretBlinkTime(UINT);
4552 WINUSERAPI BOOL WINAPI SetCaretPos(INT,INT);
4553 WINUSERAPI DWORD WINAPI SetClassLongA(HWND,INT,LONG);
4554 WINUSERAPI DWORD WINAPI SetClassLongW(HWND,INT,LONG);
4555 #define SetClassLong WINELIB_NAME_AW(SetClassLong)
4556 #ifdef _WIN64
4557 WINUSERAPI ULONG_PTR WINAPI SetClassLongPtrA(HWND,INT,LONG_PTR);
4558 WINUSERAPI ULONG_PTR WINAPI SetClassLongPtrW(HWND,INT,LONG_PTR);
4559 #else
4560 #define SetClassLongPtrA SetClassLongA
4561 #define SetClassLongPtrW SetClassLongW
4562 #endif
4563 #define SetClassLongPtr WINELIB_NAME_AW(SetClassLongPtr)
4564 WINUSERAPI WORD WINAPI SetClassWord(HWND,INT,WORD);
4565 WINUSERAPI HANDLE WINAPI SetClipboardData(UINT,HANDLE);
4566 WINUSERAPI HWND WINAPI SetClipboardViewer(HWND);
4567 WINUSERAPI UINT_PTR WINAPI SetCoalescableTimer(HWND,UINT_PTR,UINT,TIMERPROC,ULONG);
4568 WINUSERAPI HCURSOR WINAPI SetCursor(HCURSOR);
4569 WINUSERAPI BOOL WINAPI SetCursorPos(INT,INT);
4570 WINUSERAPI VOID WINAPI SetDebugErrorLevel(DWORD);
4571 WINUSERAPI BOOL WINAPI SetDeskWallpaper(const char*);
4572 WINUSERAPI BOOL WINAPI SetDisplayAutoRotationPreferences(ORIENTATION_PREFERENCE);
4573 WINUSERAPI BOOL WINAPI SetDlgItemInt(HWND,INT,UINT,BOOL);
4574 WINUSERAPI BOOL WINAPI SetDlgItemTextA(HWND,INT,LPCSTR);
4575 WINUSERAPI BOOL WINAPI SetDlgItemTextW(HWND,INT,LPCWSTR);
4576 #define SetDlgItemText WINELIB_NAME_AW(SetDlgItemText)
4577 WINUSERAPI BOOL WINAPI SetDoubleClickTime(UINT);
4578 WINUSERAPI HWND WINAPI SetFocus(HWND);
4579 WINUSERAPI BOOL WINAPI SetForegroundWindow(HWND);
4580 WINUSERAPI BOOL WINAPI SetGestureConfig(HWND,DWORD,UINT,PGESTURECONFIG,UINT);
4581 WINUSERAPI void WINAPI SetInternalWindowPos(HWND,UINT,LPRECT,LPPOINT);
4582 WINUSERAPI BOOL WINAPI SetKeyboardState(LPBYTE);
4583 WINUSERAPI VOID WINAPI SetLastErrorEx(DWORD,DWORD);
4584 WINUSERAPI BOOL WINAPI SetLayeredWindowAttributes(HWND,COLORREF,BYTE,DWORD);
4585 WINUSERAPI BOOL WINAPI SetMenu(HWND,HMENU);
4586 WINUSERAPI BOOL WINAPI SetMenuContextHelpId(HMENU,DWORD);
4587 WINUSERAPI BOOL WINAPI SetMenuDefaultItem(HMENU,UINT,UINT);
4588 WINUSERAPI BOOL WINAPI SetMenuInfo(HMENU,LPCMENUINFO);
4589 WINUSERAPI BOOL WINAPI SetMenuItemBitmaps(HMENU,UINT,UINT,HBITMAP,HBITMAP);
4590 WINUSERAPI BOOL WINAPI SetMenuItemInfoA(HMENU,UINT,BOOL,const MENUITEMINFOA*);
4591 WINUSERAPI BOOL WINAPI SetMenuItemInfoW(HMENU,UINT,BOOL,const MENUITEMINFOW*);
4592 #define SetMenuItemInfo WINELIB_NAME_AW(SetMenuItemInfo)
4593 WINUSERAPI LPARAM WINAPI SetMessageExtraInfo(LPARAM);
4594 WINUSERAPI BOOL WINAPI SetMessageQueue(INT);
4595 WINUSERAPI HWND WINAPI SetParent(HWND,HWND);
4596 WINUSERAPI BOOL WINAPI SetPhysicalCursorPos(INT,INT);
4597 WINUSERAPI BOOL WINAPI SetProcessDPIAware(void);
4598 WINUSERAPI BOOL WINAPI SetProcessDefaultLayout(DWORD);
4599 WINUSERAPI BOOL WINAPI SetProcessDpiAwarenessContext(DPI_AWARENESS_CONTEXT);
4600 WINUSERAPI BOOL WINAPI SetProcessDpiAwarenessInternal(DPI_AWARENESS);
4601 WINUSERAPI BOOL WINAPI SetProcessWindowStation(HWINSTA);
4602 WINUSERAPI BOOL WINAPI SetPropA(HWND,LPCSTR,HANDLE);
4603 WINUSERAPI BOOL WINAPI SetPropW(HWND,LPCWSTR,HANDLE);
4604 #define SetProp WINELIB_NAME_AW(SetProp)
4605 WINUSERAPI INT WINAPI SetScrollInfo(HWND,INT,const SCROLLINFO*,BOOL);
4606 WINUSERAPI INT WINAPI SetScrollPos(HWND,INT,INT,BOOL);
4607 WINUSERAPI BOOL WINAPI SetScrollRange(HWND,INT,INT,INT,BOOL);
4608 #define SetSysModalWindow(hwnd) ((HWND)0)
4609 WINUSERAPI BOOL WINAPI SetSystemCursor(HCURSOR,DWORD);
4610 WINUSERAPI BOOL WINAPI SetSystemMenu(HWND,HMENU);
4611 WINUSERAPI UINT_PTR WINAPI SetSystemTimer(HWND,UINT_PTR,UINT,void*);
4612 WINUSERAPI BOOL WINAPI SetThreadDesktop(HDESK);
4613 WINUSERAPI DPI_AWARENESS_CONTEXT WINAPI SetThreadDpiAwarenessContext(DPI_AWARENESS_CONTEXT);
4614 WINUSERAPI DPI_HOSTING_BEHAVIOR WINAPI SetThreadDpiHostingBehavior(DPI_HOSTING_BEHAVIOR);
4615 WINUSERAPI UINT_PTR WINAPI SetTimer(HWND,UINT_PTR,UINT,TIMERPROC);
4616 WINUSERAPI BOOL WINAPI SetUserObjectInformationA(HANDLE,INT,LPVOID,DWORD);
4617 WINUSERAPI BOOL WINAPI SetUserObjectInformationW(HANDLE,INT,LPVOID,DWORD);
4618 #define SetUserObjectInformation WINELIB_NAME_AW(SetUserObjectInformation)
4619 WINUSERAPI BOOL WINAPI SetUserObjectSecurity(HANDLE,PSECURITY_INFORMATION,PSECURITY_DESCRIPTOR);
4620 WINUSERAPI BOOL WINAPI SetWindowContextHelpId(HWND,DWORD);
4621 WINUSERAPI BOOL WINAPI SetWindowDisplayAffinity(HWND,DWORD);
4622 WINUSERAPI BOOL WINAPI SetWindowFeedbackSetting(HWND,FEEDBACK_TYPE,DWORD,UINT32,const void*);
4623 WINUSERAPI LONG WINAPI SetWindowLongA(HWND,INT,LONG);
4624 WINUSERAPI LONG WINAPI SetWindowLongW(HWND,INT,LONG);
4625 #define SetWindowLong WINELIB_NAME_AW(SetWindowLong)
4626 #ifdef _WIN64
4627 WINUSERAPI LONG_PTR WINAPI SetWindowLongPtrA(HWND,INT,LONG_PTR);
4628 WINUSERAPI LONG_PTR WINAPI SetWindowLongPtrW(HWND,INT,LONG_PTR);
4629 #else
4630 #define SetWindowLongPtrA SetWindowLongA
4631 #define SetWindowLongPtrW SetWindowLongW
4632 #endif
4633 #define SetWindowLongPtr WINELIB_NAME_AW(SetWindowLongPtr)
4634 WINUSERAPI BOOL WINAPI SetWindowPlacement(HWND,const WINDOWPLACEMENT*);
4635 WINUSERAPI HHOOK WINAPI SetWindowsHookA(INT,HOOKPROC);
4636 WINUSERAPI HHOOK WINAPI SetWindowsHookW(INT,HOOKPROC);
4637 #define SetWindowsHook WINELIB_NAME_AW(SetWindowsHook)
4638 WINUSERAPI HHOOK WINAPI SetWindowsHookExA(INT,HOOKPROC,HINSTANCE,DWORD);
4639 WINUSERAPI HHOOK WINAPI SetWindowsHookExW(INT,HOOKPROC,HINSTANCE,DWORD);
4640 #define SetWindowsHookEx WINELIB_NAME_AW(SetWindowsHookEx)
4641 WINUSERAPI BOOL WINAPI SetWindowPos(HWND,HWND,INT,INT,INT,INT,UINT);
4642 WINUSERAPI INT WINAPI SetWindowRgn(HWND,HRGN,BOOL);
4643 WINUSERAPI BOOL WINAPI SetWindowTextA(HWND,LPCSTR);
4644 WINUSERAPI BOOL WINAPI SetWindowTextW(HWND,LPCWSTR);
4645 #define SetWindowText WINELIB_NAME_AW(SetWindowText)
4646 WINUSERAPI WORD WINAPI SetWindowWord(HWND,INT,WORD);
4647 WINUSERAPI HWINEVENTHOOK WINAPI SetWinEventHook(DWORD,DWORD,HMODULE,WINEVENTPROC,DWORD,DWORD,DWORD);
4648 WINUSERAPI BOOL WINAPI ShowCaret(HWND);
4649 WINUSERAPI INT WINAPI ShowCursor(BOOL);
4650 WINUSERAPI BOOL WINAPI ShowScrollBar(HWND,INT,BOOL);
4651 WINUSERAPI BOOL WINAPI ShowOwnedPopups(HWND,BOOL);
4652 WINUSERAPI BOOL WINAPI ShowWindow(HWND,INT);
4653 WINUSERAPI BOOL WINAPI ShowWindowAsync(HWND,INT);
4654 WINUSERAPI BOOL WINAPI ShutdownBlockReasonCreate(HWND,LPCWSTR);
4655 WINUSERAPI BOOL WINAPI ShutdownBlockReasonDestroy(HWND);
4656 WINUSERAPI BOOL WINAPI SkipPointerFrameMessages(UINT32);
4657 WINUSERAPI BOOL WINAPI SubtractRect(LPRECT,const RECT*,const RECT*);
4658 WINUSERAPI BOOL WINAPI SwapMouseButton(BOOL);
4659 WINUSERAPI BOOL WINAPI SwitchDesktop(HDESK);
4660 WINUSERAPI VOID WINAPI SwitchToThisWindow(HWND,BOOL);
4661 WINUSERAPI BOOL WINAPI SystemParametersInfoA(UINT,UINT,LPVOID,UINT);
4662 WINUSERAPI BOOL WINAPI SystemParametersInfoW(UINT,UINT,LPVOID,UINT);
4663 #define SystemParametersInfo WINELIB_NAME_AW(SystemParametersInfo)
4664 WINUSERAPI BOOL WINAPI SystemParametersInfoForDpi(UINT,UINT,void*,UINT,UINT);
4665 WINUSERAPI LONG WINAPI TabbedTextOutA(HDC,INT,INT,LPCSTR,INT,INT,const INT*,INT);
4666 WINUSERAPI LONG WINAPI TabbedTextOutW(HDC,INT,INT,LPCWSTR,INT,INT,const INT*,INT);
4667 #define TabbedTextOut WINELIB_NAME_AW(TabbedTextOut)
4668 WINUSERAPI WORD WINAPI TileWindows (HWND,UINT,const RECT *,UINT,const HWND *);
4669 WINUSERAPI INT WINAPI ToAscii(UINT,UINT,const BYTE *,LPWORD,UINT);
4670 WINUSERAPI INT WINAPI ToAsciiEx(UINT,UINT,const BYTE *,LPWORD,UINT,HKL);
4671 WINUSERAPI INT WINAPI ToUnicode(UINT,UINT,const BYTE *,LPWSTR,int,UINT);
4672 WINUSERAPI INT WINAPI ToUnicodeEx(UINT,UINT,const BYTE *,LPWSTR,int,UINT,HKL);
4673 WINUSERAPI BOOL WINAPI TrackMouseEvent(LPTRACKMOUSEEVENT);
4674 WINUSERAPI BOOL WINAPI TrackPopupMenu(HMENU,UINT,INT,INT,INT,HWND,const RECT*);
4675 WINUSERAPI BOOL WINAPI TrackPopupMenuEx(HMENU,UINT,INT,INT,HWND,LPTPMPARAMS);
4676 WINUSERAPI INT WINAPI TranslateAcceleratorA(HWND,HACCEL,LPMSG);
4677 WINUSERAPI INT WINAPI TranslateAcceleratorW(HWND,HACCEL,LPMSG);
4678 #define TranslateAccelerator WINELIB_NAME_AW(TranslateAccelerator)
4679 WINUSERAPI BOOL WINAPI TranslateMDISysAccel(HWND,LPMSG);
4680 WINUSERAPI BOOL WINAPI TranslateMessage(const MSG*);
4681 WINUSERAPI BOOL WINAPI UnhookWinEvent(HWINEVENTHOOK);
4682 WINUSERAPI BOOL WINAPI UnhookWindowsHook(INT,HOOKPROC);
4683 WINUSERAPI BOOL WINAPI UnhookWindowsHookEx(HHOOK);
4684 WINUSERAPI BOOL WINAPI UnloadKeyboardLayout(HKL);
4685 WINUSERAPI BOOL WINAPI UnionRect(LPRECT,const RECT*,const RECT*);
4686 WINUSERAPI BOOL WINAPI UnregisterClassA(LPCSTR,HINSTANCE);
4687 WINUSERAPI BOOL WINAPI UnregisterClassW(LPCWSTR,HINSTANCE);
4688 #define UnregisterClass WINELIB_NAME_AW(UnregisterClass)
4689 WINUSERAPI BOOL WINAPI UnregisterDeviceNotification(HDEVNOTIFY);
4690 WINUSERAPI BOOL WINAPI UnregisterHotKey(HWND,INT);
4691 WINUSERAPI BOOL WINAPI UnregisterPointerInputTarget(HWND,POINTER_INPUT_TYPE);
4692 WINUSERAPI BOOL WINAPI UnregisterPointerInputTargetEx(HWND,POINTER_INPUT_TYPE);
4693 WINUSERAPI BOOL WINAPI UnregisterPowerSettingNotification(HPOWERNOTIFY);
4694 WINUSERAPI BOOL WINAPI UnregisterSuspendResumeNotification(HPOWERNOTIFY);
4695 WINUSERAPI BOOL WINAPI UnregisterTouchWindow(HWND);
4696 WINUSERAPI BOOL WINAPI UpdateWindow(HWND);
4697 WINUSERAPI BOOL WINAPI UserHandleGrantAccess(HANDLE,HANDLE,BOOL);
4698 WINUSERAPI UINT WINAPI UserRealizePalette(HDC);
4699 WINUSERAPI BOOL WINAPI ValidateRect(HWND,const RECT*);
4700 WINUSERAPI BOOL WINAPI ValidateRgn(HWND,HRGN);
4701 WINUSERAPI SHORT WINAPI VkKeyScanA(CHAR);
4702 WINUSERAPI SHORT WINAPI VkKeyScanW(WCHAR);
4703 #define VkKeyScan WINELIB_NAME_AW(VkKeyScan)
4704 WINUSERAPI WORD WINAPI VkKeyScanExA(CHAR, HKL);
4705 WINUSERAPI WORD WINAPI VkKeyScanExW(WCHAR, HKL);
4706 #define VkKeyScanEx WINELIB_NAME_AW(VkKeyScanEx)
4707 WINUSERAPI DWORD WINAPI WaitForInputIdle(HANDLE,DWORD);
4708 WINUSERAPI BOOL WINAPI WaitMessage(void);
4709 WINUSERAPI HWND WINAPI WindowFromDC(HDC);
4710 WINUSERAPI HWND WINAPI WindowFromPoint(POINT);
4711 WINUSERAPI BOOL WINAPI WinHelpA(HWND,LPCSTR,UINT,ULONG_PTR);
4712 WINUSERAPI BOOL WINAPI WinHelpW(HWND,LPCWSTR,UINT,ULONG_PTR);
4713 #define WinHelp WINELIB_NAME_AW(WinHelp)
4714 WINUSERAPI VOID WINAPI keybd_event(BYTE,BYTE,DWORD,ULONG_PTR);
4715 WINUSERAPI VOID WINAPI mouse_event(DWORD,DWORD,DWORD,DWORD,ULONG_PTR);
4716 WINUSERAPI INT WINAPIV wsprintfA(LPSTR,LPCSTR,...);
4717 WINUSERAPI INT WINAPIV wsprintfW(LPWSTR,LPCWSTR,...);
4718 #define wsprintf WINELIB_NAME_AW(wsprintf)
4719 #ifdef __ms_va_list
4720 WINUSERAPI INT WINAPI wvsprintfA(LPSTR,LPCSTR,__ms_va_list);
4721 WINUSERAPI INT WINAPI wvsprintfW(LPWSTR,LPCWSTR,__ms_va_list);
4722 #define wvsprintf WINELIB_NAME_AW(wvsprintf)
4723 #endif
4725 #if !defined(__WINESRC__) || defined(WINE_NO_INLINE_RECT)
4727 WINUSERAPI BOOL WINAPI EqualRect(const RECT*,const RECT*);
4728 WINUSERAPI BOOL WINAPI InflateRect(LPRECT,INT,INT);
4729 WINUSERAPI BOOL WINAPI IsRectEmpty(const RECT*);
4730 WINUSERAPI BOOL WINAPI OffsetRect(LPRECT,INT,INT);
4731 WINUSERAPI BOOL WINAPI PtInRect(const RECT*,POINT);
4732 WINUSERAPI BOOL WINAPI SetRect(LPRECT,INT,INT,INT,INT);
4733 WINUSERAPI BOOL WINAPI SetRectEmpty(LPRECT);
4735 #else
4737 /* Inline versions of common RECT helpers */
4739 static inline BOOL WINAPI EqualRect(const RECT *rect1, const RECT *rect2)
4741 if (!rect1 || !rect2) return FALSE;
4742 return ((rect1->left == rect2->left) && (rect1->right == rect2->right) &&
4743 (rect1->top == rect2->top) && (rect1->bottom == rect2->bottom));
4746 static inline BOOL WINAPI InflateRect(LPRECT rect, INT x, INT y)
4748 if (!rect) return FALSE;
4749 rect->left -= x;
4750 rect->top -= y;
4751 rect->right += x;
4752 rect->bottom += y;
4753 return TRUE;
4756 static inline BOOL WINAPI IsRectEmpty(const RECT *rect)
4758 if (!rect) return TRUE;
4759 return ((rect->left >= rect->right) || (rect->top >= rect->bottom));
4762 static inline BOOL WINAPI OffsetRect(LPRECT rect, INT x, INT y)
4764 if (!rect) return FALSE;
4765 rect->left += x;
4766 rect->right += x;
4767 rect->top += y;
4768 rect->bottom += y;
4769 return TRUE;
4772 static inline BOOL WINAPI PtInRect(const RECT *rect, POINT pt)
4774 if (!rect) return FALSE;
4775 return ((pt.x >= rect->left) && (pt.x < rect->right) &&
4776 (pt.y >= rect->top) && (pt.y < rect->bottom));
4779 static inline BOOL WINAPI SetRect(LPRECT rect, INT left, INT top, INT right, INT bottom)
4781 if (!rect) return FALSE;
4782 rect->left = left;
4783 rect->right = right;
4784 rect->top = top;
4785 rect->bottom = bottom;
4786 return TRUE;
4789 static inline BOOL WINAPI SetRectEmpty(LPRECT rect)
4791 if (!rect) return FALSE;
4792 rect->left = rect->right = rect->top = rect->bottom = 0;
4793 return TRUE;
4796 #endif /* !defined(__WINESRC__) || defined(WINE_NO_INLINE_RECT) */
4798 /* Undocumented functions */
4800 /* NOTE: This is SYSTEM.3, not USER.182, which is also named KillSystemTimer */
4801 WORD WINAPI SYSTEM_KillSystemTimer( WORD );
4803 #ifdef __WINESRC__
4805 /* Uxtheme hook functions and struct */
4807 /* Scroll bar hit testing */
4808 enum SCROLL_HITTEST
4810 SCROLL_NOWHERE, /* Outside the scroll bar */
4811 SCROLL_TOP_ARROW, /* Top or left arrow */
4812 SCROLL_TOP_RECT, /* Rectangle between the top arrow and the thumb */
4813 SCROLL_THUMB, /* Thumb rectangle */
4814 SCROLL_BOTTOM_RECT, /* Rectangle between the thumb and the bottom arrow */
4815 SCROLL_BOTTOM_ARROW /* Bottom or right arrow */
4818 /* Scroll bar tracking information */
4819 struct SCROLL_TRACKING_INFO
4821 HWND win; /* Tracking window */
4822 INT bar; /* SB_HORZ/SB_VERT/SB_CTL */
4823 INT thumb_pos; /* Thumb position */
4824 INT thumb_val; /* Current thumb value from thumb position */
4825 BOOL vertical; /* Is scroll bar vertical */
4826 enum SCROLL_HITTEST hit_test; /* Hit Test code of the last button-down event */
4829 enum NONCLIENT_BUTTON_TYPE
4831 MENU_CLOSE_BUTTON, /* Menu close button */
4832 MENU_MIN_BUTTON, /* Menu min button */
4833 MENU_MAX_BUTTON, /* Menu max button */
4834 MENU_RESTORE_BUTTON, /* Menu restore button */
4835 MENU_HELP_BUTTON, /* Menu help button */
4838 struct user_api_hook
4840 LRESULT (WINAPI *pDefDlgProc)(HWND, UINT, WPARAM, LPARAM, BOOL);
4841 void (WINAPI *pNonClientButtonDraw)(HWND, HDC, enum NONCLIENT_BUTTON_TYPE, RECT, BOOL, BOOL);
4842 void (WINAPI *pScrollBarDraw)(HWND, HDC, INT, enum SCROLL_HITTEST,
4843 const struct SCROLL_TRACKING_INFO *, BOOL, BOOL, RECT *, UINT,
4844 INT, INT, INT, BOOL);
4845 LRESULT (WINAPI *pScrollBarWndProc)(HWND, UINT, WPARAM, LPARAM, BOOL);
4848 WINUSERAPI BOOL WINAPI RegisterUserApiHook(const struct user_api_hook *new_hook, struct user_api_hook *old_hook);
4849 WINUSERAPI void WINAPI UnregisterUserApiHook(void);
4850 #endif
4852 #ifdef __cplusplus
4854 #endif
4856 #endif /* _WINUSER_ */