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