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