VirtualBox

source: vbox/trunk/src/VBox/Devices/Graphics/shaderlib/wine/include/winuser.h

最後變更 在這個檔案是 53206,由 vboxsync 提交於 10 年 前

Devices/vmsvga: header fixes

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

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette