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