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