source: trunk/include/win/winuser.h@ 1420

Last change on this file since 1420 was 1420, checked in by sandervl, 26 years ago

several small changes

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