ntdll: Adjust PC according to THUMB/ARM flag.
[wine.git] / include / winuser.h
blob3cffaa19acddaf493b68d7e2cc419583ee9f71ef
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 #if !defined(_USER32_)
23 #define WINUSERAPI DECLSPEC_IMPORT
24 #else
25 #define WINUSERAPI
26 #endif
28 #ifndef RC_INVOKED
29 #include <stdarg.h>
30 #endif
31 #include <winuser.rh>
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
38 /* Define a bunch of callback types */
40 #if defined(STRICT)
41 typedef INT_PTR (CALLBACK *DLGPROC)(HWND,UINT,WPARAM,LPARAM);
42 typedef BOOL (CALLBACK *DRAWSTATEPROC)(HDC,LPARAM,WPARAM,int,int);
43 typedef INT (CALLBACK *EDITWORDBREAKPROCA)(LPSTR,INT,INT,INT);
44 typedef INT (CALLBACK *EDITWORDBREAKPROCW)(LPWSTR,INT,INT,INT);
45 typedef BOOL (CALLBACK *GRAYSTRINGPROC)(HDC,LPARAM,INT);
46 typedef LRESULT (CALLBACK *HOOKPROC)(INT,WPARAM,LPARAM);
47 typedef BOOL (CALLBACK *NAMEENUMPROCA)(LPSTR,LPARAM);
48 typedef BOOL (CALLBACK *NAMEENUMPROCW)(LPWSTR,LPARAM);
49 typedef BOOL (CALLBACK *PROPENUMPROCA)(HWND,LPCSTR,HANDLE);
50 typedef BOOL (CALLBACK *PROPENUMPROCW)(HWND,LPCWSTR,HANDLE);
51 typedef BOOL (CALLBACK *PROPENUMPROCEXA)(HWND,LPSTR,HANDLE,ULONG_PTR);
52 typedef BOOL (CALLBACK *PROPENUMPROCEXW)(HWND,LPWSTR,HANDLE,ULONG_PTR);
53 typedef VOID (CALLBACK *SENDASYNCPROC)(HWND,UINT,ULONG_PTR,LRESULT);
54 typedef VOID (CALLBACK *TIMERPROC)(HWND,UINT,UINT_PTR,DWORD);
55 typedef VOID (CALLBACK *WINEVENTPROC)(HWINEVENTHOOK,DWORD,HWND,LONG,LONG,
56 DWORD,DWORD);
57 typedef BOOL (CALLBACK *WNDENUMPROC)(HWND,LPARAM);
59 #else
60 typedef FARPROC DLGPROC;
61 typedef FARPROC DRAWSTATEPROC;
62 typedef FARPROC EDITWORDBREAKPROCA;
63 typedef FARPROC EDITWORDBREAKPROCW;
64 typedef FARPROC GRAYSTRINGPROC;
65 typedef FARPROC HOOKPROC;
66 typedef FARPROC NAMEENUMPROCA;
67 typedef FARPROC NAMEENUMPROCW;
68 typedef FARPROC PROPENUMPROCA;
69 typedef FARPROC PROPENUMPROCW;
70 typedef FARPROC PROPENUMPROCEXA;
71 typedef FARPROC PROPENUMPROCEXW;
72 typedef FARPROC SENDASYNCPROC;
73 typedef FARPROC TIMERPROC;
74 typedef FARPROC WINEVENTPROC;
75 typedef FARPROC WNDENUMPROC;
76 #endif /* STRICT */
78 typedef NAMEENUMPROCA WINSTAENUMPROCA;
79 typedef NAMEENUMPROCA DESKTOPENUMPROCA;
80 typedef NAMEENUMPROCW WINSTAENUMPROCW;
81 typedef NAMEENUMPROCW DESKTOPENUMPROCW;
83 typedef LRESULT (CALLBACK *WNDPROC)(HWND,UINT,WPARAM,LPARAM);
85 DECL_WINELIB_TYPE_AW(DESKTOPENUMPROC)
86 DECL_WINELIB_TYPE_AW(EDITWORDBREAKPROC)
87 DECL_WINELIB_TYPE_AW(NAMEENUMPROC)
88 DECL_WINELIB_TYPE_AW(PROPENUMPROC)
89 DECL_WINELIB_TYPE_AW(PROPENUMPROCEX)
90 DECL_WINELIB_TYPE_AW(WINSTAENUMPROC)
93 typedef HANDLE HDWP;
94 typedef void* HPOWERNOTIFY;
96 #define UOI_FLAGS 1
97 #define UOI_NAME 2
98 #define UOI_TYPE 3
99 #define UOI_USER_SID 4
101 #define WSF_VISIBLE 1
102 #define DF_ALLOWOTHERACCOUNTHOOK 1
104 typedef struct tagUSEROBJECTFLAGS {
105 BOOL fInherit;
106 BOOL fReserved;
107 DWORD dwFlags;
108 } USEROBJECTFLAGS, *PUSEROBJECTFLAGS;
110 typedef struct tagBSMINFO {
111 UINT cbSize;
112 HDESK hdesk;
113 HWND hwnd;
114 LUID luid;
115 } BSMINFO, *PBSMINFO;
117 /* Window stations */
118 #define WINSTA_ENUMDESKTOPS 0x0001
119 #define WINSTA_READATTRIBUTES 0x0002
120 #define WINSTA_ACCESSCLIPBOARD 0x0004
121 #define WINSTA_CREATEDESKTOP 0x0008
122 #define WINSTA_WRITEATTRIBUTES 0x0010
123 #define WINSTA_ACCESSGLOBALATOMS 0x0020
124 #define WINSTA_EXITWINDOWS 0x0040
125 #define WINSTA_ENUMERATE 0x0100
126 #define WINSTA_READSCREEN 0x0200
127 #define WINSTA_ALL_ACCESS 0x037f
129 /* Desktops */
130 #define DESKTOP_READOBJECTS 0x0001
131 #define DESKTOP_CREATEWINDOW 0x0002
132 #define DESKTOP_CREATEMENU 0x0004
133 #define DESKTOP_HOOKCONTROL 0x0008
134 #define DESKTOP_JOURNALRECORD 0x0010
135 #define DESKTOP_JOURNALPLAYBACK 0x0020
136 #define DESKTOP_ENUMERATE 0x0040
137 #define DESKTOP_WRITEOBJECTS 0x0080
138 #define DESKTOP_SWITCHDESKTOP 0x0100
141 /* flags for FILTERKEYS dwFlags field */
142 #define FKF_AVAILABLE 0x00000002
143 #define FKF_CLICKON 0x00000040
144 #define FKF_FILTERKEYSON 0x00000001
145 #define FKF_HOTKEYACTIVE 0x00000004
146 #define FKF_HOTKEYSOUND 0x00000010
147 #define FKF_CONFIRMHOTKEY 0x00000008
148 #define FKF_INDICATOR 0x00000020
150 typedef struct tagFILTERKEYS
152 UINT cbSize;
153 DWORD dwFlags;
154 DWORD iWaitMSec;
155 DWORD iDelayMSec;
156 DWORD iRepeatMSec;
157 DWORD iBounceMSec;
158 } FILTERKEYS, *LPFILTERKEYS;
160 /* flags for TOGGLEKEYS dwFlags field */
161 #define TKF_AVAILABLE 0x00000002
162 #define TKF_CONFIRMHOTKEY 0x00000008
163 #define TKF_HOTKEYACTIVE 0x00000004
164 #define TKF_HOTKEYSOUND 0x00000010
165 #define TKF_TOGGLEKEYSON 0x00000001
167 typedef struct tagTOGGLEKEYS
169 DWORD cbSize;
170 DWORD dwFlags;
171 } TOGGLEKEYS, *LPTOGGLEKEYS;
173 /* flags for MOUSEKEYS dwFlags field */
174 #define MKF_AVAILABLE 0x00000002
175 #define MKF_CONFIRMHOTKEY 0x00000008
176 #define MKF_HOTKEYACTIVE 0x00000004
177 #define MKF_HOTKEYSOUND 0x00000010
178 #define MKF_INDICATOR 0x00000020
179 #define MKF_MOUSEKEYSON 0x00000001
180 #define MKF_MODIFIERS 0x00000040
181 #define MKF_REPLACENUMBERS 0x00000080
183 typedef struct tagMOUSEKEYS
185 UINT cbSize;
186 DWORD dwFlags;
187 DWORD iMaxSpeed;
188 DWORD iTimeToMaxSpeed;
189 DWORD iCtrlSpeed;
190 DWORD dwReserved1;
191 DWORD dwReserved2;
192 } MOUSEKEYS, *LPMOUSEKEYS;
194 /* struct and defines for GetMouseMovePointsEx */
195 #define GMMP_USE_DISPLAY_POINTS 1
196 #define GMMP_USE_HIGH_RESOLUTION_POINTS 2
198 typedef struct tagMOUSEMOVEPOINT {
199 int x;
200 int y;
201 DWORD time;
202 ULONG_PTR dwExtraInfo;
203 } MOUSEMOVEPOINT,*PMOUSEMOVEPOINT,*LPMOUSEMOVEPOINT;
205 /* flags for STICKYKEYS dwFlags field */
206 #define SKF_AUDIBLEFEEDBACK 0x00000040
207 #define SKF_AVAILABLE 0x00000002
208 #define SKF_CONFIRMHOTKEY 0x00000008
209 #define SKF_HOTKEYACTIVE 0x00000004
210 #define SKF_HOTKEYSOUND 0x00000010
211 #define SKF_INDICATOR 0x00000020
212 #define SKF_STICKYKEYSON 0x00000001
213 #define SKF_TRISTATE 0x00000080
214 #define SKF_TWOKEYSOFF 0x00000100
216 typedef struct tagSTICKYKEYS
218 DWORD cbSize;
219 DWORD dwFlags;
220 } STICKYKEYS, *LPSTICKYKEYS;
222 /* flags for ACCESSTIMEOUT dwFlags field */
223 #define ATF_ONOFFFEEDBACK 0x00000002
224 #define ATF_AVAILABLE 0x00000004
225 #define ATF_TIMEOUTON 0x00000001
227 typedef struct tagACCESSTIMEOUT
229 UINT cbSize;
230 DWORD dwFlags;
231 DWORD iTimeOutMSec;
232 } ACCESSTIMEOUT, *LPACCESSTIMEOUT;
234 /* flags for SERIALKEYS dwFlags field */
235 #define SERKF_ACTIVE 0x00000008
236 #define SERKF_AVAILABLE 0x00000002
237 #define SERKF_INDICATOR 0x00000004
238 #define SERKF_SERIALKEYSON 0x00000001
240 typedef struct tagSERIALKEYSA
242 UINT cbSize;
243 DWORD dwFlags;
244 LPSTR lpszActivePort;
245 LPSTR lpszPort;
246 UINT iBaudRate;
247 UINT iPortState;
248 UINT iActive;
249 } SERIALKEYSA, *LPSERIALKEYSA;
251 typedef struct tagSERIALKEYSW {
252 UINT cbSize;
253 DWORD dwFlags;
254 LPWSTR lpszActivePort;
255 LPWSTR lpszPort;
256 UINT iBaudRate;
257 UINT iPortState;
258 UINT iActive;
259 } SERIALKEYSW,*LPSERIALKEYSW;
261 DECL_WINELIB_TYPE_AW(SERIALKEYS)
262 DECL_WINELIB_TYPE_AW(LPSERIALKEYS)
264 /* flags for SOUNDSENTRY dwFlags field */
265 #define SSF_AVAILABLE 0x00000002
266 #define SSF_SOUNDSENTRYON 0x00000001
268 #define SSTF_BORDER 0x00000002
269 #define SSTF_CHARS 0x00000001
270 #define SSTF_DISPLAY 0x00000003
271 #define SSTF_NONE 0x00000000
273 #define SSGF_DISPLAY 0x00000003
274 #define SSGF_NONE 0x00000000
276 #define SSWF_DISPLAY 0x00000003
277 #define SSWF_NONE 0x00000000
278 #define SSWF_TITLE 0x00000001
279 #define SSWF_WINDOW 0x00000002
281 typedef struct tagSOUNDSENTRYA
283 UINT cbSize;
284 DWORD dwFlags;
285 DWORD iFSTextEffect;
286 DWORD iFSTextEffectMSec;
287 DWORD iFSTextEffectColorBits;
288 DWORD iFSGrafEffect;
289 DWORD iFSGrafEffectMSec;
290 DWORD iFSGrafEffectColor;
291 DWORD iWindowsEffect;
292 DWORD iWindowsEffectMSec;
293 LPSTR lpszWindowsEffectDLL;
294 DWORD iWindowsEffectOrdinal;
295 } SOUNDSENTRYA, *LPSOUNDSENTRYA;
297 typedef struct tagSOUNDSENTRYW
299 UINT cbSize;
300 DWORD dwFlags;
301 DWORD iFSTextEffect;
302 DWORD iFSTextEffectMSec;
303 DWORD iFSTextEffectColorBits;
304 DWORD iFSGrafEffect;
305 DWORD iFSGrafEffectMSec;
306 DWORD iFSGrafEffectColor;
307 DWORD iWindowsEffect;
308 DWORD iWindowsEffectMSec;
309 LPWSTR lpszWindowsEffectDLL;
310 DWORD iWindowsEffectOrdinal;
311 } SOUNDSENTRYW, *LPSOUNDSENTRYW;
313 DECL_WINELIB_TYPE_AW(SOUNDSENTRY)
314 DECL_WINELIB_TYPE_AW(LPSOUNDSENTRY)
316 /* flags for HIGHCONTRAST dwFlags field */
317 #define HCF_HIGHCONTRASTON 0x00000001
318 #define HCF_AVAILABLE 0x00000002
319 #define HCF_HOTKEYACTIVE 0x00000004
320 #define HCF_CONFIRMHOTKEY 0x00000008
321 #define HCF_HOTKEYSOUND 0x00000010
322 #define HCF_INDICATOR 0x00000020
323 #define HCF_HOTKEYAVAILABLE 0x00000040
325 typedef struct tagHIGHCONTRASTA
327 UINT cbSize;
328 DWORD dwFlags;
329 LPSTR lpszDefaultScheme;
330 } HIGHCONTRASTA, *LPHIGHCONTRASTA;
332 typedef struct tagHIGHCONTRASTW
334 UINT cbSize;
335 DWORD dwFlags;
336 LPWSTR lpszDefaultScheme;
337 } HIGHCONTRASTW, *LPHIGHCONTRASTW;
339 DECL_WINELIB_TYPE_AW(HIGHCONTRAST)
340 DECL_WINELIB_TYPE_AW(LPHIGHCONTRAST)
342 typedef struct tagEVENTMSG
344 UINT message;
345 UINT paramL;
346 UINT paramH;
347 DWORD time;
348 HWND hwnd;
349 } EVENTMSG, *PEVENTMSG, *LPEVENTMSG;
351 /* WH_KEYBOARD_LL structure */
352 typedef struct tagKBDLLHOOKSTRUCT
354 DWORD vkCode;
355 DWORD scanCode;
356 DWORD flags;
357 DWORD time;
358 ULONG_PTR dwExtraInfo;
359 } KBDLLHOOKSTRUCT, *LPKBDLLHOOKSTRUCT, *PKBDLLHOOKSTRUCT;
361 #define LLKHF_EXTENDED (KF_EXTENDED >> 8)
362 #define LLKHF_INJECTED 0x00000010
363 #define LLKHF_ALTDOWN (KF_ALTDOWN >> 8)
364 #define LLKHF_UP (KF_UP >> 8)
366 /* WH_MOUSE_LL structure */
367 typedef struct tagMSLLHOOKSTRUCT
369 POINT pt;
370 DWORD mouseData;
371 DWORD flags;
372 DWORD time;
373 ULONG_PTR dwExtraInfo;
374 } MSLLHOOKSTRUCT, *LPMSLLHOOKSTRUCT, *PMSLLHOOKSTRUCT;
376 #define LLMHF_INJECTED 0x00000001
378 /* Mouse hook structure */
380 typedef struct
382 POINT pt;
383 HWND hwnd;
384 UINT wHitTestCode;
385 ULONG_PTR dwExtraInfo;
386 } MOUSEHOOKSTRUCT, *PMOUSEHOOKSTRUCT, *LPMOUSEHOOKSTRUCT;
388 typedef struct
390 struct { /* MOUSEHOOKSTRUCT */
391 POINT pt;
392 HWND hwnd;
393 UINT wHitTestCode;
394 ULONG_PTR dwExtraInfo;
395 } DUMMYSTRUCTNAME;
396 DWORD mouseData;
397 } MOUSEHOOKSTRUCTEX, *PMOUSEHOOKSTRUCTEX, *LPMOUSEHOOKSTRUCTEX;
400 /* Hardware hook structure */
402 typedef struct
404 HWND hwnd;
405 UINT message;
406 WPARAM wParam;
407 LPARAM lParam;
408 } HARDWAREHOOKSTRUCT, *PHARDWAREHOOKSTRUCT, *LPHARDWAREHOOKSTRUCT;
411 /* Debug hook structure */
413 typedef struct tagDEBUGHOOKINFO
415 DWORD idThread;
416 DWORD idThreadInstaller;
417 LPARAM lParam;
418 WPARAM wParam;
419 INT code;
420 } DEBUGHOOKINFO, *PDEBUGHOOKINFO, *LPDEBUGHOOKINFO;
422 #define HKL_PREV 0
423 #define HKL_NEXT 1
425 #define KLF_ACTIVATE 0x00000001
426 #define KLF_SUBSTITUTE_OK 0x00000002
427 #define KLF_UNLOADPREVIOUS 0x00000004
428 #define KLF_REORDER 0x00000008
429 #define KLF_REPLACELANG 0x00000010
430 #define KLF_NOTELLSHELL 0x00000080
431 #define KLF_SETFORPROCESS 0x00000100
432 #define KLF_SHIFTLOCK 0x00010000
433 #define KLF_RESET 0x40000000
435 #define KL_NAMELENGTH 9
437 typedef struct tagMOUSEINPUT
439 LONG dx;
440 LONG dy;
441 DWORD mouseData;
442 DWORD dwFlags;
443 DWORD time;
444 ULONG_PTR dwExtraInfo;
445 } MOUSEINPUT, *PMOUSEINPUT, *LPMOUSEINPUT;
447 typedef struct tagKEYBDINPUT
449 WORD wVk;
450 WORD wScan;
451 DWORD dwFlags;
452 DWORD time;
453 ULONG_PTR dwExtraInfo;
454 } KEYBDINPUT, *PKEYBDINPUT, *LPKEYBDINPUT;
456 typedef struct tagHARDWAREINPUT
458 DWORD uMsg;
459 WORD wParamL;
460 WORD wParamH;
461 } HARDWAREINPUT, *PHARDWAREINPUT, *LPHARDWAREINPUT;
463 #define INPUT_MOUSE 0
464 #define INPUT_KEYBOARD 1
465 #define INPUT_HARDWARE 2
467 typedef struct tagINPUT
469 DWORD type;
470 union
472 MOUSEINPUT mi;
473 KEYBDINPUT ki;
474 HARDWAREINPUT hi;
475 } DUMMYUNIONNAME;
476 } INPUT, *PINPUT, *LPINPUT;
478 DECLARE_HANDLE(HRAWINPUT);
480 typedef struct tagRAWINPUTDEVICELIST
482 HANDLE hDevice;
483 DWORD dwType;
484 } RAWINPUTDEVICELIST, *PRAWINPUTDEVICELIST;
486 typedef struct tagRAWHID {
487 DWORD dwSizeHid;
488 DWORD dwCount;
489 BYTE bRawData[1];
490 } RAWHID, *LPRAWHID;
492 typedef struct tagRAWKEYBOARD {
493 USHORT MakeCode;
494 USHORT Flags;
495 USHORT Reserved;
496 USHORT VKey;
497 UINT Message;
498 ULONG ExtraInformation;
499 } RAWKEYBOARD, *PRAWKEYBOARD, *LPRAWKEYBOARD;
501 typedef struct tagRAWMOUSE {
502 USHORT usFlags;
503 union {
504 ULONG ulButtons;
505 struct {
506 USHORT usButtonFlags;
507 USHORT usButtonData;
508 } DUMMYSTRUCTNAME;
509 } DUMMYUNIONNAME;
510 ULONG ulRawButtons;
511 LONG lLastX;
512 LONG lLastY;
513 ULONG ulExtraInformation;
514 } RAWMOUSE, *PRAWMOUSE, *LPRAWMOUSE;
516 typedef struct tagRAWINPUTHEADER {
517 DWORD dwType;
518 DWORD dwSize;
519 HANDLE hDevice;
520 WPARAM wParam;
521 } RAWINPUTHEADER, *PRAWINPUTHEADER;
523 typedef struct tagRAWINPUT {
524 RAWINPUTHEADER header;
525 union {
526 RAWMOUSE mouse;
527 RAWKEYBOARD keyboard;
528 RAWHID hid;
529 } data;
530 } RAWINPUT, *PRAWINPUT, *LPRAWINPUT;
532 typedef struct tagRAWINPUTDEVICE {
533 USHORT usUsagePage;
534 USHORT usUsage;
535 DWORD dwFlags;
536 HWND hwndTarget;
537 } RAWINPUTDEVICE, *PRAWINPUTDEVICE, *LPRAWINPUTDEVICE;
539 typedef struct tagRID_DEVICE_INFO_MOUSE {
540 DWORD dwId;
541 DWORD dwNumberOfButtons;
542 DWORD dwSampleRate;
543 BOOL fHasHorizontalWheel;
544 } RID_DEVICE_INFO_MOUSE, *PRID_DEVICE_INFO_MOUSE;
546 typedef struct tagRID_DEVICE_INFO_KEYBOARD {
547 DWORD dwType;
548 DWORD dwSubType;
549 DWORD dwKeyboardMode;
550 DWORD dwNumberOfFunctionKeys;
551 DWORD dwNumberOfIndicators;
552 DWORD dwNumberOfKeysTotal;
553 } RID_DEVICE_INFO_KEYBOARD, *PRID_DEVICE_INFO_KEYBOARD;
555 typedef struct tagRID_DEVICE_INFO_HID {
556 DWORD dwVendorId;
557 DWORD dwProductId;
558 DWORD dwVersionNumber;
559 USHORT usUsagePage;
560 USHORT usUsage;
561 } RID_DEVICE_INFO_HID, *PRID_DEVICE_INFO_HID;
563 typedef struct tagRID_DEVICE_INFO {
564 DWORD cbSize;
565 DWORD dwType;
566 union {
567 RID_DEVICE_INFO_MOUSE mouse;
568 RID_DEVICE_INFO_KEYBOARD keyboard;
569 RID_DEVICE_INFO_HID hid;
570 } DUMMYUNIONNAME;
571 } RID_DEVICE_INFO, *PRID_DEVICE_INFO, *LPRID_DEVICE_INFO;
573 #define GET_RAWINPUT_CODE_WPARAM(wParam) ((wParam) & 0xff)
575 #define RIM_INPUT 0
576 #define RIM_INPUTSINK 1
578 #define RIM_TYPEMOUSE 0
579 #define RIM_TYPEKEYBOARD 1
580 #define RIM_TYPEHID 2
582 #define RI_MOUSE_LEFT_BUTTON_DOWN 0x0001
583 #define RI_MOUSE_LEFT_BUTTON_UP 0x0002
584 #define RI_MOUSE_RIGHT_BUTTON_DOWN 0x0004
585 #define RI_MOUSE_RIGHT_BUTTON_UP 0x0008
586 #define RI_MOUSE_MIDDLE_BUTTON_DOWN 0x0010
587 #define RI_MOUSE_MIDDLE_BUTTON_UP 0x0020
589 #define RI_MOUSE_BUTTON_1_DOWN RI_MOUSE_LEFT_BUTTON_DOWN
590 #define RI_MOUSE_BUTTON_1_UP RI_MOUSE_LEFT_BUTTON_UP
591 #define RI_MOUSE_BUTTON_2_DOWN RI_MOUSE_RIGHT_BUTTON_DOWN
592 #define RI_MOUSE_BUTTON_2_UP RI_MOUSE_RIGHT_BUTTON_UP
593 #define RI_MOUSE_BUTTON_3_DOWN RI_MOUSE_MIDDLE_BUTTON_DOWN
594 #define RI_MOUSE_BUTTON_3_UP RI_MOUSE_MIDDLE_BUTTON_UP
596 #define RI_MOUSE_BUTTON_4_DOWN 0x0040
597 #define RI_MOUSE_BUTTON_4_UP 0x0080
598 #define RI_MOUSE_BUTTON_5_DOWN 0x0100
599 #define RI_MOUSE_BUTTON_5_UP 0x0200
600 #define RI_MOUSE_WHEEL 0x0400
601 #define RI_MOUSE_HORIZONTAL_WHEEL 0x0800
603 #define MOUSE_MOVE_RELATIVE 0x00
604 #define MOUSE_MOVE_ABSOLUTE 0x01
605 #define MOUSE_VIRTUAL_DESKTOP 0x02
606 #define MOUSE_ATTRIBUTES_CHANGED 0x04
607 #define MOUSE_MOVE_NOCOALESCE 0x08
609 #define KEYBOARD_OVERRUN_MAKE_CODE 0xFF
611 #define RI_KEY_MAKE 0x00
612 #define RI_KEY_BREAK 0x01
613 #define RI_KEY_E0 0x02
614 #define RI_KEY_E1 0x04
615 #define RI_KEY_TERMSRV_SET_LED 0x08
616 #define RI_KEY_TERMSRV_SHADOW 0x10
618 #define RAWINPUT_ALIGN(x) (((x) + sizeof(DWORD_PTR) - 1) & ~(sizeof(DWORD_PTR) - 1))
619 #define NEXTRAWINPUTBLOCK(ptr) ((PRAWINPUT)RAWINPUT_ALIGN((ULONG_PTR)((PBYTE)(ptr) + (ptr)->header.dwSize)))
621 #define RID_INPUT 0x10000003
622 #define RID_HEADER 0x10000005
624 #define RIDI_PREPARSEDDATA 0x20000005
625 #define RIDI_DEVICENAME 0x20000007
626 #define RIDI_DEVICEINFO 0x2000000b
628 #define RIDEV_REMOVE 0x00000001
629 #define RIDEV_EXCLUDE 0x00000010
630 #define RIDEV_PAGEONLY 0x00000020
631 #define RIDEV_NOLEGACY 0x00000030
632 #define RIDEV_INPUTSINK 0x00000100
633 #define RIDEV_CAPTUREMOUSE 0x00000200
634 #define RIDEV_NOHOTKEYS 0x00000200
635 #define RIDEV_APPKEYS 0x00000400
636 #define RIDEV_EXINPUTSINK 0x00001000
637 #define RIDEV_DEVNOTIFY 0x00002000
638 #define RIDEV_EXMODEMASK 0x000000F0
640 #define RIDEV_EXMODE(mode) ((mode) & RIDEV_EXMODEMASK)
642 typedef struct tagGESTURECONFIG {
643 DWORD dwID;
644 DWORD dwWant;
645 DWORD dwBlock;
646 } GESTURECONFIG, *PGESTURECONFIG;
648 #define GIDC_ARRIVAL 1
649 #define GIDC_REMOVAL 2
651 #if (_WIN32_WINNT >= 0x0601)
652 #define GET_DEVICE_CHANGE_WPARAM(wParam) (LOWORD(wParam))
653 #elif (_WIN32_WINNT >= 0x0501)
654 #define GET_DEVICE_CHANGE_LPARAM(lParam) (LOWORD(lParam))
655 #endif
657 typedef struct tagGUITHREADINFO
659 DWORD cbSize;
660 DWORD flags;
661 HWND hwndActive;
662 HWND hwndFocus;
663 HWND hwndCapture;
664 HWND hwndMenuOwner;
665 HWND hwndMoveSize;
666 HWND hwndCaret;
667 RECT rcCaret;
668 } GUITHREADINFO, *PGUITHREADINFO, *LPGUITHREADINFO;
670 #define GUI_CARETBLINKING 0x00000001
671 #define GUI_INMOVESIZE 0x00000002
672 #define GUI_INMENUMODE 0x00000004
673 #define GUI_SYSTEMMENUMODE 0x00000008
674 #define GUI_POPUPMENUMODE 0x00000010
675 #define GUI_16BITTASK 0x00000020
677 typedef enum tagINPUT_MESSAGE_DEVICE_TYPE
679 IMDT_UNAVAILABLE = 0x00,
680 IMDT_KEYBOARD = 0x01,
681 IMDT_MOUSE = 0x02,
682 IMDT_TOUCH = 0x04,
683 IMDT_PEN = 0x08,
684 IMDT_TOUCHPAD = 0x10,
685 } INPUT_MESSAGE_DEVICE_TYPE;
687 typedef enum tagINPUT_MESSAGE_ORIGIN_ID
689 IMO_UNAVAILABLE = 0x00,
690 IMO_HARDWARE = 0x01,
691 IMO_INJECTED = 0x02,
692 IMO_SYSTEM = 0x04,
693 } INPUT_MESSAGE_ORIGIN_ID;
695 typedef struct tagINPUT_MESSAGE_SOURCE
697 INPUT_MESSAGE_DEVICE_TYPE deviceType;
698 INPUT_MESSAGE_ORIGIN_ID originId;
699 } INPUT_MESSAGE_SOURCE;
702 /***** Dialogs *****/
704 /* Gcc on Solaris has a version of this that we don't care about */
705 #undef FSHIFT
707 #define FVIRTKEY TRUE /* Assumed to be == TRUE */
708 #define FNOINVERT 0x02
709 #define FSHIFT 0x04
710 #define FCONTROL 0x08
711 #define FALT 0x10
714 typedef struct tagANIMATIONINFO
716 UINT cbSize;
717 INT iMinAnimate;
718 } ANIMATIONINFO, *LPANIMATIONINFO;
720 typedef struct tagNMHDR
722 HWND hwndFrom;
723 UINT_PTR idFrom;
724 UINT code;
725 } NMHDR, *LPNMHDR;
727 typedef struct tagDRAWTEXTPARAMS
729 UINT cbSize;
730 INT iTabLength;
731 INT iLeftMargin;
732 INT iRightMargin;
733 UINT uiLengthDrawn;
734 } DRAWTEXTPARAMS,*LPDRAWTEXTPARAMS;
736 typedef struct
738 LPARAM lParam;
739 WPARAM wParam;
740 UINT message;
741 HWND hwnd;
742 } CWPSTRUCT, *PCWPSTRUCT, *LPCWPSTRUCT;
744 typedef struct
746 LRESULT lResult;
747 LPARAM lParam;
748 WPARAM wParam;
749 DWORD message;
750 HWND hwnd;
751 } CWPRETSTRUCT, *PCWPRETSTRUCT, *LPCWPRETSTRUCT;
753 typedef struct tagWINDOWPLACEMENT
755 UINT length;
756 UINT flags;
757 UINT showCmd;
758 POINT ptMinPosition;
759 POINT ptMaxPosition;
760 RECT rcNormalPosition;
761 } WINDOWPLACEMENT, *PWINDOWPLACEMENT, *LPWINDOWPLACEMENT;
764 /* WINDOWPLACEMENT flags */
765 #define WPF_SETMINPOSITION 0x0001
766 #define WPF_RESTORETOMAXIMIZED 0x0002
768 /***** Dialogs *****/
770 #define IS_INTRESOURCE(x) (((ULONG_PTR)(x) >> 16) == 0)
771 #define MAKEINTRESOURCEA(i) (LPSTR)((ULONG_PTR)((WORD)(i)))
772 #define MAKEINTRESOURCEW(i) (LPWSTR)((ULONG_PTR)((WORD)(i)))
774 #ifndef RC_INVOKED
775 # ifdef WINE_NO_UNICODE_MACROS /* force using a cast */
776 # define MAKEINTRESOURCE(i) ((ULONG_PTR)((WORD)(i)))
777 # else
778 # define MAKEINTRESOURCE WINELIB_NAME_AW(MAKEINTRESOURCE)
779 # endif
780 #endif
782 /* Predefined resource types */
783 #define RT_CURSOR MAKEINTRESOURCE(1)
784 #define RT_BITMAP MAKEINTRESOURCE(2)
785 #define RT_ICON MAKEINTRESOURCE(3)
786 #define RT_MENU MAKEINTRESOURCE(4)
787 #define RT_DIALOG MAKEINTRESOURCE(5)
788 #define RT_STRING MAKEINTRESOURCE(6)
789 #define RT_FONTDIR MAKEINTRESOURCE(7)
790 #define RT_FONT MAKEINTRESOURCE(8)
791 #define RT_ACCELERATOR MAKEINTRESOURCE(9)
792 #define RT_RCDATA MAKEINTRESOURCE(10)
793 #define RT_MESSAGETABLE MAKEINTRESOURCE(11)
794 #define RT_GROUP_CURSOR MAKEINTRESOURCE(12)
795 #define RT_GROUP_ICON MAKEINTRESOURCE(14)
796 #define RT_VERSION MAKEINTRESOURCE(16)
797 #define RT_DLGINCLUDE MAKEINTRESOURCE(17)
798 #define RT_PLUGPLAY MAKEINTRESOURCE(19)
799 #define RT_VXD MAKEINTRESOURCE(20)
800 #define RT_ANICURSOR MAKEINTRESOURCE(21)
801 #define RT_ANIICON MAKEINTRESOURCE(22)
802 #define RT_HTML MAKEINTRESOURCE(23)
804 #ifdef RC_INVOKED
805 #define RT_MANIFEST 24
806 #define CREATEPROCESS_MANIFEST_RESOURCE_ID 1
807 #define ISOLATIONAWARE_MANIFEST_RESOURCE_ID 2
808 #define ISOLATIONAWARE_NOSTATICIMPORT_MANIFEST_RESOURCE_ID 3
809 #define MINIMUM_RESERVED_MANIFEST_RESOURCE_ID 1
810 #define MAXIMUM_RESERVED_MANIFEST_RESOURCE_ID 16
811 #else
812 #define RT_MANIFEST MAKEINTRESOURCE(24)
813 #define CREATEPROCESS_MANIFEST_RESOURCE_ID MAKEINTRESOURCE(1)
814 #define ISOLATIONAWARE_MANIFEST_RESOURCE_ID MAKEINTRESOURCE(2)
815 #define ISOLATIONAWARE_NOSTATICIMPORT_MANIFEST_RESOURCE_ID MAKEINTRESOURCE(3)
816 #define MINIMUM_RESERVED_MANIFEST_RESOURCE_ID MAKEINTRESOURCE(1)
817 #define MAXIMUM_RESERVED_MANIFEST_RESOURCE_ID MAKEINTRESOURCE(16)
818 #endif
820 /* cbWndExtra bytes for dialog class */
821 #define DLGWINDOWEXTRA 30
824 /* Dialog messages */
825 #define DM_GETDEFID (WM_USER+0)
826 #define DM_SETDEFID (WM_USER+1)
827 #define DM_REPOSITION (WM_USER+2)
829 #define DC_HASDEFID 0x534b
831 /* Bit flags for DRAWITEMSTRUCT.CtlType */
832 #define ODT_MENU 1
833 #define ODT_LISTBOX 2
834 #define ODT_COMBOBOX 3
835 #define ODT_BUTTON 4
836 #define ODT_STATIC 5
838 /* Bit flags for DRAWITEMSTRUCT.itemAction */
839 #define ODA_DRAWENTIRE 0x1
840 #define ODA_SELECT 0x2
841 #define ODA_FOCUS 0x4
843 /* Bit flags for DRAWITEMSTRUCT.itemState */
844 #define ODS_SELECTED 0x0001 /* Selected */
845 #define ODS_GRAYED 0x0002 /* Grayed (Menus only) */
846 #define ODS_DISABLED 0x0004 /* Disabled */
847 #define ODS_CHECKED 0x0008 /* Checked (Menus only) */
848 #define ODS_FOCUS 0x0010 /* Has focus */
849 #define ODS_DEFAULT 0x0020 /* Default */
850 #define ODS_HOTLIGHT 0x0040 /* Highlighted when under mouse */
851 #define ODS_INACTIVE 0x0080 /* Inactive */
852 #define ODS_NOACCEL 0x0100 /* No keyboard accelerator */
853 #define ODS_NOFOCUSRECT 0x0200 /* No focus rectangle */
854 #define ODS_COMBOBOXEDIT 0x1000 /* Edit of a combo box */
856 #ifndef NOCOLOR
858 #define COLOR_SCROLLBAR 0
859 #define COLOR_BACKGROUND 1
860 #define COLOR_ACTIVECAPTION 2
861 #define COLOR_INACTIVECAPTION 3
862 #define COLOR_MENU 4
863 #define COLOR_WINDOW 5
864 #define COLOR_WINDOWFRAME 6
865 #define COLOR_MENUTEXT 7
866 #define COLOR_WINDOWTEXT 8
867 #define COLOR_CAPTIONTEXT 9
868 #define COLOR_ACTIVEBORDER 10
869 #define COLOR_INACTIVEBORDER 11
870 #define COLOR_APPWORKSPACE 12
871 #define COLOR_HIGHLIGHT 13
872 #define COLOR_HIGHLIGHTTEXT 14
873 #define COLOR_BTNFACE 15
874 #define COLOR_BTNSHADOW 16
875 #define COLOR_GRAYTEXT 17
876 #define COLOR_BTNTEXT 18
877 #define COLOR_INACTIVECAPTIONTEXT 19
878 #define COLOR_BTNHIGHLIGHT 20
879 /* win95 colors */
880 #define COLOR_3DDKSHADOW 21
881 #define COLOR_3DLIGHT 22
882 #define COLOR_INFOTEXT 23
883 #define COLOR_INFOBK 24
884 #define COLOR_DESKTOP COLOR_BACKGROUND
885 #define COLOR_3DFACE COLOR_BTNFACE
886 #define COLOR_3DSHADOW COLOR_BTNSHADOW
887 #define COLOR_3DHIGHLIGHT COLOR_BTNHIGHLIGHT
888 #define COLOR_3DHILIGHT COLOR_BTNHIGHLIGHT
889 #define COLOR_BTNHILIGHT COLOR_BTNHIGHLIGHT
890 /* win98 colors */
891 #define COLOR_ALTERNATEBTNFACE 25 /* undocumented, constant name unknown */
892 #define COLOR_HOTLIGHT 26
893 #define COLOR_GRADIENTACTIVECAPTION 27
894 #define COLOR_GRADIENTINACTIVECAPTION 28
895 /* win2k/xp colors */
896 #define COLOR_MENUHILIGHT 29
897 #define COLOR_MENUBAR 30
899 /* WM_CTLCOLOR values */
900 #define CTLCOLOR_MSGBOX 0
901 #define CTLCOLOR_EDIT 1
902 #define CTLCOLOR_LISTBOX 2
903 #define CTLCOLOR_BTN 3
904 #define CTLCOLOR_DLG 4
905 #define CTLCOLOR_SCROLLBAR 5
906 #define CTLCOLOR_STATIC 6
908 WINUSERAPI COLORREF WINAPI GetSysColor(INT);
909 WINUSERAPI BOOL WINAPI SetSysColors(INT,const INT*,const COLORREF*);
911 #endif /* NOCOLOR */
913 /* IMESTATUS type */
914 #define EMSIS_COMPOSITIONSTRING 1
916 /* IMESTATUS type specific data */
917 #define EIMES_GETCOMPSTRATONCE 0x0001
918 #define EIMES_CANCELCOMPSTRINFOCUS 0x0002
919 #define EIMES_COMPLETECOMPSTRKILLFOCUS 0x0004
921 /* EDITWORDBREAKPROC code values */
922 #define WB_LEFT 0
923 #define WB_RIGHT 1
924 #define WB_ISDELIMITER 2
926 /* Edit control notification codes */
927 #define EN_SETFOCUS 0x0100
928 #define EN_KILLFOCUS 0x0200
929 #define EN_CHANGE 0x0300
930 #define EN_UPDATE 0x0400
931 #define EN_ERRSPACE 0x0500
932 #define EN_MAXTEXT 0x0501
933 #define EN_HSCROLL 0x0601
934 #define EN_VSCROLL 0x0602
936 /* New since win95 : EM_SETMARGIN parameters */
937 #define EC_LEFTMARGIN 0x0001
938 #define EC_RIGHTMARGIN 0x0002
939 #define EC_USEFONTINFO 0xffff
942 /* GetSystemMetrics() codes */
943 #define SM_CXSCREEN 0
944 #define SM_CYSCREEN 1
945 #define SM_CXVSCROLL 2
946 #define SM_CYHSCROLL 3
947 #define SM_CYCAPTION 4
948 #define SM_CXBORDER 5
949 #define SM_CYBORDER 6
950 #define SM_CXDLGFRAME 7
951 #define SM_CYDLGFRAME 8
952 #define SM_CYVTHUMB 9
953 #define SM_CXHTHUMB 10
954 #define SM_CXICON 11
955 #define SM_CYICON 12
956 #define SM_CXCURSOR 13
957 #define SM_CYCURSOR 14
958 #define SM_CYMENU 15
959 #define SM_CXFULLSCREEN 16
960 #define SM_CYFULLSCREEN 17
961 #define SM_CYKANJIWINDOW 18
962 #define SM_MOUSEPRESENT 19
963 #define SM_CYVSCROLL 20
964 #define SM_CXHSCROLL 21
965 #define SM_DEBUG 22
966 #define SM_SWAPBUTTON 23
967 #define SM_RESERVED1 24
968 #define SM_RESERVED2 25
969 #define SM_RESERVED3 26
970 #define SM_RESERVED4 27
971 #define SM_CXMIN 28
972 #define SM_CYMIN 29
973 #define SM_CXSIZE 30
974 #define SM_CYSIZE 31
975 #define SM_CXFRAME 32
976 #define SM_CYFRAME 33
977 #define SM_CXMINTRACK 34
978 #define SM_CYMINTRACK 35
979 #define SM_CXDOUBLECLK 36
980 #define SM_CYDOUBLECLK 37
981 #define SM_CXICONSPACING 38
982 #define SM_CYICONSPACING 39
983 #define SM_MENUDROPALIGNMENT 40
984 #define SM_PENWINDOWS 41
985 #define SM_DBCSENABLED 42
986 #define SM_CMOUSEBUTTONS 43
987 #define SM_CXFIXEDFRAME SM_CXDLGFRAME
988 #define SM_CYFIXEDFRAME SM_CYDLGFRAME
989 #define SM_CXSIZEFRAME SM_CXFRAME
990 #define SM_CYSIZEFRAME SM_CYFRAME
991 #define SM_SECURE 44
992 #define SM_CXEDGE 45
993 #define SM_CYEDGE 46
994 #define SM_CXMINSPACING 47
995 #define SM_CYMINSPACING 48
996 #define SM_CXSMICON 49
997 #define SM_CYSMICON 50
998 #define SM_CYSMCAPTION 51
999 #define SM_CXSMSIZE 52
1000 #define SM_CYSMSIZE 53
1001 #define SM_CXMENUSIZE 54
1002 #define SM_CYMENUSIZE 55
1003 #define SM_ARRANGE 56
1004 #define SM_CXMINIMIZED 57
1005 #define SM_CYMINIMIZED 58
1006 #define SM_CXMAXTRACK 59
1007 #define SM_CYMAXTRACK 60
1008 #define SM_CXMAXIMIZED 61
1009 #define SM_CYMAXIMIZED 62
1010 #define SM_NETWORK 63
1011 #define SM_CLEANBOOT 67
1012 #define SM_CXDRAG 68
1013 #define SM_CYDRAG 69
1014 #define SM_SHOWSOUNDS 70
1015 #define SM_CXMENUCHECK 71
1016 #define SM_CYMENUCHECK 72
1017 #define SM_SLOWMACHINE 73
1018 #define SM_MIDEASTENABLED 74
1019 #define SM_MOUSEWHEELPRESENT 75
1020 #define SM_XVIRTUALSCREEN 76
1021 #define SM_YVIRTUALSCREEN 77
1022 #define SM_CXVIRTUALSCREEN 78
1023 #define SM_CYVIRTUALSCREEN 79
1024 #define SM_CMONITORS 80
1025 #define SM_SAMEDISPLAYFORMAT 81
1026 #define SM_IMMENABLED 82
1027 #define SM_CXFOCUSBORDER 83
1028 #define SM_CYFOCUSBORDER 84
1029 #define SM_TABLETPC 86
1030 #define SM_MEDIACENTER 87
1031 #define SM_STARTER 88
1032 #define SM_SERVERR2 89
1033 #define SM_CMETRICS 90
1034 #define SM_MOUSEHORIZONTALWHEELPRESENT 91
1035 #define SM_CXPADDEDBORDER 92
1037 #define SM_REMOTESESSION 0x1000
1038 #define SM_SHUTTINGDOWN 0x2000
1039 #define SM_REMOTECONTROL 0x2001
1040 #define SM_CARETBLINKINGENABLED 0x2002
1042 #define PMB_ACTIVE 0x00000001
1045 /* wParam for WM_POWERBROADCAST */
1046 #define PBT_APMQUERYSUSPEND 0x0000
1047 #define PBT_APMQUERYSTANDBY 0x0001
1048 #define PBT_APMQUERYSUSPENDFAILED 0x0002
1049 #define PBT_APMQUERYSTANDBYFAILED 0x0003
1050 #define PBT_APMSUSPEND 0x0004
1051 #define PBT_APMSTANDBY 0x0005
1052 #define PBT_APMRESUMECRITICAL 0x0006
1053 #define PBT_APMRESUMESUSPEND 0x0007
1054 #define PBT_APMRESUMESTANDBY 0x0008
1055 #define PBT_APMBATTERYLOW 0x0009
1056 #define PBT_APMPOWERSTATUSCHANGE 0x000A
1057 #define PBT_APMOEMEVENT 0x000B
1058 #define PBT_APMRESUMEAUTOMATIC 0x0012
1060 #define PBTF_APMRESUMEFROMFAILURE 0x00000001
1063 /* MsgWaitForMultipleObjectsEx flags */
1064 #define MWMO_WAITALL 0x0001
1065 #define MWMO_ALERTABLE 0x0002
1066 #define MWMO_INPUTAVAILABLE 0x0004
1068 /* WM_GETDLGCODE values */
1069 #define DLGC_WANTARROWS 0x0001
1070 #define DLGC_WANTTAB 0x0002
1071 #define DLGC_WANTALLKEYS 0x0004
1072 #define DLGC_WANTMESSAGE 0x0004
1073 #define DLGC_HASSETSEL 0x0008
1074 #define DLGC_DEFPUSHBUTTON 0x0010
1075 #define DLGC_UNDEFPUSHBUTTON 0x0020
1076 #define DLGC_RADIOBUTTON 0x0040
1077 #define DLGC_WANTCHARS 0x0080
1078 #define DLGC_STATIC 0x0100
1079 #define DLGC_BUTTON 0x2000
1081 /* Used for EnumDisplaySettingsEx */
1082 #define ENUM_CURRENT_SETTINGS ((DWORD) -1)
1083 #define ENUM_REGISTRY_SETTINGS ((DWORD) -2)
1085 /* Used by EnumDisplayDevices */
1086 #define EDD_GET_DEVICE_INTERFACE_NAME 0x00000001
1088 #define EDS_RAWMODE 0x00000002
1089 #define EDS_ROTATEDMODE 0x00000004
1091 /* Used for PrintWindow */
1092 #define PW_CLIENTONLY 0x00000001
1094 /****** Window classes ******/
1096 typedef struct tagCREATESTRUCTA
1098 LPVOID lpCreateParams;
1099 HINSTANCE hInstance;
1100 HMENU hMenu;
1101 HWND hwndParent;
1102 INT cy;
1103 INT cx;
1104 INT y;
1105 INT x;
1106 LONG style;
1107 LPCSTR lpszName;
1108 LPCSTR lpszClass;
1109 DWORD dwExStyle;
1110 } CREATESTRUCTA, *LPCREATESTRUCTA;
1112 typedef struct tagCREATESTRUCTW
1114 LPVOID lpCreateParams;
1115 HINSTANCE hInstance;
1116 HMENU hMenu;
1117 HWND hwndParent;
1118 INT cy;
1119 INT cx;
1120 INT y;
1121 INT x;
1122 LONG style;
1123 LPCWSTR lpszName;
1124 LPCWSTR lpszClass;
1125 DWORD dwExStyle;
1126 } CREATESTRUCTW, *LPCREATESTRUCTW;
1128 DECL_WINELIB_TYPE_AW(CREATESTRUCT)
1129 DECL_WINELIB_TYPE_AW(LPCREATESTRUCT)
1131 typedef struct tagPAINTSTRUCT
1133 HDC hdc;
1134 BOOL fErase;
1135 RECT rcPaint;
1136 BOOL fRestore;
1137 BOOL fIncUpdate;
1138 BYTE rgbReserved[32];
1139 } PAINTSTRUCT, *PPAINTSTRUCT, *LPPAINTSTRUCT;
1141 typedef struct tagCLIENTCREATESTRUCT
1143 HMENU hWindowMenu;
1144 UINT idFirstChild;
1145 } CLIENTCREATESTRUCT, *LPCLIENTCREATESTRUCT;
1148 typedef struct tagMDICREATESTRUCTA
1150 LPCSTR szClass;
1151 LPCSTR szTitle;
1152 HINSTANCE hOwner;
1153 INT x;
1154 INT y;
1155 INT cx;
1156 INT cy;
1157 DWORD style;
1158 LPARAM lParam;
1159 } MDICREATESTRUCTA, *LPMDICREATESTRUCTA;
1161 typedef struct tagMDICREATESTRUCTW
1163 LPCWSTR szClass;
1164 LPCWSTR szTitle;
1165 HINSTANCE hOwner;
1166 INT x;
1167 INT y;
1168 INT cx;
1169 INT cy;
1170 DWORD style;
1171 LPARAM lParam;
1172 } MDICREATESTRUCTW, *LPMDICREATESTRUCTW;
1174 DECL_WINELIB_TYPE_AW(MDICREATESTRUCT)
1175 DECL_WINELIB_TYPE_AW(LPMDICREATESTRUCT)
1177 #define MDITILE_VERTICAL 0x0000
1178 #define MDITILE_HORIZONTAL 0x0001
1179 #define MDITILE_SKIPDISABLED 0x0002
1180 #define MDITILE_ZORDER 0x0004
1182 #define MDIS_ALLCHILDSTYLES 0x0001
1184 typedef struct tagSTYLESTRUCT {
1185 DWORD styleOld;
1186 DWORD styleNew;
1187 } STYLESTRUCT, *LPSTYLESTRUCT;
1189 #define WC_DIALOG MAKEINTATOM(0x8002)
1191 /* Offsets for GetWindowLong() and GetWindowWord() */
1192 #define GWL_EXSTYLE (-20)
1193 #define GWL_STYLE (-16)
1194 #if !defined _WIN64 && !defined __WINESRC__
1195 # define GWL_USERDATA (-21)
1196 # define GWL_ID (-12)
1197 # define GWL_HWNDPARENT (-8)
1198 # define GWL_HINSTANCE (-6)
1199 # define GWL_WNDPROC (-4)
1200 # define DWL_MSGRESULT 0
1201 # define DWL_DLGPROC 4
1202 # define DWL_USER 8
1203 #endif /* _WIN64 && __WINESRC__ */
1205 /* Offsets for GetWindowLongPtr() and SetWindowLongPtr() */
1206 #define GWLP_USERDATA (-21)
1207 #define GWLP_ID (-12)
1208 #define GWLP_HWNDPARENT (-8)
1209 #define GWLP_HINSTANCE (-6)
1210 #define GWLP_WNDPROC (-4)
1211 #define DWLP_MSGRESULT 0
1212 #define DWLP_DLGPROC DWLP_MSGRESULT + sizeof(LRESULT)
1213 #define DWLP_USER DWLP_DLGPROC + sizeof(DLGPROC)
1215 /* GetWindow() constants */
1216 #define GW_HWNDFIRST 0
1217 #define GW_HWNDLAST 1
1218 #define GW_HWNDNEXT 2
1219 #define GW_HWNDPREV 3
1220 #define GW_OWNER 4
1221 #define GW_CHILD 5
1223 /* GetAncestor() constants */
1224 #define GA_PARENT 1
1225 #define GA_ROOT 2
1226 #define GA_ROOTOWNER 3
1228 /* WM_GETMINMAXINFO struct */
1229 typedef struct tagMINMAXINFO
1231 POINT ptReserved;
1232 POINT ptMaxSize;
1233 POINT ptMaxPosition;
1234 POINT ptMinTrackSize;
1235 POINT ptMaxTrackSize;
1236 } MINMAXINFO, *PMINMAXINFO, *LPMINMAXINFO;
1239 /* RedrawWindow() flags */
1240 #define RDW_INVALIDATE 0x0001
1241 #define RDW_INTERNALPAINT 0x0002
1242 #define RDW_ERASE 0x0004
1243 #define RDW_VALIDATE 0x0008
1244 #define RDW_NOINTERNALPAINT 0x0010
1245 #define RDW_NOERASE 0x0020
1246 #define RDW_NOCHILDREN 0x0040
1247 #define RDW_ALLCHILDREN 0x0080
1248 #define RDW_UPDATENOW 0x0100
1249 #define RDW_ERASENOW 0x0200
1250 #define RDW_FRAME 0x0400
1251 #define RDW_NOFRAME 0x0800
1253 /* debug flags */
1254 #define DBGFILL_ALLOC 0xfd
1255 #define DBGFILL_FREE 0xfb
1256 #define DBGFILL_BUFFER 0xf9
1257 #define DBGFILL_STACK 0xf7
1259 /* WM_WINDOWPOSCHANGING/CHANGED struct */
1260 typedef struct tagWINDOWPOS
1262 HWND hwnd;
1263 HWND hwndInsertAfter;
1264 INT x;
1265 INT y;
1266 INT cx;
1267 INT cy;
1268 UINT flags;
1269 } WINDOWPOS, *PWINDOWPOS, *LPWINDOWPOS;
1272 /* WM_NCCALCSIZE parameter structure */
1273 typedef struct
1275 RECT rgrc[3];
1276 WINDOWPOS *lppos;
1277 } NCCALCSIZE_PARAMS, *LPNCCALCSIZE_PARAMS;
1280 #define PRF_CHECKVISIBLE __MSABI_LONG(0x00000001)
1281 #define PRF_NONCLIENT __MSABI_LONG(0x00000002)
1282 #define PRF_CLIENT __MSABI_LONG(0x00000004)
1283 #define PRF_ERASEBKGND __MSABI_LONG(0x00000008)
1284 #define PRF_CHILDREN __MSABI_LONG(0x00000010)
1285 #define PRF_OWNED __MSABI_LONG(0x00000020)
1287 /* Offsets for GetClassLong() and GetClassWord() */
1288 #if !defined _WIN64 && !defined __WINESRC__
1289 # define GCL_MENUNAME (-8)
1290 # define GCL_HBRBACKGROUND (-10)
1291 # define GCL_HCURSOR (-12)
1292 # define GCL_HICON (-14)
1293 # define GCL_HMODULE (-16)
1294 # define GCL_WNDPROC (-24)
1295 # define GCL_HICONSM (-34)
1296 #endif /* _WIN64 && __WINESRC__ */
1298 #define GCL_CBWNDEXTRA (-18)
1299 #define GCL_CBCLSEXTRA (-20)
1300 #define GCL_STYLE (-26)
1301 #define GCW_ATOM (-32)
1303 #define GCLP_MENUNAME (-8)
1304 #define GCLP_HBRBACKGROUND (-10)
1305 #define GCLP_HCURSOR (-12)
1306 #define GCLP_HICON (-14)
1307 #define GCLP_HMODULE (-16)
1308 #define GCLP_WNDPROC (-24)
1309 #define GCLP_HICONSM (-34)
1311 /* BroadcastSystemMessage flags */
1312 #define BSM_ALLCOMPONENTS 0x00000000
1313 #define BSM_VXDS 0x00000001
1314 #define BSM_NETDRIVER 0x00000002
1315 #define BSM_INSTALLABLEDRIVERS 0x00000004
1316 #define BSM_APPLICATIONS 0x00000008
1317 #define BSM_ALLDESKTOPS 0x00000010
1319 #define BSF_QUERY 0x00000001
1320 #define BSF_IGNORECURRENTTASK 0x00000002
1321 #define BSF_FLUSHDISK 0x00000004
1322 #define BSF_NOHANG 0x00000008
1323 #define BSF_POSTMESSAGE 0x00000010
1324 #define BSF_FORCEIFHUNG 0x00000020
1325 #define BSF_NOTIMEOUTIFNOTHUNG 0x00000040
1326 #define BSF_ALLOWSFW 0x00000080
1327 #define BSF_SENDNOTIFYMESSAGE 0x00000100
1328 #define BSF_RETURNHDESK 0x00000200
1329 #define BSF_LUID 0x00000400
1331 #define BROADCAST_QUERY_DENY 0x424D5144
1333 /***** Window hooks *****/
1335 /* Hook values */
1336 #define WH_MIN (-1)
1337 #define WH_MSGFILTER (-1)
1338 #define WH_JOURNALRECORD 0
1339 #define WH_JOURNALPLAYBACK 1
1340 #define WH_KEYBOARD 2
1341 #define WH_GETMESSAGE 3
1342 #define WH_CALLWNDPROC 4
1343 #define WH_CBT 5
1344 #define WH_SYSMSGFILTER 6
1345 #define WH_MOUSE 7
1346 #define WH_HARDWARE 8
1347 #define WH_DEBUG 9
1348 #define WH_SHELL 10
1349 #define WH_FOREGROUNDIDLE 11
1350 #define WH_CALLWNDPROCRET 12
1351 #define WH_KEYBOARD_LL 13
1352 #define WH_MOUSE_LL 14
1353 #define WH_MAX 14
1355 #define WH_MINHOOK WH_MIN
1356 #define WH_MAXHOOK WH_MAX
1358 /* Hook action codes */
1359 #define HC_ACTION 0
1360 #define HC_GETNEXT 1
1361 #define HC_SKIP 2
1362 #define HC_NOREMOVE 3
1363 #define HC_NOREM HC_NOREMOVE
1364 #define HC_SYSMODALON 4
1365 #define HC_SYSMODALOFF 5
1367 /* CallMsgFilter() values */
1368 #define MSGF_DIALOGBOX 0
1369 #define MSGF_MESSAGEBOX 1
1370 #define MSGF_MENU 2
1371 #define MSGF_MOVE 3
1372 #define MSGF_SIZE 4
1373 #define MSGF_SCROLLBAR 5
1374 #define MSGF_NEXTWINDOW 6
1375 #define MSGF_MAX 8
1376 #define MSGF_USER 0x1000
1377 #define MSGF_DDEMGR 0x8001
1379 typedef struct tagWNDCLASSA
1381 UINT style;
1382 WNDPROC lpfnWndProc;
1383 INT cbClsExtra;
1384 INT cbWndExtra;
1385 HINSTANCE hInstance;
1386 HICON hIcon;
1387 HCURSOR hCursor;
1388 HBRUSH hbrBackground;
1389 LPCSTR lpszMenuName;
1390 LPCSTR lpszClassName;
1391 } WNDCLASSA, *PWNDCLASSA, *LPWNDCLASSA;
1393 typedef struct tagWNDCLASSW
1395 UINT style;
1396 WNDPROC lpfnWndProc;
1397 INT cbClsExtra;
1398 INT cbWndExtra;
1399 HINSTANCE hInstance;
1400 HICON hIcon;
1401 HCURSOR hCursor;
1402 HBRUSH hbrBackground;
1403 LPCWSTR lpszMenuName;
1404 LPCWSTR lpszClassName;
1405 } WNDCLASSW, *PWNDCLASSW, *LPWNDCLASSW;
1407 DECL_WINELIB_TYPE_AW(WNDCLASS)
1408 DECL_WINELIB_TYPE_AW(PWNDCLASS)
1409 DECL_WINELIB_TYPE_AW(LPWNDCLASS)
1411 typedef struct tagCOPYDATASTRUCT {
1412 ULONG_PTR dwData;
1413 DWORD cbData;
1414 PVOID lpData;
1415 } COPYDATASTRUCT, *PCOPYDATASTRUCT;
1417 typedef struct tagMDINEXTMENU {
1418 HMENU hmenuIn;
1419 HMENU hmenuNext;
1420 HWND hwndNext;
1421 } MDINEXTMENU, *PMDINEXTMENU, *LPMDINEXTMENU;
1423 typedef struct tagMULTIKEYHELPA
1425 DWORD mkSize;
1426 CHAR mkKeylist;
1427 CHAR szKeyphrase[1];
1428 } MULTIKEYHELPA, *PMULTIKEYHELPA, *LPMULTIKEYHELPA;
1430 typedef struct tagMULTIKEYHELPW
1432 DWORD mkSize;
1433 WCHAR mkKeylist;
1434 WCHAR szKeyphrase[1];
1435 } MULTIKEYHELPW, *PMULTIKEYHELPW, *LPMULTIKEYHELPW;
1437 DECL_WINELIB_TYPE_AW(MULTIKEYHELP)
1438 DECL_WINELIB_TYPE_AW(PMULTIKEYHELP)
1439 DECL_WINELIB_TYPE_AW(LPMULTIKEYHELP)
1441 typedef struct tagHELPWININFOA {
1442 int wStructSize;
1443 int x;
1444 int y;
1445 int dx;
1446 int dy;
1447 int wMax;
1448 CHAR rgchMember[2];
1449 } HELPWININFOA, *PHELPWININFOA, *LPHELPWININFOA;
1451 typedef struct tagHELPWININFOW {
1452 int wStructSize;
1453 int x;
1454 int y;
1455 int dx;
1456 int dy;
1457 int wMax;
1458 WCHAR rgchMember[2];
1459 } HELPWININFOW, *PHELPWININFOW, *LPHELPWININFOW;
1461 DECL_WINELIB_TYPE_AW(HELPWININFO)
1462 DECL_WINELIB_TYPE_AW(PHELPWININFO)
1463 DECL_WINELIB_TYPE_AW(LPHELPWININFO)
1466 /* ChangeDisplaySettings return codes */
1468 #define DISP_CHANGE_SUCCESSFUL 0
1469 #define DISP_CHANGE_RESTART 1
1470 #define DISP_CHANGE_FAILED (-1)
1471 #define DISP_CHANGE_BADMODE (-2)
1472 #define DISP_CHANGE_NOTUPDATED (-3)
1473 #define DISP_CHANGE_BADFLAGS (-4)
1474 #define DISP_CHANGE_BADPARAM (-5)
1475 #define DISP_CHANGE_BADDUALVIEW (-6)
1477 /* ChangeDisplaySettings.dwFlags */
1478 #define CDS_UPDATEREGISTRY 0x00000001
1479 #define CDS_TEST 0x00000002
1480 #define CDS_FULLSCREEN 0x00000004
1481 #define CDS_GLOBAL 0x00000008
1482 #define CDS_SET_PRIMARY 0x00000010
1483 #define CDS_VIDEOPARAMETERS 0x00000020
1484 #define CDS_NORESET 0x10000000
1485 #define CDS_SETRECT 0x20000000
1486 #define CDS_RESET 0x40000000
1488 typedef struct tagWNDCLASSEXA
1490 UINT cbSize;
1491 UINT style;
1492 WNDPROC lpfnWndProc;
1493 INT cbClsExtra;
1494 INT cbWndExtra;
1495 HINSTANCE hInstance;
1496 HICON hIcon;
1497 HCURSOR hCursor;
1498 HBRUSH hbrBackground;
1499 LPCSTR lpszMenuName;
1500 LPCSTR lpszClassName;
1501 HICON hIconSm;
1502 } WNDCLASSEXA, *PWNDCLASSEXA, *LPWNDCLASSEXA;
1504 typedef struct tagWNDCLASSEXW
1506 UINT cbSize;
1507 UINT style;
1508 WNDPROC lpfnWndProc;
1509 INT cbClsExtra;
1510 INT cbWndExtra;
1511 HINSTANCE hInstance;
1512 HICON hIcon;
1513 HCURSOR hCursor;
1514 HBRUSH hbrBackground;
1515 LPCWSTR lpszMenuName;
1516 LPCWSTR lpszClassName;
1517 HICON hIconSm;
1518 } WNDCLASSEXW, *PWNDCLASSEXW, *LPWNDCLASSEXW;
1520 DECL_WINELIB_TYPE_AW(WNDCLASSEX)
1521 DECL_WINELIB_TYPE_AW(PWNDCLASSEX)
1522 DECL_WINELIB_TYPE_AW(LPWNDCLASSEX)
1524 typedef struct tagMSG
1526 HWND hwnd;
1527 UINT message;
1528 WPARAM wParam;
1529 LPARAM lParam;
1530 DWORD time;
1531 POINT pt;
1532 } MSG, *PMSG, *LPMSG;
1534 #define POINTSTOPOINT(pt, pts) { (pt).x = (pts).x; (pt).y = (pts).y; }
1535 #define POINTTOPOINTS(pt) (MAKELONG((short)((pt).x), (short)((pt).y)))
1537 #define MAKELPARAM(low,high) ((LPARAM)(DWORD)MAKELONG(low,high))
1538 #define MAKEWPARAM(low,high) ((WPARAM)(DWORD)MAKELONG(low,high))
1539 #define MAKELRESULT(low,high) ((LRESULT)(DWORD)MAKELONG(low,high))
1541 /* Cursors / Icons */
1543 typedef struct _ICONINFO {
1544 BOOL fIcon;
1545 DWORD xHotspot;
1546 DWORD yHotspot;
1547 HBITMAP hbmMask;
1548 HBITMAP hbmColor;
1549 } ICONINFO, *PICONINFO;
1551 typedef struct _ICONINFOEXA
1553 DWORD cbSize;
1554 BOOL fIcon;
1555 DWORD xHotspot;
1556 DWORD yHotspot;
1557 HBITMAP hbmMask;
1558 HBITMAP hbmColor;
1559 WORD wResID;
1560 CHAR szModName[MAX_PATH];
1561 CHAR szResName[MAX_PATH];
1562 } ICONINFOEXA, *PICONINFOEXA;
1564 typedef struct _ICONINFOEXW
1566 DWORD cbSize;
1567 BOOL fIcon;
1568 DWORD xHotspot;
1569 DWORD yHotspot;
1570 HBITMAP hbmMask;
1571 HBITMAP hbmColor;
1572 WORD wResID;
1573 WCHAR szModName[MAX_PATH];
1574 WCHAR szResName[MAX_PATH];
1575 } ICONINFOEXW, *PICONINFOEXW;
1577 DECL_WINELIB_TYPE_AW(ICONINFOEX)
1578 DECL_WINELIB_TYPE_AW(PICONINFOEX)
1580 typedef struct tagCURSORINFO
1582 DWORD cbSize;
1583 DWORD flags;
1584 HCURSOR hCursor;
1585 POINT ptScreenPos;
1586 } CURSORINFO, *PCURSORINFO, *LPCURSORINFO;
1588 #define CURSOR_SHOWING 0x00000001
1589 #define CURSOR_SUPPRESSED 0x00000002
1591 /* this is the 6 byte accel struct used in Win32 when presented to the user */
1592 typedef struct tagACCEL
1594 #ifdef WORDS_BIGENDIAN
1595 WORD fVirt;
1596 WORD key;
1597 DWORD cmd;
1598 #else
1599 BYTE fVirt;
1600 WORD key;
1601 WORD cmd;
1602 #endif
1603 } ACCEL, *LPACCEL;
1606 /* Flags for TrackPopupMenu */
1607 #define TPM_LEFTBUTTON 0x0000
1608 #define TPM_RECURSE 0x0001
1609 #define TPM_RIGHTBUTTON 0x0002
1610 #define TPM_LEFTALIGN 0x0000
1611 #define TPM_CENTERALIGN 0x0004
1612 #define TPM_RIGHTALIGN 0x0008
1613 #define TPM_TOPALIGN 0x0000
1614 #define TPM_VCENTERALIGN 0x0010
1615 #define TPM_BOTTOMALIGN 0x0020
1616 #define TPM_HORIZONTAL 0x0000
1617 #define TPM_VERTICAL 0x0040
1618 #define TPM_NONOTIFY 0x0080
1619 #define TPM_RETURNCMD 0x0100
1620 #define TPM_HORPOSANIMATION 0x0400
1621 #define TPM_HORNEGANIMATION 0x0800
1622 #define TPM_VERPOSANIMATION 0x1000
1623 #define TPM_VERNEGANIMATION 0x2000
1624 #define TPM_NOANIMATION 0x4000
1625 #define TPM_LAYOUTRTL 0x8000
1627 typedef struct tagTPMPARAMS
1629 UINT cbSize;
1630 RECT rcExclude;
1631 } TPMPARAMS, *LPTPMPARAMS;
1635 * Combobox information
1637 typedef struct tagCOMBOBOXINFO
1639 DWORD cbSize;
1640 RECT rcItem;
1641 RECT rcButton;
1642 DWORD stateButton;
1643 HWND hwndCombo;
1644 HWND hwndItem;
1645 HWND hwndList;
1646 } COMBOBOXINFO, *PCOMBOBOXINFO, *LPCOMBOBOXINFO;
1648 typedef struct tagMENUITEMINFOA {
1649 UINT cbSize;
1650 UINT fMask;
1651 UINT fType;
1652 UINT fState;
1653 UINT wID;
1654 HMENU hSubMenu;
1655 HBITMAP hbmpChecked;
1656 HBITMAP hbmpUnchecked;
1657 ULONG_PTR dwItemData;
1658 LPSTR dwTypeData;
1659 UINT cch;
1660 HBITMAP hbmpItem;
1661 } MENUITEMINFOA, *LPMENUITEMINFOA;
1663 typedef struct tagMENUITEMINFOW {
1664 UINT cbSize;
1665 UINT fMask;
1666 UINT fType;
1667 UINT fState;
1668 UINT wID;
1669 HMENU hSubMenu;
1670 HBITMAP hbmpChecked;
1671 HBITMAP hbmpUnchecked;
1672 ULONG_PTR dwItemData;
1673 LPWSTR dwTypeData;
1674 UINT cch;
1675 HBITMAP hbmpItem;
1676 } MENUITEMINFOW, *LPMENUITEMINFOW;
1678 DECL_WINELIB_TYPE_AW(MENUITEMINFO)
1679 DECL_WINELIB_TYPE_AW(LPMENUITEMINFO)
1680 typedef const MENUITEMINFOA *LPCMENUITEMINFOA;
1681 typedef const MENUITEMINFOW *LPCMENUITEMINFOW;
1682 DECL_WINELIB_TYPE_AW(LPCMENUITEMINFO)
1684 typedef struct tagMENUBARINFO {
1685 DWORD cbSize;
1686 RECT rcBar;
1687 HMENU hMenu;
1688 HWND hwndMenu;
1689 BOOL fBarFocused:1;
1690 BOOL fFocused:1;
1691 } MENUBARINFO, *PMENUBARINFO, *LPMENUBARINFO;
1693 typedef struct tagMENUINFO {
1694 DWORD cbSize;
1695 DWORD fMask;
1696 DWORD dwStyle;
1697 UINT cyMax;
1698 HBRUSH hbrBack;
1699 DWORD dwContextHelpID;
1700 ULONG_PTR dwMenuData;
1701 } MENUINFO, *LPMENUINFO;
1703 typedef const MENUINFO *LPCMENUINFO;
1705 #define MIM_MAXHEIGHT 0x00000001
1706 #define MIM_BACKGROUND 0x00000002
1707 #define MIM_HELPID 0x00000004
1708 #define MIM_MENUDATA 0x00000008
1709 #define MIM_STYLE 0x00000010
1710 #define MIM_APPLYTOSUBMENUS 0x80000000
1712 #define MNS_NOCHECK 0x80000000
1713 #define MNS_MODELESS 0x40000000
1714 #define MNS_DRAGDROP 0x20000000
1715 #define MNS_AUTODISMISS 0x10000000
1716 #define MNS_NOTIFYBYPOS 0x08000000
1717 #define MNS_CHECKORBMP 0x04000000
1719 typedef struct {
1720 WORD versionNumber;
1721 WORD offset;
1722 } MENUITEMTEMPLATEHEADER, *PMENUITEMTEMPLATEHEADER;
1725 typedef struct {
1726 WORD mtOption;
1727 WORD mtID;
1728 WCHAR mtString[1];
1729 } MENUITEMTEMPLATE, *PMENUITEMTEMPLATE;
1732 typedef VOID MENUTEMPLATE;
1733 typedef PVOID *LPMENUTEMPLATE;
1735 /* Field specifiers for MENUITEMINFO[AW] type. */
1736 #define MIIM_STATE 0x00000001
1737 #define MIIM_ID 0x00000002
1738 #define MIIM_SUBMENU 0x00000004
1739 #define MIIM_CHECKMARKS 0x00000008
1740 #define MIIM_TYPE 0x00000010
1741 #define MIIM_DATA 0x00000020
1742 #define MIIM_STRING 0x00000040
1743 #define MIIM_BITMAP 0x00000080
1744 #define MIIM_FTYPE 0x00000100
1746 #define HBMMENU_CALLBACK ((HBITMAP) -1)
1747 #define HBMMENU_SYSTEM ((HBITMAP) 1)
1748 #define HBMMENU_MBAR_RESTORE ((HBITMAP) 2)
1749 #define HBMMENU_MBAR_MINIMIZE ((HBITMAP) 3)
1750 #define HBMMENU_MBAR_CLOSE ((HBITMAP) 5)
1751 #define HBMMENU_MBAR_CLOSE_D ((HBITMAP) 6)
1752 #define HBMMENU_MBAR_MINIMIZE_D ((HBITMAP) 7)
1753 #define HBMMENU_POPUP_CLOSE ((HBITMAP) 8)
1754 #define HBMMENU_POPUP_RESTORE ((HBITMAP) 9)
1755 #define HBMMENU_POPUP_MAXIMIZE ((HBITMAP) 10)
1756 #define HBMMENU_POPUP_MINIMIZE ((HBITMAP) 11)
1758 /* WM_H/VSCROLL commands */
1759 #define SB_LINEUP 0
1760 #define SB_LINELEFT 0
1761 #define SB_LINEDOWN 1
1762 #define SB_LINERIGHT 1
1763 #define SB_PAGEUP 2
1764 #define SB_PAGELEFT 2
1765 #define SB_PAGEDOWN 3
1766 #define SB_PAGERIGHT 3
1767 #define SB_THUMBPOSITION 4
1768 #define SB_THUMBTRACK 5
1769 #define SB_TOP 6
1770 #define SB_LEFT 6
1771 #define SB_BOTTOM 7
1772 #define SB_RIGHT 7
1773 #define SB_ENDSCROLL 8
1775 /* Scroll bar selection constants */
1776 #define SB_HORZ 0
1777 #define SB_VERT 1
1778 #define SB_CTL 2
1779 #define SB_BOTH 3
1781 /* EnableScrollBar() flags */
1782 #define ESB_ENABLE_BOTH 0x0000
1783 #define ESB_DISABLE_BOTH 0x0003
1785 #define ESB_DISABLE_LEFT 0x0001
1786 #define ESB_DISABLE_RIGHT 0x0002
1788 #define ESB_DISABLE_UP 0x0001
1789 #define ESB_DISABLE_DOWN 0x0002
1791 #define ESB_DISABLE_LTUP ESB_DISABLE_LEFT
1792 #define ESB_DISABLE_RTDN ESB_DISABLE_RIGHT
1794 /* Static Control Messages */
1795 #define STM_SETICON 0x0170
1796 #define STM_GETICON 0x0171
1797 #define STM_SETIMAGE 0x0172
1798 #define STM_GETIMAGE 0x0173
1799 #define STM_MSGMAX 0x0174
1801 #define STN_CLICKED 0
1802 #define STN_DBLCLK 1
1803 #define STN_ENABLE 2
1804 #define STN_DISABLE 3
1806 /* Scrollbar messages */
1807 #define SBM_SETPOS 0x00e0
1808 #define SBM_GETPOS 0x00e1
1809 #define SBM_SETRANGE 0x00e2
1810 #define SBM_GETRANGE 0x00e3
1811 #define SBM_ENABLE_ARROWS 0x00e4
1812 #define SBM_SETRANGEREDRAW 0x00e6
1813 #define SBM_SETSCROLLINFO 0x00e9
1814 #define SBM_GETSCROLLINFO 0x00ea
1815 #define SBM_GETSCROLLBARINFO 0x00eb
1817 /* Scrollbar info */
1818 typedef struct tagSCROLLINFO
1820 UINT cbSize;
1821 UINT fMask;
1822 INT nMin;
1823 INT nMax;
1824 UINT nPage;
1825 INT nPos;
1826 INT nTrackPos;
1827 } SCROLLINFO, *LPSCROLLINFO;
1829 typedef const SCROLLINFO *LPCSCROLLINFO;
1831 #define CCHILDREN_SCROLLBAR 5
1833 typedef struct tagSCROLLBARINFO
1835 DWORD cbSize; /* Size of SCROLLBARINFO struct */
1836 RECT rcScrollBar; /* Coordinates of the scroll bar */
1837 INT dxyLineButton; /* Height or width */
1838 INT xyThumbTop; /* Position of the top or the left */
1839 INT xyThumbBottom; /* Position of the bottom or the right */
1840 INT reserved;
1841 DWORD rgstate[CCHILDREN_SCROLLBAR+1];
1842 } SCROLLBARINFO, *PSCROLLBARINFO, *LPSCROLLBARINFO;
1844 /* GetScrollInfo() flags */
1845 #define SIF_RANGE 0x0001
1846 #define SIF_PAGE 0x0002
1847 #define SIF_POS 0x0004
1848 #define SIF_DISABLENOSCROLL 0x0008
1849 #define SIF_TRACKPOS 0x0010
1850 #define SIF_ALL (SIF_RANGE | SIF_PAGE | SIF_POS | SIF_TRACKPOS)
1852 /* Listbox messages */
1853 #define LB_ADDSTRING 0x0180
1854 #define LB_INSERTSTRING 0x0181
1855 #define LB_DELETESTRING 0x0182
1856 #define LB_SELITEMRANGEEX 0x0183
1857 #define LB_RESETCONTENT 0x0184
1858 #define LB_SETSEL 0x0185
1859 #define LB_SETCURSEL 0x0186
1860 #define LB_GETSEL 0x0187
1861 #define LB_GETCURSEL 0x0188
1862 #define LB_GETTEXT 0x0189
1863 #define LB_GETTEXTLEN 0x018a
1864 #define LB_GETCOUNT 0x018b
1865 #define LB_SELECTSTRING 0x018c
1866 #define LB_DIR 0x018d
1867 #define LB_GETTOPINDEX 0x018e
1868 #define LB_FINDSTRING 0x018f
1869 #define LB_GETSELCOUNT 0x0190
1870 #define LB_GETSELITEMS 0x0191
1871 #define LB_SETTABSTOPS 0x0192
1872 #define LB_GETHORIZONTALEXTENT 0x0193
1873 #define LB_SETHORIZONTALEXTENT 0x0194
1874 #define LB_SETCOLUMNWIDTH 0x0195
1875 #define LB_ADDFILE 0x0196
1876 #define LB_SETTOPINDEX 0x0197
1877 #define LB_GETITEMRECT 0x0198
1878 #define LB_GETITEMDATA 0x0199
1879 #define LB_SETITEMDATA 0x019a
1880 #define LB_SELITEMRANGE 0x019b
1881 #define LB_SETANCHORINDEX 0x019c
1882 #define LB_GETANCHORINDEX 0x019d
1883 #define LB_SETCARETINDEX 0x019e
1884 #define LB_GETCARETINDEX 0x019f
1885 #define LB_SETITEMHEIGHT 0x01a0
1886 #define LB_GETITEMHEIGHT 0x01a1
1887 #define LB_FINDSTRINGEXACT 0x01a2
1888 #define LB_CARETON 0x01a3
1889 #define LB_CARETOFF 0x01a4
1890 #define LB_SETLOCALE 0x01a5
1891 #define LB_GETLOCALE 0x01a6
1892 #define LB_SETCOUNT 0x01a7
1893 #define LB_INITSTORAGE 0x01a8
1894 #define LB_ITEMFROMPOINT 0x01a9
1895 #define LB_GETLISTBOXINFO 0x01b2
1896 #define LB_MSGMAX 0x01b3
1898 /* Listbox notification codes */
1899 #define LBN_ERRSPACE (-2)
1900 #define LBN_SELCHANGE 1
1901 #define LBN_DBLCLK 2
1902 #define LBN_SELCANCEL 3
1903 #define LBN_SETFOCUS 4
1904 #define LBN_KILLFOCUS 5
1906 /* Listbox message return values */
1907 #define LB_OKAY 0
1908 #define LB_ERR (-1)
1909 #define LB_ERRSPACE (-2)
1911 #define LB_CTLCODE __MSABI_LONG(0)
1913 /* Combo box messages */
1914 #define CB_GETEDITSEL 0x0140
1915 #define CB_LIMITTEXT 0x0141
1916 #define CB_SETEDITSEL 0x0142
1917 #define CB_ADDSTRING 0x0143
1918 #define CB_DELETESTRING 0x0144
1919 #define CB_DIR 0x0145
1920 #define CB_GETCOUNT 0x0146
1921 #define CB_GETCURSEL 0x0147
1922 #define CB_GETLBTEXT 0x0148
1923 #define CB_GETLBTEXTLEN 0x0149
1924 #define CB_INSERTSTRING 0x014a
1925 #define CB_RESETCONTENT 0x014b
1926 #define CB_FINDSTRING 0x014c
1927 #define CB_SELECTSTRING 0x014d
1928 #define CB_SETCURSEL 0x014e
1929 #define CB_SHOWDROPDOWN 0x014f
1930 #define CB_GETITEMDATA 0x0150
1931 #define CB_SETITEMDATA 0x0151
1932 #define CB_GETDROPPEDCONTROLRECT 0x0152
1933 #define CB_SETITEMHEIGHT 0x0153
1934 #define CB_GETITEMHEIGHT 0x0154
1935 #define CB_SETEXTENDEDUI 0x0155
1936 #define CB_GETEXTENDEDUI 0x0156
1937 #define CB_GETDROPPEDSTATE 0x0157
1938 #define CB_FINDSTRINGEXACT 0x0158
1939 #define CB_SETLOCALE 0x0159
1940 #define CB_GETLOCALE 0x015a
1941 #define CB_GETTOPINDEX 0x015b
1942 #define CB_SETTOPINDEX 0x015c
1943 #define CB_GETHORIZONTALEXTENT 0x015d
1944 #define CB_SETHORIZONTALEXTENT 0x015e
1945 #define CB_GETDROPPEDWIDTH 0x015f
1946 #define CB_SETDROPPEDWIDTH 0x0160
1947 #define CB_INITSTORAGE 0x0161
1948 #define CB_MULTIPLEADDSTRING 0x0163
1949 #define CB_GETCOMBOBOXINFO 0x0164
1950 #define CB_MSGMAX 0x0165
1952 /* Combo box notification codes */
1953 #define CBN_ERRSPACE (-1)
1954 #define CBN_SELCHANGE 1
1955 #define CBN_DBLCLK 2
1956 #define CBN_SETFOCUS 3
1957 #define CBN_KILLFOCUS 4
1958 #define CBN_EDITCHANGE 5
1959 #define CBN_EDITUPDATE 6
1960 #define CBN_DROPDOWN 7
1961 #define CBN_CLOSEUP 8
1962 #define CBN_SELENDOK 9
1963 #define CBN_SELENDCANCEL 10
1965 /* Combo box message return values */
1966 #define CB_OKAY 0
1967 #define CB_ERR (-1)
1968 #define CB_ERRSPACE (-2)
1970 #define MB_OK 0x00000000
1971 #define MB_OKCANCEL 0x00000001
1972 #define MB_ABORTRETRYIGNORE 0x00000002
1973 #define MB_YESNOCANCEL 0x00000003
1974 #define MB_YESNO 0x00000004
1975 #define MB_RETRYCANCEL 0x00000005
1976 #define MB_CANCELTRYCONTINUE 0x00000006
1977 #define MB_TYPEMASK 0x0000000F
1979 #define MB_ICONHAND 0x00000010
1980 #define MB_ICONQUESTION 0x00000020
1981 #define MB_ICONEXCLAMATION 0x00000030
1982 #define MB_ICONASTERISK 0x00000040
1983 #define MB_USERICON 0x00000080
1984 #define MB_ICONMASK 0x000000F0
1986 #define MB_ICONINFORMATION MB_ICONASTERISK
1987 #define MB_ICONSTOP MB_ICONHAND
1988 #define MB_ICONWARNING MB_ICONEXCLAMATION
1989 #define MB_ICONERROR MB_ICONHAND
1991 #define MB_DEFBUTTON1 0x00000000
1992 #define MB_DEFBUTTON2 0x00000100
1993 #define MB_DEFBUTTON3 0x00000200
1994 #define MB_DEFBUTTON4 0x00000300
1995 #define MB_DEFMASK 0x00000F00
1997 #define MB_APPLMODAL 0x00000000
1998 #define MB_SYSTEMMODAL 0x00001000
1999 #define MB_TASKMODAL 0x00002000
2000 #define MB_MODEMASK 0x00003000
2002 #define MB_HELP 0x00004000
2003 #define MB_NOFOCUS 0x00008000
2004 #define MB_MISCMASK 0x0000C000
2006 #define MB_SETFOREGROUND 0x00010000
2007 #define MB_DEFAULT_DESKTOP_ONLY 0x00020000
2008 #define MB_SERVICE_NOTIFICATION 0x00040000
2009 #define MB_TOPMOST 0x00040000
2010 #define MB_RIGHT 0x00080000
2011 #define MB_RTLREADING 0x00100000
2013 #define HELPINFO_WINDOW 0x0001
2014 #define HELPINFO_MENUITEM 0x0002
2016 /* Structure pointed to by lParam of WM_HELP */
2017 typedef struct tagHELPINFO
2019 UINT cbSize; /* Size in bytes of this struct */
2020 INT iContextType; /* Either HELPINFO_WINDOW or HELPINFO_MENUITEM */
2021 INT iCtrlId; /* Control Id or a Menu item Id. */
2022 HANDLE hItemHandle; /* hWnd of control or hMenu. */
2023 DWORD_PTR dwContextId; /* Context Id associated with this item */
2024 POINT MousePos; /* Mouse Position in screen co-ordinates */
2025 } HELPINFO,*LPHELPINFO;
2027 typedef void (CALLBACK *MSGBOXCALLBACK)(LPHELPINFO lpHelpInfo);
2029 typedef struct tagMSGBOXPARAMSA
2031 UINT cbSize;
2032 HWND hwndOwner;
2033 HINSTANCE hInstance;
2034 LPCSTR lpszText;
2035 LPCSTR lpszCaption;
2036 DWORD dwStyle;
2037 LPCSTR lpszIcon;
2038 DWORD_PTR dwContextHelpId;
2039 MSGBOXCALLBACK lpfnMsgBoxCallback;
2040 DWORD dwLanguageId;
2041 } MSGBOXPARAMSA, *PMSGBOXPARAMSA, *LPMSGBOXPARAMSA;
2043 typedef struct tagMSGBOXPARAMSW
2045 UINT cbSize;
2046 HWND hwndOwner;
2047 HINSTANCE hInstance;
2048 LPCWSTR lpszText;
2049 LPCWSTR lpszCaption;
2050 DWORD dwStyle;
2051 LPCWSTR lpszIcon;
2052 DWORD_PTR dwContextHelpId;
2053 MSGBOXCALLBACK lpfnMsgBoxCallback;
2054 DWORD dwLanguageId;
2055 } MSGBOXPARAMSW, *PMSGBOXPARAMSW, *LPMSGBOXPARAMSW;
2057 DECL_WINELIB_TYPE_AW(MSGBOXPARAMS)
2058 DECL_WINELIB_TYPE_AW(PMSGBOXPARAMS)
2059 DECL_WINELIB_TYPE_AW(LPMSGBOXPARAMS)
2061 #define MONITOR_DEFAULTTONULL 0x00000000
2062 #define MONITOR_DEFAULTTOPRIMARY 0x00000001
2063 #define MONITOR_DEFAULTTONEAREST 0x00000002
2065 #define MONITORINFOF_PRIMARY 0x00000001
2067 #ifndef CCHDEVICENAME
2068 #define CCHDEVICENAME 32
2069 #endif
2071 typedef struct tagMONITORINFO
2073 DWORD cbSize;
2074 RECT rcMonitor;
2075 RECT rcWork;
2076 DWORD dwFlags;
2077 } MONITORINFO, *LPMONITORINFO;
2079 typedef struct tagMONITORINFOEXA
2080 { /* the 4 first entries are the same as MONITORINFO */
2081 DWORD cbSize;
2082 RECT rcMonitor;
2083 RECT rcWork;
2084 DWORD dwFlags;
2085 CHAR szDevice[CCHDEVICENAME];
2086 } MONITORINFOEXA, *LPMONITORINFOEXA;
2088 typedef struct tagMONITORINFOEXW
2089 { /* the 4 first entries are the same as MONITORINFO */
2090 DWORD cbSize;
2091 RECT rcMonitor;
2092 RECT rcWork;
2093 DWORD dwFlags;
2094 WCHAR szDevice[CCHDEVICENAME];
2095 } MONITORINFOEXW, *LPMONITORINFOEXW;
2097 DECL_WINELIB_TYPE_AW(MONITORINFOEX)
2098 DECL_WINELIB_TYPE_AW(LPMONITORINFOEX)
2100 typedef BOOL (CALLBACK *MONITORENUMPROC)(HMONITOR,HDC,LPRECT,LPARAM);
2102 #include <pshpack2.h>
2104 typedef struct tagDLGTEMPLATE
2106 DWORD style;
2107 DWORD dwExtendedStyle;
2108 WORD cdit;
2109 short x;
2110 short y;
2111 short cx;
2112 short cy;
2113 } DLGTEMPLATE;
2115 typedef DLGTEMPLATE *LPDLGTEMPLATEA;
2116 typedef DLGTEMPLATE *LPDLGTEMPLATEW;
2117 DECL_WINELIB_TYPE_AW(LPDLGTEMPLATE)
2118 typedef const DLGTEMPLATE *LPCDLGTEMPLATEA;
2119 typedef const DLGTEMPLATE *LPCDLGTEMPLATEW;
2120 DECL_WINELIB_TYPE_AW(LPCDLGTEMPLATE)
2122 typedef struct tagDLGITEMTEMPLATE
2124 DWORD style;
2125 DWORD dwExtendedStyle;
2126 short x;
2127 short y;
2128 short cx;
2129 short cy;
2130 WORD id;
2131 } DLGITEMTEMPLATE;
2133 typedef DLGITEMTEMPLATE *PDLGITEMTEMPLATEA;
2134 typedef DLGITEMTEMPLATE *PDLGITEMTEMPLATEW;
2135 DECL_WINELIB_TYPE_AW(PDLGITEMTEMPLATE)
2136 typedef DLGITEMTEMPLATE *LPDLGITEMTEMPLATEA;
2137 typedef DLGITEMTEMPLATE *LPDLGITEMTEMPLATEW;
2138 DECL_WINELIB_TYPE_AW(LPDLGITEMTEMPLATE)
2140 #include <poppack.h>
2142 /* CBT hook values */
2143 #define HCBT_MOVESIZE 0
2144 #define HCBT_MINMAX 1
2145 #define HCBT_QS 2
2146 #define HCBT_CREATEWND 3
2147 #define HCBT_DESTROYWND 4
2148 #define HCBT_ACTIVATE 5
2149 #define HCBT_CLICKSKIPPED 6
2150 #define HCBT_KEYSKIPPED 7
2151 #define HCBT_SYSCOMMAND 8
2152 #define HCBT_SETFOCUS 9
2154 /* CBT hook structures */
2156 typedef struct tagCBT_CREATEWNDA
2158 CREATESTRUCTA *lpcs;
2159 HWND hwndInsertAfter;
2160 } CBT_CREATEWNDA, *LPCBT_CREATEWNDA;
2162 typedef struct tagCBT_CREATEWNDW
2164 CREATESTRUCTW *lpcs;
2165 HWND hwndInsertAfter;
2166 } CBT_CREATEWNDW, *LPCBT_CREATEWNDW;
2168 DECL_WINELIB_TYPE_AW(CBT_CREATEWND)
2169 DECL_WINELIB_TYPE_AW(LPCBT_CREATEWND)
2171 typedef struct tagCBTACTIVATESTRUCT
2173 BOOL fMouse;
2174 HWND hWndActive;
2175 } CBTACTIVATESTRUCT, *LPCBTACTIVATESTRUCT;
2178 typedef struct tagDROPSTRUCT
2180 HWND hwndSource;
2181 HWND hwndSink;
2182 DWORD wFmt;
2183 ULONG_PTR dwData;
2184 POINT ptDrop;
2185 DWORD dwControlData;
2186 } DROPSTRUCT, *PDROPSTRUCT, *LPDROPSTRUCT;
2188 #define DOF_EXECUTABLE 0x8001
2189 #define DOF_DOCUMENT 0x8002
2190 #define DOF_DIRECTORY 0x8003
2191 #define DOF_MULTIPLE 0x8004
2192 #define DOF_PROGMAN 0x0001
2193 #define DOF_SHELLDATA 0x0002
2195 /* modifiers for RegisterHotKey */
2196 #define MOD_ALT 0x0001
2197 #define MOD_CONTROL 0x0002
2198 #define MOD_SHIFT 0x0004
2199 #define MOD_WIN 0x0008
2201 /* ids for RegisterHotKey */
2202 #define IDHOT_SNAPWINDOW (-1) /* SHIFT-PRINTSCRN */
2203 #define IDHOT_SNAPDESKTOP (-2) /* PRINTSCRN */
2205 /* keybd_event flags */
2206 #define KEYEVENTF_EXTENDEDKEY 0x0001
2207 #define KEYEVENTF_KEYUP 0x0002
2208 #define KEYEVENTF_UNICODE 0x0004
2209 #define KEYEVENTF_SCANCODE 0x0008
2211 /* mouse_event flags */
2212 #define MOUSEEVENTF_MOVE 0x0001
2213 #define MOUSEEVENTF_LEFTDOWN 0x0002
2214 #define MOUSEEVENTF_LEFTUP 0x0004
2215 #define MOUSEEVENTF_RIGHTDOWN 0x0008
2216 #define MOUSEEVENTF_RIGHTUP 0x0010
2217 #define MOUSEEVENTF_MIDDLEDOWN 0x0020
2218 #define MOUSEEVENTF_MIDDLEUP 0x0040
2219 #define MOUSEEVENTF_XDOWN 0x0080
2220 #define MOUSEEVENTF_XUP 0x0100
2221 #define MOUSEEVENTF_WHEEL 0x0800
2222 #define MOUSEEVENTF_HWHEEL 0x1000
2223 #define MOUSEEVENTF_MOVE_NOCOALESCE 0x2000
2224 #define MOUSEEVENTF_VIRTUALDESK 0x4000
2225 #define MOUSEEVENTF_ABSOLUTE 0x8000
2227 /* ExitWindows() flags */
2228 #define EW_RESTARTWINDOWS 0x0042
2229 #define EW_REBOOTSYSTEM 0x0043
2230 #define EW_EXITANDEXECAPP 0x0044
2232 /* ExitWindowsEx() flags */
2233 #define EWX_LOGOFF 0
2234 #define EWX_SHUTDOWN 1
2235 #define EWX_REBOOT 2
2236 #define EWX_FORCE 4
2237 #define EWX_POWEROFF 8
2238 #define EWX_FORCEIFHUNG 16
2240 /* SetLastErrorEx types */
2241 #define SLE_ERROR 0x00000001
2242 #define SLE_MINORERROR 0x00000002
2243 #define SLE_WARNING 0x00000003
2245 /* Predefined resources */
2246 #define IDI_APPLICATION MAKEINTRESOURCE(32512)
2247 #define IDI_HAND MAKEINTRESOURCE(32513)
2248 #define IDI_QUESTION MAKEINTRESOURCE(32514)
2249 #define IDI_EXCLAMATION MAKEINTRESOURCE(32515)
2250 #define IDI_ASTERISK MAKEINTRESOURCE(32516)
2251 #define IDI_WINLOGO MAKEINTRESOURCE(32517)
2253 #define IDI_WARNING IDI_EXCLAMATION
2254 #define IDI_ERROR IDI_HAND
2255 #define IDI_INFORMATION IDI_ASTERISK
2257 #define IDC_ARROW MAKEINTRESOURCE(32512)
2258 #define IDC_IBEAM MAKEINTRESOURCE(32513)
2259 #define IDC_WAIT MAKEINTRESOURCE(32514)
2260 #define IDC_CROSS MAKEINTRESOURCE(32515)
2261 #define IDC_UPARROW MAKEINTRESOURCE(32516)
2262 #define IDC_PEN MAKEINTRESOURCE(32631)
2263 #define IDC_SIZE MAKEINTRESOURCE(32640)
2264 #define IDC_ICON MAKEINTRESOURCE(32641)
2265 #define IDC_SIZENWSE MAKEINTRESOURCE(32642)
2266 #define IDC_SIZENESW MAKEINTRESOURCE(32643)
2267 #define IDC_SIZEWE MAKEINTRESOURCE(32644)
2268 #define IDC_SIZENS MAKEINTRESOURCE(32645)
2269 #define IDC_SIZEALL MAKEINTRESOURCE(32646)
2270 #define IDC_NO MAKEINTRESOURCE(32648)
2271 #define IDC_HAND MAKEINTRESOURCE(32649)
2272 #define IDC_APPSTARTING MAKEINTRESOURCE(32650)
2273 #define IDC_HELP MAKEINTRESOURCE(32651)
2275 #define MNC_IGNORE 0
2276 #define MNC_CLOSE 1
2277 #define MNC_EXECUTE 2
2278 #define MNC_SELECT 3
2280 /* SystemParametersInfo */
2281 #define SPI_GETBEEP 1
2282 #define SPI_SETBEEP 2
2283 #define SPI_GETMOUSE 3
2284 #define SPI_SETMOUSE 4
2285 #define SPI_GETBORDER 5
2286 #define SPI_SETBORDER 6
2287 #define SPI_GETKEYBOARDSPEED 10
2288 #define SPI_SETKEYBOARDSPEED 11
2289 #define SPI_LANGDRIVER 12
2290 #define SPI_ICONHORIZONTALSPACING 13
2291 #define SPI_GETSCREENSAVETIMEOUT 14
2292 #define SPI_SETSCREENSAVETIMEOUT 15
2293 #define SPI_GETSCREENSAVEACTIVE 16
2294 #define SPI_SETSCREENSAVEACTIVE 17
2295 #define SPI_GETGRIDGRANULARITY 18
2296 #define SPI_SETGRIDGRANULARITY 19
2297 #define SPI_SETDESKWALLPAPER 20
2298 #define SPI_SETDESKPATTERN 21
2299 #define SPI_GETKEYBOARDDELAY 22
2300 #define SPI_SETKEYBOARDDELAY 23
2301 #define SPI_ICONVERTICALSPACING 24
2302 #define SPI_GETICONTITLEWRAP 25
2303 #define SPI_SETICONTITLEWRAP 26
2304 #define SPI_GETMENUDROPALIGNMENT 27
2305 #define SPI_SETMENUDROPALIGNMENT 28
2306 #define SPI_SETDOUBLECLKWIDTH 29
2307 #define SPI_SETDOUBLECLKHEIGHT 30
2308 #define SPI_GETICONTITLELOGFONT 31
2309 #define SPI_SETDOUBLECLICKTIME 32
2310 #define SPI_SETMOUSEBUTTONSWAP 33
2311 #define SPI_SETICONTITLELOGFONT 34
2312 #define SPI_GETFASTTASKSWITCH 35
2313 #define SPI_SETFASTTASKSWITCH 36
2314 #define SPI_SETDRAGFULLWINDOWS 37
2315 #define SPI_GETDRAGFULLWINDOWS 38
2316 #define SPI_GETNONCLIENTMETRICS 41
2317 #define SPI_SETNONCLIENTMETRICS 42
2318 #define SPI_GETMINIMIZEDMETRICS 43
2319 #define SPI_SETMINIMIZEDMETRICS 44
2320 #define SPI_GETICONMETRICS 45
2321 #define SPI_SETICONMETRICS 46
2322 #define SPI_SETWORKAREA 47
2323 #define SPI_GETWORKAREA 48
2324 #define SPI_SETPENWINDOWS 49
2325 #define SPI_GETFILTERKEYS 50
2326 #define SPI_SETFILTERKEYS 51
2327 #define SPI_GETTOGGLEKEYS 52
2328 #define SPI_SETTOGGLEKEYS 53
2329 #define SPI_GETMOUSEKEYS 54
2330 #define SPI_SETMOUSEKEYS 55
2331 #define SPI_GETSHOWSOUNDS 56
2332 #define SPI_SETSHOWSOUNDS 57
2333 #define SPI_GETSTICKYKEYS 58
2334 #define SPI_SETSTICKYKEYS 59
2335 #define SPI_GETACCESSTIMEOUT 60
2336 #define SPI_SETACCESSTIMEOUT 61
2337 #define SPI_GETSERIALKEYS 62
2338 #define SPI_SETSERIALKEYS 63
2339 #define SPI_GETSOUNDSENTRY 64
2340 #define SPI_SETSOUNDSENTRY 65
2341 #define SPI_GETHIGHCONTRAST 66
2342 #define SPI_SETHIGHCONTRAST 67
2343 #define SPI_GETKEYBOARDPREF 68
2344 #define SPI_SETKEYBOARDPREF 69
2345 #define SPI_GETSCREENREADER 70
2346 #define SPI_SETSCREENREADER 71
2347 #define SPI_GETANIMATION 72
2348 #define SPI_SETANIMATION 73
2349 #define SPI_GETFONTSMOOTHING 74
2350 #define SPI_SETFONTSMOOTHING 75
2351 #define SPI_SETDRAGWIDTH 76
2352 #define SPI_SETDRAGHEIGHT 77
2353 #define SPI_SETHANDHELD 78
2354 #define SPI_GETLOWPOWERTIMEOUT 79
2355 #define SPI_GETPOWEROFFTIMEOUT 80
2356 #define SPI_SETLOWPOWERTIMEOUT 81
2357 #define SPI_SETPOWEROFFTIMEOUT 82
2358 #define SPI_GETLOWPOWERACTIVE 83
2359 #define SPI_GETPOWEROFFACTIVE 84
2360 #define SPI_SETLOWPOWERACTIVE 85
2361 #define SPI_SETPOWEROFFACTIVE 86
2362 #define SPI_SETCURSORS 87
2363 #define SPI_SETICONS 88
2364 #define SPI_GETDEFAULTINPUTLANG 89
2365 #define SPI_SETDEFAULTINPUTLANG 90
2366 #define SPI_SETLANGTOGGLE 91
2367 #define SPI_GETWINDOWSEXTENSION 92
2368 #define SPI_SETMOUSETRAILS 93
2369 #define SPI_GETMOUSETRAILS 94
2370 #define SPI_GETSNAPTODEFBUTTON 95
2371 #define SPI_SETSNAPTODEFBUTTON 96
2372 #define SPI_SETSCREENSAVERRUNNING 97
2373 #define SPI_SCREENSAVERRUNNING SPI_SETSCREENSAVERRUNNING
2374 #define SPI_GETMOUSEHOVERWIDTH 98
2375 #define SPI_SETMOUSEHOVERWIDTH 99
2376 #define SPI_GETMOUSEHOVERHEIGHT 100
2377 #define SPI_SETMOUSEHOVERHEIGHT 101
2378 #define SPI_GETMOUSEHOVERTIME 102
2379 #define SPI_SETMOUSEHOVERTIME 103
2380 #define SPI_GETWHEELSCROLLLINES 104
2381 #define SPI_SETWHEELSCROLLLINES 105
2382 #define SPI_GETMENUSHOWDELAY 106
2383 #define SPI_SETMENUSHOWDELAY 107
2384 #define SPI_GETWHEELSCROLLCHARS 108
2385 #define SPI_SETWHEELSCROLLCHARS 109
2386 #define SPI_GETSHOWIMEUI 110
2387 #define SPI_SETSHOWIMEUI 111
2388 #define SPI_GETMOUSESPEED 112
2389 #define SPI_SETMOUSESPEED 113
2390 #define SPI_GETSCREENSAVERRUNNING 114
2391 #define SPI_GETDESKWALLPAPER 115
2392 #define SPI_GETAUDIODESCRIPTION 116
2393 #define SPI_SETAUDIODESCRIPTION 117
2395 #define SPI_GETACTIVEWINDOWTRACKING 0x1000
2396 #define SPI_SETACTIVEWINDOWTRACKING 0x1001
2397 #define SPI_GETMENUANIMATION 0x1002
2398 #define SPI_SETMENUANIMATION 0x1003
2399 #define SPI_GETCOMBOBOXANIMATION 0x1004
2400 #define SPI_SETCOMBOBOXANIMATION 0x1005
2401 #define SPI_GETLISTBOXSMOOTHSCROLLING 0x1006
2402 #define SPI_SETLISTBOXSMOOTHSCROLLING 0x1007
2403 #define SPI_GETGRADIENTCAPTIONS 0x1008
2404 #define SPI_SETGRADIENTCAPTIONS 0x1009
2405 #define SPI_GETKEYBOARDCUES 0x100A
2406 #define SPI_SETKEYBOARDCUES 0x100B
2407 #define SPI_GETMENUUNDERLINES SPI_GETKEYBOARDCUES
2408 #define SPI_SETMENUUNDERLINES SPI_SETKEYBOARDCUES
2409 #define SPI_GETACTIVEWNDTRKZORDER 0x100C
2410 #define SPI_SETACTIVEWNDTRKZORDER 0x100D
2411 #define SPI_GETHOTTRACKING 0x100E
2412 #define SPI_SETHOTTRACKING 0x100F
2413 #define SPI_GETMENUFADE 0x1012
2414 #define SPI_SETMENUFADE 0x1013
2415 #define SPI_GETSELECTIONFADE 0x1014
2416 #define SPI_SETSELECTIONFADE 0x1015
2417 #define SPI_GETTOOLTIPANIMATION 0x1016
2418 #define SPI_SETTOOLTIPANIMATION 0x1017
2419 #define SPI_GETTOOLTIPFADE 0x1018
2420 #define SPI_SETTOOLTIPFADE 0x1019
2421 #define SPI_GETCURSORSHADOW 0x101A
2422 #define SPI_SETCURSORSHADOW 0x101B
2423 #define SPI_GETMOUSESONAR 0x101C
2424 #define SPI_SETMOUSESONAR 0x101D
2425 #define SPI_GETMOUSECLICKLOCK 0x101E
2426 #define SPI_SETMOUSECLICKLOCK 0x101F
2427 #define SPI_GETMOUSEVANISH 0x1020
2428 #define SPI_SETMOUSEVANISH 0x1021
2429 #define SPI_GETFLATMENU 0x1022
2430 #define SPI_SETFLATMENU 0x1023
2431 #define SPI_GETDROPSHADOW 0x1024
2432 #define SPI_SETDROPSHADOW 0x1025
2433 #define SPI_GETBLOCKSENDINPUTRESETS 0x1026
2434 #define SPI_SETBLOCKSENDINPUTRESETS 0x1027
2435 #define SPI_GETUIEFFECTS 0x103E
2436 #define SPI_SETUIEFFECTS 0x103F
2437 #define SPI_GETDISABLEOVERLAPPEDCONTENT 0x1040
2438 #define SPI_SETDISABLEOVERLAPPEDCONTENT 0x1041
2439 #define SPI_GETCLIENTAREAANIMATION 0x1042
2440 #define SPI_SETCLIENTAREAANIMATION 0x1043
2441 #define SPI_GETCLEARTYPE 0x1048
2442 #define SPI_SETCLEARTYPE 0x1049
2443 #define SPI_GETSPEECHRECOGNITION 0x104A
2444 #define SPI_SETSPEECHRECOGNITION 0x104B
2445 #define SPI_GETFOREGROUNDLOCKTIMEOUT 0x2000
2446 #define SPI_SETFOREGROUNDLOCKTIMEOUT 0x2001
2447 #define SPI_GETACTIVEWNDTRKTIMEOUT 0x2002
2448 #define SPI_SETACTIVEWNDTRKTIMEOUT 0x2003
2449 #define SPI_GETFOREGROUNDFLASHCOUNT 0x2004
2450 #define SPI_SETFOREGROUNDFLASHCOUNT 0x2005
2451 #define SPI_GETCARETWIDTH 0x2006
2452 #define SPI_SETCARETWIDTH 0x2007
2453 #define SPI_GETMOUSECLICKLOCKTIME 0x2008
2454 #define SPI_SETMOUSECLICKLOCKTIME 0x2009
2455 #define SPI_GETFONTSMOOTHINGTYPE 0x200A
2456 #define SPI_SETFONTSMOOTHINGTYPE 0x200B
2457 #define SPI_GETFONTSMOOTHINGCONTRAST 0x200C
2458 #define SPI_SETFONTSMOOTHINGCONTRAST 0x200D
2459 #define SPI_GETFOCUSBORDERWIDTH 0x200E
2460 #define SPI_SETFOCUSBORDERWIDTH 0x200F
2461 #define SPI_GETFOCUSBORDERHEIGHT 0x2010
2462 #define SPI_SETFOCUSBORDERHEIGHT 0x2011
2463 #define SPI_GETFONTSMOOTHINGORIENTATION 0x2012
2464 #define SPI_SETFONTSMOOTHINGORIENTATION 0x2013
2466 #define FE_FONTSMOOTHINGSTANDARD 0x0001
2467 #define FE_FONTSMOOTHINGCLEARTYPE 0x0002
2468 #define FE_FONTSMOOTHINGDOCKING 0x8000
2470 #define FE_FONTSMOOTHINGORIENTATIONBGR 0x0000
2471 #define FE_FONTSMOOTHINGORIENTATIONRGB 0x0001
2473 #define SETWALLPAPER_DEFAULT ((LPWSTR)-1)
2475 /* SystemParametersInfo flags */
2477 #define SPIF_UPDATEINIFILE 1
2478 #define SPIF_SENDWININICHANGE 2
2479 #define SPIF_SENDCHANGE SPIF_SENDWININICHANGE
2481 #if defined(_WINGDI_) && !defined(NOGDI)
2482 typedef struct tagNONCLIENTMETRICSA {
2483 UINT cbSize;
2484 INT iBorderWidth;
2485 INT iScrollWidth;
2486 INT iScrollHeight;
2487 INT iCaptionWidth;
2488 INT iCaptionHeight;
2489 LOGFONTA lfCaptionFont;
2490 INT iSmCaptionWidth;
2491 INT iSmCaptionHeight;
2492 LOGFONTA lfSmCaptionFont;
2493 INT iMenuWidth;
2494 INT iMenuHeight;
2495 LOGFONTA lfMenuFont;
2496 LOGFONTA lfStatusFont;
2497 LOGFONTA lfMessageFont;
2498 INT iPaddedBorderWidth;
2499 } NONCLIENTMETRICSA, *PNONCLIENTMETRICSA, *LPNONCLIENTMETRICSA;
2501 typedef struct tagNONCLIENTMETRICSW {
2502 UINT cbSize;
2503 INT iBorderWidth;
2504 INT iScrollWidth;
2505 INT iScrollHeight;
2506 INT iCaptionWidth;
2507 INT iCaptionHeight;
2508 LOGFONTW lfCaptionFont;
2509 INT iSmCaptionWidth;
2510 INT iSmCaptionHeight;
2511 LOGFONTW lfSmCaptionFont;
2512 INT iMenuWidth;
2513 INT iMenuHeight;
2514 LOGFONTW lfMenuFont;
2515 LOGFONTW lfStatusFont;
2516 LOGFONTW lfMessageFont;
2517 INT iPaddedBorderWidth;
2518 } NONCLIENTMETRICSW, *PNONCLIENTMETRICSW, *LPNONCLIENTMETRICSW;
2520 DECL_WINELIB_TYPE_AW(NONCLIENTMETRICS)
2521 DECL_WINELIB_TYPE_AW(PNONCLIENTMETRICS)
2522 DECL_WINELIB_TYPE_AW(LPNONCLIENTMETRICS)
2524 typedef struct tagICONMETRICSA {
2525 UINT cbSize;
2526 int iHorzSpacing;
2527 int iVertSpacing;
2528 int iTitleWrap;
2529 LOGFONTA lfFont;
2530 } ICONMETRICSA, *PICONMETRICSA, *LPICONMETRICSA;
2532 typedef struct tagICONMETRICSW {
2533 UINT cbSize;
2534 int iHorzSpacing;
2535 int iVertSpacing;
2536 int iTitleWrap;
2537 LOGFONTW lfFont;
2538 } ICONMETRICSW, *PICONMETRICSW, *LPICONMETRICSW;
2540 DECL_WINELIB_TYPE_AW(ICONMETRICS)
2541 DECL_WINELIB_TYPE_AW(PICONMETRICS)
2542 DECL_WINELIB_TYPE_AW(LPICONMETRICS)
2544 typedef struct tagUPDATELAYEREDWINDOWINFO
2546 DWORD cbSize;
2547 HDC hdcDst;
2548 POINT const* pptDst;
2549 SIZE const* psize;
2550 HDC hdcSrc;
2551 POINT const* pptSrc;
2552 COLORREF crKey;
2553 BLENDFUNCTION const* pblend;
2554 DWORD dwFlags;
2555 RECT const* prcDirty;
2556 } UPDATELAYEREDWINDOWINFO, *PUPDATELAYEREDWINDOWINFO;
2558 #endif /* defined(_WINGDI_) && !defined(NOGDI) */
2560 #define ARW_BOTTOMLEFT __MSABI_LONG(0x0000)
2561 #define ARW_BOTTOMRIGHT __MSABI_LONG(0x0001)
2562 #define ARW_TOPLEFT __MSABI_LONG(0x0002)
2563 #define ARW_TOPRIGHT __MSABI_LONG(0x0003)
2564 #define ARW_STARTMASK __MSABI_LONG(0x0003)
2565 #define ARW_STARTRIGHT __MSABI_LONG(0x0001)
2566 #define ARW_STARTTOP __MSABI_LONG(0x0002)
2568 #define ARW_LEFT __MSABI_LONG(0x0000)
2569 #define ARW_RIGHT __MSABI_LONG(0x0000)
2570 #define ARW_UP __MSABI_LONG(0x0004)
2571 #define ARW_DOWN __MSABI_LONG(0x0004)
2572 #define ARW_HIDE __MSABI_LONG(0x0008)
2574 typedef struct tagMINIMIZEDMETRICS {
2575 UINT cbSize;
2576 int iWidth;
2577 int iHorzGap;
2578 int iVertGap;
2579 int iArrange;
2580 } MINIMIZEDMETRICS, *PMINIMIZEDMETRICS, *LPMINIMIZEDMETRICS;
2582 /* Window affinity */
2583 #define WDA_NONE 0x0
2584 #define WDA_MONITOR 0x1
2586 /* Window scrolling */
2587 #define SW_SCROLLCHILDREN 0x0001
2588 #define SW_INVALIDATE 0x0002
2589 #define SW_ERASE 0x0004
2591 /* CreateWindow() coordinates */
2592 #define CW_USEDEFAULT ((INT)0x80000000)
2594 /* ChildWindowFromPointEx Flags */
2595 #define CWP_ALL 0x0000
2596 #define CWP_SKIPINVISIBLE 0x0001
2597 #define CWP_SKIPDISABLED 0x0002
2598 #define CWP_SKIPTRANSPARENT 0x0004
2600 /* PeekMessage() options */
2601 #define PM_NOREMOVE 0x0000
2602 #define PM_REMOVE 0x0001
2603 #define PM_NOYIELD 0x0002
2604 #define PM_QS_INPUT (QS_INPUT << 16)
2605 #define PM_QS_POSTMESSAGE ((QS_POSTMESSAGE | QS_HOTKEY | QS_TIMER) << 16)
2606 #define PM_QS_PAINT (QS_PAINT << 16)
2607 #define PM_QS_SENDMESSAGE (QS_SENDMESSAGE << 16)
2609 /* SetTimer() limits */
2610 #define USER_TIMER_MINIMUM 0x0000000A
2611 #define USER_TIMER_MAXIMUM 0x7FFFFFFF
2613 /* SetCoalescableTimer() tolerances */
2614 #define TIMERV_DEFAULT_COALESCING 0
2615 #define TIMERV_NO_COALESCING 0xFFFFFFFF
2616 #define TIMERV_COALESCING_MIN 1
2617 #define TIMERV_COALESCING_MAX 0x7FFFFFF5
2619 /* AnimateWindow() flags */
2620 #define AW_SLIDE 0x00040000
2621 #define AW_ACTIVATE 0x00020000
2622 #define AW_BLEND 0x00080000
2623 #define AW_HIDE 0x00010000
2624 #define AW_CENTER 0x00000010
2625 #define AW_HOR_POSITIVE 0x00000001
2626 #define AW_HOR_NEGATIVE 0x00000002
2627 #define AW_VER_POSITIVE 0x00000004
2628 #define AW_VER_NEGATIVE 0x00000008
2630 /* FlashWindowEx() flags */
2631 #define FLASHW_STOP 0x00000000
2632 #define FLASHW_CAPTION 0x00000001
2633 #define FLASHW_TRAY 0x00000002
2634 #define FLASHW_ALL (FLASHW_CAPTION|FLASHW_TRAY)
2635 #define FLASHW_TIMER 0x00000004
2636 #define FLASHW_TIMERNOFG 0x0000000C
2638 typedef struct {
2639 UINT cbSize;
2640 HWND hwnd;
2641 DWORD dwFlags;
2642 UINT uCount;
2643 DWORD dwTimeout;
2644 } FLASHWINFO, *PFLASHWINFO;
2646 /* SetLayeredWindowAttributes() flags */
2647 #define LWA_COLORKEY 0x00000001
2648 #define LWA_ALPHA 0x00000002
2650 /* UpdateLayeredWindow() flags */
2651 #define ULW_COLORKEY 0x00000001
2652 #define ULW_ALPHA 0x00000002
2653 #define ULW_OPAQUE 0x00000004
2654 #define ULW_EX_NORESIZE 0x00000008
2656 /* SetWindowPos() and WINDOWPOS flags */
2657 #define SWP_NOSIZE 0x0001
2658 #define SWP_NOMOVE 0x0002
2659 #define SWP_NOZORDER 0x0004
2660 #define SWP_NOREDRAW 0x0008
2661 #define SWP_NOACTIVATE 0x0010
2662 #define SWP_FRAMECHANGED 0x0020 /* The frame changed: send WM_NCCALCSIZE */
2663 #define SWP_SHOWWINDOW 0x0040
2664 #define SWP_HIDEWINDOW 0x0080
2665 #define SWP_NOCOPYBITS 0x0100
2666 #define SWP_NOOWNERZORDER 0x0200 /* Don't do owner Z ordering */
2668 #define SWP_DRAWFRAME SWP_FRAMECHANGED
2669 #define SWP_NOREPOSITION SWP_NOOWNERZORDER
2671 #define SWP_NOSENDCHANGING 0x0400
2672 #define SWP_DEFERERASE 0x2000
2673 #define SWP_ASYNCWINDOWPOS 0x4000
2675 /* undocumented SWP flags - from SDK 3.1 */
2676 #define SWP_NOCLIENTSIZE 0x0800
2677 #define SWP_NOCLIENTMOVE 0x1000
2678 #define SWP_STATECHANGED 0x8000
2680 #define HWND_DESKTOP ((HWND)0)
2681 #define HWND_BROADCAST ((HWND)0xffff)
2683 /* SetWindowPos() hwndInsertAfter field values */
2684 #define HWND_TOP ((HWND)0)
2685 #define HWND_BOTTOM ((HWND)1)
2686 #define HWND_TOPMOST ((HWND)-1)
2687 #define HWND_NOTOPMOST ((HWND)-2)
2688 #define HWND_MESSAGE ((HWND)-3)
2690 /* GetDCEx flags */
2691 #define DCX_WINDOW 0x00000001
2692 #define DCX_CACHE 0x00000002
2693 #define DCX_NORESETATTRS 0x00000004
2694 #define DCX_CLIPCHILDREN 0x00000008
2695 #define DCX_CLIPSIBLINGS 0x00000010
2696 #define DCX_PARENTCLIP 0x00000020
2697 #define DCX_EXCLUDERGN 0x00000040
2698 #define DCX_INTERSECTRGN 0x00000080
2699 #define DCX_EXCLUDEUPDATE 0x00000100
2700 #define DCX_INTERSECTUPDATE 0x00000200
2701 #define DCX_LOCKWINDOWUPDATE 0x00000400
2702 #define DCX_USESTYLE 0x00010000
2703 #define DCX_NORECOMPUTE 0x00100000
2704 #define DCX_VALIDATE 0x00200000
2708 /* for GetMenuDefaultItem */
2709 #define GMDI_USEDISABLED __MSABI_LONG(0x0001)
2710 #define GMDI_GOINTOPOPUPS __MSABI_LONG(0x0002)
2712 /* DrawText() flags */
2713 #define DT_TOP 0x00000000
2714 #define DT_LEFT 0x00000000
2715 #define DT_CENTER 0x00000001
2716 #define DT_RIGHT 0x00000002
2717 #define DT_VCENTER 0x00000004
2718 #define DT_BOTTOM 0x00000008
2719 #define DT_WORDBREAK 0x00000010
2720 #define DT_SINGLELINE 0x00000020
2721 #define DT_EXPANDTABS 0x00000040
2722 #define DT_TABSTOP 0x00000080
2723 #define DT_NOCLIP 0x00000100
2724 #define DT_EXTERNALLEADING 0x00000200
2725 #define DT_CALCRECT 0x00000400
2726 #define DT_NOPREFIX 0x00000800
2727 #define DT_INTERNAL 0x00001000
2728 #define DT_EDITCONTROL 0x00002000
2729 #define DT_PATH_ELLIPSIS 0x00004000
2730 #define DT_END_ELLIPSIS 0x00008000
2731 #define DT_MODIFYSTRING 0x00010000
2732 #define DT_RTLREADING 0x00020000
2733 #define DT_WORD_ELLIPSIS 0x00040000
2734 #define DT_NOFULLWIDTHCHARBREAK 0x00080000
2735 #define DT_HIDEPREFIX 0x00100000
2736 #define DT_PREFIXONLY 0x00200000
2738 /* DrawCaption()/DrawCaptionTemp() flags */
2739 #define DC_ACTIVE 0x0001
2740 #define DC_SMALLCAP 0x0002
2741 #define DC_ICON 0x0004
2742 #define DC_TEXT 0x0008
2743 #define DC_INBUTTON 0x0010
2744 #define DC_GRADIENT 0x0020
2745 #define DC_BUTTONS 0x1000
2747 /* DrawEdge() flags */
2748 #define BDR_RAISEDOUTER 0x0001
2749 #define BDR_SUNKENOUTER 0x0002
2750 #define BDR_RAISEDINNER 0x0004
2751 #define BDR_SUNKENINNER 0x0008
2753 #define BDR_OUTER 0x0003
2754 #define BDR_INNER 0x000c
2755 #define BDR_RAISED 0x0005
2756 #define BDR_SUNKEN 0x000a
2758 #define EDGE_RAISED (BDR_RAISEDOUTER | BDR_RAISEDINNER)
2759 #define EDGE_SUNKEN (BDR_SUNKENOUTER | BDR_SUNKENINNER)
2760 #define EDGE_ETCHED (BDR_SUNKENOUTER | BDR_RAISEDINNER)
2761 #define EDGE_BUMP (BDR_RAISEDOUTER | BDR_SUNKENINNER)
2763 /* border flags */
2764 #define BF_LEFT 0x0001
2765 #define BF_TOP 0x0002
2766 #define BF_RIGHT 0x0004
2767 #define BF_BOTTOM 0x0008
2768 #define BF_DIAGONAL 0x0010
2769 #define BF_MIDDLE 0x0800 /* Fill in the middle */
2770 #define BF_SOFT 0x1000 /* For softer buttons */
2771 #define BF_ADJUST 0x2000 /* Calculate the space left over */
2772 #define BF_FLAT 0x4000 /* For flat rather than 3D borders */
2773 #define BF_MONO 0x8000 /* For monochrome borders */
2774 #define BF_TOPLEFT (BF_TOP | BF_LEFT)
2775 #define BF_TOPRIGHT (BF_TOP | BF_RIGHT)
2776 #define BF_BOTTOMLEFT (BF_BOTTOM | BF_LEFT)
2777 #define BF_BOTTOMRIGHT (BF_BOTTOM | BF_RIGHT)
2778 #define BF_RECT (BF_LEFT | BF_TOP | BF_RIGHT | BF_BOTTOM)
2779 #define BF_DIAGONAL_ENDTOPRIGHT (BF_DIAGONAL | BF_TOP | BF_RIGHT)
2780 #define BF_DIAGONAL_ENDTOPLEFT (BF_DIAGONAL | BF_TOP | BF_LEFT)
2781 #define BF_DIAGONAL_ENDBOTTOMLEFT (BF_DIAGONAL | BF_BOTTOM | BF_LEFT)
2782 #define BF_DIAGONAL_ENDBOTTOMRIGHT (BF_DIAGONAL | BF_BOTTOM | BF_RIGHT)
2784 /* DrawFrameControl() uType's */
2786 #define DFC_CAPTION 1
2787 #define DFC_MENU 2
2788 #define DFC_SCROLL 3
2789 #define DFC_BUTTON 4
2790 #define DFC_POPUPMENU 5
2792 /* uState's */
2794 #define DFCS_CAPTIONCLOSE 0x0000
2795 #define DFCS_CAPTIONMIN 0x0001
2796 #define DFCS_CAPTIONMAX 0x0002
2797 #define DFCS_CAPTIONRESTORE 0x0003
2798 #define DFCS_CAPTIONHELP 0x0004 /* Windows 95 only */
2800 #define DFCS_MENUARROW 0x0000
2801 #define DFCS_MENUCHECK 0x0001
2802 #define DFCS_MENUBULLET 0x0002
2803 #define DFCS_MENUARROWRIGHT 0x0004
2805 #define DFCS_SCROLLUP 0x0000
2806 #define DFCS_SCROLLDOWN 0x0001
2807 #define DFCS_SCROLLLEFT 0x0002
2808 #define DFCS_SCROLLRIGHT 0x0003
2809 #define DFCS_SCROLLCOMBOBOX 0x0005
2810 #define DFCS_SCROLLSIZEGRIP 0x0008
2811 #define DFCS_SCROLLSIZEGRIPRIGHT 0x0010
2813 #define DFCS_BUTTONCHECK 0x0000
2814 #define DFCS_BUTTONRADIOIMAGE 0x0001
2815 #define DFCS_BUTTONRADIOMASK 0x0002 /* to draw nonsquare button */
2816 #define DFCS_BUTTONRADIO 0x0004
2817 #define DFCS_BUTTON3STATE 0x0008
2818 #define DFCS_BUTTONPUSH 0x0010
2820 /* additional state of the control */
2822 #define DFCS_INACTIVE 0x0100
2823 #define DFCS_PUSHED 0x0200
2824 #define DFCS_CHECKED 0x0400
2825 #define DFCS_TRANSPARENT 0x0800
2826 #define DFCS_HOT 0x1000
2827 #define DFCS_ADJUSTRECT 0x2000 /* exclude surrounding edge */
2828 #define DFCS_FLAT 0x4000
2829 #define DFCS_MONO 0x8000
2832 /* Image type */
2833 #define DST_COMPLEX 0x0000
2834 #define DST_TEXT 0x0001
2835 #define DST_PREFIXTEXT 0x0002
2836 #define DST_ICON 0x0003
2837 #define DST_BITMAP 0x0004
2839 /* State type */
2840 #define DSS_NORMAL 0x0000
2841 #define DSS_UNION 0x0010 /* Gray string appearance */
2842 #define DSS_DISABLED 0x0020
2843 #define DSS_DEFAULT 0x0040 /* Make it bold */
2844 #define DSS_MONO 0x0080
2845 #define DSS_HIDEPREFIX 0x0200
2846 #define DSS_PREFIXONLY 0x0400
2847 #define DSS_RIGHT 0x8000
2849 /* UserObjectInformation classes */
2850 #define UOI_FLAGS 1
2851 #define UOI_NAME 2
2852 #define UOI_TYPE 3
2853 #define UOI_USER_SID 4
2856 /* Sent as the lParam of a WM_DRAWITEM message to instruct how an
2857 * owner drawn control is to be drawn */
2858 typedef struct tagDRAWITEMSTRUCT
2860 UINT CtlType; /* Type of control (ODT_* flags from "winuser.h") */
2861 UINT CtlID; /* Control ID */
2862 UINT itemID; /* Menu item ID */
2863 UINT itemAction; /* Action to perform (ODA_* flags from "winuser.h") */
2864 UINT itemState; /* Item state (ODS_* flags from "winuser.h") */
2865 HWND hwndItem; /* Control window */
2866 HDC hDC; /* Device context to draw to */
2867 RECT rcItem; /* Position of the control in hDC */
2868 ULONG_PTR itemData; /* Extra data added by the application, if any */
2869 } DRAWITEMSTRUCT, *PDRAWITEMSTRUCT, *LPDRAWITEMSTRUCT;
2872 typedef struct tagMEASUREITEMSTRUCT
2874 UINT CtlType;
2875 UINT CtlID;
2876 UINT itemID;
2877 UINT itemWidth;
2878 UINT itemHeight;
2879 ULONG_PTR itemData;
2880 } MEASUREITEMSTRUCT, *PMEASUREITEMSTRUCT, *LPMEASUREITEMSTRUCT;
2883 typedef struct tagDELETEITEMSTRUCT
2885 UINT CtlType;
2886 UINT CtlID;
2887 UINT itemID;
2888 HWND hwndItem;
2889 ULONG_PTR itemData;
2890 } DELETEITEMSTRUCT, *PDELETEITEMSTRUCT, *LPDELETEITEMSTRUCT;
2893 typedef struct tagCOMPAREITEMSTRUCT
2895 UINT CtlType;
2896 UINT CtlID;
2897 HWND hwndItem;
2898 UINT itemID1;
2899 ULONG_PTR itemData1;
2900 UINT itemID2;
2901 ULONG_PTR itemData2;
2902 DWORD dwLocaleId;
2903 } COMPAREITEMSTRUCT, *PCOMPAREITEMSTRUCT, *LPCOMPAREITEMSTRUCT;
2906 /* WM_KEYUP/DOWN/CHAR HIWORD(lParam) flags */
2907 #define KF_EXTENDED 0x0100
2908 #define KF_DLGMODE 0x0800
2909 #define KF_MENUMODE 0x1000
2910 #define KF_ALTDOWN 0x2000
2911 #define KF_REPEAT 0x4000
2912 #define KF_UP 0x8000
2915 /* MapVirtualKey translation types */
2916 #define MAPVK_VK_TO_VSC 0
2917 #define MAPVK_VSC_TO_VK 1
2918 #define MAPVK_VK_TO_CHAR 2
2919 #define MAPVK_VSC_TO_VK_EX 3
2920 #define MAPVK_VK_TO_VSC_EX 4
2924 typedef struct tagTRACKMOUSEEVENT {
2925 DWORD cbSize;
2926 DWORD dwFlags;
2927 HWND hwndTrack;
2928 DWORD dwHoverTime;
2929 } TRACKMOUSEEVENT, *LPTRACKMOUSEEVENT;
2931 /* Queue status flags */
2932 #define QS_KEY 0x0001
2933 #define QS_MOUSEMOVE 0x0002
2934 #define QS_MOUSEBUTTON 0x0004
2935 #define QS_MOUSE (QS_MOUSEMOVE | QS_MOUSEBUTTON)
2936 #define QS_POSTMESSAGE 0x0008
2937 #define QS_TIMER 0x0010
2938 #define QS_PAINT 0x0020
2939 #define QS_SENDMESSAGE 0x0040
2940 #define QS_HOTKEY 0x0080
2941 #define QS_ALLPOSTMESSAGE 0x0100
2942 #define QS_RAWINPUT 0x0400
2943 #define QS_INPUT (QS_MOUSE | QS_KEY | QS_RAWINPUT)
2944 #define QS_ALLEVENTS (QS_INPUT | QS_POSTMESSAGE | QS_TIMER | QS_PAINT | QS_HOTKEY)
2945 #define QS_ALLINPUT (QS_ALLEVENTS | QS_SENDMESSAGE)
2947 /* Extra (undocumented) queue wake bits - see "Undoc. Windows" */
2948 #define QS_SMRESULT 0x8000
2950 /* InSendMessageEx flags */
2951 #define ISMEX_NOSEND 0x00000000
2952 #define ISMEX_SEND 0x00000001
2953 #define ISMEX_NOTIFY 0x00000002
2954 #define ISMEX_CALLBACK 0x00000004
2955 #define ISMEX_REPLIED 0x00000008
2957 #define DDL_READWRITE 0x0000
2958 #define DDL_READONLY 0x0001
2959 #define DDL_HIDDEN 0x0002
2960 #define DDL_SYSTEM 0x0004
2961 #define DDL_DIRECTORY 0x0010
2962 #define DDL_ARCHIVE 0x0020
2964 #define DDL_POSTMSGS 0x2000
2965 #define DDL_DRIVES 0x4000
2966 #define DDL_EXCLUSIVE 0x8000
2968 /* Shell hook values */
2969 #define HSHELL_WINDOWCREATED 1
2970 #define HSHELL_WINDOWDESTROYED 2
2971 #define HSHELL_ACTIVATESHELLWINDOW 3
2972 #define HSHELL_WINDOWACTIVATED 4
2973 #define HSHELL_GETMINRECT 5
2974 #define HSHELL_REDRAW 6
2975 #define HSHELL_TASKMAN 7
2976 #define HSHELL_LANGUAGE 8
2977 #define HSHELL_SYSMENU 9
2978 #define HSHELL_ENDTASK 10
2979 #define HSHELL_ACCESSIBILITYSTATE 11
2980 #define HSHELL_APPCOMMAND 12
2981 #define HSHELL_WINDOWREPLACED 13
2982 #define HSHELL_WINDOWREPLACING 14
2984 #define HSHELL_HIGHBIT 0x8000
2985 #define HSHELL_FLASH (HSHELL_REDRAW|HSHELL_HIGHBIT)
2986 #define HSHELL_RUDEAPPACTIVATED (HSHELL_WINDOWACTIVATED|HSHELL_HIGHBIT)
2988 /* App commands */
2989 #define APPCOMMAND_BROWSER_BACKWARD 1
2990 #define APPCOMMAND_BROWSER_FORWARD 2
2991 #define APPCOMMAND_BROWSER_REFRESH 3
2992 #define APPCOMMAND_BROWSER_STOP 4
2993 #define APPCOMMAND_BROWSER_SEARCH 5
2994 #define APPCOMMAND_BROWSER_FAVORITES 6
2995 #define APPCOMMAND_BROWSER_HOME 7
2996 #define APPCOMMAND_VOLUME_MUTE 8
2997 #define APPCOMMAND_VOLUME_DOWN 9
2998 #define APPCOMMAND_VOLUME_UP 10
2999 #define APPCOMMAND_MEDIA_NEXTTRACK 11
3000 #define APPCOMMAND_MEDIA_PREVIOUSTRACK 12
3001 #define APPCOMMAND_MEDIA_STOP 13
3002 #define APPCOMMAND_MEDIA_PLAY_PAUSE 14
3003 #define APPCOMMAND_LAUNCH_MAIL 15
3004 #define APPCOMMAND_LAUNCH_MEDIA_SELECT 16
3005 #define APPCOMMAND_LAUNCH_APP1 17
3006 #define APPCOMMAND_LAUNCH_APP2 18
3007 #define APPCOMMAND_BASS_DOWN 19
3008 #define APPCOMMAND_BASS_BOOST 20
3009 #define APPCOMMAND_BASS_UP 21
3010 #define APPCOMMAND_TREBLE_DOWN 22
3011 #define APPCOMMAND_TREBLE_UP 23
3012 #define APPCOMMAND_MICROPHONE_VOLUME_MUTE 24
3013 #define APPCOMMAND_MICROPHONE_VOLUME_DOWN 25
3014 #define APPCOMMAND_MICROPHONE_VOLUME_UP 26
3015 #define APPCOMMAND_HELP 27
3016 #define APPCOMMAND_FIND 28
3017 #define APPCOMMAND_NEW 29
3018 #define APPCOMMAND_OPEN 30
3019 #define APPCOMMAND_CLOSE 31
3020 #define APPCOMMAND_SAVE 32
3021 #define APPCOMMAND_PRINT 33
3022 #define APPCOMMAND_UNDO 34
3023 #define APPCOMMAND_REDO 35
3024 #define APPCOMMAND_COPY 36
3025 #define APPCOMMAND_CUT 37
3026 #define APPCOMMAND_PASTE 38
3027 #define APPCOMMAND_REPLY_TO_MAIL 39
3028 #define APPCOMMAND_FORWARD_MAIL 40
3029 #define APPCOMMAND_SEND_MAIL 41
3030 #define APPCOMMAND_SPELL_CHECK 42
3031 #define APPCOMMAND_DICTATE_OR_COMMAND_CONTROL_TOGGLE 43
3032 #define APPCOMMAND_MIC_ON_OFF_TOGGLE 44
3033 #define APPCOMMAND_CORRECTION_LIST 45
3034 #define APPCOMMAND_MEDIA_PLAY 46
3035 #define APPCOMMAND_MEDIA_PAUSE 47
3036 #define APPCOMMAND_MEDIA_RECORD 48
3037 #define APPCOMMAND_MEDIA_FAST_FORWARD 49
3038 #define APPCOMMAND_MEDIA_REWIND 50
3039 #define APPCOMMAND_MEDIA_CHANNEL_UP 51
3040 #define APPCOMMAND_MEDIA_CHANNEL_DOWN 52
3041 #define APPCOMMAND_DELETE 53
3042 #define APPCOMMAND_DWM_FLIP3D 54
3044 #define FAPPCOMMAND_MOUSE 0x8000
3045 #define FAPPCOMMAND_KEY 0
3046 #define FAPPCOMMAND_OEM 0x1000
3047 #define FAPPCOMMAND_MASK 0xF000
3049 #define GET_APPCOMMAND_LPARAM(lParam) ((short)(HIWORD(lParam) & ~FAPPCOMMAND_MASK))
3050 #define GET_DEVICE_LPARAM(lParam) ((WORD)(HIWORD(lParam) & FAPPCOMMAND_MASK))
3051 #define GET_MOUSEORKEY_LPARAM GET_DEVICE_LPARAM
3052 #define GET_FLAGS_LPARAM(lParam) (LOWORD(lParam))
3053 #define GET_KEYSTATE_LPARAM(lParam) GET_FLAGS_LPARAM(lParam)
3056 /* types of LoadImage */
3057 #define IMAGE_BITMAP 0
3058 #define IMAGE_ICON 1
3059 #define IMAGE_CURSOR 2
3060 #define IMAGE_ENHMETAFILE 3
3062 /* loadflags to LoadImage */
3063 #define LR_DEFAULTCOLOR 0x0000
3064 #define LR_MONOCHROME 0x0001
3065 #define LR_COLOR 0x0002
3066 #define LR_COPYRETURNORG 0x0004
3067 #define LR_COPYDELETEORG 0x0008
3068 #define LR_LOADFROMFILE 0x0010
3069 #define LR_LOADTRANSPARENT 0x0020
3070 #define LR_DEFAULTSIZE 0x0040
3071 #define LR_VGA_COLOR 0x0080
3072 #define LR_LOADMAP3DCOLORS 0x1000
3073 #define LR_CREATEDIBSECTION 0x2000
3074 #define LR_COPYFROMRESOURCE 0x4000
3075 #define LR_SHARED 0x8000
3077 /* Flags for DrawIconEx. */
3078 #define DI_MASK 0x0001
3079 #define DI_IMAGE 0x0002
3080 #define DI_NORMAL (DI_MASK | DI_IMAGE)
3081 #define DI_COMPAT 0x0004
3082 #define DI_DEFAULTSIZE 0x0008
3083 #define DI_NOMIRROR 0x0010
3085 /* RegisterDeviceNotification stuff */
3086 typedef PVOID HDEVNOTIFY;
3087 typedef HDEVNOTIFY *PHDEVNOTIFY;
3089 #define DEVICE_NOTIFY_WINDOW_HANDLE 0x00000000
3091 /* used for GetWindowInfo() */
3093 #define WS_ACTIVECAPTION 0x0001
3095 typedef struct tagWINDOWINFO {
3096 DWORD cbSize;
3097 RECT rcWindow;
3098 RECT rcClient;
3099 DWORD dwStyle;
3100 DWORD dwExStyle;
3101 DWORD dwWindowStatus;
3102 UINT cxWindowBorders;
3103 UINT cyWindowBorders;
3104 ATOM atomWindowType;
3105 WORD wCreatorVersion;
3106 } WINDOWINFO, *PWINDOWINFO, *LPWINDOWINFO;
3108 /* used for GetTitleBarInfo() */
3110 #define CCHILDREN_TITLEBAR 5
3112 typedef struct tagTITLEBARINFO {
3113 DWORD cbSize;
3114 RECT rcTitleBar;
3115 DWORD rgstate[CCHILDREN_TITLEBAR+1];
3116 } TITLEBARINFO, *PTITLEBARINFO, *LPTITLEBARINFO;
3118 /* used by GetLastInputInfo */
3119 typedef struct tagLASTINPUTINFO {
3120 UINT cbSize;
3121 DWORD dwTime;
3122 } LASTINPUTINFO, *PLASTINPUTINFO;
3124 /* used by GetAltTabInfo */
3125 typedef struct
3127 DWORD cbSize;
3128 INT cItems;
3129 INT cColumns;
3130 INT cRows;
3131 INT iColFocus;
3132 INT iRowFocus;
3133 INT cxItem;
3134 INT cyItem;
3135 POINT ptStart;
3136 } ALTTABINFO, *PALTTABINFO, *LPALTTABINFO;
3138 /* SetWinEventHook() flags */
3139 #define WINEVENT_OUTOFCONTEXT 0x0
3140 #define WINEVENT_SKIPOWNTHREAD 0x1
3141 #define WINEVENT_SKIPOWNPROCESS 0x2
3142 #define WINEVENT_INCONTEXT 0x4
3144 #define ENDSESSION_LOGOFF 0x80000000
3146 /* Object Id's */
3147 #define CHILDID_SELF 0
3148 #define INDEXID_OBJECT 0
3149 #define INDEXID_CONTAINER 0
3151 /* System object Id's */
3152 #define OBJID_WINDOW 0
3153 #define OBJID_SYSMENU -1
3154 #define OBJID_TITLEBAR -2
3155 #define OBJID_MENU -3
3156 #define OBJID_CLIENT -4
3157 #define OBJID_VSCROLL -5
3158 #define OBJID_HSCROLL -6
3159 #define OBJID_SIZEGRIP -7
3160 #define OBJID_CARET -8
3161 #define OBJID_CURSOR -9
3162 #define OBJID_ALERT -10
3163 #define OBJID_SOUND -11
3164 #define OBJID_QUERYCLASSNAMEIDX -12
3165 #define OBJID_NATIVEOM -16
3167 /* User event Id limits */
3168 #define EVENT_MIN 0x00000001
3169 #define EVENT_MAX 0x7FFFFFFF
3171 /* System events */
3172 #define EVENT_SYSTEM_SOUND 0x01
3173 #define EVENT_SYSTEM_ALERT 0x02
3174 #define EVENT_SYSTEM_FOREGROUND 0x03
3175 #define EVENT_SYSTEM_MENUSTART 0x04
3176 #define EVENT_SYSTEM_MENUEND 0x05
3177 #define EVENT_SYSTEM_MENUPOPUPSTART 0x06
3178 #define EVENT_SYSTEM_MENUPOPUPEND 0x07
3179 #define EVENT_SYSTEM_CAPTURESTART 0x08
3180 #define EVENT_SYSTEM_CAPTUREEND 0x09
3181 #define EVENT_SYSTEM_MOVESIZESTART 0x0A
3182 #define EVENT_SYSTEM_MOVESIZEEND 0x0B
3183 #define EVENT_SYSTEM_CONTEXTHELPSTART 0x0C
3184 #define EVENT_SYSTEM_CONTEXTHELPEND 0x0D
3185 #define EVENT_SYSTEM_DRAGDROPSTART 0x0E
3186 #define EVENT_SYSTEM_DRAGDROPEND 0x0F
3187 #define EVENT_SYSTEM_DIALOGSTART 0x10
3188 #define EVENT_SYSTEM_DIALOGEND 0x11
3189 #define EVENT_SYSTEM_SCROLLINGSTART 0x12
3190 #define EVENT_SYSTEM_SCROLLINGEND 0x13
3191 #define EVENT_SYSTEM_SWITCHSTART 0x14
3192 #define EVENT_SYSTEM_SWITCHEND 0x15
3193 #define EVENT_SYSTEM_MINIMIZESTART 0x16
3194 #define EVENT_SYSTEM_MINIMIZEEND 0x17
3196 /* Console events */
3197 #define EVENT_CONSOLE_CARET 0x4001
3198 #define EVENT_CONSOLE_UPDATE_REGION 0x4002
3199 #define EVENT_CONSOLE_UPDATE_SIMPLE 0x4003
3200 #define EVENT_CONSOLE_UPDATE_SCROLL 0x4004
3201 #define EVENT_CONSOLE_LAYOUT 0x4005
3202 #define EVENT_CONSOLE_START_APPLICATION 0x4006
3203 #define EVENT_CONSOLE_END_APPLICATION 0x4007
3205 #define CONSOLE_APPLICATION_16BIT 0x1
3206 #define CONSOLE_CARET_SELECTION 0x1
3207 #define CONSOLE_CARET_VISIBLE 0x2
3209 /* Object events */
3210 #define EVENT_OBJECT_CREATE 0x8000
3211 #define EVENT_OBJECT_DESTROY 0x8001
3212 #define EVENT_OBJECT_SHOW 0x8002
3213 #define EVENT_OBJECT_HIDE 0x8003
3214 #define EVENT_OBJECT_REORDER 0x8004
3215 #define EVENT_OBJECT_FOCUS 0x8005
3216 #define EVENT_OBJECT_SELECTION 0x8006
3217 #define EVENT_OBJECT_SELECTIONADD 0x8007
3218 #define EVENT_OBJECT_SELECTIONREMOVE 0x8008
3219 #define EVENT_OBJECT_SELECTIONWITHIN 0x8009
3220 #define EVENT_OBJECT_STATECHANGE 0x800A
3221 #define EVENT_OBJECT_LOCATIONCHANGE 0x800B
3222 #define EVENT_OBJECT_NAMECHANGE 0x800C
3223 #define EVENT_OBJECT_DESCRIPTIONCHANGE 0x800D
3224 #define EVENT_OBJECT_VALUECHANGE 0x800E
3225 #define EVENT_OBJECT_PARENTCHANGE 0x800F
3226 #define EVENT_OBJECT_HELPCHANGE 0x8010
3227 #define EVENT_OBJECT_DEFACTIONCHANGE 0x8011
3228 #define EVENT_OBJECT_ACCELERATORCHANGE 0x8012
3230 /* Sound events */
3231 #define SOUND_SYSTEM_STARTUP 1
3232 #define SOUND_SYSTEM_SHUTDOWN 2
3233 #define SOUND_SYSTEM_BEEP 3
3234 #define SOUND_SYSTEM_ERROR 4
3235 #define SOUND_SYSTEM_QUESTION 5
3236 #define SOUND_SYSTEM_WARNING 6
3237 #define SOUND_SYSTEM_INFORMATION 7
3238 #define SOUND_SYSTEM_MAXIMIZE 8
3239 #define SOUND_SYSTEM_MINIMIZE 9
3240 #define SOUND_SYSTEM_RESTOREUP 10
3241 #define SOUND_SYSTEM_RESTOREDOWN 11
3242 #define SOUND_SYSTEM_APPSTART 12
3243 #define SOUND_SYSTEM_FAULT 13
3244 #define SOUND_SYSTEM_APPEND 14
3245 #define SOUND_SYSTEM_MENUCOMMAND 15
3246 #define SOUND_SYSTEM_MENUPOPUP 16
3247 #define CSOUND_SYSTEM 16
3249 /* Alert events */
3250 #define ALERT_SYSTEM_INFORMATIONAL 1
3251 #define ALERT_SYSTEM_WARNING 2
3252 #define ALERT_SYSTEM_ERROR 3
3253 #define ALERT_SYSTEM_QUERY 4
3254 #define ALERT_SYSTEM_CRITICAL 5
3255 #define CALERT_SYSTEM 6
3257 /* System state flags */
3258 #define STATE_SYSTEM_UNAVAILABLE 0x00000001
3259 #define STATE_SYSTEM_SELECTED 0x00000002
3260 #define STATE_SYSTEM_FOCUSED 0x00000004
3261 #define STATE_SYSTEM_PRESSED 0x00000008
3262 #define STATE_SYSTEM_CHECKED 0x00000010
3263 #define STATE_SYSTEM_MIXED 0x00000020
3264 #define STATE_SYSTEM_INDETERMINATE STATE_SYSTEM_MIXED
3265 #define STATE_SYSTEM_READONLY 0x00000040
3266 #define STATE_SYSTEM_HOTTRACKED 0x00000080
3267 #define STATE_SYSTEM_DEFAULT 0x00000100
3268 #define STATE_SYSTEM_EXPANDED 0x00000200
3269 #define STATE_SYSTEM_COLLAPSED 0x00000400
3270 #define STATE_SYSTEM_BUSY 0x00000800
3271 #define STATE_SYSTEM_FLOATING 0x00001000
3272 #define STATE_SYSTEM_MARQUEED 0x00002000
3273 #define STATE_SYSTEM_ANIMATED 0x00004000
3274 #define STATE_SYSTEM_INVISIBLE 0x00008000
3275 #define STATE_SYSTEM_OFFSCREEN 0x00010000
3276 #define STATE_SYSTEM_SIZEABLE 0x00020000
3277 #define STATE_SYSTEM_MOVEABLE 0x00040000
3278 #define STATE_SYSTEM_SELFVOICING 0x00080000
3279 #define STATE_SYSTEM_FOCUSABLE 0x00100000
3280 #define STATE_SYSTEM_SELECTABLE 0x00200000
3281 #define STATE_SYSTEM_LINKED 0x00400000
3282 #define STATE_SYSTEM_TRAVERSED 0x00800000
3283 #define STATE_SYSTEM_MULTISELECTABLE 0x01000000
3284 #define STATE_SYSTEM_EXTSELECTABLE 0x02000000
3285 #define STATE_SYSTEM_ALERT_LOW 0x04000000
3286 #define STATE_SYSTEM_ALERT_MEDIUM 0x08000000
3287 #define STATE_SYSTEM_ALERT_HIGH 0x10000000
3288 #define STATE_SYSTEM_PROTECTED 0x20000000
3289 #define STATE_SYSTEM_VALID 0x3FFFFFFF
3291 /* Lock codes for LockSetForegroundWindow */
3292 #define LSFW_LOCK 1
3293 #define LSFW_UNLOCK 2
3295 /* Values for AllowSetForegroundWindow */
3296 #define ASFW_ANY ((DWORD)-1)
3298 #define EnumTaskWindows(handle,proc,lparam) \
3299 EnumThreadWindows(handle,proc,lparam)
3300 #define OemToAnsiA OemToCharA
3301 #define OemToAnsiW OemToCharW
3302 #define OemToAnsi WINELIB_NAME_AW(OemToAnsi)
3303 #define OemToAnsiBuffA OemToCharBuffA
3304 #define OemToAnsiBuffW OemToCharBuffW
3305 #define OemToAnsiBuff WINELIB_NAME_AW(OemToAnsiBuff)
3306 #define AnsiToOemA CharToOemA
3307 #define AnsiToOemW CharToOemW
3308 #define AnsiToOem WINELIB_NAME_AW(AnsiToOem)
3309 #define AnsiToOemBuffA CharToOemBuffA
3310 #define AnsiToOemBuffW CharToOemBuffW
3311 #define AnsiToOemBuff WINELIB_NAME_AW(AnsiToOemBuff)
3313 /* ChangeWindowMessageFilter flags */
3314 #define MSGFLT_ADD 1
3315 #define MSGFLT_REMOVE 2
3317 /* ChangeWindowMessageFilterEx defines */
3318 #define MSGFLTINFO_NONE 0
3319 #define MSGFLTINFO_ALREADYALLOWED_FORWND 1
3320 #define MSGFLTINFO_ALREADYDISALLOWED_FORWND 2
3321 #define MSGFLTINFO_ALLOWED_HIGHER 3
3323 typedef struct tagCHANGEFILTERSTRUCT
3325 DWORD cbSize;
3326 DWORD ExtStatus;
3327 } CHANGEFILTERSTRUCT, *PCHANGEFILTERSTRUCT;
3329 /* Actions for ChangeWindowMessageFilterEx */
3330 #define MSGFLT_RESET 0
3331 #define MSGFLT_ALLOW 1
3332 #define MSGFLT_DISALLOW 2
3334 #define USER_DEFAULT_SCREEN_DPI 96
3336 typedef enum tagAR_STATE {
3337 AR_ENABLED = 0x0,
3338 AR_DISABLED = 0x1,
3339 AR_SUPPRESSED = 0x2,
3340 AR_REMOTESESSION = 0x4,
3341 AR_MULTIMON = 0x8,
3342 AR_NOSENSOR = 0x10,
3343 AR_NOT_SUPPORTED = 0x20,
3344 AR_DOCKED = 0x40,
3345 AR_LAPTOP = 0x80
3346 } AR_STATE, *PAR_STATE;
3348 typedef enum ORIENTATION_PREFERENCE {
3349 ORIENTATION_PREFERENCE_NONE = 0x0,
3350 ORIENTATION_PREFERENCE_LANDSCAPE = 0x1,
3351 ORIENTATION_PREFERENCE_PORTRAIT = 0x2,
3352 ORIENTATION_PREFERENCE_LANDSCAPE_FLIPPED = 0x4,
3353 ORIENTATION_PREFERENCE_PORTRAIT_FLIPPED = 0x8
3354 } ORIENTATION_PREFERENCE;
3356 /* Touch input definitions */
3357 DECLARE_HANDLE(HTOUCHINPUT);
3359 typedef struct tagTOUCHINPUT {
3360 LONG x;
3361 LONG y;
3362 HANDLE hSource;
3363 DWORD dwID;
3364 DWORD dwFlags;
3365 DWORD dwMask;
3366 DWORD dwTime;
3367 ULONG_PTR dwExtraInfo;
3368 DWORD cxContact;
3369 DWORD cyContact;
3370 } TOUCHINPUT, *PTOUCHINPUT;
3371 typedef TOUCHINPUT const * PCTOUCHINPUT;
3373 /* Gesture definitions */
3374 DECLARE_HANDLE(HGESTUREINFO);
3376 typedef struct tagGESTUREINFO {
3377 UINT cbSize;
3378 DWORD dwFlags;
3379 DWORD dwID;
3380 HWND hwndTarget;
3381 POINTS ptsLocation;
3382 DWORD dwInstanceID;
3383 DWORD dwSequenceID;
3384 ULONGLONG ullArguments;
3385 UINT cbExtraArgs;
3386 } GESTUREINFO, *PGESTUREINFO;
3387 typedef GESTUREINFO const * PCGESTUREINFO;
3389 #define POINTER_DEVICE_PRODUCT_STRING_MAX 520
3391 typedef enum tagPOINTER_DEVICE_TYPE {
3392 POINTER_DEVICE_TYPE_INTEGRATED_PEN = 0x00000001,
3393 POINTER_DEVICE_TYPE_EXTERNAL_PEN = 0x00000002,
3394 POINTER_DEVICE_TYPE_TOUCH = 0x00000003,
3395 POINTER_DEVICE_TYPE_TOUCH_PAD = 0x00000004,
3396 POINTER_DEVICE_TYPE_MAX = 0xFFFFFFFF
3397 } POINTER_DEVICE_TYPE;
3399 typedef struct tagPOINTER_DEVICE_INFO {
3400 DWORD displayOrientation;
3401 HANDLE device;
3402 POINTER_DEVICE_TYPE pointerDeviceType;
3403 HMONITOR monitor;
3404 ULONG startingCursorId;
3405 USHORT maxActiveContacts;
3406 WCHAR productString[POINTER_DEVICE_PRODUCT_STRING_MAX];
3407 } POINTER_DEVICE_INFO;
3409 enum tagPOINTER_INPUT_TYPE
3411 PT_POINTER = 1,
3412 PT_TOUCH,
3413 PT_PEN,
3414 PT_MOUSE,
3415 PT_TOUCHPAD,
3417 typedef DWORD POINTER_INPUT_TYPE;
3419 typedef struct tagAUDIODESCRIPTION
3421 UINT cbSize;
3422 BOOL Enabled;
3423 LCID Locale;
3424 } AUDIODESCRIPTION, *LPAUDIODESCRIPTION;
3426 #if defined(_WINGDI_) && !defined(NOGDI)
3427 WINUSERAPI LONG WINAPI ChangeDisplaySettingsA(LPDEVMODEA,DWORD);
3428 WINUSERAPI LONG WINAPI ChangeDisplaySettingsW(LPDEVMODEW,DWORD);
3429 #define ChangeDisplaySettings WINELIB_NAME_AW(ChangeDisplaySettings)
3430 WINUSERAPI LONG WINAPI ChangeDisplaySettingsExA(LPCSTR,LPDEVMODEA,HWND,DWORD,LPVOID);
3431 WINUSERAPI LONG WINAPI ChangeDisplaySettingsExW(LPCWSTR,LPDEVMODEW,HWND,DWORD,LPVOID);
3432 #define ChangeDisplaySettingsEx WINELIB_NAME_AW(ChangeDisplaySettingsEx)
3433 WINUSERAPI HDESK WINAPI CreateDesktopA(LPCSTR,LPCSTR,LPDEVMODEA,DWORD,ACCESS_MASK,LPSECURITY_ATTRIBUTES);
3434 WINUSERAPI HDESK WINAPI CreateDesktopW(LPCWSTR,LPCWSTR,LPDEVMODEW,DWORD,ACCESS_MASK,LPSECURITY_ATTRIBUTES);
3435 #define CreateDesktop WINELIB_NAME_AW(CreateDesktop)
3436 WINUSERAPI LONG WINAPI DisplayConfigGetDeviceInfo(DISPLAYCONFIG_DEVICE_INFO_HEADER *);
3437 WINUSERAPI BOOL WINAPI EnumDisplayDevicesA(LPCSTR,DWORD,LPDISPLAY_DEVICEA,DWORD);
3438 WINUSERAPI BOOL WINAPI EnumDisplayDevicesW(LPCWSTR,DWORD,LPDISPLAY_DEVICEW,DWORD);
3439 #define EnumDisplayDevices WINELIB_NAME_AW(EnumDisplayDevices)
3440 WINUSERAPI BOOL WINAPI EnumDisplaySettingsA(LPCSTR,DWORD,LPDEVMODEA);
3441 WINUSERAPI BOOL WINAPI EnumDisplaySettingsW(LPCWSTR,DWORD,LPDEVMODEW);
3442 #define EnumDisplaySettings WINELIB_NAME_AW(EnumDisplaySettings)
3443 WINUSERAPI BOOL WINAPI EnumDisplaySettingsExA(LPCSTR,DWORD,LPDEVMODEA,DWORD);
3444 WINUSERAPI BOOL WINAPI EnumDisplaySettingsExW(LPCWSTR,DWORD,LPDEVMODEW,DWORD);
3445 #define EnumDisplaySettingsEx WINELIB_NAME_AW(EnumDisplaySettingsEx)
3446 WINUSERAPI LONG WINAPI GetDisplayConfigBufferSizes(UINT32,UINT32*,UINT32*);
3447 WINUSERAPI BOOL WINAPI UpdateLayeredWindow(HWND,HDC,POINT*,SIZE*,HDC,POINT*,COLORREF,BLENDFUNCTION*,DWORD);
3448 WINUSERAPI BOOL WINAPI UpdateLayeredWindowIndirect(HWND,UPDATELAYEREDWINDOWINFO const*);
3449 #endif /* defined(_WINGDI_) && !defined(NOGDI) */
3451 WINUSERAPI HKL WINAPI ActivateKeyboardLayout(HKL,UINT);
3452 WINUSERAPI BOOL WINAPI AddClipboardFormatListener(HWND);
3453 WINUSERAPI BOOL WINAPI AdjustWindowRect(LPRECT,DWORD,BOOL);
3454 WINUSERAPI BOOL WINAPI AdjustWindowRectEx(LPRECT,DWORD,BOOL,DWORD);
3455 WINUSERAPI BOOL WINAPI AdjustWindowRectExForDpi(RECT*,DWORD,BOOL,DWORD,UINT);
3456 WINUSERAPI BOOL WINAPI AllowSetForegroundWindow(DWORD);
3457 WINUSERAPI BOOL WINAPI AnimateWindow(HWND,DWORD,DWORD);
3458 #define AnsiLowerA CharLowerA
3459 #define AnsiLowerW CharLowerW
3460 #define AnsiLower WINELIB_NAME_AW(AnsiLower)
3461 #define AnsiLowerBuffA CharLowerBuffA
3462 #define AnsiLowerBuffW CharLowerBuffW
3463 #define AnsiLowerBuff WINELIB_NAME_AW(AnsiLowerBuff)
3464 #define AnsiNextA CharNextA
3465 #define AnsiNextW CharNextW
3466 #define AnsiNext WINELIB_NAME_AW(AnsiNext)
3467 #define AnsiPrevA CharPrevA
3468 #define AnsiPrevW CharPrevW
3469 #define AnsiPrev WINELIB_NAME_AW(AnsiPrev)
3470 #define AnsiUpperA CharUpperA
3471 #define AnsiUpperW CharUpperW
3472 #define AnsiUpper WINELIB_NAME_AW(AnsiUpper)
3473 #define AnsiUpperBuffA CharUpperBuffA
3474 #define AnsiUpperBuffW CharUpperBuffW
3475 #define AnsiUpperBuff WINELIB_NAME_AW(AnsiUpperBuff)
3476 WINUSERAPI BOOL WINAPI AnyPopup(void);
3477 WINUSERAPI BOOL WINAPI AppendMenuA(HMENU,UINT,UINT_PTR,LPCSTR);
3478 WINUSERAPI BOOL WINAPI AppendMenuW(HMENU,UINT,UINT_PTR,LPCWSTR);
3479 #define AppendMenu WINELIB_NAME_AW(AppendMenu)
3480 WINUSERAPI BOOL WINAPI AreDpiAwarenessContextsEqual(DPI_AWARENESS_CONTEXT,DPI_AWARENESS_CONTEXT);
3481 WINUSERAPI UINT WINAPI ArrangeIconicWindows(HWND);
3482 WINUSERAPI BOOL WINAPI AttachThreadInput(DWORD,DWORD,BOOL);
3483 WINUSERAPI HDWP WINAPI BeginDeferWindowPos(INT);
3484 WINUSERAPI HDC WINAPI BeginPaint(HWND,LPPAINTSTRUCT);
3485 WINUSERAPI BOOL WINAPI BlockInput(BOOL);
3486 WINUSERAPI BOOL WINAPI BringWindowToTop(HWND);
3487 WINUSERAPI LONG WINAPI BroadcastSystemMessageA(DWORD,LPDWORD,UINT,WPARAM,LPARAM);
3488 WINUSERAPI LONG WINAPI BroadcastSystemMessageW(DWORD,LPDWORD,UINT,WPARAM,LPARAM);
3489 #define BroadcastSystemMessage WINELIB_NAME_AW(BroadcastSystemMessage)
3490 WINUSERAPI LONG WINAPI BroadcastSystemMessageExA(DWORD,LPDWORD,UINT,WPARAM,LPARAM,PBSMINFO);
3491 WINUSERAPI LONG WINAPI BroadcastSystemMessageExW(DWORD,LPDWORD,UINT,WPARAM,LPARAM,PBSMINFO);
3492 #define BroadcastSystemMessageEx WINELIB_NAME_AW(BroadcastSystemMessageEx)
3493 WINUSERAPI void WINAPI CalcChildScroll(HWND, INT);
3494 WINUSERAPI BOOL WINAPI CallMsgFilterA(LPMSG,INT);
3495 WINUSERAPI BOOL WINAPI CallMsgFilterW(LPMSG,INT);
3496 #define CallMsgFilter WINELIB_NAME_AW(CallMsgFilter)
3497 WINUSERAPI LRESULT WINAPI CallNextHookEx(HHOOK,INT,WPARAM,LPARAM);
3498 WINUSERAPI LRESULT WINAPI CallWindowProcA(WNDPROC,HWND,UINT,WPARAM,LPARAM);
3499 WINUSERAPI LRESULT WINAPI CallWindowProcW(WNDPROC,HWND,UINT,WPARAM,LPARAM);
3500 #define CallWindowProc WINELIB_NAME_AW(CallWindowProc)
3501 WINUSERAPI WORD WINAPI CascadeWindows(HWND, UINT, const RECT *, UINT, const HWND *);
3502 WINUSERAPI BOOL WINAPI ChangeClipboardChain(HWND,HWND);
3503 WINUSERAPI BOOL WINAPI ChangeMenuA(HMENU,UINT,LPCSTR,UINT,UINT);
3504 WINUSERAPI BOOL WINAPI ChangeMenuW(HMENU,UINT,LPCWSTR,UINT,UINT);
3505 #define ChangeMenu WINELIB_NAME_AW(ChangeMenu)
3506 WINUSERAPI BOOL WINAPI ChangeWindowMessageFilter(UINT,DWORD);
3507 WINUSERAPI BOOL WINAPI ChangeWindowMessageFilterEx(HWND,UINT,DWORD,CHANGEFILTERSTRUCT*);
3508 WINUSERAPI LPSTR WINAPI CharLowerA(LPSTR);
3509 WINUSERAPI LPWSTR WINAPI CharLowerW(LPWSTR);
3510 #define CharLower WINELIB_NAME_AW(CharLower)
3511 WINUSERAPI DWORD WINAPI CharLowerBuffA(LPSTR,DWORD);
3512 WINUSERAPI DWORD WINAPI CharLowerBuffW(LPWSTR,DWORD);
3513 #define CharLowerBuff WINELIB_NAME_AW(CharLowerBuff)
3514 WINUSERAPI LPSTR WINAPI CharNextA(LPCSTR);
3515 WINUSERAPI LPWSTR WINAPI CharNextW(LPCWSTR);
3516 #define CharNext WINELIB_NAME_AW(CharNext)
3517 WINUSERAPI LPSTR WINAPI CharNextExA(WORD,LPCSTR,DWORD);
3518 /* no CharNextExW (doesn't make sense) */
3519 WINUSERAPI LPSTR WINAPI CharPrevA(LPCSTR,LPCSTR);
3520 WINUSERAPI LPWSTR WINAPI CharPrevW(LPCWSTR,LPCWSTR);
3521 #define CharPrev WINELIB_NAME_AW(CharPrev)
3522 WINUSERAPI LPSTR WINAPI CharPrevExA(WORD,LPCSTR,LPCSTR,DWORD);
3523 /* no CharPrevExW (doesn't make sense) */
3524 WINUSERAPI LPSTR WINAPI CharUpperA(LPSTR);
3525 WINUSERAPI LPWSTR WINAPI CharUpperW(LPWSTR);
3526 #define CharUpper WINELIB_NAME_AW(CharUpper)
3527 WINUSERAPI DWORD WINAPI CharUpperBuffA(LPSTR,DWORD);
3528 WINUSERAPI DWORD WINAPI CharUpperBuffW(LPWSTR,DWORD);
3529 #define CharUpperBuff WINELIB_NAME_AW(CharUpperBuff)
3530 WINUSERAPI BOOL WINAPI CharToOemA(LPCSTR,LPSTR);
3531 WINUSERAPI BOOL WINAPI CharToOemW(LPCWSTR,LPSTR);
3532 #define CharToOem WINELIB_NAME_AW(CharToOem)
3533 WINUSERAPI BOOL WINAPI CharToOemBuffA(LPCSTR,LPSTR,DWORD);
3534 WINUSERAPI BOOL WINAPI CharToOemBuffW(LPCWSTR,LPSTR,DWORD);
3535 #define CharToOemBuff WINELIB_NAME_AW(CharToOemBuff)
3536 WINUSERAPI BOOL WINAPI CheckDlgButton(HWND,INT,UINT);
3537 WINUSERAPI DWORD WINAPI CheckMenuItem(HMENU,UINT,UINT);
3538 WINUSERAPI BOOL WINAPI CheckMenuRadioItem(HMENU,UINT,UINT,UINT,UINT);
3539 WINUSERAPI BOOL WINAPI CheckRadioButton(HWND,int,int,int);
3540 WINUSERAPI HWND WINAPI ChildWindowFromPoint(HWND,POINT);
3541 WINUSERAPI HWND WINAPI ChildWindowFromPointEx(HWND,POINT,UINT);
3542 WINUSERAPI BOOL WINAPI ClientToScreen(HWND,LPPOINT);
3543 WINUSERAPI BOOL WINAPI ClipCursor(const RECT*);
3544 WINUSERAPI BOOL WINAPI CloseClipboard(void);
3545 WINUSERAPI BOOL WINAPI CloseDesktop(HDESK);
3546 WINUSERAPI BOOL WINAPI CloseTouchInputHandle(HTOUCHINPUT);
3547 WINUSERAPI BOOL WINAPI CloseWindow(HWND);
3548 WINUSERAPI BOOL WINAPI CloseWindowStation(HWINSTA);
3549 WINUSERAPI INT WINAPI CopyAcceleratorTableA(HACCEL,LPACCEL,INT);
3550 WINUSERAPI INT WINAPI CopyAcceleratorTableW(HACCEL,LPACCEL,INT);
3551 #define CopyAcceleratorTable WINELIB_NAME_AW(CopyAcceleratorTable)
3552 #define CopyCursor(cur) ((HCURSOR)CopyIcon((HICON)(cur)))
3553 WINUSERAPI HICON WINAPI CopyIcon(HICON);
3554 WINUSERAPI HANDLE WINAPI CopyImage(HANDLE,UINT,INT,INT,UINT);
3555 WINUSERAPI BOOL WINAPI CopyRect(RECT*,const RECT*);
3556 WINUSERAPI INT WINAPI CountClipboardFormats(void);
3557 WINUSERAPI HACCEL WINAPI CreateAcceleratorTableA(LPACCEL,INT);
3558 WINUSERAPI HACCEL WINAPI CreateAcceleratorTableW(LPACCEL,INT);
3559 #define CreateAcceleratorTable WINELIB_NAME_AW(CreateAcceleratorTable)
3560 WINUSERAPI HICON WINAPI CreateIconIndirect(PICONINFO);
3561 WINUSERAPI BOOL WINAPI CreateCaret(HWND,HBITMAP,INT,INT);
3562 WINUSERAPI HCURSOR WINAPI CreateCursor(HINSTANCE,INT,INT,INT,INT,LPCVOID,LPCVOID);
3563 #define CreateDialogA(inst,ptr,hwnd,dlg) CreateDialogParamA(inst,ptr,hwnd,dlg,0)
3564 #define CreateDialogW(inst,ptr,hwnd,dlg) CreateDialogParamW(inst,ptr,hwnd,dlg,0)
3565 #define CreateDialog WINELIB_NAME_AW(CreateDialog)
3566 #define CreateDialogIndirectA(inst,ptr,hwnd,dlg) CreateDialogIndirectParamA(inst,ptr,hwnd,dlg,0)
3567 #define CreateDialogIndirectW(inst,ptr,hwnd,dlg) CreateDialogIndirectParamW(inst,ptr,hwnd,dlg,0)
3568 #define CreateDialogIndirect WINELIB_NAME_AW(CreateDialogIndirect)
3569 WINUSERAPI HWND WINAPI CreateDialogIndirectParamA(HINSTANCE,LPCDLGTEMPLATEA,HWND,DLGPROC,LPARAM);
3570 WINUSERAPI HWND WINAPI CreateDialogIndirectParamW(HINSTANCE,LPCDLGTEMPLATEW,HWND,DLGPROC,LPARAM);
3571 #define CreateDialogIndirectParam WINELIB_NAME_AW(CreateDialogIndirectParam)
3572 WINUSERAPI HWND WINAPI CreateDialogParamA(HINSTANCE,LPCSTR,HWND,DLGPROC,LPARAM);
3573 WINUSERAPI HWND WINAPI CreateDialogParamW(HINSTANCE,LPCWSTR,HWND,DLGPROC,LPARAM);
3574 #define CreateDialogParam WINELIB_NAME_AW(CreateDialogParam)
3575 WINUSERAPI HICON WINAPI CreateIcon(HINSTANCE,INT,INT,BYTE,BYTE,LPCVOID,LPCVOID);
3576 WINUSERAPI HICON WINAPI CreateIconFromResource(LPBYTE,UINT,BOOL,DWORD);
3577 WINUSERAPI HICON WINAPI CreateIconFromResourceEx(LPBYTE,UINT,BOOL,DWORD,INT,INT,UINT);
3578 WINUSERAPI HMENU WINAPI CreateMenu(void);
3579 WINUSERAPI HMENU WINAPI CreatePopupMenu(void);
3580 #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)
3581 #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)
3582 #define CreateWindow WINELIB_NAME_AW(CreateWindow)
3583 WINUSERAPI HWND WINAPI CreateWindowExA(DWORD,LPCSTR,LPCSTR,DWORD,INT,INT,INT,INT,HWND,HMENU,HINSTANCE,LPVOID);
3584 WINUSERAPI HWND WINAPI CreateWindowExW(DWORD,LPCWSTR,LPCWSTR,DWORD,INT,INT,INT,INT,HWND,HMENU,HINSTANCE,LPVOID);
3585 #define CreateWindowEx WINELIB_NAME_AW(CreateWindowEx)
3586 WINUSERAPI HWINSTA WINAPI CreateWindowStationA(LPCSTR,DWORD,ACCESS_MASK,LPSECURITY_ATTRIBUTES);
3587 WINUSERAPI HWINSTA WINAPI CreateWindowStationW(LPCWSTR,DWORD,ACCESS_MASK,LPSECURITY_ATTRIBUTES);
3588 #define CreateWindowStation WINELIB_NAME_AW(CreateWindowStation)
3589 WINUSERAPI HWND WINAPI CreateMDIWindowA(LPCSTR,LPCSTR,DWORD,INT,INT,INT,INT,HWND,HINSTANCE,LPARAM);
3590 WINUSERAPI HWND WINAPI CreateMDIWindowW(LPCWSTR,LPCWSTR,DWORD,INT,INT,INT,INT,HWND,HINSTANCE,LPARAM);
3591 #define CreateMDIWindow WINELIB_NAME_AW(CreateMDIWindow)
3592 WINUSERAPI LRESULT WINAPI DefDlgProcA(HWND,UINT,WPARAM,LPARAM);
3593 WINUSERAPI LRESULT WINAPI DefDlgProcW(HWND,UINT,WPARAM,LPARAM);
3594 #define DefDlgProc WINELIB_NAME_AW(DefDlgProc)
3595 WINUSERAPI HDWP WINAPI DeferWindowPos(HDWP,HWND,HWND,INT,INT,INT,INT,UINT);
3596 WINUSERAPI LRESULT WINAPI DefFrameProcA(HWND,HWND,UINT,WPARAM,LPARAM);
3597 WINUSERAPI LRESULT WINAPI DefFrameProcW(HWND,HWND,UINT,WPARAM,LPARAM);
3598 #define DefFrameProc WINELIB_NAME_AW(DefFrameProc)
3599 #define DefHookProc(code,wparam,lparam,phhook) CallNextHookEx(*(phhook),code,wparam,lparam)
3600 WINUSERAPI LRESULT WINAPI DefMDIChildProcA(HWND,UINT,WPARAM,LPARAM);
3601 WINUSERAPI LRESULT WINAPI DefMDIChildProcW(HWND,UINT,WPARAM,LPARAM);
3602 #define DefMDIChildProc WINELIB_NAME_AW(DefMDIChildProc)
3603 WINUSERAPI LRESULT WINAPI DefRawInputProc(PRAWINPUT*,INT,UINT);
3604 WINUSERAPI LRESULT WINAPI DefWindowProcA(HWND,UINT,WPARAM,LPARAM);
3605 WINUSERAPI LRESULT WINAPI DefWindowProcW(HWND,UINT,WPARAM,LPARAM);
3606 #define DefWindowProc WINELIB_NAME_AW(DefWindowProc)
3607 WINUSERAPI BOOL WINAPI DeleteMenu(HMENU,UINT,UINT);
3608 WINUSERAPI BOOL WINAPI DeregisterShellHookWindow(HWND);
3609 WINUSERAPI BOOL WINAPI DestroyAcceleratorTable(HACCEL);
3610 WINUSERAPI BOOL WINAPI DestroyCaret(void);
3611 WINUSERAPI BOOL WINAPI DestroyCursor(HCURSOR);
3612 WINUSERAPI BOOL WINAPI DestroyIcon(HICON);
3613 WINUSERAPI BOOL WINAPI DestroyMenu(HMENU);
3614 WINUSERAPI BOOL WINAPI DestroyWindow(HWND);
3615 #define DialogBoxA(inst,template,owner,func) DialogBoxParamA(inst,template,owner,func,0)
3616 #define DialogBoxW(inst,template,owner,func) DialogBoxParamW(inst,template,owner,func,0)
3617 #define DialogBox WINELIB_NAME_AW(DialogBox)
3618 #define DialogBoxIndirectA(inst,template,owner,func) DialogBoxIndirectParamA(inst,template,owner,func,0)
3619 #define DialogBoxIndirectW(inst,template,owner,func) DialogBoxIndirectParamW(inst,template,owner,func,0)
3620 #define DialogBoxIndirect WINELIB_NAME_AW(DialogBoxIndirect)
3621 WINUSERAPI INT_PTR WINAPI DialogBoxIndirectParamA(HINSTANCE,LPCDLGTEMPLATEA,HWND,DLGPROC,LPARAM);
3622 WINUSERAPI INT_PTR WINAPI DialogBoxIndirectParamW(HINSTANCE,LPCDLGTEMPLATEW,HWND,DLGPROC,LPARAM);
3623 #define DialogBoxIndirectParam WINELIB_NAME_AW(DialogBoxIndirectParam)
3624 WINUSERAPI INT_PTR WINAPI DialogBoxParamA(HINSTANCE,LPCSTR,HWND,DLGPROC,LPARAM);
3625 WINUSERAPI INT_PTR WINAPI DialogBoxParamW(HINSTANCE,LPCWSTR,HWND,DLGPROC,LPARAM);
3626 #define DialogBoxParam WINELIB_NAME_AW(DialogBoxParam)
3627 WINUSERAPI VOID WINAPI DisableProcessWindowsGhosting(VOID);
3628 WINUSERAPI LRESULT WINAPI DispatchMessageA(const MSG*);
3629 WINUSERAPI LRESULT WINAPI DispatchMessageW(const MSG*);
3630 #define DispatchMessage WINELIB_NAME_AW(DispatchMessage)
3631 WINUSERAPI INT WINAPI DlgDirListA(HWND,LPSTR,INT,INT,UINT);
3632 WINUSERAPI INT WINAPI DlgDirListW(HWND,LPWSTR,INT,INT,UINT);
3633 #define DlgDirList WINELIB_NAME_AW(DlgDirList)
3634 WINUSERAPI INT WINAPI DlgDirListComboBoxA(HWND,LPSTR,INT,INT,UINT);
3635 WINUSERAPI INT WINAPI DlgDirListComboBoxW(HWND,LPWSTR,INT,INT,UINT);
3636 #define DlgDirListComboBox WINELIB_NAME_AW(DlgDirListComboBox)
3637 WINUSERAPI BOOL WINAPI DlgDirSelectComboBoxExA(HWND,LPSTR,INT,INT);
3638 WINUSERAPI BOOL WINAPI DlgDirSelectComboBoxExW(HWND,LPWSTR,INT,INT);
3639 #define DlgDirSelectComboBoxEx WINELIB_NAME_AW(DlgDirSelectComboBoxEx)
3640 WINUSERAPI BOOL WINAPI DlgDirSelectExA(HWND,LPSTR,INT,INT);
3641 WINUSERAPI BOOL WINAPI DlgDirSelectExW(HWND,LPWSTR,INT,INT);
3642 #define DlgDirSelectEx WINELIB_NAME_AW(DlgDirSelectEx)
3643 WINUSERAPI BOOL WINAPI DragDetect(HWND,POINT);
3644 WINUSERAPI DWORD WINAPI DragObject(HWND,HWND,UINT,ULONG_PTR,HCURSOR);
3645 WINUSERAPI BOOL WINAPI DrawAnimatedRects(HWND,int,const RECT*,const RECT*);
3646 WINUSERAPI BOOL WINAPI DrawCaption(HWND,HDC,const RECT*,UINT);
3647 WINUSERAPI BOOL WINAPI DrawCaptionTempA(HWND,HDC,const RECT*,HFONT,HICON,LPCSTR,UINT);
3648 WINUSERAPI BOOL WINAPI DrawCaptionTempW(HWND,HDC,const RECT*,HFONT,HICON,LPCWSTR,UINT);
3649 #define DrawCaptionTemp WINELIB_NAME_AW(DrawCaptionTemp)
3650 WINUSERAPI BOOL WINAPI DrawEdge(HDC,LPRECT,UINT,UINT);
3651 WINUSERAPI BOOL WINAPI DrawFocusRect(HDC,const RECT*);
3652 WINUSERAPI BOOL WINAPI DrawFrameControl(HDC,LPRECT,UINT,UINT);
3653 WINUSERAPI BOOL WINAPI DrawIcon(HDC,INT,INT,HICON);
3654 WINUSERAPI BOOL WINAPI DrawIconEx(HDC,INT,INT,HICON,INT,INT,UINT,HBRUSH,UINT);
3655 WINUSERAPI BOOL WINAPI DrawMenuBar(HWND);
3656 WINUSERAPI BOOL WINAPI DrawStateA(HDC,HBRUSH,DRAWSTATEPROC,LPARAM,WPARAM,INT,INT,INT,INT,UINT);
3657 WINUSERAPI BOOL WINAPI DrawStateW(HDC,HBRUSH,DRAWSTATEPROC,LPARAM,WPARAM,INT,INT,INT,INT,UINT);
3658 #define DrawState WINELIB_NAME_AW(DrawState)
3659 WINUSERAPI INT WINAPI DrawTextA(HDC,LPCSTR,INT,LPRECT,UINT);
3660 WINUSERAPI INT WINAPI DrawTextW(HDC,LPCWSTR,INT,LPRECT,UINT);
3661 #define DrawText WINELIB_NAME_AW(DrawText)
3662 WINUSERAPI INT WINAPI DrawTextExA(HDC,LPSTR,INT,LPRECT,UINT,LPDRAWTEXTPARAMS);
3663 WINUSERAPI INT WINAPI DrawTextExW(HDC,LPWSTR,INT,LPRECT,UINT,LPDRAWTEXTPARAMS);
3664 #define DrawTextEx WINELIB_NAME_AW(DrawTextEx)
3665 WINUSERAPI BOOL WINAPI EmptyClipboard(void);
3666 WINUSERAPI BOOL WINAPI EnableMenuItem(HMENU,UINT,UINT);
3667 WINUSERAPI BOOL WINAPI EnableMouseInPointer(BOOL);
3668 WINUSERAPI BOOL WINAPI EnableScrollBar(HWND,UINT,UINT);
3669 WINUSERAPI BOOL WINAPI EnableWindow(HWND,BOOL);
3670 WINUSERAPI BOOL WINAPI EndDeferWindowPos(HDWP);
3671 WINUSERAPI BOOL WINAPI EndDialog(HWND,INT_PTR);
3672 WINUSERAPI BOOL WINAPI EndMenu(void);
3673 WINUSERAPI BOOL WINAPI EndPaint(HWND,const PAINTSTRUCT*);
3674 WINUSERAPI BOOL WINAPI EnumChildWindows(HWND,WNDENUMPROC,LPARAM);
3675 WINUSERAPI UINT WINAPI EnumClipboardFormats(UINT);
3676 WINUSERAPI BOOL WINAPI EnumDesktopsA(HWINSTA,DESKTOPENUMPROCA,LPARAM);
3677 WINUSERAPI BOOL WINAPI EnumDesktopsW(HWINSTA,DESKTOPENUMPROCW,LPARAM);
3678 #define EnumDesktops WINELIB_NAME_AW(EnumDesktops)
3679 WINUSERAPI BOOL WINAPI EnumDesktopWindows(HDESK,WNDENUMPROC,LPARAM);
3680 WINUSERAPI BOOL WINAPI EnumDisplayMonitors(HDC,LPRECT,MONITORENUMPROC,LPARAM);
3681 WINUSERAPI INT WINAPI EnumPropsA(HWND,PROPENUMPROCA);
3682 WINUSERAPI INT WINAPI EnumPropsW(HWND,PROPENUMPROCW);
3683 #define EnumProps WINELIB_NAME_AW(EnumProps)
3684 WINUSERAPI INT WINAPI EnumPropsExA(HWND,PROPENUMPROCEXA,LPARAM);
3685 WINUSERAPI INT WINAPI EnumPropsExW(HWND,PROPENUMPROCEXW,LPARAM);
3686 #define EnumPropsEx WINELIB_NAME_AW(EnumPropsEx)
3687 WINUSERAPI BOOL WINAPI EnumThreadWindows(DWORD,WNDENUMPROC,LPARAM);
3688 WINUSERAPI BOOL WINAPI EnumWindows(WNDENUMPROC,LPARAM);
3689 WINUSERAPI BOOL WINAPI EnumWindowStationsA(WINSTAENUMPROCA,LPARAM);
3690 WINUSERAPI BOOL WINAPI EnumWindowStationsW(WINSTAENUMPROCW,LPARAM);
3691 #define EnumWindowStations WINELIB_NAME_AW(EnumWindowStations)
3692 WINUSERAPI INT WINAPI ExcludeUpdateRgn(HDC,HWND);
3693 #define ExitWindows(a,b) ExitWindowsEx(EWX_LOGOFF,0xffffffff)
3694 WINUSERAPI BOOL WINAPI ExitWindowsEx(UINT,DWORD);
3695 WINUSERAPI INT WINAPI FillRect(HDC,const RECT*,HBRUSH);
3696 WINUSERAPI HWND WINAPI FindWindowA(LPCSTR,LPCSTR);
3697 WINUSERAPI HWND WINAPI FindWindowW(LPCWSTR,LPCWSTR);
3698 #define FindWindow WINELIB_NAME_AW(FindWindow)
3699 WINUSERAPI HWND WINAPI FindWindowExA(HWND,HWND,LPCSTR,LPCSTR);
3700 WINUSERAPI HWND WINAPI FindWindowExW(HWND,HWND,LPCWSTR,LPCWSTR);
3701 #define FindWindowEx WINELIB_NAME_AW(FindWindowEx)
3702 WINUSERAPI BOOL WINAPI FlashWindow(HWND,BOOL);
3703 WINUSERAPI BOOL WINAPI FlashWindowEx(PFLASHWINFO);
3704 WINUSERAPI INT WINAPI FrameRect(HDC,const RECT*,HBRUSH);
3705 WINUSERAPI HWND WINAPI GetActiveWindow(void);
3706 WINUSERAPI BOOL WINAPI GetAltTabInfoA(HWND,INT,PALTTABINFO,LPSTR,UINT);
3707 WINUSERAPI BOOL WINAPI GetAltTabInfoW(HWND,INT,PALTTABINFO,LPWSTR,UINT);
3708 #define GetAltTabInfo WINELIB_NAME_AW(GetAltTabInfo)
3709 WINUSERAPI HWND WINAPI GetAncestor(HWND,UINT);
3710 WINUSERAPI DWORD WINAPI GetAppCompatFlags(HTASK);
3711 WINUSERAPI SHORT WINAPI GetAsyncKeyState(INT);
3712 WINUSERAPI BOOL WINAPI GetAutoRotationState(AR_STATE*);
3713 WINUSERAPI DPI_AWARENESS WINAPI GetAwarenessFromDpiAwarenessContext(DPI_AWARENESS_CONTEXT);
3714 WINUSERAPI HWND WINAPI GetCapture(void);
3715 WINUSERAPI UINT WINAPI GetCaretBlinkTime(void);
3716 WINUSERAPI BOOL WINAPI GetCaretPos(LPPOINT);
3717 WINUSERAPI BOOL WINAPI GetClassInfoA(HINSTANCE,LPCSTR,WNDCLASSA *);
3718 WINUSERAPI BOOL WINAPI GetClassInfoW(HINSTANCE,LPCWSTR,WNDCLASSW *);
3719 #define GetClassInfo WINELIB_NAME_AW(GetClassInfo)
3720 WINUSERAPI BOOL WINAPI GetClassInfoExA(HINSTANCE,LPCSTR,WNDCLASSEXA *);
3721 WINUSERAPI BOOL WINAPI GetClassInfoExW(HINSTANCE,LPCWSTR,WNDCLASSEXW *);
3722 #define GetClassInfoEx WINELIB_NAME_AW(GetClassInfoEx)
3723 WINUSERAPI DWORD WINAPI GetClassLongA(HWND,INT);
3724 WINUSERAPI DWORD WINAPI GetClassLongW(HWND,INT);
3725 #define GetClassLong WINELIB_NAME_AW(GetClassLong)
3726 #ifdef _WIN64
3727 WINUSERAPI ULONG_PTR WINAPI GetClassLongPtrA(HWND,INT);
3728 WINUSERAPI ULONG_PTR WINAPI GetClassLongPtrW(HWND,INT);
3729 #else
3730 #define GetClassLongPtrA GetClassLongA
3731 #define GetClassLongPtrW GetClassLongW
3732 #endif
3733 #define GetClassLongPtr WINELIB_NAME_AW(GetClassLongPtr)
3734 WINUSERAPI INT WINAPI GetClassNameA(HWND,LPSTR,INT);
3735 WINUSERAPI INT WINAPI GetClassNameW(HWND,LPWSTR,INT);
3736 #define GetClassName WINELIB_NAME_AW(GetClassName)
3737 WINUSERAPI WORD WINAPI GetClassWord(HWND,INT);
3738 WINUSERAPI BOOL WINAPI GetClientRect(HWND,LPRECT);
3739 WINUSERAPI HANDLE WINAPI GetClipboardData(UINT);
3740 WINUSERAPI INT WINAPI GetClipboardFormatNameA(UINT,LPSTR,INT);
3741 WINUSERAPI INT WINAPI GetClipboardFormatNameW(UINT,LPWSTR,INT);
3742 #define GetClipboardFormatName WINELIB_NAME_AW(GetClipboardFormatName)
3743 WINUSERAPI HWND WINAPI GetClipboardOwner(void);
3744 WINUSERAPI DWORD WINAPI GetClipboardSequenceNumber(VOID);
3745 WINUSERAPI HWND WINAPI GetClipboardViewer(void);
3746 WINUSERAPI BOOL WINAPI GetClipCursor(LPRECT);
3747 WINUSERAPI BOOL WINAPI GetComboBoxInfo(HWND,PCOMBOBOXINFO);
3748 WINUSERAPI BOOL WINAPI GetCurrentInputMessageSource(INPUT_MESSAGE_SOURCE*);
3749 WINUSERAPI HCURSOR WINAPI GetCursor(void);
3750 WINUSERAPI BOOL WINAPI GetCursorInfo(PCURSORINFO);
3751 WINUSERAPI HCURSOR WINAPI GetCursorFrameInfo(HCURSOR,DWORD,DWORD,DWORD*,DWORD*);
3752 WINUSERAPI BOOL WINAPI GetCursorPos(LPPOINT);
3753 WINUSERAPI HDC WINAPI GetDC(HWND);
3754 WINUSERAPI HDC WINAPI GetDCEx(HWND,HRGN,DWORD);
3755 WINUSERAPI HWND WINAPI GetDesktopWindow(void);
3756 WINUSERAPI DWORD WINAPI GetDialogBaseUnits(void);
3757 WINUSERAPI BOOL WINAPI GetDisplayAutoRotationPreferences(ORIENTATION_PREFERENCE*);
3758 WINUSERAPI INT WINAPI GetDlgCtrlID(HWND);
3759 WINUSERAPI HWND WINAPI GetDlgItem(HWND,INT);
3760 WINUSERAPI UINT WINAPI GetDlgItemInt(HWND,INT,BOOL*,BOOL);
3761 WINUSERAPI UINT WINAPI GetDlgItemTextA(HWND,INT,LPSTR,INT);
3762 WINUSERAPI UINT WINAPI GetDlgItemTextW(HWND,INT,LPWSTR,INT);
3763 #define GetDlgItemText WINELIB_NAME_AW(GetDlgItemText)
3764 WINUSERAPI UINT WINAPI GetDoubleClickTime(void);
3765 WINUSERAPI BOOL WINAPI GetDpiForMonitorInternal(HMONITOR,UINT,UINT*,UINT*);
3766 WINUSERAPI UINT WINAPI GetDpiForWindow(HWND);
3767 WINUSERAPI UINT WINAPI GetDpiForSystem(void);
3768 WINUSERAPI HWND WINAPI GetFocus(void);
3769 WINUSERAPI HWND WINAPI GetForegroundWindow(void);
3770 WINUSERAPI BOOL WINAPI GetGestureConfig(HWND,DWORD,DWORD,UINT*,GESTURECONFIG*,UINT);
3771 WINUSERAPI BOOL WINAPI GetGestureInfo(HGESTUREINFO,PGESTUREINFO);
3772 WINUSERAPI BOOL WINAPI GetGUIThreadInfo(DWORD,GUITHREADINFO*);
3773 WINUSERAPI DWORD WINAPI GetGuiResources(HANDLE,DWORD);
3774 WINUSERAPI BOOL WINAPI GetIconInfo(HICON,PICONINFO);
3775 WINUSERAPI BOOL WINAPI GetIconInfoExA(HICON,ICONINFOEXA*);
3776 WINUSERAPI BOOL WINAPI GetIconInfoExW(HICON,ICONINFOEXW*);
3777 #define GetIconInfoEx WINELIB_NAME_AW(GetIconInfoEx)
3778 WINUSERAPI BOOL WINAPI GetInputState(void);
3779 WINUSERAPI UINT WINAPI GetInternalWindowPos(HWND,LPRECT,LPPOINT);
3780 WINUSERAPI UINT WINAPI GetKBCodePage(void);
3781 WINUSERAPI HKL WINAPI GetKeyboardLayout(DWORD);
3782 WINUSERAPI UINT WINAPI GetKeyboardLayoutList(INT,HKL *);
3783 WINUSERAPI BOOL WINAPI GetKeyboardState(LPBYTE);
3784 WINUSERAPI INT WINAPI GetKeyboardType(INT);
3785 WINUSERAPI INT WINAPI GetKeyNameTextA(LONG,LPSTR,INT);
3786 WINUSERAPI INT WINAPI GetKeyNameTextW(LONG,LPWSTR,INT);
3787 #define GetKeyNameText WINELIB_NAME_AW(GetKeyNameText)
3788 WINUSERAPI BOOL WINAPI GetKeyboardLayoutNameA(LPSTR);
3789 WINUSERAPI BOOL WINAPI GetKeyboardLayoutNameW(LPWSTR);
3790 #define GetKeyboardLayoutName WINELIB_NAME_AW(GetKeyboardLayoutName)
3791 WINUSERAPI SHORT WINAPI GetKeyState(INT);
3792 WINUSERAPI HWND WINAPI GetLastActivePopup(HWND);
3793 WINUSERAPI BOOL WINAPI GetLastInputInfo(PLASTINPUTINFO);
3794 WINUSERAPI DWORD WINAPI GetListBoxInfo(HWND);
3795 WINUSERAPI UINT WINAPI GetRawInputBuffer(PRAWINPUT,PUINT,UINT);
3796 WINUSERAPI UINT WINAPI GetRawInputData(HRAWINPUT,UINT,LPVOID,PUINT,UINT);
3797 WINUSERAPI UINT WINAPI GetRawInputDeviceInfoA(HANDLE,UINT,LPVOID,PUINT);
3798 WINUSERAPI UINT WINAPI GetRawInputDeviceInfoW(HANDLE,UINT,LPVOID,PUINT);
3799 #define GetRawInputDeviceInfo WINELIB_NAME_AW(GetRawInputDeviceInfo)
3800 WINUSERAPI UINT WINAPI GetRawInputDeviceList(PRAWINPUTDEVICELIST,PUINT,UINT);
3801 WINUSERAPI UINT WINAPI GetRegisteredRawInputDevices(PRAWINPUTDEVICE,PUINT,UINT);
3802 WINUSERAPI BOOL WINAPI GetLayeredWindowAttributes(HWND,COLORREF*,BYTE*,DWORD*);
3803 WINUSERAPI HMENU WINAPI GetMenu(HWND);
3804 WINUSERAPI BOOL WINAPI GetMenuBarInfo(HWND,LONG,LONG,PMENUBARINFO);
3805 WINUSERAPI DWORD WINAPI GetMenuCheckMarkDimensions(void);
3806 WINUSERAPI DWORD WINAPI GetMenuContextHelpId(HMENU);
3807 WINUSERAPI UINT WINAPI GetMenuDefaultItem(HMENU,UINT,UINT);
3808 WINUSERAPI BOOL WINAPI GetMenuInfo(HMENU,LPMENUINFO);
3809 WINUSERAPI INT WINAPI GetMenuItemCount(HMENU);
3810 WINUSERAPI UINT WINAPI GetMenuItemID(HMENU,INT);
3811 WINUSERAPI BOOL WINAPI GetMenuItemInfoA(HMENU,UINT,BOOL,MENUITEMINFOA*);
3812 WINUSERAPI BOOL WINAPI GetMenuItemInfoW(HMENU,UINT,BOOL,MENUITEMINFOW*);
3813 #define GetMenuItemInfo WINELIB_NAME_AW(GetMenuItemInfo)
3814 WINUSERAPI BOOL WINAPI GetMenuItemRect(HWND,HMENU,UINT,LPRECT);
3815 WINUSERAPI UINT WINAPI GetMenuState(HMENU,UINT,UINT);
3816 WINUSERAPI INT WINAPI GetMenuStringA(HMENU,UINT,LPSTR,INT,UINT);
3817 WINUSERAPI INT WINAPI GetMenuStringW(HMENU,UINT,LPWSTR,INT,UINT);
3818 #define GetMenuString WINELIB_NAME_AW(GetMenuString)
3819 WINUSERAPI BOOL WINAPI GetMessageA(LPMSG,HWND,UINT,UINT);
3820 WINUSERAPI BOOL WINAPI GetMessageW(LPMSG,HWND,UINT,UINT);
3821 #define GetMessage WINELIB_NAME_AW(GetMessage)
3822 WINUSERAPI LPARAM WINAPI GetMessageExtraInfo(void);
3823 WINUSERAPI DWORD WINAPI GetMessagePos(void);
3824 WINUSERAPI LONG WINAPI GetMessageTime(void);
3825 WINUSERAPI BOOL WINAPI GetMonitorInfoA(HMONITOR,LPMONITORINFO);
3826 WINUSERAPI BOOL WINAPI GetMonitorInfoW(HMONITOR,LPMONITORINFO);
3827 #define GetMonitorInfo WINELIB_NAME_AW(GetMonitorInfo)
3828 WINUSERAPI HWND WINAPI GetNextDlgGroupItem(HWND,HWND,BOOL);
3829 WINUSERAPI HWND WINAPI GetNextDlgTabItem(HWND,HWND,BOOL);
3830 #define GetNextWindow GetWindow
3831 WINUSERAPI HWND WINAPI GetOpenClipboardWindow(void);
3832 WINUSERAPI HWND WINAPI GetParent(HWND);
3833 WINUSERAPI BOOL WINAPI GetPhysicalCursorPos(POINT*);
3834 WINUSERAPI INT WINAPI GetPriorityClipboardFormat(UINT*,INT);
3835 WINUSERAPI BOOL WINAPI GetProcessDefaultLayout(DWORD*);
3836 WINUSERAPI BOOL WINAPI GetProcessDpiAwarenessInternal(HANDLE,DPI_AWARENESS*);
3837 WINUSERAPI HANDLE WINAPI GetPropA(HWND,LPCSTR);
3838 WINUSERAPI HANDLE WINAPI GetPropW(HWND,LPCWSTR);
3839 #define GetProp WINELIB_NAME_AW(GetProp)
3840 WINUSERAPI DWORD WINAPI GetQueueStatus(UINT);
3841 WINUSERAPI BOOL WINAPI GetScrollInfo(HWND,INT,LPSCROLLINFO);
3842 WINUSERAPI BOOL WINAPI GetScrollBarInfo(HWND,LONG,LPSCROLLBARINFO);
3843 WINUSERAPI INT WINAPI GetScrollPos(HWND,INT);
3844 WINUSERAPI BOOL WINAPI GetScrollRange(HWND,INT,LPINT,LPINT);
3845 WINUSERAPI HWND WINAPI GetShellWindow(void);
3846 WINUSERAPI HMENU WINAPI GetSubMenu(HMENU,INT);
3847 WINUSERAPI HBRUSH WINAPI GetSysColorBrush(INT);
3848 #define GetSysModalWindow() ((HWND)0)
3849 WINUSERAPI HMENU WINAPI GetSystemMenu(HWND,BOOL);
3850 WINUSERAPI INT WINAPI GetSystemMetrics(INT);
3851 WINUSERAPI INT WINAPI GetSystemMetricsForDpi(INT,UINT);
3852 WINUSERAPI DWORD WINAPI GetTabbedTextExtentA(HDC,LPCSTR,INT,INT,const INT*);
3853 WINUSERAPI DWORD WINAPI GetTabbedTextExtentW(HDC,LPCWSTR,INT,INT,const INT*);
3854 #define GetTabbedTextExtent WINELIB_NAME_AW(GetTabbedTextExtent)
3855 WINUSERAPI BOOL WINAPI GetTitleBarInfo(HWND,PTITLEBARINFO);
3856 WINUSERAPI HDESK WINAPI GetThreadDesktop(DWORD);
3857 WINUSERAPI DPI_AWARENESS_CONTEXT WINAPI GetThreadDpiAwarenessContext(void);
3858 WINUSERAPI HWND WINAPI GetTopWindow(HWND);
3859 WINUSERAPI BOOL WINAPI GetTouchInputInfo(HTOUCHINPUT,UINT,TOUCHINPUT*,int);
3860 WINUSERAPI BOOL WINAPI GetUpdateRect(HWND,LPRECT,BOOL);
3861 WINUSERAPI INT WINAPI GetUpdateRgn(HWND,HRGN,BOOL);
3862 WINUSERAPI BOOL WINAPI GetUpdatedClipboardFormats(UINT*,UINT,UINT*);
3863 WINUSERAPI BOOL WINAPI GetUserObjectInformationA(HANDLE,INT,LPVOID,DWORD,LPDWORD);
3864 WINUSERAPI BOOL WINAPI GetUserObjectInformationW(HANDLE,INT,LPVOID,DWORD,LPDWORD);
3865 #define GetUserObjectInformation WINELIB_NAME_AW(GetUserObjectInformation)
3866 WINUSERAPI BOOL WINAPI GetUserObjectSecurity(HANDLE,PSECURITY_INFORMATION,PSECURITY_DESCRIPTOR,DWORD,LPDWORD);
3867 WINUSERAPI HWND WINAPI GetWindow(HWND,UINT);
3868 WINUSERAPI DWORD WINAPI GetWindowContextHelpId(HWND);
3869 WINUSERAPI HDC WINAPI GetWindowDC(HWND);
3870 WINUSERAPI BOOL WINAPI GetWindowDisplayAffinity(HWND,DWORD*);
3871 WINUSERAPI DPI_AWARENESS_CONTEXT WINAPI GetWindowDpiAwarenessContext(HWND);
3872 WINUSERAPI BOOL WINAPI GetWindowInfo(HWND, PWINDOWINFO);
3873 WINUSERAPI LONG WINAPI GetWindowLongA(HWND,INT);
3874 WINUSERAPI LONG WINAPI GetWindowLongW(HWND,INT);
3875 #define GetWindowLong WINELIB_NAME_AW(GetWindowLong)
3876 #ifdef _WIN64
3877 WINUSERAPI LONG_PTR WINAPI GetWindowLongPtrA(HWND,INT);
3878 WINUSERAPI LONG_PTR WINAPI GetWindowLongPtrW(HWND,INT);
3879 #else
3880 #define GetWindowLongPtrA GetWindowLongA
3881 #define GetWindowLongPtrW GetWindowLongW
3882 #endif
3883 #define GetWindowLongPtr WINELIB_NAME_AW(GetWindowLongPtr)
3884 WINUSERAPI UINT WINAPI GetWindowModuleFileNameA(HWND,LPSTR,UINT);
3885 WINUSERAPI UINT WINAPI GetWindowModuleFileNameW(HWND,LPWSTR,UINT);
3886 #define GetWindowModuleFileName WINELIB_NAME_AW(GetWindowModuleFileName)
3887 WINUSERAPI BOOL WINAPI GetWindowPlacement(HWND,LPWINDOWPLACEMENT);
3888 WINUSERAPI BOOL WINAPI GetWindowRect(HWND,LPRECT);
3889 WINUSERAPI INT WINAPI GetWindowRgnBox(HWND,LPRECT);
3890 WINUSERAPI INT WINAPI GetWindowRgn(HWND,HRGN);
3891 WINUSERAPI HWINSTA WINAPI GetProcessWindowStation(void);
3892 #define GetWindowTask(hwnd) ((HTASK)GetWindowThreadProcessId(hwnd,NULL))
3893 WINUSERAPI INT WINAPI GetWindowTextA(HWND,LPSTR,INT);
3894 WINUSERAPI INT WINAPI GetWindowTextW(HWND,LPWSTR,INT);
3895 #define GetWindowText WINELIB_NAME_AW(GetWindowText)
3896 WINUSERAPI INT WINAPI GetWindowTextLengthA(HWND);
3897 WINUSERAPI INT WINAPI GetWindowTextLengthW(HWND);
3898 #define GetWindowTextLength WINELIB_NAME_AW(GetWindowTextLength)
3899 WINUSERAPI DWORD WINAPI GetWindowThreadProcessId(HWND,LPDWORD);
3900 WINUSERAPI WORD WINAPI GetWindowWord(HWND,INT);
3901 WINUSERAPI BOOL WINAPI GrayStringA(HDC,HBRUSH,GRAYSTRINGPROC,LPARAM,INT,INT,INT,INT,INT);
3902 WINUSERAPI BOOL WINAPI GrayStringW(HDC,HBRUSH,GRAYSTRINGPROC,LPARAM,INT,INT,INT,INT,INT);
3903 #define GrayString WINELIB_NAME_AW(GrayString)
3904 WINUSERAPI BOOL WINAPI HideCaret(HWND);
3905 WINUSERAPI BOOL WINAPI HiliteMenuItem(HWND,HMENU,UINT,UINT);
3906 WINUSERAPI BOOL WINAPI InSendMessage(void);
3907 WINUSERAPI DWORD WINAPI InSendMessageEx(LPVOID);
3908 WINUSERAPI BOOL WINAPI InsertMenuA(HMENU,UINT,UINT,UINT_PTR,LPCSTR);
3909 WINUSERAPI BOOL WINAPI InsertMenuW(HMENU,UINT,UINT,UINT_PTR,LPCWSTR);
3910 #define InsertMenu WINELIB_NAME_AW(InsertMenu)
3911 WINUSERAPI BOOL WINAPI InsertMenuItemA(HMENU,UINT,BOOL,const MENUITEMINFOA*);
3912 WINUSERAPI BOOL WINAPI InsertMenuItemW(HMENU,UINT,BOOL,const MENUITEMINFOW*);
3913 #define InsertMenuItem WINELIB_NAME_AW(InsertMenuItem)
3914 WINUSERAPI INT WINAPI InternalGetWindowText(HWND,LPWSTR,INT);
3915 WINUSERAPI BOOL WINAPI IntersectRect(LPRECT,const RECT*,const RECT*);
3916 WINUSERAPI BOOL WINAPI InvalidateRect(HWND,const RECT*,BOOL);
3917 WINUSERAPI BOOL WINAPI InvalidateRgn(HWND,HRGN,BOOL);
3918 WINUSERAPI BOOL WINAPI InvertRect(HDC,const RECT*);
3919 WINUSERAPI BOOL WINAPI IsCharAlphaA(CHAR);
3920 WINUSERAPI BOOL WINAPI IsCharAlphaW(WCHAR);
3921 #define IsCharAlpha WINELIB_NAME_AW(IsCharAlpha)
3922 WINUSERAPI BOOL WINAPI IsCharAlphaNumericA(CHAR);
3923 WINUSERAPI BOOL WINAPI IsCharAlphaNumericW(WCHAR);
3924 #define IsCharAlphaNumeric WINELIB_NAME_AW(IsCharAlphaNumeric)
3925 WINUSERAPI BOOL WINAPI IsCharLowerA(CHAR);
3926 WINUSERAPI BOOL WINAPI IsCharLowerW(WCHAR);
3927 #define IsCharLower WINELIB_NAME_AW(IsCharLower)
3928 WINUSERAPI BOOL WINAPI IsCharUpperA(CHAR);
3929 WINUSERAPI BOOL WINAPI IsCharUpperW(WCHAR);
3930 #define IsCharUpper WINELIB_NAME_AW(IsCharUpper)
3931 WINUSERAPI BOOL WINAPI IsChild(HWND,HWND);
3932 WINUSERAPI BOOL WINAPI IsClipboardFormatAvailable(UINT);
3933 WINUSERAPI BOOL WINAPI IsDialogMessageA(HWND,LPMSG);
3934 WINUSERAPI BOOL WINAPI IsDialogMessageW(HWND,LPMSG);
3935 #define IsDialogMessage WINELIB_NAME_AW(IsDialogMessage)
3936 WINUSERAPI UINT WINAPI IsDlgButtonChecked(HWND,int);
3937 WINUSERAPI BOOL WINAPI IsGUIThread(BOOL);
3938 WINUSERAPI BOOL WINAPI IsHungAppWindow(HWND);
3939 WINUSERAPI BOOL WINAPI IsIconic(HWND);
3940 WINUSERAPI BOOL WINAPI IsMenu(HMENU);
3941 WINUSERAPI BOOL WINAPI IsProcessDPIAware(void);
3942 WINUSERAPI BOOL WINAPI IsTouchWindow(HWND,PULONG);
3943 WINUSERAPI BOOL WINAPI IsValidDpiAwarenessContext(DPI_AWARENESS_CONTEXT);
3944 WINUSERAPI BOOL WINAPI IsWinEventHookInstalled(DWORD);
3945 WINUSERAPI BOOL WINAPI IsWindow(HWND);
3946 WINUSERAPI BOOL WINAPI IsWindowEnabled(HWND);
3947 WINUSERAPI BOOL WINAPI IsWindowUnicode(HWND);
3948 WINUSERAPI BOOL WINAPI IsWindowVisible(HWND);
3949 WINUSERAPI BOOL WINAPI IsZoomed(HWND);
3950 WINUSERAPI BOOL WINAPI KillSystemTimer(HWND,UINT_PTR);
3951 WINUSERAPI BOOL WINAPI KillTimer(HWND,UINT_PTR);
3952 WINUSERAPI HACCEL WINAPI LoadAcceleratorsA(HINSTANCE,LPCSTR);
3953 WINUSERAPI HACCEL WINAPI LoadAcceleratorsW(HINSTANCE,LPCWSTR);
3954 #define LoadAccelerators WINELIB_NAME_AW(LoadAccelerators)
3955 WINUSERAPI HBITMAP WINAPI LoadBitmapA(HINSTANCE,LPCSTR);
3956 WINUSERAPI HBITMAP WINAPI LoadBitmapW(HINSTANCE,LPCWSTR);
3957 #define LoadBitmap WINELIB_NAME_AW(LoadBitmap)
3958 WINUSERAPI HCURSOR WINAPI LoadCursorA(HINSTANCE,LPCSTR);
3959 WINUSERAPI HCURSOR WINAPI LoadCursorW(HINSTANCE,LPCWSTR);
3960 #define LoadCursor WINELIB_NAME_AW(LoadCursor)
3961 WINUSERAPI HCURSOR WINAPI LoadCursorFromFileA(LPCSTR);
3962 WINUSERAPI HCURSOR WINAPI LoadCursorFromFileW(LPCWSTR);
3963 #define LoadCursorFromFile WINELIB_NAME_AW(LoadCursorFromFile)
3964 WINUSERAPI HICON WINAPI LoadIconA(HINSTANCE,LPCSTR);
3965 WINUSERAPI HICON WINAPI LoadIconW(HINSTANCE,LPCWSTR);
3966 #define LoadIcon WINELIB_NAME_AW(LoadIcon)
3967 WINUSERAPI HANDLE WINAPI LoadImageA(HINSTANCE,LPCSTR,UINT,INT,INT,UINT);
3968 WINUSERAPI HANDLE WINAPI LoadImageW(HINSTANCE,LPCWSTR,UINT,INT,INT,UINT);
3969 #define LoadImage WINELIB_NAME_AW(LoadImage)
3970 WINUSERAPI HKL WINAPI LoadKeyboardLayoutA(LPCSTR,UINT);
3971 WINUSERAPI HKL WINAPI LoadKeyboardLayoutW(LPCWSTR,UINT);
3972 #define LoadKeyboardLayout WINELIB_NAME_AW(LoadKeyboardLayout)
3973 WINUSERAPI HMENU WINAPI LoadMenuA(HINSTANCE,LPCSTR);
3974 WINUSERAPI HMENU WINAPI LoadMenuW(HINSTANCE,LPCWSTR);
3975 #define LoadMenu WINELIB_NAME_AW(LoadMenu)
3976 WINUSERAPI HMENU WINAPI LoadMenuIndirectA(LPCVOID);
3977 WINUSERAPI HMENU WINAPI LoadMenuIndirectW(LPCVOID);
3978 #define LoadMenuIndirect WINELIB_NAME_AW(LoadMenuIndirect)
3979 WINUSERAPI INT WINAPI LoadStringA(HINSTANCE,UINT,LPSTR,INT);
3980 WINUSERAPI INT WINAPI LoadStringW(HINSTANCE,UINT,LPWSTR,INT);
3981 #define LoadString WINELIB_NAME_AW(LoadString)
3982 WINUSERAPI BOOL WINAPI LogicalToPhysicalPoint(HWND,POINT*);
3983 WINUSERAPI BOOL WINAPI LogicalToPhysicalPointForPerMonitorDPI(HWND,POINT*);
3984 WINUSERAPI BOOL WINAPI LockSetForegroundWindow(UINT);
3985 WINUSERAPI BOOL WINAPI LockWindowUpdate(HWND);
3986 WINUSERAPI BOOL WINAPI LockWorkStation(void);
3987 WINUSERAPI INT WINAPI LookupIconIdFromDirectory(LPBYTE,BOOL);
3988 WINUSERAPI INT WINAPI LookupIconIdFromDirectoryEx(LPBYTE,BOOL,INT,INT,UINT);
3989 WINUSERAPI UINT WINAPI MapVirtualKeyA(UINT,UINT);
3990 WINUSERAPI UINT WINAPI MapVirtualKeyW(UINT,UINT);
3991 #define MapVirtualKey WINELIB_NAME_AW(MapVirtualKey)
3992 WINUSERAPI UINT WINAPI MapVirtualKeyExA(UINT,UINT,HKL);
3993 WINUSERAPI UINT WINAPI MapVirtualKeyExW(UINT,UINT,HKL);
3994 #define MapVirtualKeyEx WINELIB_NAME_AW(MapVirtualKeyEx)
3995 WINUSERAPI BOOL WINAPI MapDialogRect(HWND,LPRECT);
3996 WINUSERAPI INT WINAPI MapWindowPoints(HWND,HWND,LPPOINT,UINT);
3997 WINUSERAPI INT WINAPI MenuItemFromPoint(HWND,HMENU,POINT);
3998 WINUSERAPI BOOL WINAPI MessageBeep(UINT);
3999 WINUSERAPI INT WINAPI MessageBoxA(HWND,LPCSTR,LPCSTR,UINT);
4000 WINUSERAPI INT WINAPI MessageBoxW(HWND,LPCWSTR,LPCWSTR,UINT);
4001 #define MessageBox WINELIB_NAME_AW(MessageBox)
4002 WINUSERAPI INT WINAPI MessageBoxExA(HWND,LPCSTR,LPCSTR,UINT,WORD);
4003 WINUSERAPI INT WINAPI MessageBoxExW(HWND,LPCWSTR,LPCWSTR,UINT,WORD);
4004 #define MessageBoxEx WINELIB_NAME_AW(MessageBoxEx)
4005 WINUSERAPI INT WINAPI MessageBoxIndirectA(LPMSGBOXPARAMSA);
4006 WINUSERAPI INT WINAPI MessageBoxIndirectW(LPMSGBOXPARAMSW);
4007 #define MessageBoxIndirect WINELIB_NAME_AW(MessageBoxIndirect)
4008 WINUSERAPI BOOL WINAPI ModifyMenuA(HMENU,UINT,UINT,UINT_PTR,LPCSTR);
4009 WINUSERAPI BOOL WINAPI ModifyMenuW(HMENU,UINT,UINT,UINT_PTR,LPCWSTR);
4010 #define ModifyMenu WINELIB_NAME_AW(ModifyMenu)
4011 WINUSERAPI HMONITOR WINAPI MonitorFromPoint(POINT,DWORD);
4012 WINUSERAPI HMONITOR WINAPI MonitorFromRect(const RECT*,DWORD);
4013 WINUSERAPI HMONITOR WINAPI MonitorFromWindow(HWND,DWORD);
4014 WINUSERAPI BOOL WINAPI MoveWindow(HWND,INT,INT,INT,INT,BOOL);
4015 WINUSERAPI DWORD WINAPI MsgWaitForMultipleObjects(DWORD,const HANDLE*,BOOL,DWORD,DWORD);
4016 WINUSERAPI DWORD WINAPI MsgWaitForMultipleObjectsEx(DWORD,const HANDLE*,DWORD,DWORD,DWORD);
4017 WINUSERAPI VOID WINAPI NotifyWinEvent(DWORD,HWND,LONG,LONG);
4018 WINUSERAPI DWORD WINAPI OemKeyScan(WORD);
4019 WINUSERAPI BOOL WINAPI OemToCharA(LPCSTR,LPSTR);
4020 WINUSERAPI BOOL WINAPI OemToCharW(LPCSTR,LPWSTR);
4021 #define OemToChar WINELIB_NAME_AW(OemToChar)
4022 WINUSERAPI BOOL WINAPI OemToCharBuffA(LPCSTR,LPSTR,DWORD);
4023 WINUSERAPI BOOL WINAPI OemToCharBuffW(LPCSTR,LPWSTR,DWORD);
4024 #define OemToCharBuff WINELIB_NAME_AW(OemToCharBuff)
4025 WINUSERAPI BOOL WINAPI OpenClipboard(HWND);
4026 WINUSERAPI HDESK WINAPI OpenDesktopA(LPCSTR,DWORD,BOOL,ACCESS_MASK);
4027 WINUSERAPI HDESK WINAPI OpenDesktopW(LPCWSTR,DWORD,BOOL,ACCESS_MASK);
4028 #define OpenDesktop WINELIB_NAME_AW(OpenDesktop)
4029 WINUSERAPI BOOL WINAPI OpenIcon(HWND);
4030 WINUSERAPI HDESK WINAPI OpenInputDesktop(DWORD,BOOL,ACCESS_MASK);
4031 WINUSERAPI HWINSTA WINAPI OpenWindowStationA(LPCSTR,BOOL,ACCESS_MASK);
4032 WINUSERAPI HWINSTA WINAPI OpenWindowStationW(LPCWSTR,BOOL,ACCESS_MASK);
4033 #define OpenWindowStation WINELIB_NAME_AW(OpenWindowStation)
4034 WINUSERAPI BOOL WINAPI PaintDesktop(HDC);
4035 WINUSERAPI BOOL WINAPI PeekMessageA(LPMSG,HWND,UINT,UINT,UINT);
4036 WINUSERAPI BOOL WINAPI PeekMessageW(LPMSG,HWND,UINT,UINT,UINT);
4037 #define PeekMessage WINELIB_NAME_AW(PeekMessage)
4038 WINUSERAPI BOOL WINAPI PhysicalToLogicalPoint(HWND,POINT*);
4039 WINUSERAPI BOOL WINAPI PhysicalToLogicalPointForPerMonitorDPI(HWND,POINT*);
4040 #define PostAppMessageA(thread,msg,wparam,lparam) PostThreadMessageA((DWORD)(thread),msg,wparam,lparam)
4041 #define PostAppMessageW(thread,msg,wparam,lparam) PostThreadMessageW((DWORD)(thread),msg,wparam,lparam)
4042 #define PostAppMessage WINELIB_NAME_AW(PostAppMessage)
4043 WINUSERAPI BOOL WINAPI PostMessageA(HWND,UINT,WPARAM,LPARAM);
4044 WINUSERAPI BOOL WINAPI PostMessageW(HWND,UINT,WPARAM,LPARAM);
4045 #define PostMessage WINELIB_NAME_AW(PostMessage)
4046 WINUSERAPI void WINAPI PostQuitMessage(INT);
4047 WINUSERAPI BOOL WINAPI PostThreadMessageA(DWORD,UINT,WPARAM,LPARAM);
4048 WINUSERAPI BOOL WINAPI PostThreadMessageW(DWORD,UINT,WPARAM,LPARAM);
4049 #define PostThreadMessage WINELIB_NAME_AW(PostThreadMessage)
4050 WINUSERAPI BOOL WINAPI PrintWindow(HWND,HDC,UINT);
4051 WINUSERAPI UINT WINAPI PrivateExtractIconExA(LPCSTR,int,HICON*,HICON*,UINT);
4052 WINUSERAPI UINT WINAPI PrivateExtractIconExW(LPCWSTR,int,HICON*,HICON*,UINT);
4053 WINUSERAPI UINT WINAPI PrivateExtractIconsA(LPCSTR,int,int,int,HICON*,UINT*,UINT,UINT);
4054 WINUSERAPI UINT WINAPI PrivateExtractIconsW(LPCWSTR,int,int,int,HICON*,UINT*,UINT,UINT);
4055 WINUSERAPI HWND WINAPI RealChildWindowFromPoint(HWND,POINT);
4056 WINUSERAPI UINT WINAPI RealGetWindowClassA(HWND,LPSTR,UINT);
4057 WINUSERAPI UINT WINAPI RealGetWindowClassW(HWND,LPWSTR,UINT);
4058 #define RealGetWindowClass WINELIB_NAME_AW(RealGetWindowClass)
4059 WINUSERAPI BOOL WINAPI RedrawWindow(HWND,const RECT*,HRGN,UINT);
4060 WINUSERAPI ATOM WINAPI RegisterClassA(const WNDCLASSA *);
4061 WINUSERAPI ATOM WINAPI RegisterClassW(const WNDCLASSW *);
4062 #define RegisterClass WINELIB_NAME_AW(RegisterClass)
4063 WINUSERAPI ATOM WINAPI RegisterClassExA(const WNDCLASSEXA *);
4064 WINUSERAPI ATOM WINAPI RegisterClassExW(const WNDCLASSEXW *);
4065 #define RegisterClassEx WINELIB_NAME_AW(RegisterClassEx)
4066 WINUSERAPI UINT WINAPI RegisterClipboardFormatA(LPCSTR);
4067 WINUSERAPI UINT WINAPI RegisterClipboardFormatW(LPCWSTR);
4068 #define RegisterClipboardFormat WINELIB_NAME_AW(RegisterClipboardFormat)
4069 WINUSERAPI HDEVNOTIFY WINAPI RegisterDeviceNotificationA(HANDLE,LPVOID,DWORD);
4070 WINUSERAPI HDEVNOTIFY WINAPI RegisterDeviceNotificationW(HANDLE,LPVOID,DWORD);
4071 #define RegisterDeviceNotification WINELIB_NAME_AW(RegisterDeviceNotification)
4072 WINUSERAPI BOOL WINAPI RegisterHotKey(HWND,INT,UINT,UINT);
4073 WINUSERAPI BOOL WINAPI RegisterPointerDeviceNotifications(HWND,BOOL);
4074 WINUSERAPI HPOWERNOTIFY WINAPI RegisterPowerSettingNotification(HANDLE,LPCGUID,DWORD);
4075 WINUSERAPI BOOL WINAPI RegisterRawInputDevices(PRAWINPUTDEVICE,UINT,UINT);
4076 WINUSERAPI BOOL WINAPI RegisterShellHookWindow(HWND);
4077 WINUSERAPI BOOL WINAPI RegisterTouchWindow(HWND,ULONG);
4078 WINUSERAPI UINT WINAPI RegisterWindowMessageA(LPCSTR);
4079 WINUSERAPI UINT WINAPI RegisterWindowMessageW(LPCWSTR);
4080 #define RegisterWindowMessage WINELIB_NAME_AW(RegisterWindowMessage)
4081 WINUSERAPI BOOL WINAPI ReleaseCapture(void);
4082 WINUSERAPI INT WINAPI ReleaseDC(HWND,HDC);
4083 WINUSERAPI BOOL WINAPI RemoveClipboardFormatListener(HWND);
4084 WINUSERAPI BOOL WINAPI RemoveMenu(HMENU,UINT,UINT);
4085 WINUSERAPI HANDLE WINAPI RemovePropA(HWND,LPCSTR);
4086 WINUSERAPI HANDLE WINAPI RemovePropW(HWND,LPCWSTR);
4087 #define RemoveProp WINELIB_NAME_AW(RemoveProp)
4088 WINUSERAPI BOOL WINAPI ReplyMessage(LRESULT);
4089 WINUSERAPI BOOL WINAPI ScreenToClient(HWND,LPPOINT);
4090 WINUSERAPI VOID WINAPI ScrollChildren(HWND,UINT,WPARAM,LPARAM);
4091 WINUSERAPI BOOL WINAPI ScrollDC(HDC,INT,INT,const RECT*,const RECT*,HRGN,LPRECT);
4092 WINUSERAPI BOOL WINAPI ScrollWindow(HWND,INT,INT,const RECT*,const RECT*);
4093 WINUSERAPI INT WINAPI ScrollWindowEx(HWND,INT,INT,const RECT*,const RECT*,HRGN,LPRECT,UINT);
4094 WINUSERAPI LRESULT WINAPI SendDlgItemMessageA(HWND,INT,UINT,WPARAM,LPARAM);
4095 WINUSERAPI LRESULT WINAPI SendDlgItemMessageW(HWND,INT,UINT,WPARAM,LPARAM);
4096 #define SendDlgItemMessage WINELIB_NAME_AW(SendDlgItemMessage)
4097 WINUSERAPI UINT WINAPI SendInput(UINT,LPINPUT,int);
4098 WINUSERAPI LRESULT WINAPI SendMessageA(HWND,UINT,WPARAM,LPARAM);
4099 WINUSERAPI LRESULT WINAPI SendMessageW(HWND,UINT,WPARAM,LPARAM);
4100 #define SendMessage WINELIB_NAME_AW(SendMessage)
4101 WINUSERAPI BOOL WINAPI SendMessageCallbackA(HWND,UINT,WPARAM,LPARAM,SENDASYNCPROC,ULONG_PTR);
4102 WINUSERAPI BOOL WINAPI SendMessageCallbackW(HWND,UINT,WPARAM,LPARAM,SENDASYNCPROC,ULONG_PTR);
4103 #define SendMessageCallback WINELIB_NAME_AW(SendMessageCallback)
4104 WINUSERAPI LRESULT WINAPI SendMessageTimeoutA(HWND,UINT,WPARAM,LPARAM,UINT,UINT,PDWORD_PTR);
4105 WINUSERAPI LRESULT WINAPI SendMessageTimeoutW(HWND,UINT,WPARAM,LPARAM,UINT,UINT,PDWORD_PTR);
4106 #define SendMessageTimeout WINELIB_NAME_AW(SendMessageTimeout)
4107 WINUSERAPI BOOL WINAPI SendNotifyMessageA(HWND,UINT,WPARAM,LPARAM);
4108 WINUSERAPI BOOL WINAPI SendNotifyMessageW(HWND,UINT,WPARAM,LPARAM);
4109 #define SendNotifyMessage WINELIB_NAME_AW(SendNotifyMessage)
4110 WINUSERAPI HWND WINAPI SetActiveWindow(HWND);
4111 WINUSERAPI HWND WINAPI SetCapture(HWND);
4112 WINUSERAPI BOOL WINAPI SetCaretBlinkTime(UINT);
4113 WINUSERAPI BOOL WINAPI SetCaretPos(INT,INT);
4114 WINUSERAPI DWORD WINAPI SetClassLongA(HWND,INT,LONG);
4115 WINUSERAPI DWORD WINAPI SetClassLongW(HWND,INT,LONG);
4116 #define SetClassLong WINELIB_NAME_AW(SetClassLong)
4117 #ifdef _WIN64
4118 WINUSERAPI ULONG_PTR WINAPI SetClassLongPtrA(HWND,INT,LONG_PTR);
4119 WINUSERAPI ULONG_PTR WINAPI SetClassLongPtrW(HWND,INT,LONG_PTR);
4120 #else
4121 #define SetClassLongPtrA SetClassLongA
4122 #define SetClassLongPtrW SetClassLongW
4123 #endif
4124 #define SetClassLongPtr WINELIB_NAME_AW(SetClassLongPtr)
4125 WINUSERAPI WORD WINAPI SetClassWord(HWND,INT,WORD);
4126 WINUSERAPI HANDLE WINAPI SetClipboardData(UINT,HANDLE);
4127 WINUSERAPI HWND WINAPI SetClipboardViewer(HWND);
4128 WINUSERAPI UINT_PTR WINAPI SetCoalescableTimer(HWND,UINT_PTR,UINT,TIMERPROC,ULONG);
4129 WINUSERAPI HCURSOR WINAPI SetCursor(HCURSOR);
4130 WINUSERAPI BOOL WINAPI SetCursorPos(INT,INT);
4131 WINUSERAPI VOID WINAPI SetDebugErrorLevel(DWORD);
4132 WINUSERAPI BOOL WINAPI SetDeskWallPaper(LPCSTR);
4133 WINUSERAPI BOOL WINAPI SetDlgItemInt(HWND,INT,UINT,BOOL);
4134 WINUSERAPI BOOL WINAPI SetDlgItemTextA(HWND,INT,LPCSTR);
4135 WINUSERAPI BOOL WINAPI SetDlgItemTextW(HWND,INT,LPCWSTR);
4136 #define SetDlgItemText WINELIB_NAME_AW(SetDlgItemText)
4137 WINUSERAPI BOOL WINAPI SetDoubleClickTime(UINT);
4138 WINUSERAPI HWND WINAPI SetFocus(HWND);
4139 WINUSERAPI BOOL WINAPI SetForegroundWindow(HWND);
4140 WINUSERAPI BOOL WINAPI SetGestureConfig(HWND,DWORD,UINT,PGESTURECONFIG,UINT);
4141 WINUSERAPI void WINAPI SetInternalWindowPos(HWND,UINT,LPRECT,LPPOINT);
4142 WINUSERAPI BOOL WINAPI SetKeyboardState(LPBYTE);
4143 WINUSERAPI VOID WINAPI SetLastErrorEx(DWORD,DWORD);
4144 WINUSERAPI BOOL WINAPI SetLayeredWindowAttributes(HWND,COLORREF,BYTE,DWORD);
4145 WINUSERAPI BOOL WINAPI SetMenu(HWND,HMENU);
4146 WINUSERAPI BOOL WINAPI SetMenuContextHelpId(HMENU,DWORD);
4147 WINUSERAPI BOOL WINAPI SetMenuDefaultItem(HMENU,UINT,UINT);
4148 WINUSERAPI BOOL WINAPI SetMenuInfo(HMENU,LPCMENUINFO);
4149 WINUSERAPI BOOL WINAPI SetMenuItemBitmaps(HMENU,UINT,UINT,HBITMAP,HBITMAP);
4150 WINUSERAPI BOOL WINAPI SetMenuItemInfoA(HMENU,UINT,BOOL,const MENUITEMINFOA*);
4151 WINUSERAPI BOOL WINAPI SetMenuItemInfoW(HMENU,UINT,BOOL,const MENUITEMINFOW*);
4152 #define SetMenuItemInfo WINELIB_NAME_AW(SetMenuItemInfo)
4153 WINUSERAPI LPARAM WINAPI SetMessageExtraInfo(LPARAM);
4154 WINUSERAPI BOOL WINAPI SetMessageQueue(INT);
4155 WINUSERAPI HWND WINAPI SetParent(HWND,HWND);
4156 WINUSERAPI BOOL WINAPI SetPhysicalCursorPos(INT,INT);
4157 WINUSERAPI BOOL WINAPI SetProcessDPIAware(void);
4158 WINUSERAPI BOOL WINAPI SetProcessDefaultLayout(DWORD);
4159 WINUSERAPI BOOL WINAPI SetProcessDpiAwarenessContext(DPI_AWARENESS_CONTEXT);
4160 WINUSERAPI BOOL WINAPI SetProcessDpiAwarenessInternal(DPI_AWARENESS);
4161 WINUSERAPI BOOL WINAPI SetProcessWindowStation(HWINSTA);
4162 WINUSERAPI BOOL WINAPI SetPropA(HWND,LPCSTR,HANDLE);
4163 WINUSERAPI BOOL WINAPI SetPropW(HWND,LPCWSTR,HANDLE);
4164 #define SetProp WINELIB_NAME_AW(SetProp)
4165 WINUSERAPI INT WINAPI SetScrollInfo(HWND,INT,const SCROLLINFO*,BOOL);
4166 WINUSERAPI INT WINAPI SetScrollPos(HWND,INT,INT,BOOL);
4167 WINUSERAPI BOOL WINAPI SetScrollRange(HWND,INT,INT,INT,BOOL);
4168 #define SetSysModalWindow(hwnd) ((HWND)0)
4169 WINUSERAPI BOOL WINAPI SetSystemCursor(HCURSOR,DWORD);
4170 WINUSERAPI BOOL WINAPI SetSystemMenu(HWND,HMENU);
4171 WINUSERAPI UINT_PTR WINAPI SetSystemTimer(HWND,UINT_PTR,UINT,TIMERPROC);
4172 WINUSERAPI BOOL WINAPI SetThreadDesktop(HDESK);
4173 WINUSERAPI DPI_AWARENESS_CONTEXT WINAPI SetThreadDpiAwarenessContext(DPI_AWARENESS_CONTEXT);
4174 WINUSERAPI UINT_PTR WINAPI SetTimer(HWND,UINT_PTR,UINT,TIMERPROC);
4175 WINUSERAPI BOOL WINAPI SetUserObjectInformationA(HANDLE,INT,LPVOID,DWORD);
4176 WINUSERAPI BOOL WINAPI SetUserObjectInformationW(HANDLE,INT,LPVOID,DWORD);
4177 #define SetUserObjectInformation WINELIB_NAME_AW(SetUserObjectInformation)
4178 WINUSERAPI BOOL WINAPI SetUserObjectSecurity(HANDLE,PSECURITY_INFORMATION,PSECURITY_DESCRIPTOR);
4179 WINUSERAPI BOOL WINAPI SetWindowContextHelpId(HWND,DWORD);
4180 WINUSERAPI BOOL WINAPI SetWindowDisplayAffinity(HWND,DWORD);
4181 WINUSERAPI LONG WINAPI SetWindowLongA(HWND,INT,LONG);
4182 WINUSERAPI LONG WINAPI SetWindowLongW(HWND,INT,LONG);
4183 #define SetWindowLong WINELIB_NAME_AW(SetWindowLong)
4184 #ifdef _WIN64
4185 WINUSERAPI LONG_PTR WINAPI SetWindowLongPtrA(HWND,INT,LONG_PTR);
4186 WINUSERAPI LONG_PTR WINAPI SetWindowLongPtrW(HWND,INT,LONG_PTR);
4187 #else
4188 #define SetWindowLongPtrA SetWindowLongA
4189 #define SetWindowLongPtrW SetWindowLongW
4190 #endif
4191 #define SetWindowLongPtr WINELIB_NAME_AW(SetWindowLongPtr)
4192 WINUSERAPI BOOL WINAPI SetWindowPlacement(HWND,const WINDOWPLACEMENT*);
4193 WINUSERAPI HHOOK WINAPI SetWindowsHookA(INT,HOOKPROC);
4194 WINUSERAPI HHOOK WINAPI SetWindowsHookW(INT,HOOKPROC);
4195 #define SetWindowsHook WINELIB_NAME_AW(SetWindowsHook)
4196 WINUSERAPI HHOOK WINAPI SetWindowsHookExA(INT,HOOKPROC,HINSTANCE,DWORD);
4197 WINUSERAPI HHOOK WINAPI SetWindowsHookExW(INT,HOOKPROC,HINSTANCE,DWORD);
4198 #define SetWindowsHookEx WINELIB_NAME_AW(SetWindowsHookEx)
4199 WINUSERAPI BOOL WINAPI SetWindowPos(HWND,HWND,INT,INT,INT,INT,UINT);
4200 WINUSERAPI INT WINAPI SetWindowRgn(HWND,HRGN,BOOL);
4201 WINUSERAPI BOOL WINAPI SetWindowTextA(HWND,LPCSTR);
4202 WINUSERAPI BOOL WINAPI SetWindowTextW(HWND,LPCWSTR);
4203 #define SetWindowText WINELIB_NAME_AW(SetWindowText)
4204 WINUSERAPI WORD WINAPI SetWindowWord(HWND,INT,WORD);
4205 WINUSERAPI HWINEVENTHOOK WINAPI SetWinEventHook(DWORD,DWORD,HMODULE,WINEVENTPROC,DWORD,DWORD,DWORD);
4206 WINUSERAPI BOOL WINAPI ShowCaret(HWND);
4207 WINUSERAPI INT WINAPI ShowCursor(BOOL);
4208 WINUSERAPI BOOL WINAPI ShowScrollBar(HWND,INT,BOOL);
4209 WINUSERAPI BOOL WINAPI ShowOwnedPopups(HWND,BOOL);
4210 WINUSERAPI BOOL WINAPI ShowWindow(HWND,INT);
4211 WINUSERAPI BOOL WINAPI ShowWindowAsync(HWND,INT);
4212 WINUSERAPI BOOL WINAPI ShutdownBlockReasonCreate(HWND,LPCWSTR);
4213 WINUSERAPI BOOL WINAPI ShutdownBlockReasonDestroy(HWND);
4214 WINUSERAPI BOOL WINAPI SubtractRect(LPRECT,const RECT*,const RECT*);
4215 WINUSERAPI BOOL WINAPI SwapMouseButton(BOOL);
4216 WINUSERAPI BOOL WINAPI SwitchDesktop(HDESK);
4217 WINUSERAPI VOID WINAPI SwitchToThisWindow(HWND,BOOL);
4218 WINUSERAPI BOOL WINAPI SystemParametersInfoA(UINT,UINT,LPVOID,UINT);
4219 WINUSERAPI BOOL WINAPI SystemParametersInfoW(UINT,UINT,LPVOID,UINT);
4220 #define SystemParametersInfo WINELIB_NAME_AW(SystemParametersInfo)
4221 WINUSERAPI BOOL WINAPI SystemParametersInfoForDpi(UINT,UINT,void*,UINT,UINT);
4222 WINUSERAPI LONG WINAPI TabbedTextOutA(HDC,INT,INT,LPCSTR,INT,INT,const INT*,INT);
4223 WINUSERAPI LONG WINAPI TabbedTextOutW(HDC,INT,INT,LPCWSTR,INT,INT,const INT*,INT);
4224 #define TabbedTextOut WINELIB_NAME_AW(TabbedTextOut)
4225 WINUSERAPI WORD WINAPI TileWindows (HWND,UINT,const RECT *,UINT,const HWND *);
4226 WINUSERAPI INT WINAPI ToAscii(UINT,UINT,const BYTE *,LPWORD,UINT);
4227 WINUSERAPI INT WINAPI ToAsciiEx(UINT,UINT,const BYTE *,LPWORD,UINT,HKL);
4228 WINUSERAPI INT WINAPI ToUnicode(UINT,UINT,const BYTE *,LPWSTR,int,UINT);
4229 WINUSERAPI INT WINAPI ToUnicodeEx(UINT,UINT,const BYTE *,LPWSTR,int,UINT,HKL);
4230 WINUSERAPI BOOL WINAPI TrackMouseEvent(LPTRACKMOUSEEVENT);
4231 WINUSERAPI BOOL WINAPI TrackPopupMenu(HMENU,UINT,INT,INT,INT,HWND,const RECT*);
4232 WINUSERAPI BOOL WINAPI TrackPopupMenuEx(HMENU,UINT,INT,INT,HWND,LPTPMPARAMS);
4233 WINUSERAPI INT WINAPI TranslateAcceleratorA(HWND,HACCEL,LPMSG);
4234 WINUSERAPI INT WINAPI TranslateAcceleratorW(HWND,HACCEL,LPMSG);
4235 #define TranslateAccelerator WINELIB_NAME_AW(TranslateAccelerator)
4236 WINUSERAPI BOOL WINAPI TranslateMDISysAccel(HWND,LPMSG);
4237 WINUSERAPI BOOL WINAPI TranslateMessage(const MSG*);
4238 WINUSERAPI BOOL WINAPI UnhookWinEvent(HWINEVENTHOOK);
4239 WINUSERAPI BOOL WINAPI UnhookWindowsHook(INT,HOOKPROC);
4240 WINUSERAPI BOOL WINAPI UnhookWindowsHookEx(HHOOK);
4241 WINUSERAPI BOOL WINAPI UnloadKeyboardLayout(HKL);
4242 WINUSERAPI BOOL WINAPI UnionRect(LPRECT,const RECT*,const RECT*);
4243 WINUSERAPI BOOL WINAPI UnregisterClassA(LPCSTR,HINSTANCE);
4244 WINUSERAPI BOOL WINAPI UnregisterClassW(LPCWSTR,HINSTANCE);
4245 #define UnregisterClass WINELIB_NAME_AW(UnregisterClass)
4246 WINUSERAPI BOOL WINAPI UnregisterDeviceNotification(HDEVNOTIFY);
4247 WINUSERAPI BOOL WINAPI UnregisterHotKey(HWND,INT);
4248 WINUSERAPI BOOL WINAPI UnregisterPowerSettingNotification(HPOWERNOTIFY);
4249 WINUSERAPI BOOL WINAPI UnregisterTouchWindow(HWND);
4250 WINUSERAPI BOOL WINAPI UpdateWindow(HWND);
4251 WINUSERAPI BOOL WINAPI UserHandleGrantAccess(HANDLE,HANDLE,BOOL);
4252 WINUSERAPI UINT WINAPI UserRealizePalette(HDC);
4253 WINUSERAPI BOOL WINAPI ValidateRect(HWND,const RECT*);
4254 WINUSERAPI BOOL WINAPI ValidateRgn(HWND,HRGN);
4255 WINUSERAPI SHORT WINAPI VkKeyScanA(CHAR);
4256 WINUSERAPI SHORT WINAPI VkKeyScanW(WCHAR);
4257 #define VkKeyScan WINELIB_NAME_AW(VkKeyScan)
4258 WINUSERAPI WORD WINAPI VkKeyScanExA(CHAR, HKL);
4259 WINUSERAPI WORD WINAPI VkKeyScanExW(WCHAR, HKL);
4260 #define VkKeyScanEx WINELIB_NAME_AW(VkKeyScanEx)
4261 WINUSERAPI DWORD WINAPI WaitForInputIdle(HANDLE,DWORD);
4262 WINUSERAPI BOOL WINAPI WaitMessage(void);
4263 WINUSERAPI HWND WINAPI WindowFromDC(HDC);
4264 WINUSERAPI HWND WINAPI WindowFromPoint(POINT);
4265 WINUSERAPI BOOL WINAPI WinHelpA(HWND,LPCSTR,UINT,ULONG_PTR);
4266 WINUSERAPI BOOL WINAPI WinHelpW(HWND,LPCWSTR,UINT,ULONG_PTR);
4267 #define WinHelp WINELIB_NAME_AW(WinHelp)
4268 WINUSERAPI VOID WINAPI keybd_event(BYTE,BYTE,DWORD,ULONG_PTR);
4269 WINUSERAPI VOID WINAPI mouse_event(DWORD,DWORD,DWORD,DWORD,ULONG_PTR);
4270 WINUSERAPI INT WINAPIV wsprintfA(LPSTR,LPCSTR,...);
4271 WINUSERAPI INT WINAPIV wsprintfW(LPWSTR,LPCWSTR,...);
4272 #define wsprintf WINELIB_NAME_AW(wsprintf)
4273 WINUSERAPI INT WINAPI wvsprintfA(LPSTR,LPCSTR,__ms_va_list);
4274 WINUSERAPI INT WINAPI wvsprintfW(LPWSTR,LPCWSTR,__ms_va_list);
4275 #define wvsprintf WINELIB_NAME_AW(wvsprintf)
4277 #if !defined(__WINESRC__) || defined(WINE_NO_INLINE_RECT)
4279 WINUSERAPI BOOL WINAPI EqualRect(const RECT*,const RECT*);
4280 WINUSERAPI BOOL WINAPI InflateRect(LPRECT,INT,INT);
4281 WINUSERAPI BOOL WINAPI IsRectEmpty(const RECT*);
4282 WINUSERAPI BOOL WINAPI OffsetRect(LPRECT,INT,INT);
4283 WINUSERAPI BOOL WINAPI PtInRect(const RECT*,POINT);
4284 WINUSERAPI BOOL WINAPI SetRect(LPRECT,INT,INT,INT,INT);
4285 WINUSERAPI BOOL WINAPI SetRectEmpty(LPRECT);
4287 #else
4289 /* Inline versions of common RECT helpers */
4291 static inline BOOL WINAPI EqualRect(const RECT *rect1, const RECT *rect2)
4293 if (!rect1 || !rect2) return FALSE;
4294 return ((rect1->left == rect2->left) && (rect1->right == rect2->right) &&
4295 (rect1->top == rect2->top) && (rect1->bottom == rect2->bottom));
4298 static inline BOOL WINAPI InflateRect(LPRECT rect, INT x, INT y)
4300 if (!rect) return FALSE;
4301 rect->left -= x;
4302 rect->top -= y;
4303 rect->right += x;
4304 rect->bottom += y;
4305 return TRUE;
4308 static inline BOOL WINAPI IsRectEmpty(const RECT *rect)
4310 if (!rect) return TRUE;
4311 return ((rect->left >= rect->right) || (rect->top >= rect->bottom));
4314 static inline BOOL WINAPI OffsetRect(LPRECT rect, INT x, INT y)
4316 if (!rect) return FALSE;
4317 rect->left += x;
4318 rect->right += x;
4319 rect->top += y;
4320 rect->bottom += y;
4321 return TRUE;
4324 static inline BOOL WINAPI PtInRect(const RECT *rect, POINT pt)
4326 if (!rect) return FALSE;
4327 return ((pt.x >= rect->left) && (pt.x < rect->right) &&
4328 (pt.y >= rect->top) && (pt.y < rect->bottom));
4331 static inline BOOL WINAPI SetRect(LPRECT rect, INT left, INT top, INT right, INT bottom)
4333 if (!rect) return FALSE;
4334 rect->left = left;
4335 rect->right = right;
4336 rect->top = top;
4337 rect->bottom = bottom;
4338 return TRUE;
4341 static inline BOOL WINAPI SetRectEmpty(LPRECT rect)
4343 if (!rect) return FALSE;
4344 rect->left = rect->right = rect->top = rect->bottom = 0;
4345 return TRUE;
4348 #endif /* !defined(__WINESRC__) || defined(WINE_NO_INLINE_RECT) */
4350 /* Undocumented functions */
4352 /* NOTE: This is SYSTEM.3, not USER.182, which is also named KillSystemTimer */
4353 WORD WINAPI SYSTEM_KillSystemTimer( WORD );
4355 #ifdef __WINESRC__
4356 WINUSERAPI BOOL CDECL __wine_send_input( HWND hwnd, const INPUT *input );
4357 #endif
4359 #ifdef __cplusplus
4361 #endif
4363 #endif /* _WINUSER_ */