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