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