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