Avoid warnings.
[wine/multimedia.git] / include / winuser.h
blob909a46e7bf4ffe2f6da4ad09eb4aa435109734e3
1 /*
2 * Copyright (C) the Wine project
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 #ifndef _WINUSER_
20 #define _WINUSER_
22 #ifndef RC_INVOKED
23 #include <stdarg.h>
24 #endif
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
30 /* Define a bunch of callback types */
32 #if defined(STRICT)
33 typedef INT_PTR (CALLBACK *DLGPROC)(HWND,UINT,WPARAM,LPARAM);
34 typedef BOOL (CALLBACK *DRAWSTATEPROC)(HDC,LPARAM,WPARAM,int,int);
35 typedef INT (CALLBACK *EDITWORDBREAKPROCA)(LPSTR,INT,INT,INT);
36 typedef INT (CALLBACK *EDITWORDBREAKPROCW)(LPWSTR,INT,INT,INT);
37 typedef BOOL (CALLBACK *GRAYSTRINGPROC)(HDC,LPARAM,INT);
38 typedef LRESULT (CALLBACK *HOOKPROC)(INT,WPARAM,LPARAM);
39 typedef BOOL (CALLBACK *NAMEENUMPROCA)(LPSTR,LPARAM);
40 typedef BOOL (CALLBACK *NAMEENUMPROCW)(LPWSTR,LPARAM);
41 typedef BOOL (CALLBACK *PROPENUMPROCA)(HWND,LPCSTR,HANDLE);
42 typedef BOOL (CALLBACK *PROPENUMPROCW)(HWND,LPCWSTR,HANDLE);
43 typedef BOOL (CALLBACK *PROPENUMPROCEXA)(HWND,LPCSTR,HANDLE,ULONG_PTR);
44 typedef BOOL (CALLBACK *PROPENUMPROCEXW)(HWND,LPCWSTR,HANDLE,ULONG_PTR);
45 typedef VOID (CALLBACK *SENDASYNCPROC)(HWND,UINT,ULONG_PTR,LRESULT);
46 typedef VOID (CALLBACK *TIMERPROC)(HWND,UINT,UINT_PTR,DWORD);
47 typedef VOID (CALLBACK *WINEVENTPROC)(HWINEVENTHOOK,DWORD,HWND,LONG,LONG,
48 DWORD,DWORD);
49 typedef BOOL (CALLBACK *WNDENUMPROC)(HWND,LPARAM);
51 #else
52 typedef FARPROC DLGPROC;
53 typedef FARPROC DRAWSTATEPROC;
54 typedef FARPROC EDITWORDBREAKPROCA;
55 typedef FARPROC EDITWORDBREAKPROCW;
56 typedef FARPROC GRAYSTRINGPROC;
57 typedef FARPROC HOOKPROC;
58 typedef FARPROC NAMEENUMPROCA;
59 typedef FARPROC NAMEENUMPROCW;
60 typedef FARPROC PROPENUMPROCA;
61 typedef FARPROC PROPENUMPROCW;
62 typedef FARPROC PROPENUMPROCEXA;
63 typedef FARPROC PROPENUMPROCEXW;
64 typedef FARPROC SENDASYNCPROC;
65 typedef FARPROC TIMERPROC;
66 typedef FARPROC WINEVENTPROC;
67 typedef FARPROC WNDENUMPROC;
68 #endif /* STRICT */
70 typedef NAMEENUMPROCA WINSTAENUMPROCA;
71 typedef NAMEENUMPROCA DESKTOPENUMPROCA;
72 typedef NAMEENUMPROCW WINSTAENUMPROCW;
73 typedef NAMEENUMPROCW DESKTOPENUMPROCW;
75 typedef LRESULT (CALLBACK *WNDPROC)(HWND,UINT,WPARAM,LPARAM);
77 DECL_WINELIB_TYPE_AW(DESKTOPENUMPROC)
78 DECL_WINELIB_TYPE_AW(EDITWORDBREAKPROC)
79 DECL_WINELIB_TYPE_AW(NAMEENUMPROC)
80 DECL_WINELIB_TYPE_AW(PROPENUMPROC)
81 DECL_WINELIB_TYPE_AW(PROPENUMPROCEX)
82 DECL_WINELIB_TYPE_AW(WINSTAENUMPROC)
85 typedef HANDLE HDWP;
87 /* flags for FILTERKEYS dwFlags field */
88 #define FKF_AVAILABLE 0x00000002
89 #define FKF_CLICKON 0x00000040
90 #define FKF_FILTERKEYSON 0x00000001
91 #define FKF_HOTKEYACTIVE 0x00000004
92 #define FKF_HOTKEYSOUND 0x00000010
93 #define FKF_CONFIRMHOTKEY 0x00000008
94 #define FKF_INDICATOR 0x00000020
96 typedef struct tagFILTERKEYS
98 UINT cbSize;
99 DWORD dwFlags;
100 DWORD iWaitMSec;
101 DWORD iDelayMSec;
102 DWORD iRepeatMSec;
103 DWORD iBounceMSec;
104 } FILTERKEYS, *LPFILTERKEYS;
106 /* flags for TOGGLEKEYS dwFlags field */
107 #define TKF_AVAILABLE 0x00000002
108 #define TKF_CONFIRMHOTKEY 0x00000008
109 #define TKF_HOTKEYACTIVE 0x00000004
110 #define TKF_HOTKEYSOUND 0x00000010
111 #define TKF_TOGGLEKEYSON 0x00000001
113 typedef struct tagTOGGLEKEYS
115 DWORD cbSize;
116 DWORD dwFlags;
117 } TOGGLEKEYS, *LPTOGGLEKEYS;
119 /* flags for MOUSEKEYS dwFlags field */
120 #define MKF_AVAILABLE 0x00000002
121 #define MKF_CONFIRMHOTKEY 0x00000008
122 #define MKF_HOTKEYACTIVE 0x00000004
123 #define MKF_HOTKEYSOUND 0x00000010
124 #define MKF_INDICATOR 0x00000020
125 #define MKF_MOUSEKEYSON 0x00000001
126 #define MKF_MODIFIERS 0x00000040
127 #define MKF_REPLACENUMBERS 0x00000080
129 typedef struct tagMOUSEKEYS
131 UINT cbSize;
132 DWORD dwFlags;
133 DWORD iMaxSpeed;
134 DWORD iTimeToMaxSpeed;
135 DWORD iCtrlSpeed;
136 DWORD dwReserved1;
137 DWORD dwReserved2;
138 } MOUSEKEYS, *LPMOUSEKEYS;
140 /* flags for STICKYKEYS dwFlags field */
141 #define SKF_AUDIBLEFEEDBACK 0x00000040
142 #define SKF_AVAILABLE 0x00000002
143 #define SKF_CONFIRMHOTKEY 0x00000008
144 #define SKF_HOTKEYACTIVE 0x00000004
145 #define SKF_HOTKEYSOUND 0x00000010
146 #define SKF_INDICATOR 0x00000020
147 #define SKF_STICKYKEYSON 0x00000001
148 #define SKF_TRISTATE 0x00000080
149 #define SKF_TWOKEYSOFF 0x00000100
151 typedef struct tagSTICKYKEYS
153 DWORD cbSize;
154 DWORD dwFlags;
155 } STICKYKEYS, *LPSTICKYKEYS;
157 /* flags for ACCESSTIMEOUT dwFlags field */
158 #define ATF_ONOFFFEEDBACK 0x00000002
159 #define ATF_AVAILABLE 0x00000004
160 #define ATF_TIMEOUTON 0x00000001
162 typedef struct tagACCESSTIMEOUT
164 UINT cbSize;
165 DWORD dwFlags;
166 DWORD iTimeOutMSec;
167 } ACCESSTIMEOUT, *LPACCESSTIMEOUT;
169 /* flags for SERIALKEYS dwFlags field */
170 #define SERKF_ACTIVE 0x00000008
171 #define SERKF_AVAILABLE 0x00000002
172 #define SERKF_INDICATOR 0x00000004
173 #define SERKF_SERIALKEYSON 0x00000001
175 typedef struct tagSERIALKEYSA
177 UINT cbSize;
178 DWORD dwFlags;
179 LPSTR lpszActivePort;
180 LPSTR lpszPort;
181 UINT iBaudRate;
182 UINT iPortState;
183 UINT iActive;
184 } SERIALKEYSA, *LPSERIALKEYSA;
186 typedef struct tagSERIALKEYSW {
187 UINT cbSize;
188 DWORD dwFlags;
189 LPWSTR lpszActivePort;
190 LPWSTR lpszPort;
191 UINT iBaudRate;
192 UINT iPortState;
193 UINT iActive;
194 } SERIALKEYSW,*LPSERIALKEYSW;
196 DECL_WINELIB_TYPE_AW(SERIALKEYS)
197 DECL_WINELIB_TYPE_AW(LPSERIALKEYS)
199 /* flags for SOUNDSENTRY dwFlags field */
200 #define SSF_AVAILABLE 0x00000002
201 #define SSF_SOUNDSENTRYON 0x00000001
203 #define SSTF_BORDER 0x00000002
204 #define SSTF_CHARS 0x00000001
205 #define SSTF_DISPLAY 0x00000003
206 #define SSTF_NONE 0x00000000
208 #define SSGF_DISPLAY 0x00000003
209 #define SSGF_NONE 0x00000000
211 #define SSWF_DISPLAY 0x00000003
212 #define SSWF_NONE 0x00000000
213 #define SSWF_TITLE 0x00000001
214 #define SSWF_WINDOW 0x00000002
216 typedef struct tagSOUNDSENTRYA
218 UINT cbSize;
219 DWORD dwFlags;
220 DWORD iFSTextEffect;
221 DWORD iFSTextEffectMSec;
222 DWORD iFSTextEffectColorBits;
223 DWORD iFSGrafEffect;
224 DWORD iFSGrafEffectMSec;
225 DWORD iFSGrafEffectColor;
226 DWORD iWindowsEffect;
227 DWORD iWindowsEffectMSec;
228 LPSTR lpszWindowsEffectDLL;
229 DWORD iWindowsEffectOrdinal;
230 } SOUNDSENTRYA, *LPSOUNDSENTRYA;
232 typedef struct tagSOUNDSENTRYW
234 UINT cbSize;
235 DWORD dwFlags;
236 DWORD iFSTextEffect;
237 DWORD iFSTextEffectMSec;
238 DWORD iFSTextEffectColorBits;
239 DWORD iFSGrafEffect;
240 DWORD iFSGrafEffectMSec;
241 DWORD iFSGrafEffectColor;
242 DWORD iWindowsEffect;
243 DWORD iWindowsEffectMSec;
244 LPWSTR lpszWindowsEffectDLL;
245 DWORD iWindowsEffectOrdinal;
246 } SOUNDSENTRYW, *LPSOUNDSENTRYW;
248 DECL_WINELIB_TYPE_AW(SOUNDSENTRY)
249 DECL_WINELIB_TYPE_AW(LPSOUNDSENTRY)
251 /* flags for HIGHCONTRAST dwFlags field */
252 #define HCF_HIGHCONTRASTON 0x00000001
253 #define HCF_AVAILABLE 0x00000002
254 #define HCF_HOTKEYACTIVE 0x00000004
255 #define HCF_CONFIRMHOTKEY 0x00000008
256 #define HCF_HOTKEYSOUND 0x00000010
257 #define HCF_INDICATOR 0x00000020
258 #define HCF_HOTKEYAVAILABLE 0x00000040
260 typedef struct tagHIGHCONTRASTA
262 UINT cbSize;
263 DWORD dwFlags;
264 LPSTR lpszDefaultScheme;
265 } HIGHCONTRASTA, *LPHIGHCONTRASTA;
267 typedef struct tagHIGHCONTRASTW
269 UINT cbSize;
270 DWORD dwFlags;
271 LPWSTR lpszDefaultScheme;
272 } HIGHCONTRASTW, *LPHIGHCONTRASTW;
274 DECL_WINELIB_TYPE_AW(HIGHCONTRAST)
275 DECL_WINELIB_TYPE_AW(LPHIGHCONTRAST)
277 typedef struct
279 UINT message;
280 UINT paramL;
281 UINT paramH;
282 DWORD time;
283 HWND hwnd;
284 } EVENTMSG, *PEVENTMSG, *LPEVENTMSG;
286 /* WH_KEYBOARD_LL structure */
287 typedef struct tagKBDLLHOOKSTRUCT
289 DWORD vkCode;
290 DWORD scanCode;
291 DWORD flags;
292 DWORD time;
293 ULONG_PTR dwExtraInfo;
294 } KBDLLHOOKSTRUCT, *LPKBDLLHOOKSTRUCT, *PKBDLLHOOKSTRUCT;
296 #define LLKHF_EXTENDED (KF_EXTENDED >> 8)
297 #define LLKHF_INJECTED 0x00000010
298 #define LLKHF_ALTDOWN (KF_ALTDOWN >> 8)
299 #define LLKHF_UP (KF_UP >> 8)
301 /* WH_MOUSE_LL structure */
302 typedef struct tagMSLLHOOKSTRUCT
304 POINT pt;
305 DWORD mouseData;
306 DWORD flags;
307 DWORD time;
308 ULONG_PTR dwExtraInfo;
309 } MSLLHOOKSTRUCT, *LPMSLLHOOKSTRUCT, *PMSLLHOOKSTRUCT;
311 #define LLMHF_INJECTED 0x00000001
313 /* Mouse hook structure */
315 typedef struct
317 POINT pt;
318 HWND hwnd;
319 UINT wHitTestCode;
320 ULONG_PTR dwExtraInfo;
321 } MOUSEHOOKSTRUCT, *PMOUSEHOOKSTRUCT, *LPMOUSEHOOKSTRUCT;
324 /* Hardware hook structure */
326 typedef struct
328 HWND hwnd;
329 UINT message;
330 WPARAM wParam;
331 LPARAM lParam;
332 } HARDWAREHOOKSTRUCT, *PHARDWAREHOOKSTRUCT, *LPHARDWAREHOOKSTRUCT;
335 /* Debug hook structure */
337 typedef struct
339 DWORD idThread;
340 DWORD idThreadInstaller;
341 LPARAM lParam;
342 WPARAM wParam;
343 INT code;
344 } DEBUGHOOKINFO, *PDEBUGHOOKINFO, *LPDEBUGHOOKINFO;
346 #define HKL_PREV 0
347 #define HKL_NEXT 1
349 #define KLF_ACTIVATE 0x00000001
350 #define KLF_SUBSTITUTE_OK 0x00000002
351 #define KLF_UNLOADPREVIOUS 0x00000004
352 #define KLF_REORDER 0x00000008
353 #define KLF_REPLACELANG 0x00000010
354 #define KLF_NOTELLSHELL 0x00000080
356 #define KL_NAMELENGTH 9
358 typedef struct tagMOUSEINPUT
360 LONG dx;
361 LONG dy;
362 DWORD mouseData;
363 DWORD dwFlags;
364 DWORD time;
365 ULONG_PTR dwExtraInfo;
366 } MOUSEINPUT, *PMOUSEINPUT, *LPMOUSEINPUT;
368 typedef struct tagKEYBDINPUT
370 WORD wVk;
371 WORD wScan;
372 DWORD dwFlags;
373 DWORD time;
374 ULONG_PTR dwExtraInfo;
375 } KEYBDINPUT, *PKEYBDINPUT, *LPKEYBDINPUT;
377 typedef struct tagHARDWAREINPUT
379 DWORD uMsg;
380 WORD wParamL;
381 WORD wParamH;
382 } HARDWAREINPUT, *PHARDWAREINPUT, *LPHARDWAREINPUT;
384 #define INPUT_MOUSE 0
385 #define INPUT_KEYBOARD 1
386 #define INPUT_HARDWARE 2
388 typedef struct tagINPUT
390 DWORD type;
391 union
393 MOUSEINPUT mi;
394 KEYBDINPUT ki;
395 HARDWAREINPUT hi;
396 } DUMMYUNIONNAME;
397 } INPUT, *PINPUT, *LPINPUT;
400 typedef struct tagGUITHREADINFO
402 DWORD cbSize;
403 DWORD flags;
404 HWND hwndActive;
405 HWND hwndFocus;
406 HWND hwndCapture;
407 HWND hwndMenuOwner;
408 HWND hwndMoveSize;
409 HWND hwndCaret;
410 RECT rcCaret;
411 } GUITHREADINFO, *PGUITHREADINFO, *LPGUITHREADINFO;
413 #define GUI_CARETBLINKING 0x00000001
414 #define GUI_INMOVESIZE 0x00000002
415 #define GUI_INMENUMODE 0x00000004
416 #define GUI_SYSTEMMENUMODE 0x00000008
417 #define GUI_POPUPMENUMODE 0x00000010
418 #define GUI_16BITTASK 0x00000020
421 /***** Dialogs *****/
423 /* Gcc on Solaris has a version of this that we don't care about */
424 #undef FSHIFT
426 #define FVIRTKEY TRUE /* Assumed to be == TRUE */
427 #define FNOINVERT 0x02
428 #define FSHIFT 0x04
429 #define FCONTROL 0x08
430 #define FALT 0x10
433 typedef struct tagANIMATIONINFO
435 UINT cbSize;
436 INT iMinAnimate;
437 } ANIMATIONINFO, *LPANIMATIONINFO;
439 typedef struct tagNMHDR
441 HWND hwndFrom;
442 UINT_PTR idFrom;
443 UINT code;
444 } NMHDR, *LPNMHDR;
446 typedef struct
448 UINT cbSize;
449 INT iTabLength;
450 INT iLeftMargin;
451 INT iRightMargin;
452 UINT uiLengthDrawn;
453 } DRAWTEXTPARAMS,*LPDRAWTEXTPARAMS;
455 #define WM_USER 0x0400
457 #define DT_EDITCONTROL 0x00002000
458 #define DT_PATH_ELLIPSIS 0x00004000
459 #define DT_END_ELLIPSIS 0x00008000
460 #define DT_MODIFYSTRING 0x00010000
461 #define DT_RTLREADING 0x00020000
462 #define DT_WORD_ELLIPSIS 0x00040000
464 typedef struct
466 LPARAM lParam;
467 WPARAM wParam;
468 UINT message;
469 HWND hwnd;
470 } CWPSTRUCT, *PCWPSTRUCT, *LPCWPSTRUCT;
472 typedef struct
474 LRESULT lResult;
475 LPARAM lParam;
476 WPARAM wParam;
477 DWORD message;
478 HWND hwnd;
479 } CWPRETSTRUCT, *PCWPRETSTRUCT, *LPCWPRETSTRUCT;
481 typedef struct
483 UINT length;
484 UINT flags;
485 UINT showCmd;
486 POINT ptMinPosition WINE_PACKED;
487 POINT ptMaxPosition WINE_PACKED;
488 RECT rcNormalPosition WINE_PACKED;
489 } WINDOWPLACEMENT, *PWINDOWPLACEMENT, *LPWINDOWPLACEMENT;
492 /* WINDOWPLACEMENT flags */
493 #define WPF_SETMINPOSITION 0x0001
494 #define WPF_RESTORETOMAXIMIZED 0x0002
496 /***** Dialogs *****/
498 #define MAKEINTRESOURCEA(i) (LPSTR)((ULONG_PTR)((WORD)(i)))
499 #define MAKEINTRESOURCEW(i) (LPWSTR)((ULONG_PTR)((WORD)(i)))
500 #define MAKEINTRESOURCE WINELIB_NAME_AW(MAKEINTRESOURCE)
502 /* Predefined resource types */
503 #define RT_CURSORA MAKEINTRESOURCEA(1)
504 #define RT_CURSORW MAKEINTRESOURCEW(1)
505 #define RT_CURSOR WINELIB_NAME_AW(RT_CURSOR)
506 #define RT_BITMAPA MAKEINTRESOURCEA(2)
507 #define RT_BITMAPW MAKEINTRESOURCEW(2)
508 #define RT_BITMAP WINELIB_NAME_AW(RT_BITMAP)
509 #define RT_ICONA MAKEINTRESOURCEA(3)
510 #define RT_ICONW MAKEINTRESOURCEW(3)
511 #define RT_ICON WINELIB_NAME_AW(RT_ICON)
512 #define RT_MENUA MAKEINTRESOURCEA(4)
513 #define RT_MENUW MAKEINTRESOURCEW(4)
514 #define RT_MENU WINELIB_NAME_AW(RT_MENU)
515 #define RT_DIALOGA MAKEINTRESOURCEA(5)
516 #define RT_DIALOGW MAKEINTRESOURCEW(5)
517 #define RT_DIALOG WINELIB_NAME_AW(RT_DIALOG)
518 #define RT_STRINGA MAKEINTRESOURCEA(6)
519 #define RT_STRINGW MAKEINTRESOURCEW(6)
520 #define RT_STRING WINELIB_NAME_AW(RT_STRING)
521 #define RT_FONTDIRA MAKEINTRESOURCEA(7)
522 #define RT_FONTDIRW MAKEINTRESOURCEW(7)
523 #define RT_FONTDIR WINELIB_NAME_AW(RT_FONTDIR)
524 #define RT_FONTA MAKEINTRESOURCEA(8)
525 #define RT_FONTW MAKEINTRESOURCEW(8)
526 #define RT_FONT WINELIB_NAME_AW(RT_FONT)
527 #define RT_ACCELERATORA MAKEINTRESOURCEA(9)
528 #define RT_ACCELERATORW MAKEINTRESOURCEW(9)
529 #define RT_ACCELERATOR WINELIB_NAME_AW(RT_ACCELERATOR)
530 #define RT_RCDATAA MAKEINTRESOURCEA(10)
531 #define RT_RCDATAW MAKEINTRESOURCEW(10)
532 #define RT_RCDATA WINELIB_NAME_AW(RT_RCDATA)
533 #define RT_MESSAGETABLEA MAKEINTRESOURCEA(11)
534 #define RT_MESSAGETABLEW MAKEINTRESOURCEW(11)
535 #define RT_MESSAGETABLE WINELIB_NAME_AW(RT_MESSAGETABLE)
536 #define RT_GROUP_CURSORA MAKEINTRESOURCEA(12)
537 #define RT_GROUP_CURSORW MAKEINTRESOURCEW(12)
538 #define RT_GROUP_CURSOR WINELIB_NAME_AW(RT_GROUP_CURSOR)
539 #define RT_GROUP_ICONA MAKEINTRESOURCEA(14)
540 #define RT_GROUP_ICONW MAKEINTRESOURCEW(14)
541 #define RT_GROUP_ICON WINELIB_NAME_AW(RT_GROUP_ICON)
542 #define RT_VERSIONA MAKEINTRESOURCEA(16)
543 #define RT_VERSIONW MAKEINTRESOURCEW(16)
544 #define RT_VERSION WINELIB_NAME_AW(RT_VERSION)
545 #define RT_DLGINCLUDEA MAKEINTRESOURCEA(17)
546 #define RT_DLGINCLUDEW MAKEINTRESOURCEW(17)
547 #define RT_DLGINCLUDE WINELIB_NAME_AW(RT_DLGINCLUDE)
548 #define RT_PLUGPLAYA MAKEINTRESOURCEA(19)
549 #define RT_PLUGPLAYW MAKEINTRESOURCEW(19)
550 #define RT_PLUGPLAY WINELIB_NAME_AW(RT_PLUGPLAY)
551 #define RT_VXDA MAKEINTRESOURCEA(20)
552 #define RT_VXDW MAKEINTRESOURCEW(20)
553 #define RT_VXD WINELIB_NAME_AW(RT_VXD)
554 #define RT_ANICURSORA MAKEINTRESOURCEA(21)
555 #define RT_ANICURSORW MAKEINTRESOURCEW(21)
556 #define RT_ANICURSOR WINELIB_NAME_AW(RT_ANICURSOR)
557 #define RT_ANIICONA MAKEINTRESOURCEA(22)
558 #define RT_ANIICONW MAKEINTRESOURCEW(22)
559 #define RT_ANIICON WINELIB_NAME_AW(RT_ANIICON)
560 #define RT_HTMLA MAKEINTRESOURCEA(23)
561 #define RT_HTMLW MAKEINTRESOURCEW(23)
562 #define RT_HTML WINELIB_NAME_AW(RT_HTML)
565 /* cbWndExtra bytes for dialog class */
566 #define DLGWINDOWEXTRA 30
568 /* Button control styles */
569 #define BS_PUSHBUTTON 0x00000000L
570 #define BS_DEFPUSHBUTTON 0x00000001L
571 #define BS_CHECKBOX 0x00000002L
572 #define BS_AUTOCHECKBOX 0x00000003L
573 #define BS_RADIOBUTTON 0x00000004L
574 #define BS_3STATE 0x00000005L
575 #define BS_AUTO3STATE 0x00000006L
576 #define BS_GROUPBOX 0x00000007L
577 #define BS_USERBUTTON 0x00000008L
578 #define BS_AUTORADIOBUTTON 0x00000009L
579 #define BS_OWNERDRAW 0x0000000BL
580 #define BS_LEFTTEXT 0x00000020L
581 #define BS_RIGHTBUTTON BS_LEFTTEXT
583 #define BS_TEXT 0x00000000L
584 #define BS_ICON 0x00000040L
585 #define BS_BITMAP 0x00000080L
586 #define BS_LEFT 0x00000100L
587 #define BS_RIGHT 0x00000200L
588 #define BS_CENTER 0x00000300L
589 #define BS_TOP 0x00000400L
590 #define BS_BOTTOM 0x00000800L
591 #define BS_VCENTER 0x00000C00L
592 #define BS_PUSHLIKE 0x00001000L
593 #define BS_MULTILINE 0x00002000L
594 #define BS_NOTIFY 0x00004000L
595 #define BS_FLAT 0x00008000L
597 /* Dialog styles */
598 #define DS_ABSALIGN 0x0001
599 #define DS_SYSMODAL 0x0002
600 #define DS_3DLOOK 0x0004 /* win95 */
601 #define DS_FIXEDSYS 0x0008 /* win95 */
602 #define DS_NOFAILCREATE 0x0010 /* win95 */
603 #define DS_LOCALEDIT 0x0020
604 #define DS_SETFONT 0x0040
605 #define DS_MODALFRAME 0x0080
606 #define DS_NOIDLEMSG 0x0100
607 #define DS_SETFOREGROUND 0x0200 /* win95 */
608 #define DS_CONTROL 0x0400 /* win95 */
609 #define DS_CENTER 0x0800 /* win95 */
610 #define DS_CENTERMOUSE 0x1000 /* win95 */
611 #define DS_CONTEXTHELP 0x2000 /* win95 */
614 /* Dialog messages */
615 #define DM_GETDEFID (WM_USER+0)
616 #define DM_SETDEFID (WM_USER+1)
617 #define DM_REPOSITION (WM_USER+2)
619 #define DC_HASDEFID 0x534b
621 /* Owner draw control types */
622 #define ODT_MENU 1
623 #define ODT_LISTBOX 2
624 #define ODT_COMBOBOX 3
625 #define ODT_BUTTON 4
626 #define ODT_STATIC 5
628 /* Owner draw actions */
629 #define ODA_DRAWENTIRE 0x0001
630 #define ODA_SELECT 0x0002
631 #define ODA_FOCUS 0x0004
633 /* Owner draw state */
634 #define ODS_SELECTED 0x0001
635 #define ODS_GRAYED 0x0002
636 #define ODS_DISABLED 0x0004
637 #define ODS_CHECKED 0x0008
638 #define ODS_FOCUS 0x0010
639 #define ODS_COMBOBOXEDIT 0x1000
640 #define ODS_HOTLIGHT 0x0040
641 #define ODS_INACTIVE 0x0080
643 /* Edit control styles */
644 #define ES_LEFT 0x00000000
645 #define ES_CENTER 0x00000001
646 #define ES_RIGHT 0x00000002
647 #define ES_MULTILINE 0x00000004
648 #define ES_UPPERCASE 0x00000008
649 #define ES_LOWERCASE 0x00000010
650 #define ES_PASSWORD 0x00000020
651 #define ES_AUTOVSCROLL 0x00000040
652 #define ES_AUTOHSCROLL 0x00000080
653 #define ES_NOHIDESEL 0x00000100
654 #define ES_COMBO 0x00000200 /* Undocumented. Parent is a combobox */
655 #define ES_OEMCONVERT 0x00000400
656 #define ES_READONLY 0x00000800
657 #define ES_WANTRETURN 0x00001000
658 #define ES_NUMBER 0x00002000
660 /* OEM Resource Ordinal Numbers */
661 #define OBM_TRTYPE 32732
662 #define OBM_LFARROWI 32734
663 #define OBM_RGARROWI 32735
664 #define OBM_DNARROWI 32736
665 #define OBM_UPARROWI 32737
666 #define OBM_COMBO 32738
667 #define OBM_MNARROW 32739
668 #define OBM_LFARROWD 32740
669 #define OBM_RGARROWD 32741
670 #define OBM_DNARROWD 32742
671 #define OBM_UPARROWD 32743
672 #define OBM_RESTORED 32744
673 #define OBM_ZOOMD 32745
674 #define OBM_REDUCED 32746
675 #define OBM_RESTORE 32747
676 #define OBM_ZOOM 32748
677 #define OBM_REDUCE 32749
678 #define OBM_LFARROW 32750
679 #define OBM_RGARROW 32751
680 #define OBM_DNARROW 32752
681 #define OBM_UPARROW 32753
682 #define OBM_CLOSE 32754
683 #define OBM_OLD_RESTORE 32755
684 #define OBM_OLD_ZOOM 32756
685 #define OBM_OLD_REDUCE 32757
686 #define OBM_BTNCORNERS 32758
687 #define OBM_CHECKBOXES 32759
688 #define OBM_CHECK 32760
689 #define OBM_BTSIZE 32761
690 #define OBM_OLD_LFARROW 32762
691 #define OBM_OLD_RGARROW 32763
692 #define OBM_OLD_DNARROW 32764
693 #define OBM_OLD_UPARROW 32765
694 #define OBM_SIZE 32766
695 #define OBM_OLD_CLOSE 32767
697 #define OCR_NORMAL 32512
698 #define OCR_IBEAM 32513
699 #define OCR_WAIT 32514
700 #define OCR_CROSS 32515
701 #define OCR_UP 32516
702 #define OCR_SIZE 32640
703 #define OCR_ICON 32641
704 #define OCR_SIZENWSE 32642
705 #define OCR_SIZENESW 32643
706 #define OCR_SIZEWE 32644
707 #define OCR_SIZENS 32645
708 #define OCR_SIZEALL 32646
709 #define OCR_ICOCUR 32647
710 #define OCR_NO 32648
711 #define OCR_HAND 32649
712 #define OCR_APPSTARTING 32650
713 #define OCR_HELP 32651
715 /* only defined in wine (FIXME) */
716 #define OCR_DRAGOBJECT 32653
718 #define OIC_SAMPLE 32512
719 #define OIC_HAND 32513
720 #define OIC_QUES 32514
721 #define OIC_BANG 32515
722 #define OIC_NOTE 32516
723 #define OIC_WINLOGO 32517
724 #define OIC_WARNING OIC_BANG
725 #define OIC_ERROR OIC_HAND
726 #define OIC_INFORMATION OIC_NOTE
728 #ifndef NOCOLOR
730 #define COLOR_SCROLLBAR 0
731 #define COLOR_BACKGROUND 1
732 #define COLOR_ACTIVECAPTION 2
733 #define COLOR_INACTIVECAPTION 3
734 #define COLOR_MENU 4
735 #define COLOR_WINDOW 5
736 #define COLOR_WINDOWFRAME 6
737 #define COLOR_MENUTEXT 7
738 #define COLOR_WINDOWTEXT 8
739 #define COLOR_CAPTIONTEXT 9
740 #define COLOR_ACTIVEBORDER 10
741 #define COLOR_INACTIVEBORDER 11
742 #define COLOR_APPWORKSPACE 12
743 #define COLOR_HIGHLIGHT 13
744 #define COLOR_HIGHLIGHTTEXT 14
745 #define COLOR_BTNFACE 15
746 #define COLOR_BTNSHADOW 16
747 #define COLOR_GRAYTEXT 17
748 #define COLOR_BTNTEXT 18
749 #define COLOR_INACTIVECAPTIONTEXT 19
750 #define COLOR_BTNHIGHLIGHT 20
751 /* win95 colors */
752 #define COLOR_3DDKSHADOW 21
753 #define COLOR_3DLIGHT 22
754 #define COLOR_INFOTEXT 23
755 #define COLOR_INFOBK 24
756 #define COLOR_DESKTOP COLOR_BACKGROUND
757 #define COLOR_3DFACE COLOR_BTNFACE
758 #define COLOR_3DSHADOW COLOR_BTNSHADOW
759 #define COLOR_3DHIGHLIGHT COLOR_BTNHIGHLIGHT
760 #define COLOR_3DHILIGHT COLOR_BTNHIGHLIGHT
761 #define COLOR_BTNHILIGHT COLOR_BTNHIGHLIGHT
762 /* win98 colors */
763 #define COLOR_ALTERNATEBTNFACE 25 /* undocumented, constant's name unknown */
764 #define COLOR_HOTLIGHT 26
765 #define COLOR_GRADIENTACTIVECAPTION 27
766 #define COLOR_GRADIENTINACTIVECAPTION 28
768 /* WM_CTLCOLOR values */
769 #define CTLCOLOR_MSGBOX 0
770 #define CTLCOLOR_EDIT 1
771 #define CTLCOLOR_LISTBOX 2
772 #define CTLCOLOR_BTN 3
773 #define CTLCOLOR_DLG 4
774 #define CTLCOLOR_SCROLLBAR 5
775 #define CTLCOLOR_STATIC 6
777 COLORREF WINAPI GetSysColor(INT);
778 BOOL WINAPI SetSysColors(INT,const INT*,const COLORREF*);
780 #endif /* NOCOLOR */
782 /* Edit control messages */
783 #define EM_GETSEL 0x00b0
784 #define EM_SETSEL 0x00b1
785 #define EM_GETRECT 0x00b2
786 #define EM_SETRECT 0x00b3
787 #define EM_SETRECTNP 0x00b4
788 #define EM_SCROLL 0x00b5
789 #define EM_LINESCROLL 0x00b6
790 #define EM_SCROLLCARET 0x00b7
791 #define EM_GETMODIFY 0x00b8
792 #define EM_SETMODIFY 0x00b9
793 #define EM_GETLINECOUNT 0x00ba
794 #define EM_LINEINDEX 0x00bb
795 #define EM_SETHANDLE 0x00bc
796 #define EM_GETHANDLE 0x00bd
797 #define EM_GETTHUMB 0x00be
798 /* FIXME : missing from specs 0x00bf and 0x00c0 */
799 #define EM_LINELENGTH 0x00c1
800 #define EM_REPLACESEL 0x00c2
801 /* FIXME : missing from specs 0x00c3 */
802 #define EM_GETLINE 0x00c4
803 #define EM_LIMITTEXT 0x00c5
804 #define EM_CANUNDO 0x00c6
805 #define EM_UNDO 0x00c7
806 #define EM_FMTLINES 0x00c8
807 #define EM_LINEFROMCHAR 0x00c9
808 /* FIXME : missing from specs 0x00ca */
809 #define EM_SETTABSTOPS 0x00cb
810 #define EM_SETPASSWORDCHAR 0x00cc
811 #define EM_EMPTYUNDOBUFFER 0x00cd
812 #define EM_GETFIRSTVISIBLELINE 0x00ce
813 #define EM_SETREADONLY 0x00cf
814 #define EM_SETWORDBREAKPROC 0x00d0
815 #define EM_GETWORDBREAKPROC 0x00d1
816 #define EM_GETPASSWORDCHAR 0x00d2
817 #define EM_SETMARGINS 0x00d3
818 #define EM_GETMARGINS 0x00d4
819 #define EM_GETLIMITTEXT 0x00d5
820 #define EM_POSFROMCHAR 0x00d6
821 #define EM_CHARFROMPOS 0x00d7
822 /* a name change since win95 */
823 #define EM_SETLIMITTEXT EM_LIMITTEXT
825 /* EDITWORDBREAKPROC code values */
826 #define WB_LEFT 0
827 #define WB_RIGHT 1
828 #define WB_ISDELIMITER 2
830 /* Edit control notification codes */
831 #define EN_SETFOCUS 0x0100
832 #define EN_KILLFOCUS 0x0200
833 #define EN_CHANGE 0x0300
834 #define EN_UPDATE 0x0400
835 #define EN_ERRSPACE 0x0500
836 #define EN_MAXTEXT 0x0501
837 #define EN_HSCROLL 0x0601
838 #define EN_VSCROLL 0x0602
840 /* New since win95 : EM_SETMARGIN parameters */
841 #define EC_LEFTMARGIN 0x0001
842 #define EC_RIGHTMARGIN 0x0002
843 #define EC_USEFONTINFO 0xffff
846 /* GetSystemMetrics() codes */
847 #define SM_CXSCREEN 0
848 #define SM_CYSCREEN 1
849 #define SM_CXVSCROLL 2
850 #define SM_CYHSCROLL 3
851 #define SM_CYCAPTION 4
852 #define SM_CXBORDER 5
853 #define SM_CYBORDER 6
854 #define SM_CXDLGFRAME 7
855 #define SM_CYDLGFRAME 8
856 #define SM_CYVTHUMB 9
857 #define SM_CXHTHUMB 10
858 #define SM_CXICON 11
859 #define SM_CYICON 12
860 #define SM_CXCURSOR 13
861 #define SM_CYCURSOR 14
862 #define SM_CYMENU 15
863 #define SM_CXFULLSCREEN 16
864 #define SM_CYFULLSCREEN 17
865 #define SM_CYKANJIWINDOW 18
866 #define SM_MOUSEPRESENT 19
867 #define SM_CYVSCROLL 20
868 #define SM_CXHSCROLL 21
869 #define SM_DEBUG 22
870 #define SM_SWAPBUTTON 23
871 #define SM_RESERVED1 24
872 #define SM_RESERVED2 25
873 #define SM_RESERVED3 26
874 #define SM_RESERVED4 27
875 #define SM_CXMIN 28
876 #define SM_CYMIN 29
877 #define SM_CXSIZE 30
878 #define SM_CYSIZE 31
879 #define SM_CXFRAME 32
880 #define SM_CYFRAME 33
881 #define SM_CXMINTRACK 34
882 #define SM_CYMINTRACK 35
883 #define SM_CXDOUBLECLK 36
884 #define SM_CYDOUBLECLK 37
885 #define SM_CXICONSPACING 38
886 #define SM_CYICONSPACING 39
887 #define SM_MENUDROPALIGNMENT 40
888 #define SM_PENWINDOWS 41
889 #define SM_DBCSENABLED 42
890 #define SM_CMOUSEBUTTONS 43
891 #define SM_CXFIXEDFRAME SM_CXDLGFRAME
892 #define SM_CYFIXEDFRAME SM_CYDLGFRAME
893 #define SM_CXSIZEFRAME SM_CXFRAME
894 #define SM_CYSIZEFRAME SM_CYFRAME
895 #define SM_SECURE 44
896 #define SM_CXEDGE 45
897 #define SM_CYEDGE 46
898 #define SM_CXMINSPACING 47
899 #define SM_CYMINSPACING 48
900 #define SM_CXSMICON 49
901 #define SM_CYSMICON 50
902 #define SM_CYSMCAPTION 51
903 #define SM_CXSMSIZE 52
904 #define SM_CYSMSIZE 53
905 #define SM_CXMENUSIZE 54
906 #define SM_CYMENUSIZE 55
907 #define SM_ARRANGE 56
908 #define SM_CXMINIMIZED 57
909 #define SM_CYMINIMIZED 58
910 #define SM_CXMAXTRACK 59
911 #define SM_CYMAXTRACK 60
912 #define SM_CXMAXIMIZED 61
913 #define SM_CYMAXIMIZED 62
914 #define SM_NETWORK 63
915 #define SM_CLEANBOOT 67
916 #define SM_CXDRAG 68
917 #define SM_CYDRAG 69
918 #define SM_SHOWSOUNDS 70
919 #define SM_CXMENUCHECK 71
920 #define SM_CYMENUCHECK 72
921 #define SM_SLOWMACHINE 73
922 #define SM_MIDEASTENABLED 74
923 #define SM_MOUSEWHEELPRESENT 75
924 #define SM_XVIRTUALSCREEN 76
925 #define SM_YVIRTUALSCREEN 77
926 #define SM_CXVIRTUALSCREEN 78
927 #define SM_CYVIRTUALSCREEN 79
928 #define SM_CMONITORS 80
929 #define SM_SAMEDISPLAYFORMAT 81
930 #define SM_CMETRICS 83
933 /* Messages */
935 /* WM_GETDLGCODE values */
938 #define WM_NULL 0x0000
939 #define WM_CREATE 0x0001
940 #define WM_DESTROY 0x0002
941 #define WM_MOVE 0x0003
942 #define WM_SIZEWAIT 0x0004
943 #define WM_SIZE 0x0005
944 #define WM_ACTIVATE 0x0006
945 #define WM_SETFOCUS 0x0007
946 #define WM_KILLFOCUS 0x0008
947 #define WM_SETVISIBLE 0x0009
948 #define WM_ENABLE 0x000a
949 #define WM_SETREDRAW 0x000b
950 #define WM_SETTEXT 0x000c
951 #define WM_GETTEXT 0x000d
952 #define WM_GETTEXTLENGTH 0x000e
953 #define WM_PAINT 0x000f
954 #define WM_CLOSE 0x0010
955 #define WM_QUERYENDSESSION 0x0011
956 #define WM_QUIT 0x0012
957 #define WM_QUERYOPEN 0x0013
958 #define WM_ERASEBKGND 0x0014
959 #define WM_SYSCOLORCHANGE 0x0015
960 #define WM_ENDSESSION 0x0016
961 #define WM_SYSTEMERROR 0x0017
962 #define WM_SHOWWINDOW 0x0018
963 #define WM_CTLCOLOR 0x0019
964 #define WM_WININICHANGE 0x001a
965 #define WM_SETTINGCHANGE WM_WININICHANGE
966 #define WM_DEVMODECHANGE 0x001b
967 #define WM_ACTIVATEAPP 0x001c
968 #define WM_FONTCHANGE 0x001d
969 #define WM_TIMECHANGE 0x001e
970 #define WM_CANCELMODE 0x001f
971 #define WM_SETCURSOR 0x0020
972 #define WM_MOUSEACTIVATE 0x0021
973 #define WM_CHILDACTIVATE 0x0022
974 #define WM_QUEUESYNC 0x0023
975 #define WM_GETMINMAXINFO 0x0024
977 #define WM_PAINTICON 0x0026
978 #define WM_ICONERASEBKGND 0x0027
979 #define WM_NEXTDLGCTL 0x0028
980 #define WM_ALTTABACTIVE 0x0029
981 #define WM_SPOOLERSTATUS 0x002a
982 #define WM_DRAWITEM 0x002b
983 #define WM_MEASUREITEM 0x002c
984 #define WM_DELETEITEM 0x002d
985 #define WM_VKEYTOITEM 0x002e
986 #define WM_CHARTOITEM 0x002f
987 #define WM_SETFONT 0x0030
988 #define WM_GETFONT 0x0031
989 #define WM_SETHOTKEY 0x0032
990 #define WM_GETHOTKEY 0x0033
991 #define WM_FILESYSCHANGE 0x0034
992 #define WM_ISACTIVEICON 0x0035
993 #define WM_QUERYPARKICON 0x0036
994 #define WM_QUERYDRAGICON 0x0037
995 #define WM_QUERYSAVESTATE 0x0038
996 #define WM_COMPAREITEM 0x0039
997 #define WM_TESTING 0x003a
999 #define WM_OTHERWINDOWCREATED 0x003c
1000 #define WM_OTHERWINDOWDESTROYED 0x003d
1001 #define WM_ACTIVATESHELLWINDOW 0x003e
1003 #define WM_COMPACTING 0x0041
1005 #define WM_COMMNOTIFY 0x0044
1006 #define WM_WINDOWPOSCHANGING 0x0046
1007 #define WM_WINDOWPOSCHANGED 0x0047
1008 #define WM_POWER 0x0048
1010 /* Win32 4.0 messages */
1011 #define WM_COPYDATA 0x004a
1012 #define WM_CANCELJOURNAL 0x004b
1013 #define WM_NOTIFY 0x004e
1014 #define WM_INPUTLANGCHANGEREQUEST 0x0050
1015 #define WM_INPUTLANGCHANGE 0x0051
1016 #define WM_TCARD 0x0052
1017 #define WM_HELP 0x0053
1018 #define WM_USERCHANGED 0x0054
1019 #define WM_NOTIFYFORMAT 0x0055
1021 #define WM_CONTEXTMENU 0x007b
1022 #define WM_STYLECHANGING 0x007c
1023 #define WM_STYLECHANGED 0x007d
1024 #define WM_DISPLAYCHANGE 0x007e
1025 #define WM_GETICON 0x007f
1026 #define WM_SETICON 0x0080
1028 /* Non-client system messages */
1029 #define WM_NCCREATE 0x0081
1030 #define WM_NCDESTROY 0x0082
1031 #define WM_NCCALCSIZE 0x0083
1032 #define WM_NCHITTEST 0x0084
1033 #define WM_NCPAINT 0x0085
1034 #define WM_NCACTIVATE 0x0086
1036 #define WM_GETDLGCODE 0x0087
1037 #define WM_SYNCPAINT 0x0088
1038 #define WM_SYNCTASK 0x0089
1040 /* Non-client mouse messages */
1041 #define WM_NCMOUSEMOVE 0x00a0
1042 #define WM_NCLBUTTONDOWN 0x00a1
1043 #define WM_NCLBUTTONUP 0x00a2
1044 #define WM_NCLBUTTONDBLCLK 0x00a3
1045 #define WM_NCRBUTTONDOWN 0x00a4
1046 #define WM_NCRBUTTONUP 0x00a5
1047 #define WM_NCRBUTTONDBLCLK 0x00a6
1048 #define WM_NCMBUTTONDOWN 0x00a7
1049 #define WM_NCMBUTTONUP 0x00a8
1050 #define WM_NCMBUTTONDBLCLK 0x00a9
1052 #define WM_NCXBUTTONDOWN 0x00ab
1053 #define WM_NCXBUTTONUP 0x00ac
1054 #define WM_NCXBUTTONDBLCLK 0x00ad
1056 /* Keyboard messages */
1057 #define WM_KEYDOWN 0x0100
1058 #define WM_KEYUP 0x0101
1059 #define WM_CHAR 0x0102
1060 #define WM_DEADCHAR 0x0103
1061 #define WM_SYSKEYDOWN 0x0104
1062 #define WM_SYSKEYUP 0x0105
1063 #define WM_SYSCHAR 0x0106
1064 #define WM_SYSDEADCHAR 0x0107
1065 #define WM_KEYFIRST WM_KEYDOWN
1066 #define WM_KEYLAST 0x0108
1068 /* Win32 4.0 messages for IME */
1069 #define WM_IME_STARTCOMPOSITION 0x010d
1070 #define WM_IME_ENDCOMPOSITION 0x010e
1071 #define WM_IME_COMPOSITION 0x010f
1072 #define WM_IME_KEYLAST 0x010f
1074 #define WM_INITDIALOG 0x0110
1075 #define WM_COMMAND 0x0111
1076 #define WM_SYSCOMMAND 0x0112
1077 #define WM_TIMER 0x0113
1078 #define WM_SYSTIMER 0x0118
1080 /* scroll messages */
1081 #define WM_HSCROLL 0x0114
1082 #define WM_VSCROLL 0x0115
1084 /* Menu messages */
1085 #define WM_INITMENU 0x0116
1086 #define WM_INITMENUPOPUP 0x0117
1088 #define WM_MENUSELECT 0x011F
1089 #define WM_MENUCHAR 0x0120
1090 #define WM_ENTERIDLE 0x0121
1092 #define WM_MENURBUTTONUP 0x0122
1093 #define WM_MENUDRAG 0x0123
1094 #define WM_MENUGETOBJECT 0x0124
1095 #define WM_UNINITMENUPOPUP 0x0125
1096 #define WM_MENUCOMMAND 0x0126
1098 #define WM_CHANGEUISTATE 0x0127
1099 #define WM_UPDATEUISTATE 0x0128
1100 #define WM_QUERYUISTATE 0x0129
1102 #define WM_LBTRACKPOINT 0x0131
1104 /* Win32 CTLCOLOR messages */
1105 #define WM_CTLCOLORMSGBOX 0x0132
1106 #define WM_CTLCOLOREDIT 0x0133
1107 #define WM_CTLCOLORLISTBOX 0x0134
1108 #define WM_CTLCOLORBTN 0x0135
1109 #define WM_CTLCOLORDLG 0x0136
1110 #define WM_CTLCOLORSCROLLBAR 0x0137
1111 #define WM_CTLCOLORSTATIC 0x0138
1113 /* Mouse messages */
1114 #define WM_MOUSEMOVE 0x0200
1115 #define WM_LBUTTONDOWN 0x0201
1116 #define WM_LBUTTONUP 0x0202
1117 #define WM_LBUTTONDBLCLK 0x0203
1118 #define WM_RBUTTONDOWN 0x0204
1119 #define WM_RBUTTONUP 0x0205
1120 #define WM_RBUTTONDBLCLK 0x0206
1121 #define WM_MBUTTONDOWN 0x0207
1122 #define WM_MBUTTONUP 0x0208
1123 #define WM_MBUTTONDBLCLK 0x0209
1124 #define WM_MOUSEWHEEL 0x020A
1125 #define WM_XBUTTONDOWN 0x020B
1126 #define WM_XBUTTONUP 0x020C
1127 #define WM_XBUTTONDBLCLK 0x020D
1129 #define WM_MOUSEFIRST 0x0200
1130 #define WM_MOUSELAST 0x020D
1132 #define WHEEL_DELTA 120
1133 #define WHEEL_PAGESCROLL (UINT_MAX)
1134 #define WM_PARENTNOTIFY 0x0210
1135 #define WM_ENTERMENULOOP 0x0211
1136 #define WM_EXITMENULOOP 0x0212
1137 #define WM_NEXTMENU 0x0213
1139 /* Win32 4.0 messages */
1140 #define WM_SIZING 0x0214
1141 #define WM_CAPTURECHANGED 0x0215
1142 #define WM_MOVING 0x0216
1143 #define WM_POWERBROADCAST 0x0218
1144 #define WM_DEVICECHANGE 0x0219
1146 /* wParam for WM_SIZING message */
1147 #define WMSZ_LEFT 1
1148 #define WMSZ_RIGHT 2
1149 #define WMSZ_TOP 3
1150 #define WMSZ_TOPLEFT 4
1151 #define WMSZ_TOPRIGHT 5
1152 #define WMSZ_BOTTOM 6
1153 #define WMSZ_BOTTOMLEFT 7
1154 #define WMSZ_BOTTOMRIGHT 8
1156 /* MDI messages */
1157 #define WM_MDICREATE 0x0220
1158 #define WM_MDIDESTROY 0x0221
1159 #define WM_MDIACTIVATE 0x0222
1160 #define WM_MDIRESTORE 0x0223
1161 #define WM_MDINEXT 0x0224
1162 #define WM_MDIMAXIMIZE 0x0225
1163 #define WM_MDITILE 0x0226
1164 #define WM_MDICASCADE 0x0227
1165 #define WM_MDIICONARRANGE 0x0228
1166 #define WM_MDIGETACTIVE 0x0229
1167 #define WM_MDIREFRESHMENU 0x0234
1169 /* D&D messages */
1170 #define WM_DROPOBJECT 0x022A
1171 #define WM_QUERYDROPOBJECT 0x022B
1172 #define WM_BEGINDRAG 0x022C
1173 #define WM_DRAGLOOP 0x022D
1174 #define WM_DRAGSELECT 0x022E
1175 #define WM_DRAGMOVE 0x022F
1176 #define WM_MDISETMENU 0x0230
1178 #define WM_ENTERSIZEMOVE 0x0231
1179 #define WM_EXITSIZEMOVE 0x0232
1180 #define WM_DROPFILES 0x0233
1183 /* Win32 4.0 messages for IME */
1184 #define WM_IME_SETCONTEXT 0x0281
1185 #define WM_IME_NOTIFY 0x0282
1186 #define WM_IME_CONTROL 0x0283
1187 #define WM_IME_COMPOSITIONFULL 0x0284
1188 #define WM_IME_SELECT 0x0285
1189 #define WM_IME_CHAR 0x0286
1190 /* Win32 5.0 messages for IME */
1191 #define WM_IME_REQUEST 0x0288
1193 /* Win32 4.0 messages for IME */
1194 #define WM_IME_KEYDOWN 0x0290
1195 #define WM_IME_KEYUP 0x0291
1197 /* Clipboard command messages */
1198 #define WM_CUT 0x0300
1199 #define WM_COPY 0x0301
1200 #define WM_PASTE 0x0302
1201 #define WM_CLEAR 0x0303
1202 #define WM_UNDO 0x0304
1204 /* Clipboard owner messages */
1205 #define WM_RENDERFORMAT 0x0305
1206 #define WM_RENDERALLFORMATS 0x0306
1207 #define WM_DESTROYCLIPBOARD 0x0307
1209 /* Clipboard viewer messages */
1210 #define WM_DRAWCLIPBOARD 0x0308
1211 #define WM_PAINTCLIPBOARD 0x0309
1212 #define WM_VSCROLLCLIPBOARD 0x030A
1213 #define WM_SIZECLIPBOARD 0x030B
1214 #define WM_ASKCBFORMATNAME 0x030C
1215 #define WM_CHANGECBCHAIN 0x030D
1216 #define WM_HSCROLLCLIPBOARD 0x030E
1218 #define WM_QUERYNEWPALETTE 0x030F
1219 #define WM_PALETTEISCHANGING 0x0310
1220 #define WM_PALETTECHANGED 0x0311
1221 #define WM_HOTKEY 0x0312
1223 #define WM_PRINT 0x0317
1224 #define WM_PRINTCLIENT 0x0318
1226 #define WM_PENWINFIRST 0x0380
1227 #define WM_PENWINLAST 0x038F
1230 #define WM_APP 0x8000
1232 /* MsgWaitForMultipleObjectsEx flags */
1233 #define MWMO_WAITALL 0x0001
1234 #define MWMO_ALERTABLE 0x0002
1235 #define MWMO_INPUTAVAILABLE 0x0004
1237 #define DLGC_WANTARROWS 0x0001
1238 #define DLGC_WANTTAB 0x0002
1239 #define DLGC_WANTALLKEYS 0x0004
1240 #define DLGC_WANTMESSAGE 0x0004
1241 #define DLGC_HASSETSEL 0x0008
1242 #define DLGC_DEFPUSHBUTTON 0x0010
1243 #define DLGC_UNDEFPUSHBUTTON 0x0020
1244 #define DLGC_RADIOBUTTON 0x0040
1245 #define DLGC_WANTCHARS 0x0080
1246 #define DLGC_STATIC 0x0100
1247 #define DLGC_BUTTON 0x2000
1249 /* Standard dialog button IDs */
1250 #define IDOK 1
1251 #define IDCANCEL 2
1252 #define IDABORT 3
1253 #define IDRETRY 4
1254 #define IDIGNORE 5
1255 #define IDYES 6
1256 #define IDNO 7
1257 #define IDCLOSE 8
1258 #define IDHELP 9
1260 /****** Window classes ******/
1262 typedef struct tagCREATESTRUCTA
1264 LPVOID lpCreateParams;
1265 HINSTANCE hInstance;
1266 HMENU hMenu;
1267 HWND hwndParent;
1268 INT cy;
1269 INT cx;
1270 INT y;
1271 INT x;
1272 LONG style;
1273 LPCSTR lpszName;
1274 LPCSTR lpszClass;
1275 DWORD dwExStyle;
1276 } CREATESTRUCTA, *LPCREATESTRUCTA;
1278 typedef struct
1280 LPVOID lpCreateParams;
1281 HINSTANCE hInstance;
1282 HMENU hMenu;
1283 HWND hwndParent;
1284 INT cy;
1285 INT cx;
1286 INT y;
1287 INT x;
1288 LONG style;
1289 LPCWSTR lpszName;
1290 LPCWSTR lpszClass;
1291 DWORD dwExStyle;
1292 } CREATESTRUCTW, *LPCREATESTRUCTW;
1294 DECL_WINELIB_TYPE_AW(CREATESTRUCT)
1295 DECL_WINELIB_TYPE_AW(LPCREATESTRUCT)
1297 typedef struct
1299 HDC hdc;
1300 BOOL fErase;
1301 RECT rcPaint;
1302 BOOL fRestore;
1303 BOOL fIncUpdate;
1304 BYTE rgbReserved[32];
1305 } PAINTSTRUCT, *PPAINTSTRUCT, *LPPAINTSTRUCT;
1307 typedef struct
1309 HMENU hWindowMenu;
1310 UINT idFirstChild;
1311 } CLIENTCREATESTRUCT, *LPCLIENTCREATESTRUCT;
1314 typedef struct
1316 LPCSTR szClass;
1317 LPCSTR szTitle;
1318 HINSTANCE hOwner;
1319 INT x;
1320 INT y;
1321 INT cx;
1322 INT cy;
1323 DWORD style;
1324 LPARAM lParam;
1325 } MDICREATESTRUCTA, *LPMDICREATESTRUCTA;
1327 typedef struct
1329 LPCWSTR szClass;
1330 LPCWSTR szTitle;
1331 HINSTANCE hOwner;
1332 INT x;
1333 INT y;
1334 INT cx;
1335 INT cy;
1336 DWORD style;
1337 LPARAM lParam;
1338 } MDICREATESTRUCTW, *LPMDICREATESTRUCTW;
1340 DECL_WINELIB_TYPE_AW(MDICREATESTRUCT)
1341 DECL_WINELIB_TYPE_AW(LPMDICREATESTRUCT)
1343 #define MDITILE_VERTICAL 0x0000
1344 #define MDITILE_HORIZONTAL 0x0001
1345 #define MDITILE_SKIPDISABLED 0x0002
1347 #define MDIS_ALLCHILDSTYLES 0x0001
1349 typedef struct {
1350 DWORD styleOld;
1351 DWORD styleNew;
1352 } STYLESTRUCT, *LPSTYLESTRUCT;
1354 #define WC_DIALOGA MAKEINTATOMA(0x8002)
1355 #define WC_DIALOGW MAKEINTATOMW(0x8002)
1356 #define WC_DIALOG WINELIB_NAME_AW(WC_DIALOG)
1358 /* Offsets for GetWindowLong() and GetWindowWord() */
1359 #define GWL_USERDATA (-21)
1360 #define GWL_EXSTYLE (-20)
1361 #define GWL_STYLE (-16)
1362 #define GWL_ID (-12)
1363 #define GWL_HWNDPARENT (-8)
1364 #define GWL_HINSTANCE (-6)
1365 #define GWL_WNDPROC (-4)
1366 #define DWL_MSGRESULT 0
1367 #define DWL_DLGPROC 4
1368 #define DWL_USER 8
1370 /* Offsets for GetWindowLongPtr() and SetWindowLongPtr() */
1371 #define GWLP_USERDATA (-21)
1372 #define GWLP_ID (-12)
1373 #define GWLP_HWNDPARENT (-8)
1374 #define GWLP_HINSTANCE (-6)
1375 #define GWLP_WNDPROC (-4)
1376 #define DWLP_MSGRESULT 0
1377 #define DWLP_DLGPROC DWLP_MSGRESULT + sizeof(LRESULT)
1378 #define DWLP_USER DWLP_DLGPROC + sizeof(DLGPROC)
1380 /* GetWindow() constants */
1381 #define GW_HWNDFIRST 0
1382 #define GW_HWNDLAST 1
1383 #define GW_HWNDNEXT 2
1384 #define GW_HWNDPREV 3
1385 #define GW_OWNER 4
1386 #define GW_CHILD 5
1388 /* GetAncestor() constants */
1389 #define GA_PARENT 1
1390 #define GA_ROOT 2
1391 #define GA_ROOTOWNER 3
1393 /* WM_GETMINMAXINFO struct */
1394 typedef struct
1396 POINT ptReserved;
1397 POINT ptMaxSize;
1398 POINT ptMaxPosition;
1399 POINT ptMinTrackSize;
1400 POINT ptMaxTrackSize;
1401 } MINMAXINFO, *PMINMAXINFO, *LPMINMAXINFO;
1404 /* RedrawWindow() flags */
1405 #define RDW_INVALIDATE 0x0001
1406 #define RDW_INTERNALPAINT 0x0002
1407 #define RDW_ERASE 0x0004
1408 #define RDW_VALIDATE 0x0008
1409 #define RDW_NOINTERNALPAINT 0x0010
1410 #define RDW_NOERASE 0x0020
1411 #define RDW_NOCHILDREN 0x0040
1412 #define RDW_ALLCHILDREN 0x0080
1413 #define RDW_UPDATENOW 0x0100
1414 #define RDW_ERASENOW 0x0200
1415 #define RDW_FRAME 0x0400
1416 #define RDW_NOFRAME 0x0800
1418 /* debug flags */
1419 #define DBGFILL_ALLOC 0xfd
1420 #define DBGFILL_FREE 0xfb
1421 #define DBGFILL_BUFFER 0xf9
1422 #define DBGFILL_STACK 0xf7
1424 /* WM_WINDOWPOSCHANGING/CHANGED struct */
1425 typedef struct tagWINDOWPOS
1427 HWND hwnd;
1428 HWND hwndInsertAfter;
1429 INT x;
1430 INT y;
1431 INT cx;
1432 INT cy;
1433 UINT flags;
1434 } WINDOWPOS, *PWINDOWPOS, *LPWINDOWPOS;
1437 /* WM_MOUSEACTIVATE return values */
1438 #define MA_ACTIVATE 1
1439 #define MA_ACTIVATEANDEAT 2
1440 #define MA_NOACTIVATE 3
1441 #define MA_NOACTIVATEANDEAT 4
1443 /* WM_ACTIVATE wParam values */
1444 #define WA_INACTIVE 0
1445 #define WA_ACTIVE 1
1446 #define WA_CLICKACTIVE 2
1448 /* WM_GETICON/WM_SETICON params values */
1449 #define ICON_SMALL 0
1450 #define ICON_BIG 1
1452 /* WM_NCCALCSIZE parameter structure */
1453 typedef struct
1455 RECT rgrc[3];
1456 WINDOWPOS *lppos;
1457 } NCCALCSIZE_PARAMS, *LPNCCALCSIZE_PARAMS;
1460 /* WM_NCCALCSIZE return flags */
1461 #define WVR_ALIGNTOP 0x0010
1462 #define WVR_ALIGNLEFT 0x0020
1463 #define WVR_ALIGNBOTTOM 0x0040
1464 #define WVR_ALIGNRIGHT 0x0080
1465 #define WVR_HREDRAW 0x0100
1466 #define WVR_VREDRAW 0x0200
1467 #define WVR_REDRAW (WVR_HREDRAW | WVR_VREDRAW)
1468 #define WVR_VALIDRECTS 0x0400
1470 /* WM_NCHITTEST return codes */
1471 #define HTERROR (-2)
1472 #define HTTRANSPARENT (-1)
1473 #define HTNOWHERE 0
1474 #define HTCLIENT 1
1475 #define HTCAPTION 2
1476 #define HTSYSMENU 3
1477 #define HTSIZE 4
1478 #define HTMENU 5
1479 #define HTHSCROLL 6
1480 #define HTVSCROLL 7
1481 #define HTMINBUTTON 8
1482 #define HTMAXBUTTON 9
1483 #define HTLEFT 10
1484 #define HTRIGHT 11
1485 #define HTTOP 12
1486 #define HTTOPLEFT 13
1487 #define HTTOPRIGHT 14
1488 #define HTBOTTOM 15
1489 #define HTBOTTOMLEFT 16
1490 #define HTBOTTOMRIGHT 17
1491 #define HTBORDER 18
1492 #define HTGROWBOX HTSIZE
1493 #define HTREDUCE HTMINBUTTON
1494 #define HTZOOM HTMAXBUTTON
1495 #define HTOBJECT 19
1496 #define HTCLOSE 20
1497 #define HTHELP 21
1498 #define HTSIZEFIRST HTLEFT
1499 #define HTSIZELAST HTBOTTOMRIGHT
1501 /* SendMessageTimeout flags */
1502 #define SMTO_NORMAL 0x0000
1503 #define SMTO_BLOCK 0x0001
1504 #define SMTO_ABORTIFHUNG 0x0002
1505 #define SMTO_NOTIMEOUTIFNOTHUNG 0x0008
1507 /* WM_SYSCOMMAND parameters */
1508 #ifdef SC_SIZE /* at least HP-UX: already defined in /usr/include/sys/signal.h */
1509 #undef SC_SIZE
1510 #endif
1511 #define SC_SIZE 0xf000
1512 #define SC_MOVE 0xf010
1513 #define SC_MINIMIZE 0xf020
1514 #define SC_MAXIMIZE 0xf030
1515 #define SC_NEXTWINDOW 0xf040
1516 #define SC_PREVWINDOW 0xf050
1517 #define SC_CLOSE 0xf060
1518 #define SC_VSCROLL 0xf070
1519 #define SC_HSCROLL 0xf080
1520 #define SC_MOUSEMENU 0xf090
1521 #define SC_KEYMENU 0xf100
1522 #define SC_ARRANGE 0xf110
1523 #define SC_RESTORE 0xf120
1524 #define SC_TASKLIST 0xf130
1525 #define SC_SCREENSAVE 0xf140
1526 #define SC_HOTKEY 0xf150
1527 /* Win32 4.0 */
1528 #define SC_DEFAULT 0xf160
1529 #define SC_MONITORPOWER 0xf170
1530 #define SC_CONTEXTHELP 0xf180
1531 #define SC_SEPARATOR 0xf00f
1533 /* obsolete names(SC_ICON and SC_ZOOM) */
1534 #define SC_ICON SC_MINIMIZE
1535 #define SC_ZOOM SC_MAXIMIZE
1538 #define CS_VREDRAW 0x0001
1539 #define CS_HREDRAW 0x0002
1540 #define CS_KEYCVTWINDOW 0x0004
1541 #define CS_DBLCLKS 0x0008
1542 #define CS_OWNDC 0x0020
1543 #define CS_CLASSDC 0x0040
1544 #define CS_PARENTDC 0x0080
1545 #define CS_NOKEYCVT 0x0100
1546 #define CS_NOCLOSE 0x0200
1547 #define CS_SAVEBITS 0x0800
1548 #define CS_BYTEALIGNCLIENT 0x1000
1549 #define CS_BYTEALIGNWINDOW 0x2000
1550 #define CS_GLOBALCLASS 0x4000
1551 #define CS_IME 0x00010000
1553 #define PRF_CHECKVISIBLE 0x00000001L
1554 #define PRF_NONCLIENT 0x00000002L
1555 #define PRF_CLIENT 0x00000004L
1556 #define PRF_ERASEBKGND 0x00000008L
1557 #define PRF_CHILDREN 0x00000010L
1558 #define PRF_OWNED 0x00000020L
1560 /* Offsets for GetClassLong() and GetClassWord() */
1561 #define GCL_MENUNAME (-8)
1562 #define GCL_HBRBACKGROUND (-10)
1563 #define GCL_HCURSOR (-12)
1564 #define GCL_HICON (-14)
1565 #define GCL_HMODULE (-16)
1566 #define GCL_CBWNDEXTRA (-18)
1567 #define GCL_CBCLSEXTRA (-20)
1568 #define GCL_WNDPROC (-24)
1569 #define GCL_STYLE (-26)
1570 #define GCW_ATOM (-32)
1571 #define GCL_HICONSM (-34)
1573 /* BroadcastSystemMessage flags */
1574 #define BSM_ALLCOMPONENTS 0x00000000
1575 #define BSM_VXDS 0x00000001
1576 #define BSM_NETDRIVER 0x00000002
1577 #define BSM_INSTALLABLEDRIVERS 0x00000004
1578 #define BSM_APPLICATIONS 0x00000008
1580 #define BSF_QUERY 0x00000001
1581 #define BSF_IGNORECURRENTTASK 0x00000002
1582 #define BSF_FLUSHDISK 0x00000004
1583 #define BSF_NOHANG 0x00000008
1584 #define BSF_POSTMESSAGE 0x00000010
1585 #define BSF_FORCEIFHUNG 0x00000020
1586 #define BSF_NOTIMEOUTIFNOTHUNG 0x00000040
1587 #define BSF_ALLOWSFW 0x00000080
1588 #define BSF_SENDNOTIFYMESSAGE 0x00000100
1589 #define BSF_RETURNHDESK 0x00000200
1590 #define BSF_LUID 0x00000400
1593 /***** Window hooks *****/
1595 /* Hook values */
1596 #define WH_MIN (-1)
1597 #define WH_MSGFILTER (-1)
1598 #define WH_JOURNALRECORD 0
1599 #define WH_JOURNALPLAYBACK 1
1600 #define WH_KEYBOARD 2
1601 #define WH_GETMESSAGE 3
1602 #define WH_CALLWNDPROC 4
1603 #define WH_CBT 5
1604 #define WH_SYSMSGFILTER 6
1605 #define WH_MOUSE 7
1606 #define WH_HARDWARE 8
1607 #define WH_DEBUG 9
1608 #define WH_SHELL 10
1609 #define WH_FOREGROUNDIDLE 11
1610 #define WH_CALLWNDPROCRET 12
1611 #define WH_KEYBOARD_LL 13
1612 #define WH_MOUSE_LL 14
1613 #define WH_MAX 14
1615 #define WH_MINHOOK WH_MIN
1616 #define WH_MAXHOOK WH_MAX
1618 /* Hook action codes */
1619 #define HC_ACTION 0
1620 #define HC_GETNEXT 1
1621 #define HC_SKIP 2
1622 #define HC_NOREMOVE 3
1623 #define HC_NOREM HC_NOREMOVE
1624 #define HC_SYSMODALON 4
1625 #define HC_SYSMODALOFF 5
1627 /* CallMsgFilter() values */
1628 #define MSGF_DIALOGBOX 0
1629 #define MSGF_MESSAGEBOX 1
1630 #define MSGF_MENU 2
1631 #define MSGF_MOVE 3
1632 #define MSGF_SIZE 4
1633 #define MSGF_SCROLLBAR 5
1634 #define MSGF_NEXTWINDOW 6
1635 #define MSGF_MAX 8
1636 #define MSGF_USER 0x1000
1637 #define MSGF_DDEMGR 0x8001
1639 typedef struct
1641 UINT style;
1642 WNDPROC lpfnWndProc;
1643 INT cbClsExtra;
1644 INT cbWndExtra;
1645 HINSTANCE hInstance;
1646 HICON hIcon;
1647 HCURSOR hCursor;
1648 HBRUSH hbrBackground;
1649 LPCSTR lpszMenuName;
1650 LPCSTR lpszClassName;
1651 } WNDCLASSA, *PWNDCLASSA, *LPWNDCLASSA;
1653 typedef struct
1655 UINT style;
1656 WNDPROC lpfnWndProc;
1657 INT cbClsExtra;
1658 INT cbWndExtra;
1659 HINSTANCE hInstance;
1660 HICON hIcon;
1661 HCURSOR hCursor;
1662 HBRUSH hbrBackground;
1663 LPCWSTR lpszMenuName;
1664 LPCWSTR lpszClassName;
1665 } WNDCLASSW, *PWNDCLASSW, *LPWNDCLASSW;
1667 DECL_WINELIB_TYPE_AW(WNDCLASS)
1668 DECL_WINELIB_TYPE_AW(PWNDCLASS)
1669 DECL_WINELIB_TYPE_AW(LPWNDCLASS)
1671 typedef struct {
1672 ULONG_PTR dwData;
1673 DWORD cbData;
1674 PVOID lpData;
1675 } COPYDATASTRUCT, *PCOPYDATASTRUCT;
1677 typedef struct {
1678 HMENU hmenuIn;
1679 HMENU hmenuNext;
1680 HWND hwndNext;
1681 } MDINEXTMENU, *PMDINEXTMENU, *LPMDINEXTMENU;
1683 typedef struct
1685 DWORD mkSize;
1686 CHAR mkKeylist;
1687 CHAR szKeyphrase[1];
1688 } MULTIKEYHELPA, *PMULTIKEYHELPA, *LPMULTIKEYHELPA;
1690 typedef struct
1692 DWORD mkSize;
1693 WCHAR mkKeylist;
1694 WCHAR szKeyphrase[1];
1695 } MULTIKEYHELPW, *PMULTIKEYHELPW, *LPMULTIKEYHELPW;
1697 DECL_WINELIB_TYPE_AW(MULTIKEYHELP)
1698 DECL_WINELIB_TYPE_AW(PMULTIKEYHELP)
1699 DECL_WINELIB_TYPE_AW(LPMULTIKEYHELP)
1701 typedef struct {
1702 int wStructSize;
1703 int x;
1704 int y;
1705 int dx;
1706 int dy;
1707 int wMax;
1708 CHAR rgchMember[2];
1709 } HELPWININFOA, *PHELPWININFOA, *LPHELPWININFOA;
1711 typedef struct {
1712 int wStructSize;
1713 int x;
1714 int y;
1715 int dx;
1716 int dy;
1717 int wMax;
1718 WCHAR rgchMember[2];
1719 } HELPWININFOW, *PHELPWININFOW, *LPHELPWININFOW;
1721 DECL_WINELIB_TYPE_AW(HELPWININFO)
1722 DECL_WINELIB_TYPE_AW(PHELPWININFO)
1723 DECL_WINELIB_TYPE_AW(LPHELPWININFO)
1725 #define HELP_CONTEXT 0x0001
1726 #define HELP_QUIT 0x0002
1727 #define HELP_INDEX 0x0003
1728 #define HELP_CONTENTS 0x0003
1729 #define HELP_HELPONHELP 0x0004
1730 #define HELP_SETINDEX 0x0005
1731 #define HELP_SETCONTENTS 0x0005
1732 #define HELP_CONTEXTPOPUP 0x0008
1733 #define HELP_FORCEFILE 0x0009
1734 #define HELP_KEY 0x0101
1735 #define HELP_COMMAND 0x0102
1736 #define HELP_PARTIALKEY 0x0105
1737 #define HELP_MULTIKEY 0x0201
1738 #define HELP_SETWINPOS 0x0203
1739 #define HELP_CONTEXTMENU 0x000a
1740 #define HELP_FINDER 0x000b
1741 #define HELP_WM_HELP 0x000c
1742 #define HELP_SETPOPUP_POS 0x000d
1744 #define HELP_TCARD 0x8000
1745 #define HELP_TCARD_DATA 0x0010
1746 #define HELP_TCARD_OTHER_CALLER 0x0011
1749 /* ChangeDisplaySettings return codes */
1751 #define DISP_CHANGE_SUCCESSFUL 0
1752 #define DISP_CHANGE_RESTART 1
1753 #define DISP_CHANGE_FAILED (-1)
1754 #define DISP_CHANGE_BADMODE (-2)
1755 #define DISP_CHANGE_NOTUPDATED (-3)
1756 #define DISP_CHANGE_BADFLAGS (-4)
1757 #define DISP_CHANGE_BADPARAM (-5)
1759 /* ChangeDisplaySettings.dwFlags */
1760 #define CDS_UPDATEREGISTRY 0x00000001
1761 #define CDS_TEST 0x00000002
1762 #define CDS_FULLSCREEN 0x00000004
1763 #define CDS_GLOBAL 0x00000008
1764 #define CDS_SET_PRIMARY 0x00000010
1765 #define CDS_RESET 0x40000000
1766 #define CDS_SETRECT 0x20000000
1767 #define CDS_NORESET 0x10000000
1769 typedef struct
1771 UINT cbSize;
1772 UINT style;
1773 WNDPROC lpfnWndProc;
1774 INT cbClsExtra;
1775 INT cbWndExtra;
1776 HINSTANCE hInstance;
1777 HICON hIcon;
1778 HCURSOR hCursor;
1779 HBRUSH hbrBackground;
1780 LPCSTR lpszMenuName;
1781 LPCSTR lpszClassName;
1782 HICON hIconSm;
1783 } WNDCLASSEXA, *PWNDCLASSEXA, *LPWNDCLASSEXA;
1785 typedef struct
1787 UINT cbSize;
1788 UINT style;
1789 WNDPROC lpfnWndProc;
1790 INT cbClsExtra;
1791 INT cbWndExtra;
1792 HINSTANCE hInstance;
1793 HICON hIcon;
1794 HCURSOR hCursor;
1795 HBRUSH hbrBackground;
1796 LPCWSTR lpszMenuName;
1797 LPCWSTR lpszClassName;
1798 HICON hIconSm;
1799 } WNDCLASSEXW, *PWNDCLASSEXW, *LPWNDCLASSEXW;
1801 DECL_WINELIB_TYPE_AW(WNDCLASSEX)
1802 DECL_WINELIB_TYPE_AW(PWNDCLASSEX)
1803 DECL_WINELIB_TYPE_AW(LPWNDCLASSEX)
1805 typedef struct tagMSG
1807 HWND hwnd;
1808 UINT message;
1809 WPARAM wParam;
1810 LPARAM lParam;
1811 DWORD time;
1812 POINT pt;
1813 } MSG, *PMSG, *LPMSG;
1815 #define POINTSTOPOINT(pt, pts) \
1816 { (pt).x = (LONG)(SHORT)LOWORD(*(LONG*)&pts); \
1817 (pt).y = (LONG)(SHORT)HIWORD(*(LONG*)&pts); }
1819 #define POINTTOPOINTS(pt) (MAKELONG((short)((pt).x), (short)((pt).y)))
1822 /* Cursors / Icons */
1824 typedef struct {
1825 BOOL fIcon;
1826 DWORD xHotspot;
1827 DWORD yHotspot;
1828 HBITMAP hbmMask;
1829 HBITMAP hbmColor;
1830 } ICONINFO, *PICONINFO;
1833 typedef struct
1835 DWORD cbSize;
1836 DWORD flags;
1837 HCURSOR hCursor;
1838 POINT ptScreenPos;
1839 } CURSORINFO, *PCURSORINFO, *LPCURSORINFO;
1841 #define CURSOR_SHOWING 0x00000001
1843 /* this is the 6 byte accel struct used in Win32 when presented to the user */
1844 typedef struct
1846 BYTE fVirt;
1847 WORD key;
1848 WORD cmd;
1849 } ACCEL, *LPACCEL;
1852 /* Flags for TrackPopupMenu */
1853 #define TPM_LEFTBUTTON 0x0000
1854 #define TPM_RIGHTBUTTON 0x0002
1855 #define TPM_LEFTALIGN 0x0000
1856 #define TPM_CENTERALIGN 0x0004
1857 #define TPM_RIGHTALIGN 0x0008
1858 #define TPM_TOPALIGN 0x0000
1859 #define TPM_VCENTERALIGN 0x0010
1860 #define TPM_BOTTOMALIGN 0x0020
1861 #define TPM_HORIZONTAL 0x0000
1862 #define TPM_VERTICAL 0x0040
1863 #define TPM_NONOTIFY 0x0080
1864 #define TPM_RETURNCMD 0x0100
1866 typedef struct
1868 UINT cbSize;
1869 RECT rcExclude;
1870 } TPMPARAMS, *LPTPMPARAMS;
1874 * Combobox information
1876 typedef struct tagCOMBOBOXINFO
1878 DWORD cbSize;
1879 RECT rcItem;
1880 RECT rcButton;
1881 DWORD stateButton;
1882 HWND hwndCombo;
1883 HWND hwndItem;
1884 HWND hwndList;
1885 } COMBOBOXINFO, *PCOMBOBOXINFO, *LPCOMBOBOXINFO;
1887 /* FIXME: not sure this one is correct */
1888 typedef struct {
1889 UINT cbSize;
1890 UINT fMask;
1891 UINT fType;
1892 UINT fState;
1893 UINT wID;
1894 HMENU hSubMenu;
1895 HBITMAP hbmpChecked;
1896 HBITMAP hbmpUnchecked;
1897 ULONG_PTR dwItemData;
1898 LPSTR dwTypeData;
1899 UINT cch;
1900 HBITMAP hbmpItem;
1901 } MENUITEMINFOA, *LPMENUITEMINFOA;
1903 typedef struct {
1904 UINT cbSize;
1905 UINT fMask;
1906 UINT fType;
1907 UINT fState;
1908 UINT wID;
1909 HMENU hSubMenu;
1910 HBITMAP hbmpChecked;
1911 HBITMAP hbmpUnchecked;
1912 ULONG_PTR dwItemData;
1913 LPWSTR dwTypeData;
1914 UINT cch;
1915 HBITMAP hbmpItem;
1916 } MENUITEMINFOW, *LPMENUITEMINFOW;
1918 DECL_WINELIB_TYPE_AW(MENUITEMINFO)
1919 DECL_WINELIB_TYPE_AW(LPMENUITEMINFO)
1920 typedef const MENUITEMINFOA *LPCMENUITEMINFOA;
1921 typedef const MENUITEMINFOW *LPCMENUITEMINFOW;
1922 DECL_WINELIB_TYPE_AW(LPCMENUITEMINFO)
1924 typedef struct {
1925 DWORD cbSize;
1926 DWORD fMask;
1927 DWORD dwStyle;
1928 UINT cyMax;
1929 HBRUSH hbrBack;
1930 DWORD dwContextHelpID;
1931 ULONG_PTR dwMenuData;
1932 } MENUINFO, *LPMENUINFO;
1934 typedef const MENUINFO *LPCMENUINFO;
1936 #define MIM_MAXHEIGHT 0x00000001
1937 #define MIM_BACKGROUND 0x00000002
1938 #define MIM_HELPID 0x00000004
1939 #define MIM_MENUDATA 0x00000008
1940 #define MIM_STYLE 0x00000010
1941 #define MIM_APPLYTOSUBMENUS 0x80000000
1943 typedef struct {
1944 WORD versionNumber;
1945 WORD offset;
1946 } MENUITEMTEMPLATEHEADER, *PMENUITEMTEMPLATEHEADER;
1949 typedef struct {
1950 WORD mtOption;
1951 WORD mtID;
1952 WCHAR mtString[1];
1953 } MENUITEMTEMPLATE, *PMENUITEMTEMPLATE;
1956 typedef VOID MENUTEMPLATE;
1957 typedef PVOID *LPMENUTEMPLATE;
1959 /* Field specifiers for MENUITEMINFO[AW] type. */
1960 #define MIIM_STATE 0x00000001
1961 #define MIIM_ID 0x00000002
1962 #define MIIM_SUBMENU 0x00000004
1963 #define MIIM_CHECKMARKS 0x00000008
1964 #define MIIM_TYPE 0x00000010
1965 #define MIIM_DATA 0x00000020
1966 #define MIIM_STRING 0x00000040
1967 #define MIIM_BITMAP 0x00000080
1968 #define MIIM_FTYPE 0x00000100
1970 #define HBMMENU_CALLBACK ((HBITMAP) -1)
1971 #define HBMMENU_SYSTEM ((HBITMAP) 1)
1972 #define HBMMENU_MBAR_RESTORE ((HBITMAP) 2)
1973 #define HBMMENU_MBAR_MINIMIZE ((HBITMAP) 3)
1974 #define HBMMENU_MBAR_CLOSE ((HBITMAP) 5)
1975 #define HBMMENU_MBAR_CLOSE_D ((HBITMAP) 6)
1976 #define HBMMENU_MBAR_MINIMIZE_D ((HBITMAP) 7)
1977 #define HBMMENU_POPUP_CLOSE ((HBITMAP) 8)
1978 #define HBMMENU_POPUP_RESTORE ((HBITMAP) 9)
1979 #define HBMMENU_POPUP_MAXIMIZE ((HBITMAP) 10)
1980 #define HBMMENU_POPUP_MINIMIZE ((HBITMAP) 11)
1982 /* WM_H/VSCROLL commands */
1983 #define SB_LINEUP 0
1984 #define SB_LINELEFT 0
1985 #define SB_LINEDOWN 1
1986 #define SB_LINERIGHT 1
1987 #define SB_PAGEUP 2
1988 #define SB_PAGELEFT 2
1989 #define SB_PAGEDOWN 3
1990 #define SB_PAGERIGHT 3
1991 #define SB_THUMBPOSITION 4
1992 #define SB_THUMBTRACK 5
1993 #define SB_TOP 6
1994 #define SB_LEFT 6
1995 #define SB_BOTTOM 7
1996 #define SB_RIGHT 7
1997 #define SB_ENDSCROLL 8
1999 /* Scroll bar selection constants */
2000 #define SB_HORZ 0
2001 #define SB_VERT 1
2002 #define SB_CTL 2
2003 #define SB_BOTH 3
2005 /* Scrollbar styles */
2006 #define SBS_HORZ 0x0000L
2007 #define SBS_VERT 0x0001L
2008 #define SBS_TOPALIGN 0x0002L
2009 #define SBS_LEFTALIGN 0x0002L
2010 #define SBS_BOTTOMALIGN 0x0004L
2011 #define SBS_RIGHTALIGN 0x0004L
2012 #define SBS_SIZEBOXTOPLEFTALIGN 0x0002L
2013 #define SBS_SIZEBOXBOTTOMRIGHTALIGN 0x0004L
2014 #define SBS_SIZEBOX 0x0008L
2015 #define SBS_SIZEGRIP 0x0010L
2017 /* EnableScrollBar() flags */
2018 #define ESB_ENABLE_BOTH 0x0000
2019 #define ESB_DISABLE_BOTH 0x0003
2021 #define ESB_DISABLE_LEFT 0x0001
2022 #define ESB_DISABLE_RIGHT 0x0002
2024 #define ESB_DISABLE_UP 0x0001
2025 #define ESB_DISABLE_DOWN 0x0002
2027 #define ESB_DISABLE_LTUP ESB_DISABLE_LEFT
2028 #define ESB_DISABLE_RTDN ESB_DISABLE_RIGHT
2030 /* Win32 button control messages */
2031 #define BM_GETCHECK 0x00f0
2032 #define BM_SETCHECK 0x00f1
2033 #define BM_GETSTATE 0x00f2
2034 #define BM_SETSTATE 0x00f3
2035 #define BM_SETSTYLE 0x00f4
2036 #define BM_CLICK 0x00f5
2037 #define BM_GETIMAGE 0x00f6
2038 #define BM_SETIMAGE 0x00f7
2039 /* Winelib button control messages */
2041 /* Button notification codes */
2042 #define BN_CLICKED 0
2043 #define BN_PAINT 1
2044 #define BN_HILITE 2
2045 #define BN_UNHILITE 3
2046 #define BN_DISABLE 4
2047 #define BN_DOUBLECLICKED 5
2048 #define BN_DBLCLK BN_DOUBLECLICKED
2050 /* Button states */
2051 #define BST_UNCHECKED 0x0000
2052 #define BST_CHECKED 0x0001
2053 #define BST_INDETERMINATE 0x0002
2054 #define BST_PUSHED 0x0004
2055 #define BST_FOCUS 0x0008
2057 /* Static Control Styles */
2058 #define SS_LEFT 0x00000000L
2059 #define SS_CENTER 0x00000001L
2060 #define SS_RIGHT 0x00000002L
2061 #define SS_ICON 0x00000003L
2062 #define SS_BLACKRECT 0x00000004L
2063 #define SS_GRAYRECT 0x00000005L
2064 #define SS_WHITERECT 0x00000006L
2065 #define SS_BLACKFRAME 0x00000007L
2066 #define SS_GRAYFRAME 0x00000008L
2067 #define SS_WHITEFRAME 0x00000009L
2069 #define SS_SIMPLE 0x0000000BL
2070 #define SS_LEFTNOWORDWRAP 0x0000000CL
2072 #define SS_OWNERDRAW 0x0000000DL
2073 #define SS_BITMAP 0x0000000EL
2074 #define SS_ENHMETAFILE 0x0000000FL
2076 #define SS_ETCHEDHORZ 0x00000010L
2077 #define SS_ETCHEDVERT 0x00000011L
2078 #define SS_ETCHEDFRAME 0x00000012L
2079 #define SS_TYPEMASK 0x0000001FL
2081 #define SS_NOPREFIX 0x00000080L
2082 #define SS_NOTIFY 0x00000100L
2083 #define SS_CENTERIMAGE 0x00000200L
2084 #define SS_RIGHTJUST 0x00000400L
2085 #define SS_REALSIZEIMAGE 0x00000800L
2086 #define SS_SUNKEN 0x00001000L
2088 /* Static Control Messages */
2089 #define STM_SETICON 0x0170
2090 #define STM_GETICON 0x0171
2091 #define STM_SETIMAGE 0x0172
2092 #define STM_GETIMAGE 0x0173
2093 #define STM_MSGMAX 0x0174
2095 #define STN_CLICKED 0
2096 #define STN_DBLCLK 1
2097 #define STN_ENABLE 2
2098 #define STN_DISABLE 3
2100 /* Scrollbar messages */
2101 #define SBM_SETPOS 0x00e0
2102 #define SBM_GETPOS 0x00e1
2103 #define SBM_SETRANGE 0x00e2
2104 #define SBM_GETRANGE 0x00e3
2105 #define SBM_ENABLE_ARROWS 0x00e4
2106 #define SBM_SETRANGEREDRAW 0x00e6
2107 #define SBM_SETSCROLLINFO 0x00e9
2108 #define SBM_GETSCROLLINFO 0x00ea
2110 /* Scrollbar info */
2111 typedef struct
2113 UINT cbSize;
2114 UINT fMask;
2115 INT nMin;
2116 INT nMax;
2117 UINT nPage;
2118 INT nPos;
2119 INT nTrackPos;
2120 } SCROLLINFO, *LPSCROLLINFO;
2122 typedef const SCROLLINFO *LPCSCROLLINFO;
2124 /* GetScrollInfo() flags */
2125 #define SIF_RANGE 0x0001
2126 #define SIF_PAGE 0x0002
2127 #define SIF_POS 0x0004
2128 #define SIF_DISABLENOSCROLL 0x0008
2129 #define SIF_TRACKPOS 0x0010
2130 #define SIF_ALL (SIF_RANGE | SIF_PAGE | SIF_POS | SIF_TRACKPOS)
2132 /* Listbox styles */
2133 #define LBS_NOTIFY 0x0001
2134 #define LBS_SORT 0x0002
2135 #define LBS_NOREDRAW 0x0004
2136 #define LBS_MULTIPLESEL 0x0008
2137 #define LBS_OWNERDRAWFIXED 0x0010
2138 #define LBS_OWNERDRAWVARIABLE 0x0020
2139 #define LBS_HASSTRINGS 0x0040
2140 #define LBS_USETABSTOPS 0x0080
2141 #define LBS_NOINTEGRALHEIGHT 0x0100
2142 #define LBS_MULTICOLUMN 0x0200
2143 #define LBS_WANTKEYBOARDINPUT 0x0400
2144 #define LBS_EXTENDEDSEL 0x0800
2145 #define LBS_DISABLENOSCROLL 0x1000
2146 #define LBS_NODATA 0x2000
2147 #define LBS_NOSEL 0x4000
2148 #define LBS_STANDARD (LBS_NOTIFY | LBS_SORT | WS_VSCROLL | WS_BORDER)
2150 /* Listbox messages */
2151 #define LB_ADDSTRING 0x0180
2152 #define LB_INSERTSTRING 0x0181
2153 #define LB_DELETESTRING 0x0182
2154 #define LB_SELITEMRANGEEX 0x0183
2155 #define LB_RESETCONTENT 0x0184
2156 #define LB_SETSEL 0x0185
2157 #define LB_SETCURSEL 0x0186
2158 #define LB_GETSEL 0x0187
2159 #define LB_GETCURSEL 0x0188
2160 #define LB_GETTEXT 0x0189
2161 #define LB_GETTEXTLEN 0x018a
2162 #define LB_GETCOUNT 0x018b
2163 #define LB_SELECTSTRING 0x018c
2164 #define LB_DIR 0x018d
2165 #define LB_GETTOPINDEX 0x018e
2166 #define LB_FINDSTRING 0x018f
2167 #define LB_GETSELCOUNT 0x0190
2168 #define LB_GETSELITEMS 0x0191
2169 #define LB_SETTABSTOPS 0x0192
2170 #define LB_GETHORIZONTALEXTENT 0x0193
2171 #define LB_SETHORIZONTALEXTENT 0x0194
2172 #define LB_SETCOLUMNWIDTH 0x0195
2173 #define LB_ADDFILE 0x0196
2174 #define LB_SETTOPINDEX 0x0197
2175 #define LB_GETITEMRECT 0x0198
2176 #define LB_GETITEMDATA 0x0199
2177 #define LB_SETITEMDATA 0x019a
2178 #define LB_SELITEMRANGE 0x019b
2179 #define LB_SETANCHORINDEX 0x019c
2180 #define LB_GETANCHORINDEX 0x019d
2181 #define LB_SETCARETINDEX 0x019e
2182 #define LB_GETCARETINDEX 0x019f
2183 #define LB_SETITEMHEIGHT 0x01a0
2184 #define LB_GETITEMHEIGHT 0x01a1
2185 #define LB_FINDSTRINGEXACT 0x01a2
2186 #define LB_CARETON 0x01a3
2187 #define LB_CARETOFF 0x01a4
2188 #define LB_SETLOCALE 0x01a5
2189 #define LB_GETLOCALE 0x01a6
2190 #define LB_SETCOUNT 0x01a7
2191 #define LB_INITSTORAGE 0x01a8
2192 #define LB_ITEMFROMPOINT 0x01a9
2194 /* Listbox notification codes */
2195 #define LBN_ERRSPACE (-2)
2196 #define LBN_SELCHANGE 1
2197 #define LBN_DBLCLK 2
2198 #define LBN_SELCANCEL 3
2199 #define LBN_SETFOCUS 4
2200 #define LBN_KILLFOCUS 5
2202 /* Listbox message return values */
2203 #define LB_OKAY 0
2204 #define LB_ERR (-1)
2205 #define LB_ERRSPACE (-2)
2207 #define LB_CTLCODE 0L
2209 /* Combo box styles */
2210 #define CBS_SIMPLE 0x0001L
2211 #define CBS_DROPDOWN 0x0002L
2212 #define CBS_DROPDOWNLIST 0x0003L
2213 #define CBS_OWNERDRAWFIXED 0x0010L
2214 #define CBS_OWNERDRAWVARIABLE 0x0020L
2215 #define CBS_AUTOHSCROLL 0x0040L
2216 #define CBS_OEMCONVERT 0x0080L
2217 #define CBS_SORT 0x0100L
2218 #define CBS_HASSTRINGS 0x0200L
2219 #define CBS_NOINTEGRALHEIGHT 0x0400L
2220 #define CBS_DISABLENOSCROLL 0x0800L
2222 #define CBS_UPPERCASE 0x2000L
2223 #define CBS_LOWERCASE 0x4000L
2226 /* Combo box messages */
2227 #define CB_GETEDITSEL 0x0140
2228 #define CB_LIMITTEXT 0x0141
2229 #define CB_SETEDITSEL 0x0142
2230 #define CB_ADDSTRING 0x0143
2231 #define CB_DELETESTRING 0x0144
2232 #define CB_DIR 0x0145
2233 #define CB_GETCOUNT 0x0146
2234 #define CB_GETCURSEL 0x0147
2235 #define CB_GETLBTEXT 0x0148
2236 #define CB_GETLBTEXTLEN 0x0149
2237 #define CB_INSERTSTRING 0x014a
2238 #define CB_RESETCONTENT 0x014b
2239 #define CB_FINDSTRING 0x014c
2240 #define CB_SELECTSTRING 0x014d
2241 #define CB_SETCURSEL 0x014e
2242 #define CB_SHOWDROPDOWN 0x014f
2243 #define CB_GETITEMDATA 0x0150
2244 #define CB_SETITEMDATA 0x0151
2245 #define CB_GETDROPPEDCONTROLRECT 0x0152
2246 #define CB_SETITEMHEIGHT 0x0153
2247 #define CB_GETITEMHEIGHT 0x0154
2248 #define CB_SETEXTENDEDUI 0x0155
2249 #define CB_GETEXTENDEDUI 0x0156
2250 #define CB_GETDROPPEDSTATE 0x0157
2251 #define CB_FINDSTRINGEXACT 0x0158
2252 #define CB_SETLOCALE 0x0159
2253 #define CB_GETLOCALE 0x015a
2254 #define CB_GETTOPINDEX 0x015b
2255 #define CB_SETTOPINDEX 0x015c
2256 #define CB_GETHORIZONTALEXTENT 0x015d
2257 #define CB_SETHORIZONTALEXTENT 0x015e
2258 #define CB_GETDROPPEDWIDTH 0x015f
2259 #define CB_SETDROPPEDWIDTH 0x0160
2260 #define CB_INITSTORAGE 0x0161
2262 /* Combo box notification codes */
2263 #define CBN_ERRSPACE (-1)
2264 #define CBN_SELCHANGE 1
2265 #define CBN_DBLCLK 2
2266 #define CBN_SETFOCUS 3
2267 #define CBN_KILLFOCUS 4
2268 #define CBN_EDITCHANGE 5
2269 #define CBN_EDITUPDATE 6
2270 #define CBN_DROPDOWN 7
2271 #define CBN_CLOSEUP 8
2272 #define CBN_SELENDOK 9
2273 #define CBN_SELENDCANCEL 10
2275 /* Combo box message return values */
2276 #define CB_OKAY 0
2277 #define CB_ERR (-1)
2278 #define CB_ERRSPACE (-2)
2280 #define MB_OK 0x00000000
2281 #define MB_OKCANCEL 0x00000001
2282 #define MB_ABORTRETRYIGNORE 0x00000002
2283 #define MB_YESNOCANCEL 0x00000003
2284 #define MB_YESNO 0x00000004
2285 #define MB_RETRYCANCEL 0x00000005
2286 #define MB_TYPEMASK 0x0000000F
2288 #define MB_ICONHAND 0x00000010
2289 #define MB_ICONQUESTION 0x00000020
2290 #define MB_ICONEXCLAMATION 0x00000030
2291 #define MB_ICONASTERISK 0x00000040
2292 #define MB_USERICON 0x00000080
2293 #define MB_ICONMASK 0x000000F0
2295 #define MB_ICONINFORMATION MB_ICONASTERISK
2296 #define MB_ICONSTOP MB_ICONHAND
2297 #define MB_ICONWARNING MB_ICONEXCLAMATION
2298 #define MB_ICONERROR MB_ICONHAND
2300 #define MB_DEFBUTTON1 0x00000000
2301 #define MB_DEFBUTTON2 0x00000100
2302 #define MB_DEFBUTTON3 0x00000200
2303 #define MB_DEFBUTTON4 0x00000300
2304 #define MB_DEFMASK 0x00000F00
2306 #define MB_APPLMODAL 0x00000000
2307 #define MB_SYSTEMMODAL 0x00001000
2308 #define MB_TASKMODAL 0x00002000
2309 #define MB_MODEMASK 0x00003000
2311 #define MB_HELP 0x00004000
2312 #define MB_NOFOCUS 0x00008000
2313 #define MB_MISCMASK 0x0000C000
2315 #define MB_SETFOREGROUND 0x00010000
2316 #define MB_DEFAULT_DESKTOP_ONLY 0x00020000
2317 #define MB_SERVICE_NOTIFICATION 0x00040000
2318 #define MB_TOPMOST 0x00040000
2319 #define MB_RIGHT 0x00080000
2320 #define MB_RTLREADING 0x00100000
2322 #define HELPINFO_WINDOW 0x0001
2323 #define HELPINFO_MENUITEM 0x0002
2325 /* Structure pointed to by lParam of WM_HELP */
2326 typedef struct
2328 UINT cbSize; /* Size in bytes of this struct */
2329 INT iContextType; /* Either HELPINFO_WINDOW or HELPINFO_MENUITEM */
2330 INT iCtrlId; /* Control Id or a Menu item Id. */
2331 HANDLE hItemHandle; /* hWnd of control or hMenu. */
2332 DWORD_PTR dwContextId; /* Context Id associated with this item */
2333 POINT MousePos; /* Mouse Position in screen co-ordinates */
2334 } HELPINFO,*LPHELPINFO;
2336 typedef void (CALLBACK *MSGBOXCALLBACK)(LPHELPINFO lpHelpInfo);
2338 typedef struct
2340 UINT cbSize;
2341 HWND hwndOwner;
2342 HINSTANCE hInstance;
2343 LPCSTR lpszText;
2344 LPCSTR lpszCaption;
2345 DWORD dwStyle;
2346 LPCSTR lpszIcon;
2347 DWORD_PTR dwContextHelpId;
2348 MSGBOXCALLBACK lpfnMsgBoxCallback;
2349 DWORD dwLanguageId;
2350 } MSGBOXPARAMSA, *PMSGBOXPARAMSA, *LPMSGBOXPARAMSA;
2352 typedef struct
2354 UINT cbSize;
2355 HWND hwndOwner;
2356 HINSTANCE hInstance;
2357 LPCWSTR lpszText;
2358 LPCWSTR lpszCaption;
2359 DWORD dwStyle;
2360 LPCWSTR lpszIcon;
2361 DWORD_PTR dwContextHelpId;
2362 MSGBOXCALLBACK lpfnMsgBoxCallback;
2363 DWORD dwLanguageId;
2364 } MSGBOXPARAMSW, *PMSGBOXPARAMSW, *LPMSGBOXPARAMSW;
2366 DECL_WINELIB_TYPE_AW(MSGBOXPARAMS)
2367 DECL_WINELIB_TYPE_AW(PMSGBOXPARAMS)
2368 DECL_WINELIB_TYPE_AW(LPMSGBOXPARAMS)
2370 #define MONITOR_DEFAULTTONULL 0x00000000
2371 #define MONITOR_DEFAULTTOPRIMARY 0x00000001
2372 #define MONITOR_DEFAULTTONEAREST 0x00000002
2374 #define MONITORINFOF_PRIMARY 0x00000001
2376 #ifndef CCHDEVICENAME
2377 #define CCHDEVICENAME 32
2378 #endif
2380 typedef struct tagMONITORINFO
2382 DWORD cbSize;
2383 RECT rcMonitor;
2384 RECT rcWork;
2385 DWORD dwFlags;
2386 } MONITORINFO, *LPMONITORINFO;
2388 typedef struct tagMONITORINFOEXA
2389 { /* the 4 first entries are the same as MONITORINFO */
2390 DWORD cbSize;
2391 RECT rcMonitor;
2392 RECT rcWork;
2393 DWORD dwFlags;
2394 CHAR szDevice[CCHDEVICENAME];
2395 } MONITORINFOEXA, *LPMONITORINFOEXA;
2397 typedef struct tagMONITORINFOEXW
2398 { /* the 4 first entries are the same as MONITORINFO */
2399 DWORD cbSize;
2400 RECT rcMonitor;
2401 RECT rcWork;
2402 DWORD dwFlags;
2403 WCHAR szDevice[CCHDEVICENAME];
2404 } MONITORINFOEXW, *LPMONITORINFOEXW;
2406 DECL_WINELIB_TYPE_AW(MONITORINFOEX)
2407 DECL_WINELIB_TYPE_AW(LPMONITORINFOEX)
2409 typedef BOOL (CALLBACK *MONITORENUMPROC)(HMONITOR,HDC,LPRECT,LPARAM);
2411 #include "pshpack2.h"
2413 typedef struct tagDLGTEMPLATE
2415 DWORD style;
2416 DWORD dwExtendedStyle;
2417 WORD cdit;
2418 short x;
2419 short y;
2420 short cx;
2421 short cy;
2422 } DLGTEMPLATE;
2424 typedef DLGTEMPLATE *LPDLGTEMPLATEA;
2425 typedef DLGTEMPLATE *LPDLGTEMPLATEW;
2426 DECL_WINELIB_TYPE_AW(LPDLGTEMPLATE)
2427 typedef const DLGTEMPLATE *LPCDLGTEMPLATEA;
2428 typedef const DLGTEMPLATE *LPCDLGTEMPLATEW;
2429 DECL_WINELIB_TYPE_AW(LPCDLGTEMPLATE)
2431 typedef struct tagDLGITEMTEMPLATE
2433 DWORD style;
2434 DWORD dwExtendedStyle;
2435 short x;
2436 short y;
2437 short cx;
2438 short cy;
2439 WORD id;
2440 } DLGITEMTEMPLATE;
2442 typedef DLGITEMTEMPLATE *PDLGITEMTEMPLATEA;
2443 typedef DLGITEMTEMPLATE *PDLGITEMTEMPLATEW;
2444 DECL_WINELIB_TYPE_AW(PDLGITEMTEMPLATE)
2445 typedef DLGITEMTEMPLATE *LPDLGITEMTEMPLATEA;
2446 typedef DLGITEMTEMPLATE *LPDLGITEMTEMPLATEW;
2447 DECL_WINELIB_TYPE_AW(LPDLGITEMTEMPLATE)
2449 #include "poppack.h"
2451 /* CBT hook values */
2452 #define HCBT_MOVESIZE 0
2453 #define HCBT_MINMAX 1
2454 #define HCBT_QS 2
2455 #define HCBT_CREATEWND 3
2456 #define HCBT_DESTROYWND 4
2457 #define HCBT_ACTIVATE 5
2458 #define HCBT_CLICKSKIPPED 6
2459 #define HCBT_KEYSKIPPED 7
2460 #define HCBT_SYSCOMMAND 8
2461 #define HCBT_SETFOCUS 9
2463 /* CBT hook structures */
2465 typedef struct
2467 CREATESTRUCTA *lpcs;
2468 HWND hwndInsertAfter;
2469 } CBT_CREATEWNDA, *LPCBT_CREATEWNDA;
2471 typedef struct
2473 CREATESTRUCTW *lpcs;
2474 HWND hwndInsertAfter;
2475 } CBT_CREATEWNDW, *LPCBT_CREATEWNDW;
2477 DECL_WINELIB_TYPE_AW(CBT_CREATEWND)
2478 DECL_WINELIB_TYPE_AW(LPCBT_CREATEWND)
2480 typedef struct
2482 BOOL fMouse;
2483 HWND hWndActive;
2484 } CBTACTIVATESTRUCT, *LPCBTACTIVATESTRUCT;
2487 /* modifiers for RegisterHotKey */
2488 #define MOD_ALT 0x0001
2489 #define MOD_CONTROL 0x0002
2490 #define MOD_SHIFT 0x0004
2491 #define MOD_WIN 0x0008
2493 /* ids for RegisterHotKey */
2494 #define IDHOT_SNAPWINDOW (-1) /* SHIFT-PRINTSCRN */
2495 #define IDHOT_SNAPDESKTOP (-2) /* PRINTSCRN */
2497 /* keybd_event flags */
2498 #define KEYEVENTF_EXTENDEDKEY 0x0001
2499 #define KEYEVENTF_KEYUP 0x0002
2501 /* mouse_event flags */
2502 #define MOUSEEVENTF_MOVE 0x0001
2503 #define MOUSEEVENTF_LEFTDOWN 0x0002
2504 #define MOUSEEVENTF_LEFTUP 0x0004
2505 #define MOUSEEVENTF_RIGHTDOWN 0x0008
2506 #define MOUSEEVENTF_RIGHTUP 0x0010
2507 #define MOUSEEVENTF_MIDDLEDOWN 0x0020
2508 #define MOUSEEVENTF_MIDDLEUP 0x0040
2509 #define MOUSEEVENTF_WHEEL 0x0800
2510 #define MOUSEEVENTF_ABSOLUTE 0x8000
2512 /* ExitWindows() flags */
2513 #define EW_RESTARTWINDOWS 0x0042
2514 #define EW_REBOOTSYSTEM 0x0043
2515 #define EW_EXITANDEXECAPP 0x0044
2517 /* ExitWindowsEx() flags */
2518 #define EWX_LOGOFF 0
2519 #define EWX_SHUTDOWN 1
2520 #define EWX_REBOOT 2
2521 #define EWX_FORCE 4
2522 #define EWX_POWEROFF 8
2524 /* SetLastErrorEx types */
2525 #define SLE_ERROR 0x00000001
2526 #define SLE_MINORERROR 0x00000002
2527 #define SLE_WARNING 0x00000003
2529 /* Predefined resources */
2530 #define IDI_APPLICATIONA MAKEINTRESOURCEA(32512)
2531 #define IDI_APPLICATIONW MAKEINTRESOURCEW(32512)
2532 #define IDI_APPLICATION WINELIB_NAME_AW(IDI_APPLICATION)
2533 #define IDI_HANDA MAKEINTRESOURCEA(32513)
2534 #define IDI_HANDW MAKEINTRESOURCEW(32513)
2535 #define IDI_HAND WINELIB_NAME_AW(IDI_HAND)
2536 #define IDI_QUESTIONA MAKEINTRESOURCEA(32514)
2537 #define IDI_QUESTIONW MAKEINTRESOURCEW(32514)
2538 #define IDI_QUESTION WINELIB_NAME_AW(IDI_QUESTION)
2539 #define IDI_EXCLAMATIONA MAKEINTRESOURCEA(32515)
2540 #define IDI_EXCLAMATIONW MAKEINTRESOURCEW(32515)
2541 #define IDI_EXCLAMATION WINELIB_NAME_AW(IDI_EXCLAMATION)
2542 #define IDI_ASTERISKA MAKEINTRESOURCEA(32516)
2543 #define IDI_ASTERISKW MAKEINTRESOURCEW(32516)
2544 #define IDI_ASTERISK WINELIB_NAME_AW(IDI_ASTERISK)
2545 #define IDI_WINLOGOA MAKEINTRESOURCEA(32517)
2546 #define IDI_WINLOGOW MAKEINTRESOURCEW(32517)
2547 #define IDI_WINLOGO WINELIB_NAME_AW(IDI_WINLOGO)
2549 #define IDI_WARNING IDI_EXCLAMATION
2550 #define IDI_ERROR IDI_HAND
2551 #define IDI_INFORMATION IDI_ASTERISK
2553 #define IDC_ARROWA MAKEINTRESOURCEA(32512)
2554 #define IDC_ARROWW MAKEINTRESOURCEW(32512)
2555 #define IDC_ARROW WINELIB_NAME_AW(IDC_ARROW)
2556 #define IDC_IBEAMA MAKEINTRESOURCEA(32513)
2557 #define IDC_IBEAMW MAKEINTRESOURCEW(32513)
2558 #define IDC_IBEAM WINELIB_NAME_AW(IDC_IBEAM)
2559 #define IDC_WAITA MAKEINTRESOURCEA(32514)
2560 #define IDC_WAITW MAKEINTRESOURCEW(32514)
2561 #define IDC_WAIT WINELIB_NAME_AW(IDC_WAIT)
2562 #define IDC_CROSSA MAKEINTRESOURCEA(32515)
2563 #define IDC_CROSSW MAKEINTRESOURCEW(32515)
2564 #define IDC_CROSS WINELIB_NAME_AW(IDC_CROSS)
2565 #define IDC_UPARROWA MAKEINTRESOURCEA(32516)
2566 #define IDC_UPARROWW MAKEINTRESOURCEW(32516)
2567 #define IDC_UPARROW WINELIB_NAME_AW(IDC_UPARROW)
2568 #define IDC_SIZEA MAKEINTRESOURCEA(32640)
2569 #define IDC_SIZEW MAKEINTRESOURCEW(32640)
2570 #define IDC_SIZE WINELIB_NAME_AW(IDC_SIZE)
2571 #define IDC_ICONA MAKEINTRESOURCEA(32641)
2572 #define IDC_ICONW MAKEINTRESOURCEW(32641)
2573 #define IDC_ICON WINELIB_NAME_AW(IDC_ICON)
2574 #define IDC_SIZENWSEA MAKEINTRESOURCEA(32642)
2575 #define IDC_SIZENWSEW MAKEINTRESOURCEW(32642)
2576 #define IDC_SIZENWSE WINELIB_NAME_AW(IDC_SIZENWSE)
2577 #define IDC_SIZENESWA MAKEINTRESOURCEA(32643)
2578 #define IDC_SIZENESWW MAKEINTRESOURCEW(32643)
2579 #define IDC_SIZENESW WINELIB_NAME_AW(IDC_SIZENESW)
2580 #define IDC_SIZEWEA MAKEINTRESOURCEA(32644)
2581 #define IDC_SIZEWEW MAKEINTRESOURCEW(32644)
2582 #define IDC_SIZEWE WINELIB_NAME_AW(IDC_SIZEWE)
2583 #define IDC_SIZENSA MAKEINTRESOURCEA(32645)
2584 #define IDC_SIZENSW MAKEINTRESOURCEW(32645)
2585 #define IDC_SIZENS WINELIB_NAME_AW(IDC_SIZENS)
2586 #define IDC_SIZEALLA MAKEINTRESOURCEA(32646)
2587 #define IDC_SIZEALLW MAKEINTRESOURCEW(32646)
2588 #define IDC_SIZEALL WINELIB_NAME_AW(IDC_SIZEALL)
2589 #define IDC_NOA MAKEINTRESOURCEA(32648)
2590 #define IDC_NOW MAKEINTRESOURCEW(32648)
2591 #define IDC_NO WINELIB_NAME_AW(IDC_NO)
2592 #define IDC_HANDA MAKEINTRESOURCEA(32649)
2593 #define IDC_HANDW MAKEINTRESOURCEW(32649)
2594 #define IDC_HAND WINELIB_NAME_AW(IDC_HAND)
2595 #define IDC_APPSTARTINGA MAKEINTRESOURCEA(32650)
2596 #define IDC_APPSTARTINGW MAKEINTRESOURCEW(32650)
2597 #define IDC_APPSTARTING WINELIB_NAME_AW(IDC_APPSTARTING)
2598 #define IDC_HELPA MAKEINTRESOURCEA(32651)
2599 #define IDC_HELPW MAKEINTRESOURCEW(32651)
2600 #define IDC_HELP WINELIB_NAME_AW(IDC_HELP)
2602 #define MNC_IGNORE 0
2603 #define MNC_CLOSE 1
2604 #define MNC_EXECUTE 2
2605 #define MNC_SELECT 3
2607 /* SystemParametersInfo */
2608 /* defines below are for all win versions */
2609 #define SPI_GETBEEP 1
2610 #define SPI_SETBEEP 2
2611 #define SPI_GETMOUSE 3
2612 #define SPI_SETMOUSE 4
2613 #define SPI_GETBORDER 5
2614 #define SPI_SETBORDER 6
2615 #define SPI_GETKEYBOARDSPEED 10
2616 #define SPI_SETKEYBOARDSPEED 11
2617 #define SPI_LANGDRIVER 12
2618 #define SPI_ICONHORIZONTALSPACING 13
2619 #define SPI_GETSCREENSAVETIMEOUT 14
2620 #define SPI_SETSCREENSAVETIMEOUT 15
2621 #define SPI_GETSCREENSAVEACTIVE 16
2622 #define SPI_SETSCREENSAVEACTIVE 17
2623 #define SPI_GETGRIDGRANULARITY 18
2624 #define SPI_SETGRIDGRANULARITY 19
2625 #define SPI_SETDESKWALLPAPER 20
2626 #define SPI_SETDESKPATTERN 21
2627 #define SPI_GETKEYBOARDDELAY 22
2628 #define SPI_SETKEYBOARDDELAY 23
2629 #define SPI_ICONVERTICALSPACING 24
2630 #define SPI_GETICONTITLEWRAP 25
2631 #define SPI_SETICONTITLEWRAP 26
2632 #define SPI_GETMENUDROPALIGNMENT 27
2633 #define SPI_SETMENUDROPALIGNMENT 28
2634 #define SPI_SETDOUBLECLKWIDTH 29
2635 #define SPI_SETDOUBLECLKHEIGHT 30
2636 #define SPI_GETICONTITLELOGFONT 31
2637 #define SPI_SETDOUBLECLICKTIME 32
2638 #define SPI_SETMOUSEBUTTONSWAP 33
2639 #define SPI_SETICONTITLELOGFONT 34
2640 #define SPI_GETFASTTASKSWITCH 35
2641 #define SPI_SETFASTTASKSWITCH 36
2642 #define SPI_SETDRAGFULLWINDOWS 37
2643 #define SPI_GETDRAGFULLWINDOWS 38
2645 #define SPI_GETFILTERKEYS 50
2646 #define SPI_SETFILTERKEYS 51
2647 #define SPI_GETTOGGLEKEYS 52
2648 #define SPI_SETTOGGLEKEYS 53
2649 #define SPI_GETMOUSEKEYS 54
2650 #define SPI_SETMOUSEKEYS 55
2651 #define SPI_GETSHOWSOUNDS 56
2652 #define SPI_SETSHOWSOUNDS 57
2653 #define SPI_GETSTICKYKEYS 58
2654 #define SPI_SETSTICKYKEYS 59
2655 #define SPI_GETACCESSTIMEOUT 60
2656 #define SPI_SETACCESSTIMEOUT 61
2658 #define SPI_GETSOUNDSENTRY 64
2659 #define SPI_SETSOUNDSENTRY 65
2661 /* defines below are for all win versions WINVER >= 0x0400 */
2662 #define SPI_SETDRAGFULLWINDOWS 37
2663 #define SPI_GETDRAGFULLWINDOWS 38
2664 #define SPI_GETNONCLIENTMETRICS 41
2665 #define SPI_SETNONCLIENTMETRICS 42
2666 #define SPI_GETMINIMIZEDMETRICS 43
2667 #define SPI_SETMINIMIZEDMETRICS 44
2668 #define SPI_GETICONMETRICS 45
2669 #define SPI_SETICONMETRICS 46
2670 #define SPI_SETWORKAREA 47
2671 #define SPI_GETWORKAREA 48
2672 #define SPI_SETPENWINDOWS 49
2674 #define SPI_GETSERIALKEYS 62
2675 #define SPI_SETSERIALKEYS 63
2676 #define SPI_GETHIGHCONTRAST 66
2677 #define SPI_SETHIGHCONTRAST 67
2678 #define SPI_GETKEYBOARDPREF 68
2679 #define SPI_SETKEYBOARDPREF 69
2680 #define SPI_GETSCREENREADER 70
2681 #define SPI_SETSCREENREADER 71
2682 #define SPI_GETANIMATION 72
2683 #define SPI_SETANIMATION 73
2684 #define SPI_GETFONTSMOOTHING 74
2685 #define SPI_SETFONTSMOOTHING 75
2686 #define SPI_SETDRAGWIDTH 76
2687 #define SPI_SETDRAGHEIGHT 77
2688 #define SPI_SETHANDHELD 78
2689 #define SPI_GETLOWPOWERTIMEOUT 79
2690 #define SPI_GETPOWEROFFTIMEOUT 80
2691 #define SPI_SETLOWPOWERTIMEOUT 81
2692 #define SPI_SETPOWEROFFTIMEOUT 82
2693 #define SPI_GETLOWPOWERACTIVE 83
2694 #define SPI_GETPOWEROFFACTIVE 84
2695 #define SPI_SETLOWPOWERACTIVE 85
2696 #define SPI_SETPOWEROFFACTIVE 86
2697 #define SPI_SETCURSORS 87
2698 #define SPI_SETICONS 88
2699 #define SPI_GETDEFAULTINPUTLANG 89
2700 #define SPI_SETDEFAULTINPUTLANG 90
2701 #define SPI_SETLANGTOGGLE 91
2702 #define SPI_GETWINDOWSEXTENSION 92
2703 #define SPI_SETMOUSETRAILS 93
2704 #define SPI_GETMOUSETRAILS 94
2705 #define SPI_SETSCREENSAVERRUNNING 97
2706 #define SPI_SCREENSAVERRUNNING SPI_SETSCREENSAVERRUNNING
2708 /* defines below are for all win versions (_WIN32_WINNT >= 0x0400) ||
2709 * (_WIN32_WINDOWS > 0x0400) */
2710 #define SPI_GETMOUSEHOVERWIDTH 98
2711 #define SPI_SETMOUSEHOVERWIDTH 99
2712 #define SPI_GETMOUSEHOVERHEIGHT 100
2713 #define SPI_SETMOUSEHOVERHEIGHT 101
2714 #define SPI_GETMOUSEHOVERTIME 102
2715 #define SPI_SETMOUSEHOVERTIME 103
2716 #define SPI_GETWHEELSCROLLLINES 104
2717 #define SPI_SETWHEELSCROLLLINES 105
2718 #define SPI_GETMENUSHOWDELAY 106
2719 #define SPI_SETMENUSHOWDELAY 107
2721 #define SPI_GETSHOWIMEUI 110
2722 #define SPI_SETSHOWIMEUI 111
2724 /* defines below are for all win versions WINVER >= 0x0500 */
2725 #define SPI_GETMOUSESPEED 112
2726 #define SPI_SETMOUSESPEED 113
2727 #define SPI_GETSCREENSAVERRUNNING 114
2728 #define SPI_GETDESKWALLPAPER 115
2730 #define SPI_GETACTIVEWINDOWTRACKING 0x1000
2731 #define SPI_SETACTIVEWINDOWTRACKING 0x1001
2732 #define SPI_GETMENUANIMATION 0x1002
2733 #define SPI_SETMENUANIMATION 0x1003
2734 #define SPI_GETCOMBOBOXANIMATION 0x1004
2735 #define SPI_SETCOMBOBOXANIMATION 0x1005
2736 #define SPI_GETLISTBOXSMOOTHSCROLLING 0x1006
2737 #define SPI_SETLISTBOXSMOOTHSCROLLING 0x1007
2738 #define SPI_GETGRADIENTCAPTIONS 0x1008
2739 #define SPI_SETGRADIENTCAPTIONS 0x1009
2740 #define SPI_GETKEYBOARDCUES 0x100A
2741 #define SPI_SETKEYBOARDCUES 0x100B
2742 #define SPI_GETMENUUNDERLINES SPI_GETKEYBOARDCUES
2743 #define SPI_SETMENUUNDERLINES SPI_SETKEYBOARDCUES
2744 #define SPI_GETACTIVEWNDTRKZORDER 0x100C
2745 #define SPI_SETACTIVEWNDTRKZORDER 0x100D
2746 #define SPI_GETHOTTRACKING 0x100E
2747 #define SPI_SETHOTTRACKING 0x100F
2748 #define SPI_GETSELECTIONFADE 0x1014
2749 #define SPI_SETSELECTIONFADE 0x1015
2750 #define SPI_GETDROPSHADOW 0x1024
2751 #define SPI_SETDROPSHADOW 0x1025
2752 #define SPI_GETFOREGROUNDLOCKTIMEOUT 0x2000
2753 #define SPI_SETFOREGROUNDLOCKTIMEOUT 0x2001
2754 #define SPI_GETACTIVEWNDTRKTIMEOUT 0x2002
2755 #define SPI_SETACTIVEWNDTRKTIMEOUT 0x2003
2756 #define SPI_GETFOREGROUNDFLASHCOUNT 0x2004
2757 #define SPI_SETFOREGROUNDFLASHCOUNT 0x2005
2759 /* SystemParametersInfo flags */
2761 #define SPIF_UPDATEINIFILE 1
2762 #define SPIF_SENDWININICHANGE 2
2763 #define SPIF_SENDCHANGE SPIF_SENDWININICHANGE
2765 #if defined(_WINGDI_) && !defined(NOGDI)
2766 typedef struct {
2767 UINT cbSize;
2768 INT iBorderWidth;
2769 INT iScrollWidth;
2770 INT iScrollHeight;
2771 INT iCaptionWidth;
2772 INT iCaptionHeight;
2773 LOGFONTA lfCaptionFont;
2774 INT iSmCaptionWidth;
2775 INT iSmCaptionHeight;
2776 LOGFONTA lfSmCaptionFont;
2777 INT iMenuWidth;
2778 INT iMenuHeight;
2779 LOGFONTA lfMenuFont;
2780 LOGFONTA lfStatusFont;
2781 LOGFONTA lfMessageFont;
2782 } NONCLIENTMETRICSA, *PNONCLIENTMETRICSA, *LPNONCLIENTMETRICSA;
2784 typedef struct {
2785 UINT cbSize;
2786 INT iBorderWidth;
2787 INT iScrollWidth;
2788 INT iScrollHeight;
2789 INT iCaptionWidth;
2790 INT iCaptionHeight;
2791 LOGFONTW lfCaptionFont;
2792 INT iSmCaptionWidth;
2793 INT iSmCaptionHeight;
2794 LOGFONTW lfSmCaptionFont;
2795 INT iMenuWidth;
2796 INT iMenuHeight;
2797 LOGFONTW lfMenuFont;
2798 LOGFONTW lfStatusFont;
2799 LOGFONTW lfMessageFont;
2800 } NONCLIENTMETRICSW, *PNONCLIENTMETRICSW, *LPNONCLIENTMETRICSW;
2802 DECL_WINELIB_TYPE_AW(NONCLIENTMETRICS)
2803 DECL_WINELIB_TYPE_AW(PNONCLIENTMETRICS)
2804 DECL_WINELIB_TYPE_AW(LPNONCLIENTMETRICS)
2806 typedef struct tagICONMETRICSA {
2807 UINT cbSize;
2808 int iHorzSpacing;
2809 int iVertSpacing;
2810 int iTitleWrap;
2811 LOGFONTA lfFont;
2812 } ICONMETRICSA, *PICONMETRICSA, *LPICONMETRICSA;
2814 typedef struct tagICONMETRICSW {
2815 UINT cbSize;
2816 int iHorzSpacing;
2817 int iVertSpacing;
2818 int iTitleWrap;
2819 LOGFONTW lfFont;
2820 } ICONMETRICSW, *PICONMETRICSW, *LPICONMETRICSW;
2822 DECL_WINELIB_TYPE_AW(ICONMETRICS)
2823 DECL_WINELIB_TYPE_AW(PICONMETRICS)
2824 DECL_WINELIB_TYPE_AW(LPICONMETRICS)
2825 #endif /* defined(_WINGDI_) && !defined(NOGDI) */
2827 #define ARW_BOTTOMLEFT 0x0000L
2828 #define ARW_BOTTOMRIGHT 0x0001L
2829 #define ARW_TOPLEFT 0x0002L
2830 #define ARW_TOPRIGHT 0x0003L
2831 #define ARW_STARTMASK 0x0003L
2832 #define ARW_STARTRIGHT 0x0001L
2833 #define ARW_STARTTOP 0x0002L
2835 #define ARW_LEFT 0x0000L
2836 #define ARW_RIGHT 0x0000L
2837 #define ARW_UP 0x0004L
2838 #define ARW_DOWN 0x0004L
2839 #define ARW_HIDE 0x0008L
2841 typedef struct tagMINIMIZEDMETRICS {
2842 UINT cbSize;
2843 int iWidth;
2844 int iHorzGap;
2845 int iVertGap;
2846 int iArrange;
2847 } MINIMIZEDMETRICS, *PMINIMIZEDMETRICS, *LPMINIMIZEDMETRICS;
2849 /* Window Styles */
2850 #define WS_OVERLAPPED 0x00000000L
2851 #define WS_POPUP 0x80000000L
2852 #define WS_CHILD 0x40000000L
2853 #define WS_MINIMIZE 0x20000000L
2854 #define WS_VISIBLE 0x10000000L
2855 #define WS_DISABLED 0x08000000L
2856 #define WS_CLIPSIBLINGS 0x04000000L
2857 #define WS_CLIPCHILDREN 0x02000000L
2858 #define WS_MAXIMIZE 0x01000000L
2859 #define WS_CAPTION 0x00C00000L
2860 #define WS_BORDER 0x00800000L
2861 #define WS_DLGFRAME 0x00400000L
2862 #define WS_VSCROLL 0x00200000L
2863 #define WS_HSCROLL 0x00100000L
2864 #define WS_SYSMENU 0x00080000L
2865 #define WS_THICKFRAME 0x00040000L
2866 #define WS_GROUP 0x00020000L
2867 #define WS_TABSTOP 0x00010000L
2868 #define WS_MINIMIZEBOX 0x00020000L
2869 #define WS_MAXIMIZEBOX 0x00010000L
2870 #define WS_TILED WS_OVERLAPPED
2871 #define WS_ICONIC WS_MINIMIZE
2872 #define WS_SIZEBOX WS_THICKFRAME
2873 #define WS_OVERLAPPEDWINDOW (WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME| WS_MINIMIZEBOX | WS_MAXIMIZEBOX)
2874 #define WS_POPUPWINDOW (WS_POPUP | WS_BORDER | WS_SYSMENU)
2875 #define WS_CHILDWINDOW (WS_CHILD)
2876 #define WS_TILEDWINDOW (WS_OVERLAPPEDWINDOW)
2878 /* Window extended styles */
2879 #define WS_EX_DLGMODALFRAME 0x00000001L
2880 #define WS_EX_DRAGDETECT 0x00000002L
2881 #define WS_EX_NOPARENTNOTIFY 0x00000004L
2882 #define WS_EX_TOPMOST 0x00000008L
2883 #define WS_EX_ACCEPTFILES 0x00000010L
2884 #define WS_EX_TRANSPARENT 0x00000020L
2886 /* New Win95/WinNT4 styles */
2887 #define WS_EX_MDICHILD 0x00000040L
2888 #define WS_EX_TOOLWINDOW 0x00000080L
2889 #define WS_EX_WINDOWEDGE 0x00000100L
2890 #define WS_EX_CLIENTEDGE 0x00000200L
2891 #define WS_EX_CONTEXTHELP 0x00000400L
2892 #define WS_EX_RIGHT 0x00001000L
2893 #define WS_EX_LEFT 0x00000000L
2894 #define WS_EX_RTLREADING 0x00002000L
2895 #define WS_EX_LTRREADING 0x00000000L
2896 #define WS_EX_LEFTSCROLLBAR 0x00004000L
2897 #define WS_EX_RIGHTSCROLLBAR 0x00000000L
2898 #define WS_EX_CONTROLPARENT 0x00010000L
2899 #define WS_EX_STATICEDGE 0x00020000L
2900 #define WS_EX_APPWINDOW 0x00040000L
2902 #define WS_EX_OVERLAPPEDWINDOW (WS_EX_WINDOWEDGE|WS_EX_CLIENTEDGE)
2903 #define WS_EX_PALETTEWINDOW (WS_EX_WINDOWEDGE|WS_EX_TOOLWINDOW|WS_EX_TOPMOST)
2905 /* New Win2000 styles */
2906 #define WS_EX_LAYERED 0x00080000L
2908 /* WINE internal... */
2909 #define WS_EX_TRAYWINDOW 0x80000000L
2910 #define WS_EX_MANAGED 0x40000000L /* Window managed by the window system */
2912 /* Window scrolling */
2913 #define SW_SCROLLCHILDREN 0x0001
2914 #define SW_INVALIDATE 0x0002
2915 #define SW_ERASE 0x0004
2917 /* CreateWindow() coordinates */
2918 #define CW_USEDEFAULT ((INT)0x80000000)
2920 /* ChildWindowFromPointEx Flags */
2921 #define CWP_ALL 0x0000
2922 #define CWP_SKIPINVISIBLE 0x0001
2923 #define CWP_SKIPDISABLED 0x0002
2924 #define CWP_SKIPTRANSPARENT 0x0004
2926 /* PeekMessage() options */
2927 #define PM_NOREMOVE 0x0000
2928 #define PM_REMOVE 0x0001
2929 #define PM_NOYIELD 0x0002
2931 /* AnimateWindow() flags */
2932 #define AW_SLIDE 0x00040000
2933 #define AW_ACTIVATE 0x00020000
2934 #define AW_BLEND 0x00080000
2935 #define AW_HIDE 0x00010000
2936 #define AW_CENTER 0x00000010
2937 #define AW_HOR_POSITIVE 0x00000001
2938 #define AW_HOR_NEGATIVE 0x00000002
2939 #define AW_VER_POSITIVE 0x00000004
2940 #define AW_VER_NEGATIVE 0x00000008
2942 /* WM_SHOWWINDOW wParam codes */
2943 #define SW_PARENTCLOSING 1
2944 #define SW_OTHERMAXIMIZED 2
2945 #define SW_PARENTOPENING 3
2946 #define SW_OTHERRESTORED 4
2948 /* ShowWindow() codes */
2949 #define SW_HIDE 0
2950 #define SW_SHOWNORMAL 1
2951 #define SW_NORMAL 1
2952 #define SW_SHOWMINIMIZED 2
2953 #define SW_SHOWMAXIMIZED 3
2954 #define SW_MAXIMIZE 3
2955 #define SW_SHOWNOACTIVATE 4
2956 #define SW_SHOW 5
2957 #define SW_MINIMIZE 6
2958 #define SW_SHOWMINNOACTIVE 7
2959 #define SW_SHOWNA 8
2960 #define SW_RESTORE 9
2961 #define SW_SHOWDEFAULT 10
2962 #define SW_FORCEMINIMIZE 11
2963 #define SW_MAX 11
2964 #define SW_NORMALNA 0xCC /* undoc. flag in MinMaximize */
2966 /* WM_SIZE message wParam values */
2967 #define SIZE_RESTORED 0
2968 #define SIZE_MINIMIZED 1
2969 #define SIZE_MAXIMIZED 2
2970 #define SIZE_MAXSHOW 3
2971 #define SIZE_MAXHIDE 4
2972 #define SIZENORMAL SIZE_RESTORED
2973 #define SIZEICONIC SIZE_MINIMIZED
2974 #define SIZEFULLSCREEN SIZE_MAXIMIZED
2975 #define SIZEZOOMSHOW SIZE_MAXSHOW
2976 #define SIZEZOOMHIDE SIZE_MAXHIDE
2978 /* SetWindowPos() and WINDOWPOS flags */
2979 #define SWP_NOSIZE 0x0001
2980 #define SWP_NOMOVE 0x0002
2981 #define SWP_NOZORDER 0x0004
2982 #define SWP_NOREDRAW 0x0008
2983 #define SWP_NOACTIVATE 0x0010
2984 #define SWP_FRAMECHANGED 0x0020 /* The frame changed: send WM_NCCALCSIZE */
2985 #define SWP_SHOWWINDOW 0x0040
2986 #define SWP_HIDEWINDOW 0x0080
2987 #define SWP_NOCOPYBITS 0x0100
2988 #define SWP_NOOWNERZORDER 0x0200 /* Don't do owner Z ordering */
2990 #define SWP_DRAWFRAME SWP_FRAMECHANGED
2991 #define SWP_NOREPOSITION SWP_NOOWNERZORDER
2993 #define SWP_NOSENDCHANGING 0x0400
2994 #define SWP_DEFERERASE 0x2000
2995 #define SWP_ASYNCWINDOWPOS 0x4000
2997 #define HWND_DESKTOP ((HWND)0)
2998 #define HWND_BROADCAST ((HWND)0xffff)
3000 /* SetWindowPos() hwndInsertAfter field values */
3001 #define HWND_TOP ((HWND)0)
3002 #define HWND_BOTTOM ((HWND)1)
3003 #define HWND_TOPMOST ((HWND)-1)
3004 #define HWND_NOTOPMOST ((HWND)-2)
3005 #define HWND_MESSAGE ((HWND)-3)
3007 /* GetDCEx flags */
3008 #define DCX_WINDOW 0x00000001
3009 #define DCX_CACHE 0x00000002
3010 #define DCX_NORESETATTRS 0x00000004
3011 #define DCX_CLIPCHILDREN 0x00000008
3012 #define DCX_CLIPSIBLINGS 0x00000010
3013 #define DCX_PARENTCLIP 0x00000020
3014 #define DCX_EXCLUDERGN 0x00000040
3015 #define DCX_INTERSECTRGN 0x00000080
3016 #define DCX_EXCLUDEUPDATE 0x00000100
3017 #define DCX_INTERSECTUPDATE 0x00000200
3018 #define DCX_LOCKWINDOWUPDATE 0x00000400
3019 #define DCX_USESTYLE 0x00010000
3020 #define DCX_NORECOMPUTE 0x00100000
3021 #define DCX_VALIDATE 0x00200000
3023 #define MF_INSERT 0x0000
3024 #define MF_CHANGE 0x0080
3025 #define MF_APPEND 0x0100
3026 #define MF_DELETE 0x0200
3027 #define MF_REMOVE 0x1000
3028 #define MF_END 0x0080
3030 #define MF_ENABLED 0x0000
3031 #define MF_GRAYED 0x0001
3032 #define MF_DISABLED 0x0002
3033 #define MF_STRING 0x0000
3034 #define MF_BITMAP 0x0004
3035 #define MF_UNCHECKED 0x0000
3036 #define MF_CHECKED 0x0008
3037 #define MF_POPUP 0x0010
3038 #define MF_MENUBARBREAK 0x0020
3039 #define MF_MENUBREAK 0x0040
3040 #define MF_UNHILITE 0x0000
3041 #define MF_HILITE 0x0080
3042 #define MF_OWNERDRAW 0x0100
3043 #define MF_USECHECKBITMAPS 0x0200
3044 #define MF_BYCOMMAND 0x0000
3045 #define MF_BYPOSITION 0x0400
3046 #define MF_SEPARATOR 0x0800
3047 #define MF_DEFAULT 0x1000
3048 #define MF_SYSMENU 0x2000
3049 #define MF_HELP 0x4000
3050 #define MF_RIGHTJUSTIFY 0x4000
3051 #define MF_MOUSESELECT 0x8000
3053 /* Flags for extended menu item types. */
3054 #define MFT_STRING MF_STRING
3055 #define MFT_BITMAP MF_BITMAP
3056 #define MFT_MENUBARBREAK MF_MENUBARBREAK
3057 #define MFT_MENUBREAK MF_MENUBREAK
3058 #define MFT_OWNERDRAW MF_OWNERDRAW
3059 #define MFT_RADIOCHECK 0x00000200L
3060 #define MFT_SEPARATOR MF_SEPARATOR
3061 #define MFT_RIGHTORDER 0x00002000L
3062 #define MFT_RIGHTJUSTIFY MF_RIGHTJUSTIFY
3064 /* Flags for extended menu item states. */
3065 #define MFS_GRAYED 0x00000003L
3066 #define MFS_DISABLED MFS_GRAYED
3067 #define MFS_CHECKED MF_CHECKED
3068 #define MFS_HILITE MF_HILITE
3069 #define MFS_ENABLED MF_ENABLED
3070 #define MFS_UNCHECKED MF_UNCHECKED
3071 #define MFS_UNHILITE MF_UNHILITE
3072 #define MFS_DEFAULT MF_DEFAULT
3073 #define MFS_MASK 0x0000108BL
3074 #define MFS_HOTTRACKDRAWN 0x10000000L
3075 #define MFS_CACHEDBMP 0x20000000L
3076 #define MFS_BOTTOMGAPDROP 0x40000000L
3077 #define MFS_TOPGAPDROP 0x80000000L
3078 #define MFS_GAPDROP 0xC0000000L
3080 /* for GetMenuDefaultItem */
3081 #define GMDI_USEDISABLED 0x0001L
3082 #define GMDI_GOINTOPOPUPS 0x0002L
3084 #define DT_TOP 0
3085 #define DT_LEFT 0
3086 #define DT_CENTER 1
3087 #define DT_RIGHT 2
3088 #define DT_VCENTER 4
3089 #define DT_BOTTOM 8
3090 #define DT_WORDBREAK 16
3091 #define DT_SINGLELINE 32
3092 #define DT_EXPANDTABS 64
3093 #define DT_TABSTOP 128
3094 #define DT_NOCLIP 256
3095 #define DT_EXTERNALLEADING 512
3096 #define DT_CALCRECT 1024
3097 #define DT_NOPREFIX 2048
3098 #define DT_INTERNAL 4096
3100 /* DrawCaption()/DrawCaptionTemp() flags */
3101 #define DC_ACTIVE 0x0001
3102 #define DC_SMALLCAP 0x0002
3103 #define DC_ICON 0x0004
3104 #define DC_TEXT 0x0008
3105 #define DC_INBUTTON 0x0010
3107 /* DrawEdge() flags */
3108 #define BDR_RAISEDOUTER 0x0001
3109 #define BDR_SUNKENOUTER 0x0002
3110 #define BDR_RAISEDINNER 0x0004
3111 #define BDR_SUNKENINNER 0x0008
3113 #define BDR_OUTER 0x0003
3114 #define BDR_INNER 0x000c
3115 #define BDR_RAISED 0x0005
3116 #define BDR_SUNKEN 0x000a
3118 #define EDGE_RAISED (BDR_RAISEDOUTER | BDR_RAISEDINNER)
3119 #define EDGE_SUNKEN (BDR_SUNKENOUTER | BDR_SUNKENINNER)
3120 #define EDGE_ETCHED (BDR_SUNKENOUTER | BDR_RAISEDINNER)
3121 #define EDGE_BUMP (BDR_RAISEDOUTER | BDR_SUNKENINNER)
3123 /* border flags */
3124 #define BF_LEFT 0x0001
3125 #define BF_TOP 0x0002
3126 #define BF_RIGHT 0x0004
3127 #define BF_BOTTOM 0x0008
3128 #define BF_DIAGONAL 0x0010
3129 #define BF_MIDDLE 0x0800 /* Fill in the middle */
3130 #define BF_SOFT 0x1000 /* For softer buttons */
3131 #define BF_ADJUST 0x2000 /* Calculate the space left over */
3132 #define BF_FLAT 0x4000 /* For flat rather than 3D borders */
3133 #define BF_MONO 0x8000 /* For monochrome borders */
3134 #define BF_TOPLEFT (BF_TOP | BF_LEFT)
3135 #define BF_TOPRIGHT (BF_TOP | BF_RIGHT)
3136 #define BF_BOTTOMLEFT (BF_BOTTOM | BF_LEFT)
3137 #define BF_BOTTOMRIGHT (BF_BOTTOM | BF_RIGHT)
3138 #define BF_RECT (BF_LEFT | BF_TOP | BF_RIGHT | BF_BOTTOM)
3139 #define BF_DIAGONAL_ENDTOPRIGHT (BF_DIAGONAL | BF_TOP | BF_RIGHT)
3140 #define BF_DIAGONAL_ENDTOPLEFT (BF_DIAGONAL | BF_TOP | BF_LEFT)
3141 #define BF_DIAGONAL_ENDBOTTOMLEFT (BF_DIAGONAL | BF_BOTTOM | BF_LEFT)
3142 #define BF_DIAGONAL_ENDBOTTOMRIGHT (BF_DIAGONAL | BF_BOTTOM | BF_RIGHT)
3144 /* DrawFrameControl() uType's */
3146 #define DFC_CAPTION 1
3147 #define DFC_MENU 2
3148 #define DFC_SCROLL 3
3149 #define DFC_BUTTON 4
3151 /* uState's */
3153 #define DFCS_CAPTIONCLOSE 0x0000
3154 #define DFCS_CAPTIONMIN 0x0001
3155 #define DFCS_CAPTIONMAX 0x0002
3156 #define DFCS_CAPTIONRESTORE 0x0003
3157 #define DFCS_CAPTIONHELP 0x0004 /* Windows 95 only */
3159 #define DFCS_MENUARROW 0x0000
3160 #define DFCS_MENUCHECK 0x0001
3161 #define DFCS_MENUBULLET 0x0002
3162 #define DFCS_MENUARROWRIGHT 0x0004
3164 #define DFCS_SCROLLUP 0x0000
3165 #define DFCS_SCROLLDOWN 0x0001
3166 #define DFCS_SCROLLLEFT 0x0002
3167 #define DFCS_SCROLLRIGHT 0x0003
3168 #define DFCS_SCROLLCOMBOBOX 0x0005
3169 #define DFCS_SCROLLSIZEGRIP 0x0008
3170 #define DFCS_SCROLLSIZEGRIPRIGHT 0x0010
3172 #define DFCS_BUTTONCHECK 0x0000
3173 #define DFCS_BUTTONRADIOIMAGE 0x0001
3174 #define DFCS_BUTTONRADIOMASK 0x0002 /* to draw nonsquare button */
3175 #define DFCS_BUTTONRADIO 0x0004
3176 #define DFCS_BUTTON3STATE 0x0008
3177 #define DFCS_BUTTONPUSH 0x0010
3179 /* additional state of the control */
3181 #define DFCS_INACTIVE 0x0100
3182 #define DFCS_PUSHED 0x0200
3183 #define DFCS_CHECKED 0x0400
3184 #define DFCS_TRANSPARENT 0x0800
3185 #define DFCS_HOT 0x1000
3186 #define DFCS_ADJUSTRECT 0x2000 /* exclude surrounding edge */
3187 #define DFCS_FLAT 0x4000
3188 #define DFCS_MONO 0x8000
3191 /* Image type */
3192 #define DST_COMPLEX 0x0000
3193 #define DST_TEXT 0x0001
3194 #define DST_PREFIXTEXT 0x0002
3195 #define DST_ICON 0x0003
3196 #define DST_BITMAP 0x0004
3198 /* State type */
3199 #define DSS_NORMAL 0x0000
3200 #define DSS_UNION 0x0010 /* Gray string appearance */
3201 #define DSS_DISABLED 0x0020
3202 #define DSS_DEFAULT 0x0040 /* Make it bold */
3203 #define DSS_MONO 0x0080
3204 #define DSS_RIGHT 0x8000
3206 typedef struct
3208 UINT CtlType;
3209 UINT CtlID;
3210 UINT itemID;
3211 UINT itemAction;
3212 UINT itemState;
3213 HWND hwndItem;
3214 HDC hDC;
3215 RECT rcItem WINE_PACKED;
3216 ULONG_PTR itemData WINE_PACKED;
3217 } DRAWITEMSTRUCT, *PDRAWITEMSTRUCT, *LPDRAWITEMSTRUCT;
3220 typedef struct
3222 UINT CtlType;
3223 UINT CtlID;
3224 UINT itemID;
3225 UINT itemWidth;
3226 UINT itemHeight;
3227 ULONG_PTR itemData;
3228 } MEASUREITEMSTRUCT, *PMEASUREITEMSTRUCT, *LPMEASUREITEMSTRUCT;
3231 typedef struct
3233 UINT CtlType;
3234 UINT CtlID;
3235 UINT itemID;
3236 HWND hwndItem;
3237 ULONG_PTR itemData;
3238 } DELETEITEMSTRUCT, *PDELETEITEMSTRUCT, *LPDELETEITEMSTRUCT;
3241 typedef struct
3243 UINT CtlType;
3244 UINT CtlID;
3245 HWND hwndItem;
3246 UINT itemID1;
3247 ULONG_PTR itemData1;
3248 UINT itemID2;
3249 ULONG_PTR itemData2;
3250 DWORD dwLocaleId;
3251 } COMPAREITEMSTRUCT, *PCOMPAREITEMSTRUCT, *LPCOMPAREITEMSTRUCT;
3254 /* WM_KEYUP/DOWN/CHAR HIWORD(lParam) flags */
3255 #define KF_EXTENDED 0x0100
3256 #define KF_DLGMODE 0x0800
3257 #define KF_MENUMODE 0x1000
3258 #define KF_ALTDOWN 0x2000
3259 #define KF_REPEAT 0x4000
3260 #define KF_UP 0x8000
3262 /* Virtual key codes */
3263 #define VK_LBUTTON 0x01
3264 #define VK_RBUTTON 0x02
3265 #define VK_CANCEL 0x03
3266 #define VK_MBUTTON 0x04
3267 #define VK_XBUTTON1 0x05
3268 #define VK_XBUTTON2 0x06
3269 /* 0x07 Undefined */
3270 #define VK_BACK 0x08
3271 #define VK_TAB 0x09
3272 /* 0x0A-0x0B Undefined */
3273 #define VK_CLEAR 0x0C
3274 #define VK_RETURN 0x0D
3275 /* 0x0E-0x0F Undefined */
3276 #define VK_SHIFT 0x10
3277 #define VK_CONTROL 0x11
3278 #define VK_MENU 0x12
3279 #define VK_PAUSE 0x13
3280 #define VK_CAPITAL 0x14
3281 /* 0x15-0x19 Reserved for Kanji systems */
3282 /* 0x1A Undefined */
3283 #define VK_ESCAPE 0x1B
3284 /* 0x1C-0x1F Reserved for Kanji systems */
3285 #define VK_SPACE 0x20
3286 #define VK_PRIOR 0x21
3287 #define VK_NEXT 0x22
3288 #define VK_END 0x23
3289 #define VK_HOME 0x24
3290 #define VK_LEFT 0x25
3291 #define VK_UP 0x26
3292 #define VK_RIGHT 0x27
3293 #define VK_DOWN 0x28
3294 #define VK_SELECT 0x29
3295 #define VK_PRINT 0x2A /* OEM specific in Windows 3.1 SDK */
3296 #define VK_EXECUTE 0x2B
3297 #define VK_SNAPSHOT 0x2C
3298 #define VK_INSERT 0x2D
3299 #define VK_DELETE 0x2E
3300 #define VK_HELP 0x2F
3301 #define VK_0 0x30
3302 #define VK_1 0x31
3303 #define VK_2 0x32
3304 #define VK_3 0x33
3305 #define VK_4 0x34
3306 #define VK_5 0x35
3307 #define VK_6 0x36
3308 #define VK_7 0x37
3309 #define VK_8 0x38
3310 #define VK_9 0x39
3311 /* 0x3A-0x40 Undefined */
3312 #define VK_A 0x41
3313 #define VK_B 0x42
3314 #define VK_C 0x43
3315 #define VK_D 0x44
3316 #define VK_E 0x45
3317 #define VK_F 0x46
3318 #define VK_G 0x47
3319 #define VK_H 0x48
3320 #define VK_I 0x49
3321 #define VK_J 0x4A
3322 #define VK_K 0x4B
3323 #define VK_L 0x4C
3324 #define VK_M 0x4D
3325 #define VK_N 0x4E
3326 #define VK_O 0x4F
3327 #define VK_P 0x50
3328 #define VK_Q 0x51
3329 #define VK_R 0x52
3330 #define VK_S 0x53
3331 #define VK_T 0x54
3332 #define VK_U 0x55
3333 #define VK_V 0x56
3334 #define VK_W 0x57
3335 #define VK_X 0x58
3336 #define VK_Y 0x59
3337 #define VK_Z 0x5A
3339 #define VK_LWIN 0x5B
3340 #define VK_RWIN 0x5C
3341 #define VK_APPS 0x5D
3342 /* 0x5E-0x5F Unassigned */
3343 #define VK_NUMPAD0 0x60
3344 #define VK_NUMPAD1 0x61
3345 #define VK_NUMPAD2 0x62
3346 #define VK_NUMPAD3 0x63
3347 #define VK_NUMPAD4 0x64
3348 #define VK_NUMPAD5 0x65
3349 #define VK_NUMPAD6 0x66
3350 #define VK_NUMPAD7 0x67
3351 #define VK_NUMPAD8 0x68
3352 #define VK_NUMPAD9 0x69
3353 #define VK_MULTIPLY 0x6A
3354 #define VK_ADD 0x6B
3355 #define VK_SEPARATOR 0x6C
3356 #define VK_SUBTRACT 0x6D
3357 #define VK_DECIMAL 0x6E
3358 #define VK_DIVIDE 0x6F
3359 #define VK_F1 0x70
3360 #define VK_F2 0x71
3361 #define VK_F3 0x72
3362 #define VK_F4 0x73
3363 #define VK_F5 0x74
3364 #define VK_F6 0x75
3365 #define VK_F7 0x76
3366 #define VK_F8 0x77
3367 #define VK_F9 0x78
3368 #define VK_F10 0x79
3369 #define VK_F11 0x7A
3370 #define VK_F12 0x7B
3371 #define VK_F13 0x7C
3372 #define VK_F14 0x7D
3373 #define VK_F15 0x7E
3374 #define VK_F16 0x7F
3375 #define VK_F17 0x80
3376 #define VK_F18 0x81
3377 #define VK_F19 0x82
3378 #define VK_F20 0x83
3379 #define VK_F21 0x84
3380 #define VK_F22 0x85
3381 #define VK_F23 0x86
3382 #define VK_F24 0x87
3383 /* 0x88-0x8F Unassigned */
3384 #define VK_NUMLOCK 0x90
3385 #define VK_SCROLL 0x91
3386 /* 0x92-0x9F Unassigned */
3388 * differencing between right and left shift/control/alt key.
3389 * Used only by GetAsyncKeyState() and GetKeyState().
3391 #define VK_LSHIFT 0xA0
3392 #define VK_RSHIFT 0xA1
3393 #define VK_LCONTROL 0xA2
3394 #define VK_RCONTROL 0xA3
3395 #define VK_LMENU 0xA4
3396 #define VK_RMENU 0xA5
3397 /* 0xA6-0xB9 Unassigned */
3398 #define VK_OEM_1 0xBA
3399 #define VK_OEM_PLUS 0xBB
3400 #define VK_OEM_COMMA 0xBC
3401 #define VK_OEM_MINUS 0xBD
3402 #define VK_OEM_PERIOD 0xBE
3403 #define VK_OEM_2 0xBF
3404 #define VK_OEM_3 0xC0
3405 /* 0xC1-0xDA Unassigned */
3406 #define VK_OEM_4 0xDB
3407 #define VK_OEM_5 0xDC
3408 #define VK_OEM_6 0xDD
3409 #define VK_OEM_7 0xDE
3410 #define VK_OEM_8 0xDF
3411 /* 0xE0 OEM specific */
3412 #define VK_OEM_AX 0xE1 /* "AX" key on Japanese AX keyboard */
3413 #define VK_OEM_102 0xE2 /* "<>" or "\|" on RT 102-key keyboard */
3414 #define VK_ICO_HELP 0xE3 /* Help key on ICO */
3415 #define VK_ICO_00 0xE4 /* 00 key on ICO */
3416 #define VK_PROCESSKEY 0xE5
3418 /* 0xE6 OEM specific */
3419 /* 0xE7-0xE8 Unassigned */
3420 /* 0xE9-0xF5 OEM specific */
3422 #define VK_ATTN 0xF6
3423 #define VK_CRSEL 0xF7
3424 #define VK_EXSEL 0xF8
3425 #define VK_EREOF 0xF9
3426 #define VK_PLAY 0xFA
3427 #define VK_ZOOM 0xFB
3428 #define VK_NONAME 0xFC
3429 #define VK_PA1 0xFD
3430 #define VK_OEM_CLEAR 0xFE
3432 /* Key status flags for mouse events */
3433 #define MK_LBUTTON 0x0001
3434 #define MK_RBUTTON 0x0002
3435 #define MK_SHIFT 0x0004
3436 #define MK_CONTROL 0x0008
3437 #define MK_MBUTTON 0x0010
3438 #define MK_XBUTTON1 0x0020
3439 #define MK_XBUTTON2 0x0040
3442 #define WM_MOUSEHOVER 0x02A1
3443 #define WM_MOUSELEAVE 0x02A3
3445 #define TME_HOVER 0x00000001
3446 #define TME_LEAVE 0x00000002
3447 #define TME_QUERY 0x40000000
3448 #define TME_CANCEL 0x80000000
3450 #define HOVER_DEFAULT 0xFFFFFFFF
3452 typedef struct tagTRACKMOUSEEVENT {
3453 DWORD cbSize;
3454 DWORD dwFlags;
3455 HWND hwndTrack;
3456 DWORD dwHoverTime;
3457 } TRACKMOUSEEVENT, *LPTRACKMOUSEEVENT;
3459 /* Queue status flags */
3460 #define QS_KEY 0x0001
3461 #define QS_MOUSEMOVE 0x0002
3462 #define QS_MOUSEBUTTON 0x0004
3463 #define QS_MOUSE (QS_MOUSEMOVE | QS_MOUSEBUTTON)
3464 #define QS_POSTMESSAGE 0x0008
3465 #define QS_TIMER 0x0010
3466 #define QS_PAINT 0x0020
3467 #define QS_SENDMESSAGE 0x0040
3468 #define QS_HOTKEY 0x0080
3469 #define QS_INPUT (QS_MOUSE | QS_KEY)
3470 #define QS_ALLEVENTS (QS_INPUT | QS_POSTMESSAGE | QS_TIMER | QS_PAINT | QS_HOTKEY)
3471 #define QS_ALLINPUT (QS_ALLEVENTS | QS_SENDMESSAGE)
3473 /* Extra (undocumented) queue wake bits - see "Undoc. Windows" */
3474 #define QS_SMRESULT 0x8000
3476 /* InSendMessageEx flags */
3477 #define ISMEX_NOSEND 0x00000000
3478 #define ISMEX_SEND 0x00000001
3479 #define ISMEX_NOTIFY 0x00000002
3480 #define ISMEX_CALLBACK 0x00000004
3481 #define ISMEX_REPLIED 0x00000008
3483 #define DDL_READWRITE 0x0000
3484 #define DDL_READONLY 0x0001
3485 #define DDL_HIDDEN 0x0002
3486 #define DDL_SYSTEM 0x0004
3487 #define DDL_DIRECTORY 0x0010
3488 #define DDL_ARCHIVE 0x0020
3490 #define DDL_POSTMSGS 0x2000
3491 #define DDL_DRIVES 0x4000
3492 #define DDL_EXCLUSIVE 0x8000
3494 /* Shell hook values */
3495 #define HSHELL_WINDOWCREATED 1
3496 #define HSHELL_WINDOWDESTROYED 2
3497 #define HSHELL_ACTIVATESHELLWINDOW 3
3499 /* Predefined Clipboard Formats */
3500 #define CF_TEXT 1
3501 #define CF_BITMAP 2
3502 #define CF_METAFILEPICT 3
3503 #define CF_SYLK 4
3504 #define CF_DIF 5
3505 #define CF_TIFF 6
3506 #define CF_OEMTEXT 7
3507 #define CF_DIB 8
3508 #define CF_PALETTE 9
3509 #define CF_PENDATA 10
3510 #define CF_RIFF 11
3511 #define CF_WAVE 12
3512 #define CF_UNICODETEXT 13
3513 #define CF_ENHMETAFILE 14
3514 #define CF_HDROP 15
3515 #define CF_LOCALE 16
3516 #define CF_DIBV5 17
3517 #define CF_MAX 18
3519 #define CF_OWNERDISPLAY 0x0080
3520 #define CF_DSPTEXT 0x0081
3521 #define CF_DSPBITMAP 0x0082
3522 #define CF_DSPMETAFILEPICT 0x0083
3523 #define CF_DSPENHMETAFILE 0x008E
3525 /* "Private" formats don't get GlobalFree()'d */
3526 #define CF_PRIVATEFIRST 0x0200
3527 #define CF_PRIVATELAST 0x02FF
3529 /* "GDIOBJ" formats do get DeleteObject()'d */
3530 #define CF_GDIOBJFIRST 0x0300
3531 #define CF_GDIOBJLAST 0x03FF
3534 /* types of LoadImage */
3535 #define IMAGE_BITMAP 0
3536 #define IMAGE_ICON 1
3537 #define IMAGE_CURSOR 2
3538 #define IMAGE_ENHMETAFILE 3
3540 /* loadflags to LoadImage */
3541 #define LR_DEFAULTCOLOR 0x0000
3542 #define LR_MONOCHROME 0x0001
3543 #define LR_COLOR 0x0002
3544 #define LR_COPYRETURNORG 0x0004
3545 #define LR_COPYDELETEORG 0x0008
3546 #define LR_LOADFROMFILE 0x0010
3547 #define LR_LOADTRANSPARENT 0x0020
3548 #define LR_DEFAULTSIZE 0x0040
3549 #define LR_VGA_COLOR 0x0080
3550 #define LR_LOADMAP3DCOLORS 0x1000
3551 #define LR_CREATEDIBSECTION 0x2000
3552 #define LR_COPYFROMRESOURCE 0x4000
3553 #define LR_SHARED 0x8000
3555 /* Flags for DrawIconEx. */
3556 #define DI_MASK 1
3557 #define DI_IMAGE 2
3558 #define DI_NORMAL (DI_MASK | DI_IMAGE)
3559 #define DI_COMPAT 4
3560 #define DI_DEFAULTSIZE 8
3562 /* WM_NOTIFYFORMAT commands and return values */
3563 #define NFR_ANSI 1
3564 #define NFR_UNICODE 2
3565 #define NF_QUERY 3
3566 #define NF_REQUERY 4
3568 /* RegisterDeviceNotification stuff */
3569 typedef PVOID HDEVNOTIFY;
3570 typedef HDEVNOTIFY *PHDEVNOTIFY;
3572 #define DEVICE_NOTIFY_WINDOW_HANDLE 0x00000000
3574 /* used for GetWindowInfo() */
3576 #define WS_ACTIVECAPTION 0x0001
3578 typedef struct tagWINDOWINFO {
3579 DWORD cbSize;
3580 RECT rcWindow;
3581 RECT rcClient;
3582 DWORD dwStyle;
3583 DWORD dwExStyle;
3584 DWORD dwWindowStatus;
3585 UINT cxWindowBorders;
3586 UINT cyWindowBorders;
3587 ATOM atomWindowType;
3588 WORD wCreatorVersion;
3589 } WINDOWINFO, *PWINDOWINFO, *LPWINDOWINFO;
3591 /* SetWinEventHook() flags */
3592 #define WINEVENT_OUTOFCONTEXT 0x0
3593 #define WINEVENT_SKIPOWNTHREAD 0x1
3594 #define WINEVENT_SKIPOWNPROCESS 0x2
3595 #define WINEVENT_INCONTEXT 0x4
3597 /* Object Id's */
3598 #define CHILDID_SELF 0
3599 #define INDEXID_OBJECT 0
3600 #define INDEXID_CONTAINER 0
3602 /* System object Id's */
3603 #define OBJID_WINDOW 0
3604 #define OBJID_SYSMENU -1
3605 #define OBJID_TITLEBAR -2
3606 #define OBJID_MENU -3
3607 #define OBJID_CLIENT -4
3608 #define OBJID_VSCROLL -5
3609 #define OBJID_HSCROLL -6
3610 #define OBJID_SIZEGRIP -7
3611 #define OBJID_CARET -8
3612 #define OBJID_CURSOR -9
3613 #define OBJID_ALERT -10
3614 #define OBJID_SOUND -11
3615 #define OBJID_QUERYCLASSNAMEIDX -12
3616 #define OBJID_NATIVEOM -16
3618 /* User event Id limits */
3619 #define EVENT_MIN 0x00000001
3620 #define EVENT_MAX 0x7FFFFFFF
3622 /* System events */
3623 #define EVENT_SYSTEM_SOUND 0x01
3624 #define EVENT_SYSTEM_ALERT 0x02
3625 #define EVENT_SYSTEM_FOREGROUND 0x03
3626 #define EVENT_SYSTEM_MENUSTART 0x04
3627 #define EVENT_SYSTEM_MENUEND 0x05
3628 #define EVENT_SYSTEM_MENUPOPUPSTART 0x06
3629 #define EVENT_SYSTEM_MENUPOPUPEND 0x07
3630 #define EVENT_SYSTEM_CAPTURESTART 0x08
3631 #define EVENT_SYSTEM_CAPTUREEND 0x09
3632 #define EVENT_SYSTEM_MOVESIZESTART 0x0A
3633 #define EVENT_SYSTEM_MOVESIZEEND 0x0B
3634 #define EVENT_SYSTEM_CONTEXTHELPSTART 0x0C
3635 #define EVENT_SYSTEM_CONTEXTHELPEND 0x0D
3636 #define EVENT_SYSTEM_DRAGDROPSTART 0x0E
3637 #define EVENT_SYSTEM_DRAGDROPEND 0x0F
3638 #define EVENT_SYSTEM_DIALOGSTART 0x10
3639 #define EVENT_SYSTEM_DIALOGEND 0x11
3640 #define EVENT_SYSTEM_SCROLLINGSTART 0x12
3641 #define EVENT_SYSTEM_SCROLLINGEND 0x13
3642 #define EVENT_SYSTEM_SWITCHSTART 0x14
3643 #define EVENT_SYSTEM_SWITCHEND 0x15
3644 #define EVENT_SYSTEM_MINIMIZESTART 0x16
3645 #define EVENT_SYSTEM_MINIMIZEEND 0x17
3647 /* Console events */
3648 #define EVENT_CONSOLE_CARET 0x4001
3649 #define EVENT_CONSOLE_UPDATE_REGION 0x4002
3650 #define EVENT_CONSOLE_UPDATE_SIMPLE 0x4003
3651 #define EVENT_CONSOLE_UPDATE_SCROLL 0x4004
3652 #define EVENT_CONSOLE_LAYOUT 0x4005
3653 #define EVENT_CONSOLE_START_APPLICATION 0x4006
3654 #define EVENT_CONSOLE_END_APPLICATION 0x4007
3656 #define CONSOLE_APPLICATION_16BIT 0x1
3657 #define CONSOLE_CARET_SELECTION 0x1
3658 #define CONSOLE_CARET_VISIBLE 0x2
3660 /* Object events */
3661 #define EVENT_OBJECT_CREATE 0x8000
3662 #define EVENT_OBJECT_DESTROY 0x8001
3663 #define EVENT_OBJECT_SHOW 0x8002
3664 #define EVENT_OBJECT_HIDE 0x8003
3665 #define EVENT_OBJECT_REORDER 0x8004
3666 #define EVENT_OBJECT_FOCUS 0x8005
3667 #define EVENT_OBJECT_SELECTION 0x8006
3668 #define EVENT_OBJECT_SELECTIONADD 0x8007
3669 #define EVENT_OBJECT_SELECTIONREMOVE 0x8008
3670 #define EVENT_OBJECT_SELECTIONWITHIN 0x8009
3671 #define EVENT_OBJECT_STATECHANGE 0x800A
3672 #define EVENT_OBJECT_LOCATIONCHANGE 0x800B
3673 #define EVENT_OBJECT_NAMECHANGE 0x800C
3674 #define EVENT_OBJECT_DESCRIPTIONCHANGE 0x800D
3675 #define EVENT_OBJECT_VALUECHANGE 0x800E
3676 #define EVENT_OBJECT_PARENTCHANGE 0x800F
3677 #define EVENT_OBJECT_HELPCHANGE 0x8010
3678 #define EVENT_OBJECT_DEFACTIONCHANGE 0x8011
3679 #define EVENT_OBJECT_ACCELERATORCHANGE 0x8012
3681 /* Sound events */
3682 #define SOUND_SYSTEM_STARTUP 1
3683 #define SOUND_SYSTEM_SHUTDOWN 2
3684 #define SOUND_SYSTEM_BEEP 3
3685 #define SOUND_SYSTEM_ERROR 4
3686 #define SOUND_SYSTEM_QUESTION 5
3687 #define SOUND_SYSTEM_WARNING 6
3688 #define SOUND_SYSTEM_INFORMATION 7
3689 #define SOUND_SYSTEM_MAXIMIZE 8
3690 #define SOUND_SYSTEM_MINIMIZE 9
3691 #define SOUND_SYSTEM_RESTOREUP 10
3692 #define SOUND_SYSTEM_RESTOREDOWN 11
3693 #define SOUND_SYSTEM_APPSTART 12
3694 #define SOUND_SYSTEM_FAULT 13
3695 #define SOUND_SYSTEM_APPEND 14
3696 #define SOUND_SYSTEM_MENUCOMMAND 15
3697 #define SOUND_SYSTEM_MENUPOPUP 16
3698 #define CSOUND_SYSTEM 16
3700 /* Alert events */
3701 #define ALERT_SYSTEM_INFORMATIONAL 1
3702 #define ALERT_SYSTEM_WARNING 2
3703 #define ALERT_SYSTEM_ERROR 3
3704 #define ALERT_SYSTEM_QUERY 4
3705 #define ALERT_SYSTEM_CRITICAL 5
3706 #define CALERT_SYSTEM 6
3709 #define EnumTaskWindows(handle,proc,lparam) \
3710 EnumThreadWindows(handle,proc,lparam)
3711 #define OemToAnsiA OemToCharA
3712 #define OemToAnsiW OemToCharW
3713 #define OemToAnsi WINELIB_NAME_AW(OemToAnsi)
3714 #define OemToAnsiBuffA OemToCharBuffA
3715 #define OemToAnsiBuffW OemToCharBuffW
3716 #define OemToAnsiBuff WINELIB_NAME_AW(OemToAnsiBuff)
3717 #define AnsiToOemA CharToOemA
3718 #define AnsiToOemW CharToOemW
3719 #define AnsiToOem WINELIB_NAME_AW(AnsiToOem)
3720 #define AnsiToOemBuffA CharToOemBuffA
3721 #define AnsiToOemBuffW CharToOemBuffW
3722 #define AnsiToOemBuff WINELIB_NAME_AW(AnsiToOemBuff)
3724 #if defined(_WINGDI_) && !defined(NOGDI)
3725 LONG WINAPI ChangeDisplaySettingsA(LPDEVMODEA,DWORD);
3726 LONG WINAPI ChangeDisplaySettingsW(LPDEVMODEW,DWORD);
3727 #define ChangeDisplaySettings WINELIB_NAME_AW(ChangeDisplaySettings)
3728 LONG WINAPI ChangeDisplaySettingsExA(LPCSTR,LPDEVMODEA,HWND,DWORD,LPARAM);
3729 LONG WINAPI ChangeDisplaySettingsExW(LPCWSTR,LPDEVMODEW,HWND,DWORD,LPARAM);
3730 #define ChangeDisplaySettingsEx WINELIB_NAME_AW(ChangeDisplaySettingsEx)
3731 BOOL WINAPI EnumDisplayDevicesA(LPVOID,DWORD,LPDISPLAY_DEVICEA,DWORD);
3732 BOOL WINAPI EnumDisplayDevicesW(LPVOID,DWORD,LPDISPLAY_DEVICEW,DWORD);
3733 #define EnumDisplayDevices WINELIB_NAME_AW(EnumDisplayDevices)
3734 BOOL WINAPI EnumDisplaySettingsA(LPCSTR,DWORD,LPDEVMODEA);
3735 BOOL WINAPI EnumDisplaySettingsW(LPCWSTR,DWORD,LPDEVMODEW);
3736 #define EnumDisplaySettings WINELIB_NAME_AW(EnumDisplaySettings)
3737 #endif /* defined(_WINGDI_) && !defined(NOGDI) */
3739 HKL WINAPI ActivateKeyboardLayout(HKL,UINT);
3740 LONG WINAPI BroadcastSystemMessage(DWORD,LPDWORD,UINT,WPARAM,LPARAM);
3741 WORD WINAPI CascadeWindows(HWND, UINT, const LPRECT, UINT, const HWND *);
3742 INT WINAPI CopyAcceleratorTableA(HACCEL,LPACCEL,INT);
3743 INT WINAPI CopyAcceleratorTableW(HACCEL,LPACCEL,INT);
3744 #define CopyAcceleratorTable WINELIB_NAME_AW(CopyAcceleratorTable)
3745 HACCEL WINAPI CreateAcceleratorTableA(LPACCEL,INT);
3746 HACCEL WINAPI CreateAcceleratorTableW(LPACCEL,INT);
3747 #define CreateAcceleratorTable WINELIB_NAME_AW(CreateAcceleratorTable)
3748 HICON WINAPI CreateIconIndirect(PICONINFO);
3749 BOOL WINAPI DestroyAcceleratorTable(HACCEL);
3750 BOOL WINAPI EnumDesktopsA(HWINSTA,DESKTOPENUMPROCA,LPARAM);
3751 BOOL WINAPI EnumDesktopsW(HWINSTA,DESKTOPENUMPROCW,LPARAM);
3752 #define EnumDesktops WINELIB_NAME_AW(EnumDesktops)
3753 BOOL WINAPI EnumDisplayMonitors(HDC,LPRECT,MONITORENUMPROC,LPARAM);
3754 INT WINAPI EnumPropsExA(HWND,PROPENUMPROCEXA,LPARAM);
3755 INT WINAPI EnumPropsExW(HWND,PROPENUMPROCEXW,LPARAM);
3756 #define EnumPropsEx WINELIB_NAME_AW(EnumPropsEx)
3757 BOOL WINAPI EnumThreadWindows(DWORD,WNDENUMPROC,LPARAM);
3758 BOOL WINAPI ExitWindowsEx(UINT,DWORD);
3759 BOOL WINAPI GetIconInfo(HICON,PICONINFO);
3760 HKL WINAPI GetKeyboardLayout(DWORD);
3761 INT WINAPI GetKeyboardLayoutList(INT,HKL *);
3762 BOOL WINAPI GetComboBoxInfo(HWND,PCOMBOBOXINFO);
3763 DWORD WINAPI GetMenuContextHelpId(HMENU);
3764 UINT WINAPI GetMenuDefaultItem(HMENU,UINT,UINT);
3765 BOOL WINAPI GetMenuInfo(HMENU,LPMENUINFO);
3766 BOOL WINAPI GetMenuItemInfoA(HMENU,UINT,BOOL,MENUITEMINFOA*);
3767 BOOL WINAPI GetMenuItemInfoW(HMENU,UINT,BOOL,MENUITEMINFOW*);
3768 #define GetMenuItemInfo WINELIB_NAME_AW(GetMenuItemInfo)
3769 BOOL WINAPI GetMonitorInfoA(HMONITOR,LPMONITORINFO);
3770 BOOL WINAPI GetMonitorInfoW(HMONITOR,LPMONITORINFO);
3771 #define GetMonitorInfo WINELIB_NAME_AW(GetMonitorInfo)
3772 DWORD WINAPI GetWindowContextHelpId(HWND);
3773 DWORD WINAPI GetWindowThreadProcessId(HWND,LPDWORD);
3774 BOOL WINAPI IsWinEventHookInstalled(DWORD);
3775 BOOL WINAPI IsWindowUnicode(HWND);
3776 HKL WINAPI LoadKeyboardLayoutA(LPCSTR,UINT);
3777 HKL WINAPI LoadKeyboardLayoutW(LPCWSTR,UINT);
3778 #define LoadKeyboardLayout WINELIB_NAME_AW(LoadKeyboardLayout)
3779 INT WINAPI MessageBoxExA(HWND,LPCSTR,LPCSTR,UINT,WORD);
3780 INT WINAPI MessageBoxExW(HWND,LPCWSTR,LPCWSTR,UINT,WORD);
3781 #define MessageBoxEx WINELIB_NAME_AW(MessageBoxEx)
3782 HMONITOR WINAPI MonitorFromPoint(POINT,DWORD);
3783 HMONITOR WINAPI MonitorFromRect(LPRECT,DWORD);
3784 HMONITOR WINAPI MonitorFromWindow(HWND,DWORD);
3785 DWORD WINAPI MsgWaitForMultipleObjects(DWORD,CONST HANDLE*,BOOL,DWORD,DWORD);
3786 DWORD WINAPI MsgWaitForMultipleObjectsEx(DWORD,CONST HANDLE*,DWORD,DWORD,DWORD);
3787 VOID WINAPI NotifyWinEvent(DWORD,HWND,LONG,LONG);
3788 BOOL WINAPI PaintDesktop(HDC);
3789 BOOL WINAPI PostThreadMessageA(DWORD,UINT,WPARAM,LPARAM);
3790 BOOL WINAPI PostThreadMessageW(DWORD,UINT,WPARAM,LPARAM);
3791 #define PostThreadMessage WINELIB_NAME_AW(PostThreadMessage)
3792 BOOL WINAPI RegisterHotKey(HWND,INT,UINT,UINT);
3793 HDEVNOTIFY WINAPI RegisterDeviceNotificationA(HANDLE,LPVOID,DWORD);
3794 HDEVNOTIFY WINAPI RegisterDeviceNotificationW(HANDLE,LPVOID,DWORD);
3795 #define RegisterDeviceNotification WINELIB_NAME_AW(RegisterDeviceNotification)
3796 BOOL WINAPI SendMessageCallbackA(HWND,UINT,WPARAM,LPARAM,SENDASYNCPROC,ULONG_PTR);
3797 BOOL WINAPI SendMessageCallbackW(HWND,UINT,WPARAM,LPARAM,SENDASYNCPROC,ULONG_PTR);
3798 #define SendMessageCallback WINELIB_NAME_AW(SendMessageCallback)
3799 BOOL WINAPI SendNotifyMessageA(HWND,UINT,WPARAM,LPARAM);
3800 BOOL WINAPI SendNotifyMessageW(HWND,UINT,WPARAM,LPARAM);
3801 #define SendNotifyMessage WINELIB_NAME_AW(SendNotifyMessage)
3802 VOID WINAPI SetDebugErrorLevel(DWORD);
3803 VOID WINAPI SetLastErrorEx(DWORD,DWORD);
3804 BOOL WINAPI SetMenuDefaultItem(HMENU,UINT,UINT);
3805 BOOL WINAPI SetMenuInfo(HMENU,LPCMENUINFO);
3806 BOOL WINAPI SetMenuItemInfoA(HMENU,UINT,BOOL,const MENUITEMINFOA*);
3807 BOOL WINAPI SetMenuItemInfoW(HMENU,UINT,BOOL,const MENUITEMINFOW*);
3808 #define SetMenuItemInfo WINELIB_NAME_AW(SetMenuItemInfo)
3809 BOOL WINAPI SetWindowContextHelpId(HWND,DWORD);
3810 HWINEVENTHOOK WINAPI SetWinEventHook(DWORD,DWORD,HMODULE,WINEVENTPROC,DWORD,DWORD,DWORD);
3811 WORD WINAPI TileWindows (HWND, UINT, const LPRECT,
3812 UINT, const HWND *);
3813 INT WINAPI ToUnicode(UINT,UINT,PBYTE,LPWSTR,int,UINT);
3814 BOOL WINAPI TrackPopupMenuEx(HMENU,UINT,INT,INT,HWND,
3815 LPTPMPARAMS);
3816 BOOL WINAPI UnhookWinEvent(HWINEVENTHOOK);
3817 BOOL WINAPI UnregisterDeviceNotification(HDEVNOTIFY);
3818 BOOL WINAPI UnregisterHotKey(HWND,INT);
3819 DWORD WINAPI WaitForInputIdle(HANDLE,DWORD);
3820 VOID WINAPI keybd_event(BYTE,BYTE,DWORD,ULONG_PTR);
3821 VOID WINAPI mouse_event(DWORD,DWORD,DWORD,DWORD,ULONG_PTR);
3823 /* Declarations for functions that are the same in Win16 and Win32 */
3824 VOID WINAPI EndMenu(void);
3825 DWORD WINAPI GetDialogBaseUnits(void);
3826 BOOL WINAPI GetKeyboardState(LPBYTE);
3827 DWORD WINAPI GetMenuCheckMarkDimensions(void);
3828 LONG WINAPI GetMessageExtraInfo(void);
3829 DWORD WINAPI GetMessagePos(void);
3830 LONG WINAPI GetMessageTime(void);
3831 DWORD WINAPI OemKeyScan(WORD);
3832 BOOL WINAPI ReleaseCapture(void);
3833 BOOL WINAPI SetKeyboardState(LPBYTE);
3835 /* Declarations for functions that change between Win16 and Win32 */
3837 BOOL WINAPI AdjustWindowRect(LPRECT,DWORD,BOOL);
3838 BOOL WINAPI AdjustWindowRectEx(LPRECT,DWORD,BOOL,DWORD);
3839 BOOL WINAPI AnimateWindow(HWND,DWORD,DWORD);
3840 #define AnsiLowerA CharLowerA
3841 #define AnsiLowerW CharLowerW
3842 #define AnsiLower WINELIB_NAME_AW(AnsiLower)
3843 #define AnsiLowerBuffA CharLowerBuffA
3844 #define AnsiLowerBuffW CharLowerBuffW
3845 #define AnsiLowerBuff WINELIB_NAME_AW(AnsiLowerBuff)
3846 #define AnsiNextA CharNextA
3847 #define AnsiNextW CharNextW
3848 #define AnsiNext WINELIB_NAME_AW(AnsiNext)
3849 #define AnsiPrevA CharPrevA
3850 #define AnsiPrevW CharPrevW
3851 #define AnsiPrev WINELIB_NAME_AW(AnsiPrev)
3852 #define AnsiUpperA CharUpperA
3853 #define AnsiUpperW CharUpperW
3854 #define AnsiUpper WINELIB_NAME_AW(AnsiUpper)
3855 #define AnsiUpperBuffA CharUpperBuffA
3856 #define AnsiUpperBuffW CharUpperBuffW
3857 #define AnsiUpperBuff WINELIB_NAME_AW(AnsiUpperBuff)
3858 BOOL WINAPI AnyPopup(void);
3859 BOOL WINAPI AppendMenuA(HMENU,UINT,UINT_PTR,LPCSTR);
3860 BOOL WINAPI AppendMenuW(HMENU,UINT,UINT_PTR,LPCWSTR);
3861 #define AppendMenu WINELIB_NAME_AW(AppendMenu)
3862 UINT WINAPI ArrangeIconicWindows(HWND);
3863 HDWP WINAPI BeginDeferWindowPos(INT);
3864 HDC WINAPI BeginPaint(HWND,LPPAINTSTRUCT);
3865 BOOL WINAPI BringWindowToTop(HWND);
3866 void WINAPI CalcChildScroll(HWND, INT);
3867 BOOL WINAPI CallMsgFilterA(LPMSG,INT);
3868 BOOL WINAPI CallMsgFilterW(LPMSG,INT);
3869 #define CallMsgFilter WINELIB_NAME_AW(CallMsgFilter)
3870 LRESULT WINAPI CallNextHookEx(HHOOK,INT,WPARAM,LPARAM);
3871 LRESULT WINAPI CallWindowProcA(WNDPROC,HWND,UINT,WPARAM,LPARAM);
3872 LRESULT WINAPI CallWindowProcW(WNDPROC,HWND,UINT,WPARAM,LPARAM);
3873 #define CallWindowProc WINELIB_NAME_AW(CallWindowProc)
3874 BOOL WINAPI ChangeClipboardChain(HWND,HWND);
3875 BOOL WINAPI ChangeMenuA(HMENU,UINT,LPCSTR,UINT,UINT);
3876 BOOL WINAPI ChangeMenuW(HMENU,UINT,LPCWSTR,UINT,UINT);
3877 #define ChangeMenu WINELIB_NAME_AW(ChangeMenu)
3878 LPSTR WINAPI CharLowerA(LPSTR);
3879 LPWSTR WINAPI CharLowerW(LPWSTR);
3880 #define CharLower WINELIB_NAME_AW(CharLower)
3881 DWORD WINAPI CharLowerBuffA(LPSTR,DWORD);
3882 DWORD WINAPI CharLowerBuffW(LPWSTR,DWORD);
3883 #define CharLowerBuff WINELIB_NAME_AW(CharLowerBuff)
3884 LPSTR WINAPI CharNextA(LPCSTR);
3885 LPWSTR WINAPI CharNextW(LPCWSTR);
3886 #define CharNext WINELIB_NAME_AW(CharNext)
3887 LPSTR WINAPI CharNextExA(WORD,LPCSTR,DWORD);
3888 /* no CharNextExW (doesn't make sense) */
3889 LPSTR WINAPI CharPrevA(LPCSTR,LPCSTR);
3890 LPWSTR WINAPI CharPrevW(LPCWSTR,LPCWSTR);
3891 #define CharPrev WINELIB_NAME_AW(CharPrev)
3892 LPSTR WINAPI CharPrevExA(WORD,LPCSTR,LPCSTR,DWORD);
3893 /* no CharPrevExW (doesn't make sense) */
3894 LPSTR WINAPI CharUpperA(LPSTR);
3895 LPWSTR WINAPI CharUpperW(LPWSTR);
3896 #define CharUpper WINELIB_NAME_AW(CharUpper)
3897 DWORD WINAPI CharUpperBuffA(LPSTR,DWORD);
3898 DWORD WINAPI CharUpperBuffW(LPWSTR,DWORD);
3899 #define CharUpperBuff WINELIB_NAME_AW(CharUpperBuff)
3900 BOOL WINAPI CharToOemA(LPCSTR,LPSTR);
3901 BOOL WINAPI CharToOemW(LPCWSTR,LPSTR);
3902 #define CharToOem WINELIB_NAME_AW(CharToOem)
3903 BOOL WINAPI CharToOemBuffA(LPCSTR,LPSTR,DWORD);
3904 BOOL WINAPI CharToOemBuffW(LPCWSTR,LPSTR,DWORD);
3905 #define CharToOemBuff WINELIB_NAME_AW(CharToOemBuff)
3906 BOOL WINAPI CheckDlgButton(HWND,INT,UINT);
3907 DWORD WINAPI CheckMenuItem(HMENU,UINT,UINT);
3908 BOOL WINAPI CheckMenuRadioItem(HMENU,UINT,UINT,UINT,UINT);
3909 BOOL WINAPI CheckRadioButton(HWND,UINT,UINT,UINT);
3910 HWND WINAPI ChildWindowFromPoint(HWND,POINT);
3911 HWND WINAPI ChildWindowFromPointEx(HWND,POINT,UINT);
3912 BOOL WINAPI ClientToScreen(HWND,LPPOINT);
3913 BOOL WINAPI ClipCursor(const RECT*);
3914 BOOL WINAPI CloseClipboard(void);
3915 BOOL WINAPI CloseDesktop(HDESK);
3916 BOOL WINAPI CloseWindow(HWND);
3917 BOOL WINAPI CloseWindowStation(HWINSTA);
3918 #define CopyCursor(cur) ((HCURSOR)CopyIcon((HICON)(cur)))
3919 HICON WINAPI CopyIcon(HICON);
3920 HICON WINAPI CopyImage(HANDLE,UINT,INT,INT,UINT);
3921 BOOL WINAPI CopyRect(RECT*,const RECT*);
3922 INT WINAPI CountClipboardFormats(void);
3923 BOOL WINAPI CreateCaret(HWND,HBITMAP,INT,INT);
3924 HCURSOR WINAPI CreateCursor(HINSTANCE,INT,INT,INT,INT,LPCVOID,LPCVOID);
3925 #define CreateDialogA(inst,ptr,hwnd,dlg) \
3926 CreateDialogParamA(inst,ptr,hwnd,dlg,0)
3927 #define CreateDialogW(inst,ptr,hwnd,dlg) \
3928 CreateDialogParamW(inst,ptr,hwnd,dlg,0)
3929 #define CreateDialog WINELIB_NAME_AW(CreateDialog)
3930 #define CreateDialogIndirectA(inst,ptr,hwnd,dlg) \
3931 CreateDialogIndirectParamA(inst,ptr,hwnd,dlg,0)
3932 #define CreateDialogIndirectW(inst,ptr,hwnd,dlg) \
3933 CreateDialogIndirectParamW(inst,ptr,hwnd,dlg,0)
3934 #define CreateDialogIndirect WINELIB_NAME_AW(CreateDialogIndirect)
3935 HWND WINAPI CreateDialogIndirectParamA(HINSTANCE,LPCDLGTEMPLATEA,HWND,
3936 DLGPROC,LPARAM);
3937 HWND WINAPI CreateDialogIndirectParamW(HINSTANCE,LPCDLGTEMPLATEW,HWND,
3938 DLGPROC,LPARAM);
3939 #define CreateDialogIndirectParam WINELIB_NAME_AW(CreateDialogIndirectParam)
3940 HWND WINAPI CreateDialogParamA(HINSTANCE,LPCSTR,HWND,DLGPROC,LPARAM);
3941 HWND WINAPI CreateDialogParamW(HINSTANCE,LPCWSTR,HWND,DLGPROC,LPARAM);
3942 #define CreateDialogParam WINELIB_NAME_AW(CreateDialogParam)
3943 HICON WINAPI CreateIcon(HINSTANCE,INT,INT,BYTE,BYTE,LPCVOID,LPCVOID);
3944 HICON WINAPI CreateIconFromResource(LPBYTE,UINT,BOOL,DWORD);
3945 HICON WINAPI CreateIconFromResourceEx(LPBYTE,UINT,BOOL,DWORD,INT,INT,UINT);
3946 HMENU WINAPI CreateMenu(void);
3947 HMENU WINAPI CreatePopupMenu(void);
3948 #define CreateWindowA(className,titleName,style,x,y,width,height,\
3949 parent,menu,instance,param) \
3950 CreateWindowExA(0,className,titleName,style,x,y,width,height,\
3951 parent,menu,instance,param)
3952 #define CreateWindowW(className,titleName,style,x,y,width,height,\
3953 parent,menu,instance,param) \
3954 CreateWindowExW(0,className,titleName,style,x,y,width,height,\
3955 parent,menu,instance,param)
3956 #define CreateWindow WINELIB_NAME_AW(CreateWindow)
3957 HWND WINAPI CreateWindowExA(DWORD,LPCSTR,LPCSTR,DWORD,INT,INT,
3958 INT,INT,HWND,HMENU,HINSTANCE,LPVOID);
3959 HWND WINAPI CreateWindowExW(DWORD,LPCWSTR,LPCWSTR,DWORD,INT,INT,
3960 INT,INT,HWND,HMENU,HINSTANCE,LPVOID);
3961 #define CreateWindowEx WINELIB_NAME_AW(CreateWindowEx)
3962 HWINSTA WINAPI CreateWindowStationA(LPSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES);
3963 HWINSTA WINAPI CreateWindowStationW(LPWSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES);
3964 #define CreateWindowStation WINELIB_NAME_AW(CreateWindowStation)
3965 HWND WINAPI CreateMDIWindowA(LPCSTR,LPCSTR,DWORD,INT,INT,
3966 INT,INT,HWND,HINSTANCE,LPARAM);
3967 HWND WINAPI CreateMDIWindowW(LPCWSTR,LPCWSTR,DWORD,INT,INT,
3968 INT,INT,HWND,HINSTANCE,LPARAM);
3969 #define CreateMDIWindow WINELIB_NAME_AW(CreateMDIWindow)
3970 LRESULT WINAPI DefDlgProcA(HWND,UINT,WPARAM,LPARAM);
3971 LRESULT WINAPI DefDlgProcW(HWND,UINT,WPARAM,LPARAM);
3972 #define DefDlgProc WINELIB_NAME_AW(DefDlgProc)
3973 HDWP WINAPI DeferWindowPos(HDWP,HWND,HWND,INT,INT,INT,INT,UINT);
3974 LRESULT WINAPI DefFrameProcA(HWND,HWND,UINT,WPARAM,LPARAM);
3975 LRESULT WINAPI DefFrameProcW(HWND,HWND,UINT,WPARAM,LPARAM);
3976 #define DefFrameProc WINELIB_NAME_AW(DefFrameProc)
3977 #define DefHookProc(code,wparam,lparam,phhook) \
3978 CallNextHookEx(*(phhook),code,wparam,lparam)
3979 LRESULT WINAPI DefMDIChildProcA(HWND,UINT,WPARAM,LPARAM);
3980 LRESULT WINAPI DefMDIChildProcW(HWND,UINT,WPARAM,LPARAM);
3981 #define DefMDIChildProc WINELIB_NAME_AW(DefMDIChildProc)
3982 LRESULT WINAPI DefWindowProcA(HWND,UINT,WPARAM,LPARAM);
3983 LRESULT WINAPI DefWindowProcW(HWND,UINT,WPARAM,LPARAM);
3984 #define DefWindowProc WINELIB_NAME_AW(DefWindowProc)
3985 BOOL WINAPI DeleteMenu(HMENU,UINT,UINT);
3986 BOOL WINAPI DestroyCaret(void);
3987 BOOL WINAPI DestroyCursor(HCURSOR);
3988 BOOL WINAPI DestroyIcon(HICON);
3989 BOOL WINAPI DestroyMenu(HMENU);
3990 BOOL WINAPI DestroyWindow(HWND);
3991 #define DialogBoxA(inst,template,owner,func) \
3992 DialogBoxParamA(inst,template,owner,func,0)
3993 #define DialogBoxW(inst,template,owner,func) \
3994 DialogBoxParamW(inst,template,owner,func,0)
3995 #define DialogBox WINELIB_NAME_AW(DialogBox)
3996 #define DialogBoxIndirectA(inst,template,owner,func) \
3997 DialogBoxIndirectParamA(inst,template,owner,func,0)
3998 #define DialogBoxIndirectW(inst,template,owner,func) \
3999 DialogBoxIndirectParamW(inst,template,owner,func,0)
4000 #define DialogBoxIndirect WINELIB_NAME_AW(DialogBoxIndirect)
4001 INT_PTR WINAPI DialogBoxIndirectParamA(HINSTANCE,LPCDLGTEMPLATEA,HWND,DLGPROC,LPARAM);
4002 INT_PTR WINAPI DialogBoxIndirectParamW(HINSTANCE,LPCDLGTEMPLATEW,HWND,DLGPROC,LPARAM);
4003 #define DialogBoxIndirectParam WINELIB_NAME_AW(DialogBoxIndirectParam)
4004 INT_PTR WINAPI DialogBoxParamA(HINSTANCE,LPCSTR,HWND,DLGPROC,LPARAM);
4005 INT_PTR WINAPI DialogBoxParamW(HINSTANCE,LPCWSTR,HWND,DLGPROC,LPARAM);
4006 #define DialogBoxParam WINELIB_NAME_AW(DialogBoxParam)
4007 LONG WINAPI DispatchMessageA(const MSG*);
4008 LONG WINAPI DispatchMessageW(const MSG*);
4009 #define DispatchMessage WINELIB_NAME_AW(DispatchMessage)
4010 INT WINAPI DlgDirListA(HWND,LPSTR,INT,INT,UINT);
4011 INT WINAPI DlgDirListW(HWND,LPWSTR,INT,INT,UINT);
4012 #define DlgDirList WINELIB_NAME_AW(DlgDirList)
4013 INT WINAPI DlgDirListComboBoxA(HWND,LPSTR,INT,INT,UINT);
4014 INT WINAPI DlgDirListComboBoxW(HWND,LPWSTR,INT,INT,UINT);
4015 #define DlgDirListComboBox WINELIB_NAME_AW(DlgDirListComboBox)
4016 BOOL WINAPI DlgDirSelectComboBoxExA(HWND,LPSTR,INT,INT);
4017 BOOL WINAPI DlgDirSelectComboBoxExW(HWND,LPWSTR,INT,INT);
4018 #define DlgDirSelectComboBoxEx WINELIB_NAME_AW(DlgDirSelectComboBoxEx)
4019 BOOL WINAPI DlgDirSelectExA(HWND,LPSTR,INT,INT);
4020 BOOL WINAPI DlgDirSelectExW(HWND,LPWSTR,INT,INT);
4021 #define DlgDirSelectEx WINELIB_NAME_AW(DlgDirSelectEx)
4022 BOOL WINAPI DragDetect(HWND,POINT);
4023 DWORD WINAPI DragObject(HWND,HWND,UINT,ULONG_PTR,HCURSOR);
4024 BOOL WINAPI DrawAnimatedRects(HWND,int,const RECT*,const RECT*);
4025 BOOL WINAPI DrawCaption(HWND,HDC,const RECT*,UINT);
4026 BOOL WINAPI DrawCaptionTempA(HWND,HDC,const RECT*,HFONT,HICON,LPCSTR,UINT);
4027 BOOL WINAPI DrawCaptionTempW(HWND,HDC,const RECT*,HFONT,HICON,LPCWSTR,UINT);
4028 #define DrawCaptionTemp WINELIB_NAME_AW(DrawCaptionTemp)
4029 BOOL WINAPI DrawEdge(HDC,LPRECT,UINT,UINT);
4030 BOOL WINAPI DrawFocusRect(HDC,const RECT*);
4031 BOOL WINAPI DrawFrameControl(HDC,LPRECT,UINT,UINT);
4032 BOOL WINAPI DrawIcon(HDC,INT,INT,HICON);
4033 BOOL WINAPI DrawIconEx(HDC,INT,INT,HICON,INT,INT,UINT,HBRUSH,UINT);
4034 BOOL WINAPI DrawMenuBar(HWND);
4035 BOOL WINAPI DrawStateA(HDC,HBRUSH,DRAWSTATEPROC,LPARAM,WPARAM,INT,INT,INT,INT,UINT);
4036 BOOL WINAPI DrawStateW(HDC,HBRUSH,DRAWSTATEPROC,LPARAM,WPARAM,INT,INT,INT,INT,UINT);
4037 #define DrawState WINELIB_NAME_AW(DrawState)
4038 INT WINAPI DrawTextA(HDC,LPCSTR,INT,LPRECT,UINT);
4039 INT WINAPI DrawTextW(HDC,LPCWSTR,INT,LPRECT,UINT);
4040 #define DrawText WINELIB_NAME_AW(DrawText)
4041 INT WINAPI DrawTextExA(HDC,LPSTR,INT,LPRECT,UINT,LPDRAWTEXTPARAMS);
4042 INT WINAPI DrawTextExW(HDC,LPWSTR,INT,LPRECT,UINT,LPDRAWTEXTPARAMS);
4043 #define DrawTextEx WINELIB_NAME_AW(DrawTextEx)
4044 BOOL WINAPI EmptyClipboard(void);
4045 UINT WINAPI EnableMenuItem(HMENU,UINT,UINT);
4046 BOOL WINAPI EnableScrollBar(HWND,INT,UINT);
4047 BOOL WINAPI EnableWindow(HWND,BOOL);
4048 BOOL WINAPI EndDeferWindowPos(HDWP);
4049 BOOL WINAPI EndDialog(HWND,INT_PTR);
4050 BOOL WINAPI EndPaint(HWND,const PAINTSTRUCT*);
4051 BOOL WINAPI EnumChildWindows(HWND,WNDENUMPROC,LPARAM);
4052 UINT WINAPI EnumClipboardFormats(UINT);
4053 INT WINAPI EnumPropsA(HWND,PROPENUMPROCA);
4054 INT WINAPI EnumPropsW(HWND,PROPENUMPROCW);
4055 #define EnumProps WINELIB_NAME_AW(EnumProps)
4056 BOOL WINAPI EnumWindows(WNDENUMPROC,LPARAM);
4057 BOOL WINAPI EnumWindowStationsA(WINSTAENUMPROCA,LPARAM);
4058 BOOL WINAPI EnumWindowStationsW(WINSTAENUMPROCW,LPARAM);
4059 #define EnumWindowStations WINELIB_NAME_AW(EnumWindowStations)
4060 BOOL WINAPI EqualRect(const RECT*,const RECT*);
4061 INT WINAPI ExcludeUpdateRgn(HDC,HWND);
4062 #define ExitWindows(a,b) ExitWindowsEx(EWX_LOGOFF,0xffffffff)
4063 INT WINAPI FillRect(HDC,const RECT*,HBRUSH);
4064 HWND WINAPI FindWindowA(LPCSTR,LPCSTR);
4065 HWND WINAPI FindWindowW(LPCWSTR,LPCWSTR);
4066 #define FindWindow WINELIB_NAME_AW(FindWindow)
4067 HWND WINAPI FindWindowExA(HWND,HWND,LPCSTR,LPCSTR);
4068 HWND WINAPI FindWindowExW(HWND,HWND,LPCWSTR,LPCWSTR);
4069 #define FindWindowEx WINELIB_NAME_AW(FindWindowEx)
4070 BOOL WINAPI FlashWindow(HWND,BOOL);
4071 INT WINAPI FrameRect(HDC,const RECT*,HBRUSH);
4072 HWND WINAPI GetActiveWindow(void);
4073 HWND WINAPI GetAncestor(HWND,UINT);
4074 DWORD WINAPI GetAppCompatFlags(HTASK);
4075 SHORT WINAPI GetAsyncKeyState(INT);
4076 HWND WINAPI GetCapture(void);
4077 UINT WINAPI GetCaretBlinkTime(void);
4078 BOOL WINAPI GetCaretPos(LPPOINT);
4079 BOOL WINAPI GetClassInfoA(HINSTANCE,LPCSTR,WNDCLASSA *);
4080 BOOL WINAPI GetClassInfoW(HINSTANCE,LPCWSTR,WNDCLASSW *);
4081 #define GetClassInfo WINELIB_NAME_AW(GetClassInfo)
4082 BOOL WINAPI GetClassInfoExA(HINSTANCE,LPCSTR,WNDCLASSEXA *);
4083 BOOL WINAPI GetClassInfoExW(HINSTANCE,LPCWSTR,WNDCLASSEXW *);
4084 #define GetClassInfoEx WINELIB_NAME_AW(GetClassInfoEx)
4085 LONG WINAPI GetClassLongA(HWND,INT);
4086 LONG WINAPI GetClassLongW(HWND,INT);
4087 #define GetClassLong WINELIB_NAME_AW(GetClassLong)
4088 INT WINAPI GetClassNameA(HWND,LPSTR,INT);
4089 INT WINAPI GetClassNameW(HWND,LPWSTR,INT);
4090 #define GetClassName WINELIB_NAME_AW(GetClassName)
4091 WORD WINAPI GetClassWord(HWND,INT);
4092 BOOL WINAPI GetClientRect(HWND,LPRECT);
4093 HANDLE WINAPI GetClipboardData(UINT);
4094 INT WINAPI GetClipboardFormatNameA(UINT,LPSTR,INT);
4095 INT WINAPI GetClipboardFormatNameW(UINT,LPWSTR,INT);
4096 #define GetClipboardFormatName WINELIB_NAME_AW(GetClipboardFormatName)
4097 HWND WINAPI GetClipboardOwner(void);
4098 HWND WINAPI GetClipboardViewer(void);
4099 BOOL WINAPI GetClipCursor(LPRECT);
4100 HCURSOR WINAPI GetCursor(void);
4101 BOOL WINAPI GetCursorInfo(PCURSORINFO);
4102 BOOL WINAPI GetCursorPos(LPPOINT);
4103 HDC WINAPI GetDC(HWND);
4104 HDC WINAPI GetDCEx(HWND,HRGN,DWORD);
4105 HWND WINAPI GetDesktopWindow(void);
4106 INT WINAPI GetDlgCtrlID(HWND);
4107 HWND WINAPI GetDlgItem(HWND,INT);
4108 UINT WINAPI GetDlgItemInt(HWND,INT,BOOL*,BOOL);
4109 INT WINAPI GetDlgItemTextA(HWND,INT,LPSTR,UINT);
4110 INT WINAPI GetDlgItemTextW(HWND,INT,LPWSTR,UINT);
4111 #define GetDlgItemText WINELIB_NAME_AW(GetDlgItemText)
4112 UINT WINAPI GetDoubleClickTime(void);
4113 HWND WINAPI GetFocus(void);
4114 HWND WINAPI GetForegroundWindow(void);
4115 BOOL WINAPI GetGUIThreadInfo(DWORD,GUITHREADINFO*);
4116 BOOL WINAPI GetInputState(void);
4117 UINT WINAPI GetInternalWindowPos(HWND,LPRECT,LPPOINT);
4118 UINT WINAPI GetKBCodePage(void);
4119 INT WINAPI GetKeyboardType(INT);
4120 INT WINAPI GetKeyNameTextA(LONG,LPSTR,INT);
4121 INT WINAPI GetKeyNameTextW(LONG,LPWSTR,INT);
4122 #define GetKeyNameText WINELIB_NAME_AW(GetKeyNameText)
4123 INT WINAPI GetKeyboardLayoutNameA(LPSTR);
4124 INT WINAPI GetKeyboardLayoutNameW(LPWSTR);
4125 #define GetKeyboardLayoutName WINELIB_NAME_AW(GetKeyboardLayoutName)
4126 SHORT WINAPI GetKeyState(INT);
4127 HWND WINAPI GetLastActivePopup(HWND);
4128 HMENU WINAPI GetMenu(HWND);
4129 INT WINAPI GetMenuItemCount(HMENU);
4130 UINT WINAPI GetMenuItemID(HMENU,INT);
4131 BOOL WINAPI GetMenuItemRect(HWND,HMENU,UINT,LPRECT);
4132 UINT WINAPI GetMenuState(HMENU,UINT,UINT);
4133 INT WINAPI GetMenuStringA(HMENU,UINT,LPSTR,INT,UINT);
4134 INT WINAPI GetMenuStringW(HMENU,UINT,LPWSTR,INT,UINT);
4135 #define GetMenuString WINELIB_NAME_AW(GetMenuString)
4136 BOOL WINAPI GetMessageA(LPMSG,HWND,UINT,UINT);
4137 BOOL WINAPI GetMessageW(LPMSG,HWND,UINT,UINT);
4138 #define GetMessage WINELIB_NAME_AW(GetMessage)
4139 HWND WINAPI GetNextDlgGroupItem(HWND,HWND,BOOL);
4140 HWND WINAPI GetNextDlgTabItem(HWND,HWND,BOOL);
4141 #define GetNextWindow GetWindow
4142 HWND WINAPI GetOpenClipboardWindow(void);
4143 HWND WINAPI GetParent(HWND);
4144 INT WINAPI GetPriorityClipboardFormat(UINT*,INT);
4145 BOOL WINAPI GetProcessDefaultLayout(DWORD*);
4146 HANDLE WINAPI GetPropA(HWND,LPCSTR);
4147 HANDLE WINAPI GetPropW(HWND,LPCWSTR);
4148 #define GetProp WINELIB_NAME_AW(GetProp)
4149 DWORD WINAPI GetQueueStatus(UINT);
4150 BOOL WINAPI GetScrollInfo(HWND,INT,LPSCROLLINFO);
4151 INT WINAPI GetScrollPos(HWND,INT);
4152 BOOL WINAPI GetScrollRange(HWND,INT,LPINT,LPINT);
4153 HWND WINAPI GetShellWindow(void);
4154 HMENU WINAPI GetSubMenu(HMENU,INT);
4155 HBRUSH WINAPI GetSysColorBrush(INT);
4156 #define GetSysModalWindow() ((HWND)0)
4157 HMENU WINAPI GetSystemMenu(HWND,BOOL);
4158 INT WINAPI GetSystemMetrics(INT);
4159 DWORD WINAPI GetTabbedTextExtentA(HDC,LPCSTR,INT,INT,const INT*);
4160 DWORD WINAPI GetTabbedTextExtentW(HDC,LPCWSTR,INT,INT,const INT*);
4161 #define GetTabbedTextExtent WINELIB_NAME_AW(GetTabbedTextExtent)
4162 HWND WINAPI GetTopWindow(HWND);
4163 BOOL WINAPI GetUpdateRect(HWND,LPRECT,BOOL);
4164 INT WINAPI GetUpdateRgn(HWND,HRGN,BOOL);
4165 BOOL WINAPI GetUserObjectInformationA(HANDLE,INT,LPVOID,DWORD,LPDWORD);
4166 BOOL WINAPI GetUserObjectInformationW(HANDLE,INT,LPVOID,DWORD,LPDWORD);
4167 #define GetUserObjectInformation WINELIB_NAME_AW(GetUserObjectInformation)
4168 HWND WINAPI GetWindow(HWND,UINT);
4169 HDC WINAPI GetWindowDC(HWND);
4170 BOOL WINAPI GetWindowInfo(HWND, PWINDOWINFO);
4171 LONG WINAPI GetWindowLongA(HWND,INT);
4172 LONG WINAPI GetWindowLongW(HWND,INT);
4173 #define GetWindowLong WINELIB_NAME_AW(GetWindowLong)
4174 #define GetWindowLongPtrA GetWindowLongA
4175 #define GetWindowLongPtrW GetWindowLongW
4176 #define GetWindowLongPtr WINELIB_NAME_AW(GetWindowLongPtr)
4177 BOOL WINAPI GetWindowPlacement(HWND,LPWINDOWPLACEMENT);
4178 BOOL WINAPI GetWindowRect(HWND,LPRECT);
4179 INT WINAPI GetWindowRgn(HWND,HRGN);
4180 HWINSTA WINAPI GetProcessWindowStation(void);
4181 #define GetWindowTask(hwnd) ((HTASK)GetWindowThreadProcessId(hwnd,NULL))
4182 INT WINAPI GetWindowTextA(HWND,LPSTR,INT);
4183 INT WINAPI GetWindowTextW(HWND,LPWSTR,INT);
4184 #define GetWindowText WINELIB_NAME_AW(GetWindowText)
4185 INT WINAPI GetWindowTextLengthA(HWND);
4186 INT WINAPI GetWindowTextLengthW(HWND);
4187 #define GetWindowTextLength WINELIB_NAME_AW(GetWindowTextLength)
4188 WORD WINAPI GetWindowWord(HWND,INT);
4189 BOOL WINAPI GrayStringA(HDC,HBRUSH,GRAYSTRINGPROC,LPARAM,INT,INT,INT,INT,INT);
4190 BOOL WINAPI GrayStringW(HDC,HBRUSH,GRAYSTRINGPROC,LPARAM,INT,INT,INT,INT,INT);
4191 #define GrayString WINELIB_NAME_AW(GrayString)
4192 BOOL WINAPI HideCaret(HWND);
4193 BOOL WINAPI HiliteMenuItem(HWND,HMENU,UINT,UINT);
4194 BOOL WINAPI InflateRect(LPRECT,INT,INT);
4195 BOOL WINAPI InSendMessage(void);
4196 DWORD WINAPI InSendMessageEx(LPVOID);
4197 BOOL WINAPI InsertMenuA(HMENU,UINT,UINT,UINT_PTR,LPCSTR);
4198 BOOL WINAPI InsertMenuW(HMENU,UINT,UINT,UINT_PTR,LPCWSTR);
4199 #define InsertMenu WINELIB_NAME_AW(InsertMenu)
4200 BOOL WINAPI InsertMenuItemA(HMENU,UINT,BOOL,const MENUITEMINFOA*);
4201 BOOL WINAPI InsertMenuItemW(HMENU,UINT,BOOL,const MENUITEMINFOW*);
4202 #define InsertMenuItem WINELIB_NAME_AW(InsertMenuItem)
4203 INT WINAPI InternalGetWindowText(HWND,LPWSTR,INT);
4204 BOOL WINAPI IntersectRect(LPRECT,const RECT*,const RECT*);
4205 BOOL WINAPI InvalidateRect(HWND,const RECT*,BOOL);
4206 BOOL WINAPI InvalidateRgn(HWND,HRGN,BOOL);
4207 BOOL WINAPI InvertRect(HDC,const RECT*);
4208 BOOL WINAPI IsCharAlphaA(CHAR);
4209 BOOL WINAPI IsCharAlphaW(WCHAR);
4210 #define IsCharAlpha WINELIB_NAME_AW(IsCharAlpha)
4211 BOOL WINAPI IsCharAlphaNumericA(CHAR);
4212 BOOL WINAPI IsCharAlphaNumericW(WCHAR);
4213 #define IsCharAlphaNumeric WINELIB_NAME_AW(IsCharAlphaNumeric)
4214 BOOL WINAPI IsCharLowerA(CHAR);
4215 BOOL WINAPI IsCharLowerW(WCHAR);
4216 #define IsCharLower WINELIB_NAME_AW(IsCharLower)
4217 BOOL WINAPI IsCharUpperA(CHAR);
4218 BOOL WINAPI IsCharUpperW(WCHAR);
4219 #define IsCharUpper WINELIB_NAME_AW(IsCharUpper)
4220 BOOL WINAPI IsChild(HWND,HWND);
4221 BOOL WINAPI IsClipboardFormatAvailable(UINT);
4222 BOOL WINAPI IsDialogMessageA(HWND,LPMSG);
4223 BOOL WINAPI IsDialogMessageW(HWND,LPMSG);
4224 #define IsDialogMessage WINELIB_NAME_AW(IsDialogMessage)
4225 UINT WINAPI IsDlgButtonChecked(HWND,UINT);
4226 BOOL WINAPI IsIconic(HWND);
4227 BOOL WINAPI IsMenu(HMENU);
4228 BOOL WINAPI IsRectEmpty(const RECT*);
4229 BOOL WINAPI IsWindow(HWND);
4230 BOOL WINAPI IsWindowEnabled(HWND);
4231 BOOL WINAPI IsWindowVisible(HWND);
4232 BOOL WINAPI IsZoomed(HWND);
4233 BOOL WINAPI KillSystemTimer(HWND,UINT_PTR);
4234 BOOL WINAPI KillTimer(HWND,UINT_PTR);
4235 HACCEL WINAPI LoadAcceleratorsA(HINSTANCE,LPCSTR);
4236 HACCEL WINAPI LoadAcceleratorsW(HINSTANCE,LPCWSTR);
4237 #define LoadAccelerators WINELIB_NAME_AW(LoadAccelerators)
4238 HBITMAP WINAPI LoadBitmapA(HINSTANCE,LPCSTR);
4239 HBITMAP WINAPI LoadBitmapW(HINSTANCE,LPCWSTR);
4240 #define LoadBitmap WINELIB_NAME_AW(LoadBitmap)
4241 HCURSOR WINAPI LoadCursorA(HINSTANCE,LPCSTR);
4242 HCURSOR WINAPI LoadCursorW(HINSTANCE,LPCWSTR);
4243 #define LoadCursor WINELIB_NAME_AW(LoadCursor)
4244 HCURSOR WINAPI LoadCursorFromFileA(LPCSTR);
4245 HCURSOR WINAPI LoadCursorFromFileW(LPCWSTR);
4246 #define LoadCursorFromFile WINELIB_NAME_AW(LoadCursorFromFile)
4247 HICON WINAPI LoadIconA(HINSTANCE,LPCSTR);
4248 HICON WINAPI LoadIconW(HINSTANCE,LPCWSTR);
4249 #define LoadIcon WINELIB_NAME_AW(LoadIcon)
4250 HANDLE WINAPI LoadImageA(HINSTANCE,LPCSTR,UINT,INT,INT,UINT);
4251 HANDLE WINAPI LoadImageW(HINSTANCE,LPCWSTR,UINT,INT,INT,UINT);
4252 #define LoadImage WINELIB_NAME_AW(LoadImage)
4253 HMENU WINAPI LoadMenuA(HINSTANCE,LPCSTR);
4254 HMENU WINAPI LoadMenuW(HINSTANCE,LPCWSTR);
4255 #define LoadMenu WINELIB_NAME_AW(LoadMenu)
4256 HMENU WINAPI LoadMenuIndirectA(LPCVOID);
4257 HMENU WINAPI LoadMenuIndirectW(LPCVOID);
4258 #define LoadMenuIndirect WINELIB_NAME_AW(LoadMenuIndirect)
4259 INT WINAPI LoadStringA(HINSTANCE,UINT,LPSTR,INT);
4260 INT WINAPI LoadStringW(HINSTANCE,UINT,LPWSTR,INT);
4261 #define LoadString WINELIB_NAME_AW(LoadString)
4262 BOOL WINAPI LockWindowUpdate(HWND);
4263 INT WINAPI LookupIconIdFromDirectory(LPBYTE,BOOL);
4264 INT WINAPI LookupIconIdFromDirectoryEx(LPBYTE,BOOL,INT,INT,UINT);
4265 UINT WINAPI MapVirtualKeyA(UINT,UINT);
4266 UINT WINAPI MapVirtualKeyW(UINT,UINT);
4267 #define MapVirtualKey WINELIB_NAME_AW(MapVirtualKey)
4268 UINT WINAPI MapVirtualKeyExA(UINT,UINT,HKL);
4269 UINT WINAPI MapVirtualKeyExW(UINT,UINT,HKL);
4270 #define MapVirtualKeyEx WINELIB_NAME_AW(MapVirtualKeyEx)
4271 BOOL WINAPI MapDialogRect(HWND,LPRECT);
4272 INT WINAPI MapWindowPoints(HWND,HWND,LPPOINT,UINT);
4273 UINT WINAPI MenuItemFromPoint(HWND,HMENU,POINT);
4274 BOOL WINAPI MessageBeep(UINT);
4275 INT WINAPI MessageBoxA(HWND,LPCSTR,LPCSTR,UINT);
4276 INT WINAPI MessageBoxW(HWND,LPCWSTR,LPCWSTR,UINT);
4277 #define MessageBox WINELIB_NAME_AW(MessageBox)
4278 INT WINAPI MessageBoxIndirectA(LPMSGBOXPARAMSA);
4279 INT WINAPI MessageBoxIndirectW(LPMSGBOXPARAMSW);
4280 #define MessageBoxIndirect WINELIB_NAME_AW(MessageBoxIndirect)
4281 BOOL WINAPI ModifyMenuA(HMENU,UINT,UINT,UINT_PTR,LPCSTR);
4282 BOOL WINAPI ModifyMenuW(HMENU,UINT,UINT,UINT_PTR,LPCWSTR);
4283 #define ModifyMenu WINELIB_NAME_AW(ModifyMenu)
4284 BOOL WINAPI MoveWindow(HWND,INT,INT,INT,INT,BOOL);
4285 BOOL WINAPI OemToCharA(LPCSTR,LPSTR);
4286 BOOL WINAPI OemToCharW(LPCSTR,LPWSTR);
4287 #define OemToChar WINELIB_NAME_AW(OemToChar)
4288 BOOL WINAPI OemToCharBuffA(LPCSTR,LPSTR,DWORD);
4289 BOOL WINAPI OemToCharBuffW(LPCSTR,LPWSTR,DWORD);
4290 #define OemToCharBuff WINELIB_NAME_AW(OemToCharBuff)
4291 BOOL WINAPI OffsetRect(LPRECT,INT,INT);
4292 BOOL WINAPI OpenClipboard(HWND);
4293 BOOL WINAPI OpenIcon(HWND);
4294 HWINSTA WINAPI OpenWindowStationA(LPSTR,BOOL,ACCESS_MASK);
4295 HWINSTA WINAPI OpenWindowStationW(LPWSTR,BOOL,ACCESS_MASK);
4296 #define OpenWindowStation WINELIB_NAME_AW(OpenWindowStation)
4297 BOOL WINAPI PeekMessageA(LPMSG,HWND,UINT,UINT,UINT);
4298 BOOL WINAPI PeekMessageW(LPMSG,HWND,UINT,UINT,UINT);
4299 #define PeekMessage WINELIB_NAME_AW(PeekMessage)
4300 #define PostAppMessageA(thread,msg,wparam,lparam) \
4301 PostThreadMessageA((DWORD)(thread),msg,wparam,lparam)
4302 #define PostAppMessageW(thread,msg,wparam,lparam) \
4303 PostThreadMessageW((DWORD)(thread),msg,wparam,lparam)
4304 #define PostAppMessage WINELIB_NAME_AW(PostAppMessage)
4305 BOOL WINAPI PostMessageA(HWND,UINT,WPARAM,LPARAM);
4306 BOOL WINAPI PostMessageW(HWND,UINT,WPARAM,LPARAM);
4307 #define PostMessage WINELIB_NAME_AW(PostMessage)
4308 void WINAPI PostQuitMessage(INT);
4309 UINT WINAPI PrivateExtractIconExA(LPCSTR,int,HICON*,HICON*,UINT);
4310 UINT WINAPI PrivateExtractIconExW(LPCWSTR,int,HICON*,HICON*,UINT);
4311 UINT WINAPI PrivateExtractIconsA(LPCSTR,int,int,int,HICON*,UINT*,UINT,UINT);
4312 UINT WINAPI PrivateExtractIconsW(LPCWSTR,int,int,int,HICON*,UINT*,UINT,UINT);
4313 BOOL WINAPI PtInRect(const RECT*,POINT);
4314 BOOL WINAPI RedrawWindow(HWND,const RECT*,HRGN,UINT);
4315 ATOM WINAPI RegisterClassA(const WNDCLASSA *);
4316 ATOM WINAPI RegisterClassW(const WNDCLASSW *);
4317 #define RegisterClass WINELIB_NAME_AW(RegisterClass)
4318 ATOM WINAPI RegisterClassExA(const WNDCLASSEXA *);
4319 ATOM WINAPI RegisterClassExW(const WNDCLASSEXW *);
4320 #define RegisterClassEx WINELIB_NAME_AW(RegisterClassEx)
4321 UINT WINAPI RegisterClipboardFormatA(LPCSTR);
4322 UINT WINAPI RegisterClipboardFormatW(LPCWSTR);
4323 #define RegisterClipboardFormat WINELIB_NAME_AW(RegisterClipboardFormat)
4324 WORD WINAPI RegisterWindowMessageA(LPCSTR);
4325 WORD WINAPI RegisterWindowMessageW(LPCWSTR);
4326 #define RegisterWindowMessage WINELIB_NAME_AW(RegisterWindowMessage)
4327 INT WINAPI ReleaseDC(HWND,HDC);
4328 BOOL WINAPI RemoveMenu(HMENU,UINT,UINT);
4329 HANDLE WINAPI RemovePropA(HWND,LPCSTR);
4330 HANDLE WINAPI RemovePropW(HWND,LPCWSTR);
4331 #define RemoveProp WINELIB_NAME_AW(RemoveProp)
4332 BOOL WINAPI ReplyMessage(LRESULT);
4333 BOOL WINAPI ScreenToClient(HWND,LPPOINT);
4334 VOID WINAPI ScrollChildren(HWND,UINT,WPARAM,LPARAM);
4335 BOOL WINAPI ScrollDC(HDC,INT,INT,const RECT*,const RECT*,HRGN,LPRECT);
4336 BOOL WINAPI ScrollWindow(HWND,INT,INT,const RECT*,const RECT*);
4337 INT WINAPI ScrollWindowEx(HWND,INT,INT,const RECT*,const RECT*,HRGN,LPRECT,UINT);
4338 LRESULT WINAPI SendDlgItemMessageA(HWND,INT,UINT,WPARAM,LPARAM);
4339 LRESULT WINAPI SendDlgItemMessageW(HWND,INT,UINT,WPARAM,LPARAM);
4340 #define SendDlgItemMessage WINELIB_NAME_AW(SendDlgItemMessage)
4341 UINT WINAPI SendInput(UINT,LPINPUT,int);
4342 LRESULT WINAPI SendMessageA(HWND,UINT,WPARAM,LPARAM);
4343 LRESULT WINAPI SendMessageW(HWND,UINT,WPARAM,LPARAM);
4344 #define SendMessage WINELIB_NAME_AW(SendMessage)
4345 LRESULT WINAPI SendMessageTimeoutA(HWND,UINT,WPARAM,LPARAM,UINT,UINT,PDWORD_PTR);
4346 LRESULT WINAPI SendMessageTimeoutW(HWND,UINT,WPARAM,LPARAM,UINT,UINT,PDWORD_PTR);
4347 #define SendMessageTimeout WINELIB_NAME_AW(SendMessageTimeout)
4348 HWND WINAPI SetActiveWindow(HWND);
4349 HWND WINAPI SetCapture(HWND);
4350 BOOL WINAPI SetCaretBlinkTime(UINT);
4351 BOOL WINAPI SetCaretPos(INT,INT);
4352 LONG WINAPI SetClassLongA(HWND,INT,LONG);
4353 LONG WINAPI SetClassLongW(HWND,INT,LONG);
4354 #define SetClassLong WINELIB_NAME_AW(SetClassLong)
4355 WORD WINAPI SetClassWord(HWND,INT,WORD);
4356 HANDLE WINAPI SetClipboardData(UINT,HANDLE);
4357 HWND WINAPI SetClipboardViewer(HWND);
4358 HCURSOR WINAPI SetCursor(HCURSOR);
4359 BOOL WINAPI SetCursorPos(INT,INT);
4360 BOOL WINAPI SetDeskWallPaper(LPCSTR);
4361 BOOL WINAPI SetDlgItemInt(HWND,INT,UINT,BOOL);
4362 BOOL WINAPI SetDlgItemTextA(HWND,INT,LPCSTR);
4363 BOOL WINAPI SetDlgItemTextW(HWND,INT,LPCWSTR);
4364 #define SetDlgItemText WINELIB_NAME_AW(SetDlgItemText)
4365 BOOL WINAPI SetDoubleClickTime(UINT);
4366 HWND WINAPI SetFocus(HWND);
4367 BOOL WINAPI SetForegroundWindow(HWND);
4368 void WINAPI SetInternalWindowPos(HWND,UINT,LPRECT,LPPOINT);
4369 BOOL WINAPI SetMenu(HWND,HMENU);
4370 BOOL WINAPI SetMenuContextHelpId(HMENU,DWORD);
4371 BOOL WINAPI SetMenuItemBitmaps(HMENU,UINT,UINT,HBITMAP,HBITMAP);
4372 BOOL WINAPI SetMessageQueue(INT);
4373 BOOL WINAPI SetProcessDefaultLayout(DWORD);
4374 BOOL WINAPI SetProcessWindowStation(HWINSTA);
4375 HWND WINAPI SetParent(HWND,HWND);
4376 BOOL WINAPI SetPropA(HWND,LPCSTR,HANDLE);
4377 BOOL WINAPI SetPropW(HWND,LPCWSTR,HANDLE);
4378 #define SetProp WINELIB_NAME_AW(SetProp)
4379 BOOL WINAPI SetRect(LPRECT,INT,INT,INT,INT);
4380 BOOL WINAPI SetRectEmpty(LPRECT);
4381 INT WINAPI SetScrollInfo(HWND,INT,const SCROLLINFO*,BOOL);
4382 INT WINAPI SetScrollPos(HWND,INT,INT,BOOL);
4383 BOOL WINAPI SetScrollRange(HWND,INT,INT,INT,BOOL);
4384 #define SetSysModalWindow(hwnd) ((HWND)0)
4385 BOOL WINAPI SetSystemCursor(HCURSOR,DWORD);
4386 BOOL WINAPI SetSystemMenu(HWND,HMENU);
4387 UINT_PTR WINAPI SetSystemTimer(HWND,UINT_PTR,UINT,TIMERPROC);
4388 UINT_PTR WINAPI SetTimer(HWND,UINT_PTR,UINT,TIMERPROC);
4389 BOOL WINAPI SetUserObjectSecurity(HANDLE,PSECURITY_INFORMATION,PSECURITY_DESCRIPTOR);
4390 LONG WINAPI SetWindowLongA(HWND,INT,LONG);
4391 LONG WINAPI SetWindowLongW(HWND,INT,LONG);
4392 #define SetWindowLong WINELIB_NAME_AW(SetWindowLong)
4393 #define SetWindowLongPtrA SetWindowLongA
4394 #define SetWindowLongPtrW SetWindowLongW
4395 #define SetWindowLongPtr WINELIB_NAME_AW(SetWindowLongPtr)
4396 BOOL WINAPI SetWindowPlacement(HWND,const WINDOWPLACEMENT*);
4397 HHOOK WINAPI SetWindowsHookA(INT,HOOKPROC);
4398 HHOOK WINAPI SetWindowsHookW(INT,HOOKPROC);
4399 #define SetWindowsHook WINELIB_NAME_AW(SetWindowsHook)
4400 HHOOK WINAPI SetWindowsHookExA(INT,HOOKPROC,HINSTANCE,DWORD);
4401 HHOOK WINAPI SetWindowsHookExW(INT,HOOKPROC,HINSTANCE,DWORD);
4402 #define SetWindowsHookEx WINELIB_NAME_AW(SetWindowsHookEx)
4403 BOOL WINAPI SetWindowPos(HWND,HWND,INT,INT,INT,INT,UINT);
4404 INT WINAPI SetWindowRgn(HWND,HRGN,BOOL);
4405 BOOL WINAPI SetWindowTextA(HWND,LPCSTR);
4406 BOOL WINAPI SetWindowTextW(HWND,LPCWSTR);
4407 #define SetWindowText WINELIB_NAME_AW(SetWindowText)
4408 WORD WINAPI SetWindowWord(HWND,INT,WORD);
4409 BOOL WINAPI ShowCaret(HWND);
4410 INT WINAPI ShowCursor(BOOL);
4411 BOOL WINAPI ShowScrollBar(HWND,INT,BOOL);
4412 BOOL WINAPI ShowOwnedPopups(HWND,BOOL);
4413 BOOL WINAPI ShowWindow(HWND,INT);
4414 BOOL WINAPI SubtractRect(LPRECT,const RECT*,const RECT*);
4415 BOOL WINAPI SwapMouseButton(BOOL);
4416 VOID WINAPI SwitchToThisWindow(HWND,BOOL);
4417 BOOL WINAPI SystemParametersInfoA(UINT,UINT,LPVOID,UINT);
4418 BOOL WINAPI SystemParametersInfoW(UINT,UINT,LPVOID,UINT);
4419 #define SystemParametersInfo WINELIB_NAME_AW(SystemParametersInfo)
4420 LONG WINAPI TabbedTextOutA(HDC,INT,INT,LPCSTR,INT,INT,const INT*,INT);
4421 LONG WINAPI TabbedTextOutW(HDC,INT,INT,LPCWSTR,INT,INT,const INT*,INT);
4422 #define TabbedTextOut WINELIB_NAME_AW(TabbedTextOut)
4423 INT WINAPI ToAscii(UINT,UINT,LPBYTE,LPWORD,UINT);
4424 INT WINAPI ToAsciiEx(UINT,UINT,LPBYTE,LPWORD,UINT,HKL);
4425 BOOL WINAPI TrackMouseEvent(LPTRACKMOUSEEVENT);
4426 BOOL WINAPI TrackPopupMenu(HMENU,UINT,INT,INT,INT,HWND,const RECT*);
4427 INT WINAPI TranslateAccelerator(HWND,HACCEL,LPMSG);
4428 BOOL WINAPI TranslateMDISysAccel(HWND,LPMSG);
4429 BOOL WINAPI TranslateMessage(const MSG*);
4430 BOOL WINAPI UnhookWindowsHook(INT,HOOKPROC);
4431 BOOL WINAPI UnhookWindowsHookEx(HHOOK);
4432 BOOL WINAPI UnionRect(LPRECT,const RECT*,const RECT*);
4433 BOOL WINAPI UnregisterClassA(LPCSTR,HINSTANCE);
4434 BOOL WINAPI UnregisterClassW(LPCWSTR,HINSTANCE);
4435 #define UnregisterClass WINELIB_NAME_AW(UnregisterClass)
4436 BOOL WINAPI UpdateWindow(HWND);
4437 UINT WINAPI UserRealizePalette(HDC);
4438 BOOL WINAPI ValidateRect(HWND,const RECT*);
4439 BOOL WINAPI ValidateRgn(HWND,HRGN);
4440 WORD WINAPI VkKeyScanA(CHAR);
4441 WORD WINAPI VkKeyScanW(WCHAR);
4442 #define VkKeyScan WINELIB_NAME_AW(VkKeyScan)
4443 WORD WINAPI VkKeyScanExA(CHAR, HKL);
4444 WORD WINAPI VkKeyScanExW(WCHAR, HKL);
4445 #define VkKeyScanEx WINELIB_NAME_AW(VkKeyScanEx)
4446 BOOL WINAPI WaitMessage(void);
4447 HWND WINAPI WindowFromDC(HDC);
4448 HWND WINAPI WindowFromPoint(POINT);
4449 BOOL WINAPI WinHelpA(HWND,LPCSTR,UINT,ULONG_PTR);
4450 BOOL WINAPI WinHelpW(HWND,LPCWSTR,UINT,ULONG_PTR);
4451 #define WinHelp WINELIB_NAME_AW(WinHelp)
4452 INT WINAPIV wsprintfA(LPSTR,LPCSTR,...);
4453 INT WINAPIV wsprintfW(LPWSTR,LPCWSTR,...);
4454 #define wsprintf WINELIB_NAME_AW(wsprintf)
4455 INT WINAPI wvsprintfA(LPSTR,LPCSTR,va_list);
4456 INT WINAPI wvsprintfW(LPWSTR,LPCWSTR,va_list);
4457 #define wvsprintf WINELIB_NAME_AW(wvsprintf)
4459 /* Undocumented functions */
4461 /* NOTE: This is SYSTEM.3, not USER.182, which is also named KillSystemTimer */
4462 WORD WINAPI SYSTEM_KillSystemTimer( WORD );
4464 #ifdef __cplusplus
4466 #endif
4468 #endif /* _WINUSER_ */