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