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

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

Lots of changes by several people (see changelog for 4 October

File size: 122.0 KB
Line 
1/* $Id: winuser.h,v 1.10 1999-10-04 09:55:52 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_NCCALCSIZE parameter structure */
924typedef struct
925{
926 RECT rgrc[3];
927 WINDOWPOS *lppos;
928} NCCALCSIZE_PARAMS, *LPNCCALCSIZE_PARAMS;
929
930
931 /* WM_NCCALCSIZE return flags */
932#define WVR_ALIGNTOP 0x0010
933#define WVR_ALIGNLEFT 0x0020
934#define WVR_ALIGNBOTTOM 0x0040
935#define WVR_ALIGNRIGHT 0x0080
936#define WVR_HREDRAW 0x0100
937#define WVR_VREDRAW 0x0200
938#define WVR_REDRAW (WVR_HREDRAW | WVR_VREDRAW)
939#define WVR_VALIDRECTS 0x0400
940
941 /* WM_NCHITTEST return codes */
942#define HTERROR (-2)
943#define HTTRANSPARENT (-1)
944#define HTNOWHERE 0
945#define HTCLIENT 1
946#define HTCAPTION 2
947#define HTSYSMENU 3
948#define HTSIZE 4
949#define HTMENU 5
950#define HTHSCROLL 6
951#define HTVSCROLL 7
952#define HTMINBUTTON 8
953#define HTMAXBUTTON 9
954#define HTLEFT 10
955#define HTRIGHT 11
956#define HTTOP 12
957#define HTTOPLEFT 13
958#define HTTOPRIGHT 14
959#define HTBOTTOM 15
960#define HTBOTTOMLEFT 16
961#define HTBOTTOMRIGHT 17
962#define HTBORDER 18
963#define HTGROWBOX HTSIZE
964#define HTREDUCE HTMINBUTTON
965#define HTZOOM HTMAXBUTTON
966#define HTOBJECT 19
967#define HTCLOSE 20
968#define HTHELP 21
969#define HTSIZEFIRST HTLEFT
970#define HTSIZELAST HTBOTTOMRIGHT
971
972 /* WM_SYSCOMMAND parameters */
973#ifdef SC_SIZE /* at least HP-UX: already defined in /usr/include/sys/signal.h */
974#undef SC_SIZE
975#endif
976#define SC_SIZE 0xf000
977#define SC_MOVE 0xf010
978#define SC_MINIMIZE 0xf020
979#define SC_MAXIMIZE 0xf030
980#define SC_NEXTWINDOW 0xf040
981#define SC_PREVWINDOW 0xf050
982#define SC_CLOSE 0xf060
983#define SC_VSCROLL 0xf070
984#define SC_HSCROLL 0xf080
985#define SC_MOUSEMENU 0xf090
986#define SC_KEYMENU 0xf100
987#define SC_ARRANGE 0xf110
988#define SC_RESTORE 0xf120
989#define SC_TASKLIST 0xf130
990#define SC_SCREENSAVE 0xf140
991#define SC_HOTKEY 0xf150
992
993#define CS_VREDRAW 0x0001
994#define CS_HREDRAW 0x0002
995#define CS_KEYCVTWINDOW 0x0004
996#define CS_DBLCLKS 0x0008
997#define CS_OWNDC 0x0020
998#define CS_CLASSDC 0x0040
999#define CS_PARENTDC 0x0080
1000#define CS_NOKEYCVT 0x0100
1001#define CS_NOCLOSE 0x0200
1002#define CS_SAVEBITS 0x0800
1003#define CS_BYTEALIGNCLIENT 0x1000
1004#define CS_BYTEALIGNWINDOW 0x2000
1005#define CS_GLOBALCLASS 0x4000
1006
1007#define PRF_CHECKVISIBLE 0x00000001L
1008#define PRF_NONCLIENT 0x00000002L
1009#define PRF_CLIENT 0x00000004L
1010#define PRF_ERASEBKGND 0x00000008L
1011#define PRF_CHILDREN 0x00000010L
1012#define PRF_OWNED 0x00000020L
1013
1014 /* Offsets for GetClassLong() and GetClassWord() */
1015#define GCL_MENUNAME (-8)
1016#define GCW_HBRBACKGROUND (-10)
1017#define GCL_HBRBACKGROUND GCW_HBRBACKGROUND
1018#define GCW_HCURSOR (-12)
1019#define GCL_HCURSOR GCW_HCURSOR
1020#define GCW_HICON (-14)
1021#define GCL_HICON GCW_HICON
1022#define GCW_HMODULE (-16)
1023#define GCL_HMODULE GCW_HMODULE
1024#define GCW_CBWNDEXTRA (-18)
1025#define GCL_CBWNDEXTRA GCW_CBWNDEXTRA
1026#define GCW_CBCLSEXTRA (-20)
1027#define GCL_CBCLSEXTRA GCW_CBCLSEXTRA
1028#define GCL_WNDPROC (-24)
1029#define GCW_STYLE (-26)
1030#define GCL_STYLE GCW_STYLE
1031#define GCW_ATOM (-32)
1032#define GCW_HICONSM (-34)
1033#define GCL_HICONSM GCW_HICONSM
1034
1035#ifndef NOWINOFFSETS
1036#define GCW_HBRBACKGROUND (-10)
1037#endif
1038
1039
1040/***** Window hooks *****/
1041
1042 /* Hook values */
1043#define WH_MIN (-1)
1044#define WH_MSGFILTER (-1)
1045#define WH_JOURNALRECORD 0
1046#define WH_JOURNALPLAYBACK 1
1047#define WH_KEYBOARD 2
1048#define WH_GETMESSAGE 3
1049#define WH_CALLWNDPROC 4
1050#define WH_CBT 5
1051#define WH_SYSMSGFILTER 6
1052#define WH_MOUSE 7
1053#define WH_HARDWARE 8
1054#define WH_DEBUG 9
1055#define WH_SHELL 10
1056#define WH_FOREGROUNDIDLE 11
1057#define WH_CALLWNDPROCRET 12
1058#define WH_MAX 12
1059
1060#define WH_MINHOOK WH_MIN
1061#define WH_MAXHOOK WH_MAX
1062#define WH_NB_HOOKS (WH_MAXHOOK-WH_MINHOOK+1)
1063
1064 /* Hook action codes */
1065#define HC_ACTION 0
1066#define HC_GETNEXT 1
1067#define HC_SKIP 2
1068#define HC_NOREMOVE 3
1069#define HC_NOREM HC_NOREMOVE
1070#define HC_SYSMODALON 4
1071#define HC_SYSMODALOFF 5
1072
1073 /* CallMsgFilter() values */
1074#define MSGF_DIALOGBOX 0
1075#define MSGF_MESSAGEBOX 1
1076#define MSGF_MENU 2
1077#define MSGF_MOVE 3
1078#define MSGF_SIZE 4
1079#define MSGF_SCROLLBAR 5
1080#define MSGF_NEXTWINDOW 6
1081#define MSGF_MAINLOOP 8
1082#define MSGF_USER 4096
1083
1084typedef struct
1085{
1086 UINT style;
1087 WNDPROC lpfnWndProc;
1088 INT cbClsExtra;
1089 INT cbWndExtra;
1090 HINSTANCE hInstance;
1091 HICON hIcon;
1092 HCURSOR hCursor;
1093 HBRUSH hbrBackground;
1094 LPCSTR lpszMenuName;
1095 LPCSTR lpszClassName;
1096} WNDCLASSA, *LPWNDCLASSA;
1097
1098typedef struct
1099{
1100 UINT style;
1101 WNDPROC lpfnWndProc;
1102 INT cbClsExtra;
1103 INT cbWndExtra;
1104 HINSTANCE hInstance;
1105 HICON hIcon;
1106 HCURSOR hCursor;
1107 HBRUSH hbrBackground;
1108 LPCWSTR lpszMenuName;
1109 LPCWSTR lpszClassName;
1110} WNDCLASSW, *LPWNDCLASSW;
1111
1112DECL_WINELIB_TYPE_AW(WNDCLASS)
1113DECL_WINELIB_TYPE_AW(LPWNDCLASS)
1114
1115typedef struct {
1116 DWORD dwData;
1117 DWORD cbData;
1118 LPVOID lpData;
1119} COPYDATASTRUCT, *PCOPYDATASTRUCT, *LPCOPYDATASTRUCT;
1120
1121typedef struct {
1122 HMENU hmenuIn;
1123 HMENU hmenuNext;
1124 HWND hwndNext;
1125} MDINEXTMENU, *PMDINEXTMENU, *LPMDINEXTMENU;
1126
1127/* WinHelp internal structure */
1128typedef struct {
1129 WORD size;
1130 WORD command;
1131 LONG data;
1132 LONG reserved;
1133 WORD ofsFilename;
1134 WORD ofsData;
1135} WINHELP,*LPWINHELP;
1136
1137typedef struct
1138{
1139 UINT16 mkSize;
1140 BYTE mkKeyList;
1141 BYTE szKeyPhrase[1];
1142} MULTIKEYHELP, *LPMULTIKEYHELP;
1143
1144typedef struct {
1145 WORD wStructSize;
1146 WORD x;
1147 WORD y;
1148 WORD dx;
1149 WORD dy;
1150 WORD wMax;
1151 char rgchMember[2];
1152} HELPWININFO, *LPHELPWININFO;
1153
1154#define HELP_CONTEXT 0x0001
1155#define HELP_QUIT 0x0002
1156#define HELP_INDEX 0x0003
1157#define HELP_CONTENTS 0x0003
1158#define HELP_HELPONHELP 0x0004
1159#define HELP_SETINDEX 0x0005
1160#define HELP_SETCONTENTS 0x0005
1161#define HELP_CONTEXTPOPUP 0x0008
1162#define HELP_FORCEFILE 0x0009
1163#define HELP_KEY 0x0101
1164#define HELP_COMMAND 0x0102
1165#define HELP_PARTIALKEY 0x0105
1166#define HELP_MULTIKEY 0x0201
1167#define HELP_SETWINPOS 0x0203
1168#define HELP_CONTEXTMENU 0x000a
1169#define HELP_FINDER 0x000b
1170#define HELP_WM_HELP 0x000c
1171#define HELP_SETPOPUP_POS 0x000d
1172
1173#define HELP_TCARD 0x8000
1174#define HELP_TCARD_DATA 0x0010
1175#define HELP_TCARD_OTHER_CALLER 0x0011
1176
1177
1178 /* ChangeDisplaySettings return codes */
1179
1180#define DISP_CHANGE_SUCCESSFUL 0
1181#define DISP_CHANGE_RESTART 1
1182#define DISP_CHANGE_FAILED (-1)
1183#define DISP_CHANGE_BADMODE (-2)
1184#define DISP_CHANGE_NOTUPDATED (-3)
1185#define DISP_CHANGE_BADFLAGS (-4)
1186
1187/* flags to FormatMessage */
1188#define FORMAT_MESSAGE_ALLOCATE_BUFFER 0x00000100
1189#define FORMAT_MESSAGE_IGNORE_INSERTS 0x00000200
1190#define FORMAT_MESSAGE_FROM_STRING 0x00000400
1191#define FORMAT_MESSAGE_FROM_HMODULE 0x00000800
1192#define FORMAT_MESSAGE_FROM_SYSTEM 0x00001000
1193#define FORMAT_MESSAGE_ARGUMENT_ARRAY 0x00002000
1194#define FORMAT_MESSAGE_MAX_WIDTH_MASK 0x000000FF
1195
1196typedef struct
1197{
1198 UINT cbSize;
1199 UINT style;
1200 WNDPROC lpfnWndProc;
1201 INT cbClsExtra;
1202 INT cbWndExtra;
1203 HINSTANCE hInstance;
1204 HICON hIcon;
1205 HCURSOR hCursor;
1206 HBRUSH hbrBackground;
1207 LPCSTR lpszMenuName;
1208 LPCSTR lpszClassName;
1209 HICON hIconSm;
1210} WNDCLASSEXA, *LPWNDCLASSEXA;
1211
1212typedef struct
1213{
1214 UINT cbSize;
1215 UINT style;
1216 WNDPROC lpfnWndProc;
1217 INT cbClsExtra;
1218 INT cbWndExtra;
1219 HINSTANCE hInstance;
1220 HICON hIcon;
1221 HCURSOR hCursor;
1222 HBRUSH hbrBackground;
1223 LPCWSTR lpszMenuName;
1224 LPCWSTR lpszClassName;
1225 HICON hIconSm;
1226} WNDCLASSEXW, *LPWNDCLASSEXW;
1227
1228DECL_WINELIB_TYPE_AW(WNDCLASSEX)
1229DECL_WINELIB_TYPE_AW(LPWNDCLASSEX)
1230
1231typedef struct
1232{
1233 HWND hwnd;
1234 UINT message;
1235 WPARAM wParam;
1236 LPARAM lParam;
1237 DWORD time;
1238 POINT pt;
1239} MSG, *PMSG, *NPMSG, *LPMSG;
1240
1241
1242/* Cursors / Icons */
1243
1244typedef struct {
1245 BOOL fIcon;
1246 DWORD xHotspot;
1247 DWORD yHotspot;
1248 HBITMAP hbmMask;
1249 HBITMAP hbmColor;
1250} ICONINFO,*LPICONINFO;
1251
1252
1253/* this is the 6 byte accel struct used in Win32 when presented to the user */
1254typedef struct
1255{
1256 BYTE fVirt;
1257 BYTE pad0;
1258 WORD key;
1259 WORD cmd;
1260} ACCEL, *LPACCEL;
1261
1262/* this is the 8 byte accel struct used in Win32 resources (internal only) */
1263typedef struct
1264{
1265 BYTE fVirt;
1266 BYTE pad0;
1267 WORD key;
1268 WORD cmd;
1269 WORD pad1;
1270} PE_ACCEL, *LPPE_ACCEL;
1271
1272
1273/* Flags for TrackPopupMenu */
1274#define TPM_LEFTBUTTON 0x0000
1275#define TPM_RIGHTBUTTON 0x0002
1276#define TPM_LEFTALIGN 0x0000
1277#define TPM_CENTERALIGN 0x0004
1278#define TPM_RIGHTALIGN 0x0008
1279#define TPM_TOPALIGN 0x0000
1280#define TPM_VCENTERALIGN 0x0010
1281#define TPM_BOTTOMALIGN 0x0020
1282#define TPM_HORIZONTAL 0x0000
1283#define TPM_VERTICAL 0x0040
1284#define TPM_NONOTIFY 0x0080
1285#define TPM_RETURNCMD 0x0100
1286
1287typedef struct
1288{
1289 UINT cbSize;
1290 RECT rcExclude;
1291} TPMPARAMS, *LPTPMPARAMS;
1292
1293/* FIXME: not sure this one is correct */
1294typedef struct {
1295 UINT cbSize;
1296 UINT fMask;
1297 UINT fType;
1298 UINT fState;
1299 UINT wID;
1300 HMENU hSubMenu;
1301 HBITMAP hbmpChecked;
1302 HBITMAP hbmpUnchecked;
1303 DWORD dwItemData;
1304 LPSTR dwTypeData;
1305 UINT cch;
1306 HBITMAP hbmpItem;
1307} MENUITEMINFOA, *LPMENUITEMINFOA;
1308
1309typedef struct {
1310 UINT cbSize;
1311 UINT fMask;
1312 UINT fType;
1313 UINT fState;
1314 UINT wID;
1315 HMENU hSubMenu;
1316 HBITMAP hbmpChecked;
1317 HBITMAP hbmpUnchecked;
1318 DWORD dwItemData;
1319 LPWSTR dwTypeData;
1320 UINT cch;
1321 HBITMAP hbmpItem;
1322} MENUITEMINFOW, *LPMENUITEMINFOW;
1323
1324typedef const LPMENUITEMINFOA LPCMENUITEMINFOA;
1325typedef const LPMENUITEMINFOW LPCMENUITEMINFOW;
1326
1327DECL_WINELIB_TYPE_AW(MENUITEMINFO)
1328DECL_WINELIB_TYPE_AW(LPMENUITEMINFO)
1329
1330typedef struct {
1331 DWORD cbSize;
1332 DWORD fMask;
1333 DWORD dwStyle;
1334 UINT cyMax;
1335 HBRUSH hbrBack;
1336 DWORD dwContextHelpID;
1337 DWORD dwMenuData;
1338} MENUINFO, *LPMENUINFO;
1339
1340typedef MENUINFO const * LPCMENUINFO;
1341
1342#define MIM_MAXHEIGHT 0x00000001
1343#define MIM_BACKGROUND 0x00000002
1344#define MIM_HELPID 0x00000004
1345#define MIM_MENUDATA 0x00000008
1346#define MIM_STYLE 0x00000010
1347#define MIM_APPLYTOSUBMENUS 0x80000000
1348
1349typedef struct {
1350 WORD versionNumber;
1351 WORD offset;
1352} MENUITEMTEMPLATEHEADER, *PMENUITEMTEMPLATEHEADER;
1353
1354
1355typedef struct {
1356 WORD mtOption;
1357 WORD mtID;
1358 WCHAR mtString[1];
1359} MENUITEMTEMPLATE, *PMENUITEMTEMPLATE;
1360
1361
1362typedef VOID MENUTEMPLATE;
1363typedef PVOID *LPMENUTEMPLATE;
1364
1365/* Field specifiers for MENUITEMINFO[AW] type. */
1366#define MIIM_STATE 0x00000001
1367#define MIIM_ID 0x00000002
1368#define MIIM_SUBMENU 0x00000004
1369#define MIIM_CHECKMARKS 0x00000008
1370#define MIIM_TYPE 0x00000010
1371#define MIIM_DATA 0x00000020
1372#define MIIM_STRING 0x00000040
1373#define MIIM_BITMAP 0x00000080
1374#define MIIM_FTYPE 0x00000100
1375
1376#define HBMMENU_CALLBACK ((HBITMAP) -1)
1377#define HBMMENU_SYSTEM ((HBITMAP) 1)
1378#define HBMMENU_MBAR_RESTORE ((HBITMAP) 2)
1379#define HBMMENU_MBAR_MINIMIZE ((HBITMAP) 3)
1380#define HBMMENU_MBAR_CLOSE ((HBITMAP) 5)
1381#define HBMMENU_MBAR_CLOSE_D ((HBITMAP) 6)
1382#define HBMMENU_MBAR_MINIMIZE_D ((HBITMAP) 7)
1383#define HBMMENU_POPUP_CLOSE ((HBITMAP) 8)
1384#define HBMMENU_POPUP_RESTORE ((HBITMAP) 9)
1385#define HBMMENU_POPUP_MAXIMIZE ((HBITMAP) 10)
1386#define HBMMENU_POPUP_MINIMIZE ((HBITMAP) 11)
1387
1388/* DrawState defines ... */
1389typedef BOOL (* CALLBACK DRAWSTATEPROC)(HDC,LPARAM,WPARAM,INT,INT);
1390
1391/* WM_H/VSCROLL commands */
1392#define SB_LINEUP 0
1393#define SB_LINELEFT 0
1394#define SB_LINEDOWN 1
1395#define SB_LINERIGHT 1
1396#define SB_PAGEUP 2
1397#define SB_PAGELEFT 2
1398#define SB_PAGEDOWN 3
1399#define SB_PAGERIGHT 3
1400#define SB_THUMBPOSITION 4
1401#define SB_THUMBTRACK 5
1402#define SB_TOP 6
1403#define SB_LEFT 6
1404#define SB_BOTTOM 7
1405#define SB_RIGHT 7
1406#define SB_ENDSCROLL 8
1407
1408/* Scroll bar selection constants */
1409#define SB_HORZ 0
1410#define SB_VERT 1
1411#define SB_CTL 2
1412#define SB_BOTH 3
1413
1414/* Scrollbar styles */
1415#define SBS_HORZ 0x0000L
1416#define SBS_VERT 0x0001L
1417#define SBS_TOPALIGN 0x0002L
1418#define SBS_LEFTALIGN 0x0002L
1419#define SBS_BOTTOMALIGN 0x0004L
1420#define SBS_RIGHTALIGN 0x0004L
1421#define SBS_SIZEBOXTOPLEFTALIGN 0x0002L
1422#define SBS_SIZEBOXBOTTOMRIGHTALIGN 0x0004L
1423#define SBS_SIZEBOX 0x0008L
1424#define SBS_SIZEGRIP 0x0010L
1425
1426/* EnableScrollBar() flags */
1427#define ESB_ENABLE_BOTH 0x0000
1428#define ESB_DISABLE_BOTH 0x0003
1429
1430#define ESB_DISABLE_LEFT 0x0001
1431#define ESB_DISABLE_RIGHT 0x0002
1432
1433#define ESB_DISABLE_UP 0x0001
1434#define ESB_DISABLE_DOWN 0x0002
1435
1436#define ESB_DISABLE_LTUP ESB_DISABLE_LEFT
1437#define ESB_DISABLE_RTDN ESB_DISABLE_RIGHT
1438
1439/* Win32 button control messages */
1440#define BM_GETCHECK 0x00f0
1441#define BM_SETCHECK 0x00f1
1442#define BM_GETSTATE 0x00f2
1443#define BM_SETSTATE 0x00f3
1444#define BM_SETSTYLE 0x00f4
1445#define BM_CLICK 0x00f5
1446#define BM_GETIMAGE 0x00f6
1447#define BM_SETIMAGE 0x00f7
1448/* Winelib button control messages */
1449
1450/* Button notification codes */
1451#define BN_CLICKED 0
1452#define BN_PAINT 1
1453#define BN_HILITE 2
1454#define BN_UNHILITE 3
1455#define BN_DISABLE 4
1456#define BN_DOUBLECLICKED 5
1457
1458/* Button states */
1459#define BST_UNCHECKED 0x0000
1460#define BST_CHECKED 0x0001
1461#define BST_INDETERMINATE 0x0002
1462#define BST_PUSHED 0x0004
1463#define BST_FOCUS 0x0008
1464
1465/* Static Control Styles */
1466#define SS_LEFT 0x00000000L
1467#define SS_CENTER 0x00000001L
1468#define SS_RIGHT 0x00000002L
1469#define SS_ICON 0x00000003L
1470#define SS_BLACKRECT 0x00000004L
1471#define SS_GRAYRECT 0x00000005L
1472#define SS_WHITERECT 0x00000006L
1473#define SS_BLACKFRAME 0x00000007L
1474#define SS_GRAYFRAME 0x00000008L
1475#define SS_WHITEFRAME 0x00000009L
1476
1477#define SS_SIMPLE 0x0000000BL
1478#define SS_LEFTNOWORDWRAP 0x0000000CL
1479
1480#define SS_OWNERDRAW 0x0000000DL
1481#define SS_BITMAP 0x0000000EL
1482#define SS_ENHMETAFILE 0x0000000FL
1483
1484#define SS_ETCHEDHORZ 0x00000010L
1485#define SS_ETCHEDVERT 0x00000011L
1486#define SS_ETCHEDFRAME 0x00000012L
1487#define SS_TYPEMASK 0x0000001FL
1488
1489#define SS_NOPREFIX 0x00000080L
1490#define SS_NOTIFY 0x00000100L
1491#define SS_CENTERIMAGE 0x00000200L
1492#define SS_RIGHTJUST 0x00000400L
1493#define SS_REALSIZEIMAGE 0x00000800L
1494#define SS_SUNKEN 0x00001000L
1495
1496/* Static Control Messages */
1497#define STM_SETICON 0x0170
1498#define STM_GETICON 0x0171
1499#define STM_SETIMAGE 0x0172
1500#define STM_GETIMAGE 0x0173
1501
1502/* Scrollbar messages */
1503#define SBM_SETPOS 0x00e0
1504#define SBM_GETPOS 0x00e1
1505#define SBM_SETRANGE 0x00e2
1506#define SBM_GETRANGE 0x00e3
1507#define SBM_ENABLE_ARROWS 0x00e4
1508#define SBM_SETRANGEREDRAW 0x00e6
1509#define SBM_SETSCROLLINFO 0x00e9
1510#define SBM_GETSCROLLINFO 0x00ea
1511
1512/* Scrollbar info */
1513typedef struct
1514{
1515 UINT cbSize;
1516 UINT fMask;
1517 INT nMin;
1518 INT nMax;
1519 UINT nPage;
1520 INT nPos;
1521 INT nTrackPos;
1522} SCROLLINFO, *LPSCROLLINFO;
1523typedef SCROLLINFO CONST *LPCSCROLLINFO;
1524
1525/* GetScrollInfo() flags */
1526#define SIF_RANGE 0x0001
1527#define SIF_PAGE 0x0002
1528#define SIF_POS 0x0004
1529#define SIF_DISABLENOSCROLL 0x0008
1530#define SIF_TRACKPOS 0x0010
1531#define SIF_ALL (SIF_RANGE | SIF_PAGE | SIF_POS | SIF_TRACKPOS)
1532
1533/* Listbox styles */
1534#define LBS_NOTIFY 0x0001
1535#define LBS_SORT 0x0002
1536#define LBS_NOREDRAW 0x0004
1537#define LBS_MULTIPLESEL 0x0008
1538#define LBS_OWNERDRAWFIXED 0x0010
1539#define LBS_OWNERDRAWVARIABLE 0x0020
1540#define LBS_HASSTRINGS 0x0040
1541#define LBS_USETABSTOPS 0x0080
1542#define LBS_NOINTEGRALHEIGHT 0x0100
1543#define LBS_MULTICOLUMN 0x0200
1544#define LBS_WANTKEYBOARDINPUT 0x0400
1545#define LBS_EXTENDEDSEL 0x0800
1546#define LBS_DISABLENOSCROLL 0x1000
1547#define LBS_NODATA 0x2000
1548#define LBS_NOSEL 0x4000
1549#define LBS_STANDARD (LBS_NOTIFY | LBS_SORT | WS_VSCROLL | WS_BORDER)
1550
1551/* Listbox messages */
1552#define LB_ADDSTRING 0x0180
1553#define LB_INSERTSTRING 0x0181
1554#define LB_DELETESTRING 0x0182
1555#define LB_SELITEMRANGEEX 0x0183
1556#define LB_RESETCONTENT 0x0184
1557#define LB_SETSEL 0x0185
1558#define LB_SETCURSEL 0x0186
1559#define LB_GETSEL 0x0187
1560#define LB_GETCURSEL 0x0188
1561#define LB_GETTEXT 0x0189
1562#define LB_GETTEXTLEN 0x018a
1563#define LB_GETCOUNT 0x018b
1564#define LB_SELECTSTRING 0x018c
1565#define LB_DIR 0x018d
1566#define LB_GETTOPINDEX 0x018e
1567#define LB_FINDSTRING 0x018f
1568#define LB_GETSELCOUNT 0x0190
1569#define LB_GETSELITEMS 0x0191
1570#define LB_SETTABSTOPS 0x0192
1571#define LB_GETHORIZONTALEXTENT 0x0193
1572#define LB_SETHORIZONTALEXTENT 0x0194
1573#define LB_SETCOLUMNWIDTH 0x0195
1574#define LB_ADDFILE 0x0196
1575#define LB_SETTOPINDEX 0x0197
1576#define LB_GETITEMRECT 0x0198
1577#define LB_GETITEMDATA 0x0199
1578#define LB_SETITEMDATA 0x019a
1579#define LB_SELITEMRANGE 0x019b
1580#define LB_SETANCHORINDEX 0x019c
1581#define LB_GETANCHORINDEX 0x019d
1582#define LB_SETCARETINDEX 0x019e
1583#define LB_GETCARETINDEX 0x019f
1584#define LB_SETITEMHEIGHT 0x01a0
1585#define LB_GETITEMHEIGHT 0x01a1
1586#define LB_FINDSTRINGEXACT 0x01a2
1587#define LB_CARETON 0x01a3
1588#define LB_CARETOFF 0x01a4
1589#define LB_SETLOCALE 0x01a5
1590#define LB_GETLOCALE 0x01a6
1591#define LB_SETCOUNT 0x01a7
1592#define LB_INITSTORAGE 0x01a8
1593#define LB_ITEMFROMPOINT 0x01a9
1594
1595/* Listbox notification codes */
1596#define LBN_ERRSPACE (-2)
1597#define LBN_SELCHANGE 1
1598#define LBN_DBLCLK 2
1599#define LBN_SELCANCEL 3
1600#define LBN_SETFOCUS 4
1601#define LBN_KILLFOCUS 5
1602
1603/* Listbox message return values */
1604#define LB_OKAY 0
1605#define LB_ERR (-1)
1606#define LB_ERRSPACE (-2)
1607
1608#define LB_CTLCODE 0L
1609
1610/* Combo box styles */
1611#define CBS_SIMPLE 0x0001L
1612#define CBS_DROPDOWN 0x0002L
1613#define CBS_DROPDOWNLIST 0x0003L
1614#define CBS_OWNERDRAWFIXED 0x0010L
1615#define CBS_OWNERDRAWVARIABLE 0x0020L
1616#define CBS_AUTOHSCROLL 0x0040L
1617#define CBS_OEMCONVERT 0x0080L
1618#define CBS_SORT 0x0100L
1619#define CBS_HASSTRINGS 0x0200L
1620#define CBS_NOINTEGRALHEIGHT 0x0400L
1621#define CBS_DISABLENOSCROLL 0x0800L
1622
1623#define CBS_UPPERCASE 0x2000L
1624#define CBS_LOWERCASE 0x4000L
1625
1626
1627/* Combo box messages */
1628#define CB_GETEDITSEL 0x0140
1629#define CB_LIMITTEXT 0x0141
1630#define CB_SETEDITSEL 0x0142
1631#define CB_ADDSTRING 0x0143
1632#define CB_DELETESTRING 0x0144
1633#define CB_DIR 0x0145
1634#define CB_GETCOUNT 0x0146
1635#define CB_GETCURSEL 0x0147
1636#define CB_GETLBTEXT 0x0148
1637#define CB_GETLBTEXTLEN 0x0149
1638#define CB_INSERTSTRING 0x014a
1639#define CB_RESETCONTENT 0x014b
1640#define CB_FINDSTRING 0x014c
1641#define CB_SELECTSTRING 0x014d
1642#define CB_SETCURSEL 0x014e
1643#define CB_SHOWDROPDOWN 0x014f
1644#define CB_GETITEMDATA 0x0150
1645#define CB_SETITEMDATA 0x0151
1646#define CB_GETDROPPEDCONTROLRECT 0x0152
1647#define CB_SETITEMHEIGHT 0x0153
1648#define CB_GETITEMHEIGHT 0x0154
1649#define CB_SETEXTENDEDUI 0x0155
1650#define CB_GETEXTENDEDUI 0x0156
1651#define CB_GETDROPPEDSTATE 0x0157
1652#define CB_FINDSTRINGEXACT 0x0158
1653#define CB_SETLOCALE 0x0159
1654#define CB_GETLOCALE 0x015a
1655#define CB_GETTOPINDEX 0x015b
1656#define CB_SETTOPINDEX 0x015c
1657#define CB_GETHORIZONTALEXTENT 0x015d
1658#define CB_SETHORIZONTALEXTENT 0x015e
1659#define CB_GETDROPPEDWIDTH 0x015f
1660#define CB_SETDROPPEDWIDTH 0x0160
1661#define CB_INITSTORAGE 0x0161
1662
1663/* Combo box notification codes */
1664#define CBN_ERRSPACE (-1)
1665#define CBN_SELCHANGE 1
1666#define CBN_DBLCLK 2
1667#define CBN_SETFOCUS 3
1668#define CBN_KILLFOCUS 4
1669#define CBN_EDITCHANGE 5
1670#define CBN_EDITUPDATE 6
1671#define CBN_DROPDOWN 7
1672#define CBN_CLOSEUP 8
1673#define CBN_SELENDOK 9
1674#define CBN_SELENDCANCEL 10
1675
1676/* Combo box message return values */
1677#define CB_OKAY 0
1678#define CB_ERR (-1)
1679#define CB_ERRSPACE (-2)
1680
1681#define MB_OK 0x00000000
1682#define MB_OKCANCEL 0x00000001
1683#define MB_ABORTRETRYIGNORE 0x00000002
1684#define MB_YESNOCANCEL 0x00000003
1685#define MB_YESNO 0x00000004
1686#define MB_RETRYCANCEL 0x00000005
1687#define MB_TYPEMASK 0x0000000F
1688
1689#define MB_ICONHAND 0x00000010
1690#define MB_ICONQUESTION 0x00000020
1691#define MB_ICONEXCLAMATION 0x00000030
1692#define MB_ICONASTERISK 0x00000040
1693#define MB_USERICON 0x00000080
1694#define MB_ICONMASK 0x000000F0
1695
1696#define MB_ICONINFORMATION MB_ICONASTERISK
1697#define MB_ICONSTOP MB_ICONHAND
1698#define MB_ICONWARNING MB_ICONEXCLAMATION
1699#define MB_ICONERROR MB_ICONHAND
1700
1701#define MB_DEFBUTTON1 0x00000000
1702#define MB_DEFBUTTON2 0x00000100
1703#define MB_DEFBUTTON3 0x00000200
1704#define MB_DEFBUTTON4 0x00000300
1705#define MB_DEFMASK 0x00000F00
1706
1707#define MB_APPLMODAL 0x00000000
1708#define MB_SYSTEMMODAL 0x00001000
1709#define MB_TASKMODAL 0x00002000
1710#define MB_MODEMASK 0x00003000
1711
1712#define MB_HELP 0x00004000
1713#define MB_NOFOCUS 0x00008000
1714#define MB_MISCMASK 0x0000C000
1715
1716#define MB_SETFOREGROUND 0x00010000
1717#define MB_DEFAULT_DESKTOP_ONLY 0x00020000
1718#define MB_SERVICE_NOTIFICATION 0x00040000
1719#define MB_TOPMOST 0x00040000
1720#define MB_RIGHT 0x00080000
1721#define MB_RTLREADING 0x00100000
1722
1723#define HELPINFO_WINDOW 0x0001
1724#define HELPINFO_MENUITEM 0x0002
1725
1726/* Structure pointed to by lParam of WM_HELP */
1727typedef struct
1728{
1729 UINT cbSize; /* Size in bytes of this struct */
1730 INT iContextType; /* Either HELPINFO_WINDOW or HELPINFO_MENUITEM */
1731 INT iCtrlId; /* Control Id or a Menu item Id. */
1732 HANDLE hItemHandle; /* hWnd of control or hMenu. */
1733 DWORD dwContextId; /* Context Id associated with this item */
1734 POINT MousePos; /* Mouse Position in screen co-ordinates */
1735} HELPINFO,*LPHELPINFO;
1736
1737typedef void (* CALLBACK MSGBOXCALLBACK)(LPHELPINFO lpHelpInfo);
1738
1739typedef struct
1740{
1741 UINT cbSize;
1742 HWND hwndOwner;
1743 HINSTANCE hInstance;
1744 LPCSTR lpszText;
1745 LPCSTR lpszCaption;
1746 DWORD dwStyle;
1747 LPCSTR lpszIcon;
1748 DWORD dwContextHelpId;
1749 MSGBOXCALLBACK lpfnMsgBoxCallback;
1750 DWORD dwLanguageId;
1751} MSGBOXPARAMSA,*LPMSGBOXPARAMSA;
1752
1753typedef struct
1754{
1755 UINT cbSize;
1756 HWND hwndOwner;
1757 HINSTANCE hInstance;
1758 LPCWSTR lpszText;
1759 LPCWSTR lpszCaption;
1760 DWORD dwStyle;
1761 LPCWSTR lpszIcon;
1762 DWORD dwContextHelpId;
1763 MSGBOXCALLBACK lpfnMsgBoxCallback;
1764 DWORD dwLanguageId;
1765} MSGBOXPARAMSW,*LPMSGBOXPARAMSW;
1766
1767DECL_WINELIB_TYPE_AW(MSGBOXPARAMS)
1768DECL_WINELIB_TYPE_AW(LPMSGBOXPARAMS)
1769
1770typedef struct _numberfmt32a {
1771 UINT NumDigits;
1772 UINT LeadingZero;
1773 UINT Grouping;
1774 LPCSTR lpDecimalSep;
1775 LPCSTR lpThousandSep;
1776 UINT NegativeOrder;
1777} NUMBERFMTA;
1778
1779typedef struct _numberfmt32w {
1780 UINT NumDigits;
1781 UINT LeadingZero;
1782 UINT Grouping;
1783 LPCWSTR lpDecimalSep;
1784 LPCWSTR lpThousandSep;
1785 UINT NegativeOrder;
1786} NUMBERFMTW;
1787
1788#define MONITOR_DEFAULTTONULL 0x00000000
1789#define MONITOR_DEFAULTTOPRIMARY 0x00000001
1790#define MONITOR_DEFAULTTONEAREST 0x00000002
1791
1792#define MONITORINFOF_PRIMARY 0x00000001
1793
1794typedef struct tagMONITORINFO
1795{
1796 DWORD cbSize;
1797 RECT rcMonitor;
1798 RECT rcWork;
1799 DWORD dwFlags;
1800} MONITORINFO, *LPMONITORINFO;
1801
1802typedef struct tagMONITORINFOEXA
1803{
1804 MONITORINFO dummy;
1805 CHAR szDevice[CCHDEVICENAME];
1806} MONITORINFOEXA, *LPMONITORINFOEXA;
1807
1808typedef struct tagMONITORINFOEXW
1809{
1810 MONITORINFO dummy;
1811 WCHAR szDevice[CCHDEVICENAME];
1812} MONITORINFOEXW, *LPMONITORINFOEXW;
1813
1814DECL_WINELIB_TYPE_AW(MONITORINFOEX)
1815DECL_WINELIB_TYPE_AW(LPMONITORINFOEX)
1816
1817typedef BOOL (* CALLBACK MONITORENUMPROC)(HMONITOR,HDC,LPRECT,LPARAM);
1818
1819/* FIXME: use this instead of LPCVOID for CreateDialogIndirectParam
1820 and DialogBoxIndirectParam */
1821typedef struct tagDLGTEMPLATE
1822{
1823 DWORD style;
1824 DWORD dwExtendedStyle;
1825 WORD cdit;
1826 short x;
1827 short y;
1828 short cx;
1829 short cy;
1830} DLGTEMPLATE;
1831
1832typedef DLGTEMPLATE *LPDLGTEMPLATEA;
1833typedef DLGTEMPLATE *LPDLGTEMPLATEW;
1834#define LPDLGTEMPLATE WINELIB_NAME_AW(LPDLGTEMPLATE)
1835typedef const DLGTEMPLATE *LPCDLGTEMPLATEA;
1836typedef const DLGTEMPLATE *LPCDLGTEMPLATEW;
1837#define LPCDLGTEMPLATE WINELIB_NAME_AW(LPCDLGTEMPLATE)
1838
1839typedef struct tagDLGITEMTEMPLATE
1840{
1841 DWORD style;
1842 DWORD dwExtendedStyle;
1843 short x;
1844 short y;
1845 short cx;
1846 short cy;
1847 WORD id;
1848} DLGITEMTEMPLATE;
1849
1850typedef DLGITEMTEMPLATE *LPDLGITEMTEMPLATEA;
1851typedef DLGITEMTEMPLATE *LPDLGITEMTEMPLATEW;
1852#define LPDLGITEMTEMPLATE WINELIB_NAME_AW(LPDLGITEMTEMPLATE)
1853typedef const DLGITEMTEMPLATE *LPCDLGITEMTEMPLATEA;
1854typedef const DLGITEMTEMPLATE *LPCDLGITEMTEMPLATEW;
1855#define LPCDLGITEMTEMPLATE WINELIB_NAME_AW(LPCDLGITEMTEMPLATE)
1856
1857
1858 /* CBT hook values */
1859#define HCBT_MOVESIZE 0
1860#define HCBT_MINMAX 1
1861#define HCBT_QS 2
1862#define HCBT_CREATEWND 3
1863#define HCBT_DESTROYWND 4
1864#define HCBT_ACTIVATE 5
1865#define HCBT_CLICKSKIPPED 6
1866#define HCBT_KEYSKIPPED 7
1867#define HCBT_SYSCOMMAND 8
1868#define HCBT_SETFOCUS 9
1869
1870 /* CBT hook structures */
1871
1872typedef struct
1873{
1874 CREATESTRUCTA *lpcs;
1875 HWND hwndInsertAfter;
1876} CBT_CREATEWNDA, *LPCBT_CREATEWNDA;
1877
1878typedef struct
1879{
1880 CREATESTRUCTW *lpcs;
1881 HWND hwndInsertAfter;
1882} CBT_CREATEWNDW, *LPCBT_CREATEWNDW;
1883
1884DECL_WINELIB_TYPE_AW(CBT_CREATEWND)
1885DECL_WINELIB_TYPE_AW(LPCBT_CREATEWND)
1886
1887typedef struct
1888{
1889 BOOL fMouse;
1890 HWND hWndActive;
1891} CBTACTIVATESTRUCT, *LPCBTACTIVATESTRUCT;
1892
1893
1894/* modifiers for RegisterHotKey */
1895#define MOD_ALT 0x0001
1896#define MOD_CONTROL 0x0002
1897#define MOD_SHIFT 0x0004
1898#define MOD_WIN 0x0008
1899
1900/* ids for RegisterHotKey */
1901#define IDHOT_SNAPWINDOW (-1) /* SHIFT-PRINTSCRN */
1902#define IDHOT_SNAPDESKTOP (-2) /* PRINTSCRN */
1903
1904 /* keybd_event flags */
1905#define KEYEVENTF_EXTENDEDKEY 0x0001
1906#define KEYEVENTF_KEYUP 0x0002
1907#define KEYEVENTF_WINE_FORCEEXTENDED 0x8000
1908
1909 /* mouse_event flags */
1910#define MOUSEEVENTF_MOVE 0x0001
1911#define MOUSEEVENTF_LEFTDOWN 0x0002
1912#define MOUSEEVENTF_LEFTUP 0x0004
1913#define MOUSEEVENTF_RIGHTDOWN 0x0008
1914#define MOUSEEVENTF_RIGHTUP 0x0010
1915#define MOUSEEVENTF_MIDDLEDOWN 0x0020
1916#define MOUSEEVENTF_MIDDLEUP 0x0040
1917#define MOUSEEVENTF_ABSOLUTE 0x8000
1918
1919/* ExitWindows() flags */
1920#define EW_RESTARTWINDOWS 0x0042
1921#define EW_REBOOTSYSTEM 0x0043
1922#define EW_EXITANDEXECAPP 0x0044
1923
1924/* ExitWindowsEx() flags */
1925#define EWX_LOGOFF 0
1926#define EWX_SHUTDOWN 1
1927#define EWX_REBOOT 2
1928#define EWX_FORCE 4
1929#define EWX_POWEROFF 8
1930
1931/* SetLastErrorEx types */
1932#define SLE_ERROR 0x00000001
1933#define SLE_MINORERROR 0x00000002
1934#define SLE_WARNING 0x00000003
1935
1936/* Predefined resources */
1937#define IDI_APPLICATIONA MAKEINTRESOURCEA(32512)
1938#define IDI_APPLICATIONW MAKEINTRESOURCEW(32512)
1939#define IDI_APPLICATION WINELIB_NAME_AW(IDI_APPLICATION)
1940#define IDI_HANDA MAKEINTRESOURCEA(32513)
1941#define IDI_HANDW MAKEINTRESOURCEW(32513)
1942#define IDI_HAND WINELIB_NAME_AW(IDI_HAND)
1943#define IDI_QUESTIONA MAKEINTRESOURCEA(32514)
1944#define IDI_QUESTIONW MAKEINTRESOURCEW(32514)
1945#define IDI_QUESTION WINELIB_NAME_AW(IDI_QUESTION)
1946#define IDI_EXCLAMATIONA MAKEINTRESOURCEA(32515)
1947#define IDI_EXCLAMATIONW MAKEINTRESOURCEW(32515)
1948#define IDI_EXCLAMATION WINELIB_NAME_AW(IDI_EXCLAMATION)
1949#define IDI_ASTERISKA MAKEINTRESOURCEA(32516)
1950#define IDI_ASTERISKW MAKEINTRESOURCEW(32516)
1951#define IDI_ASTERISK WINELIB_NAME_AW(IDI_ASTERISK)
1952
1953#define IDC_BUMMERA MAKEINTRESOURCEA(100)
1954#define IDC_BUMMERW MAKEINTRESOURCEW(100)
1955#define IDC_BUMMER WINELIB_NAME_AW(IDC_BUMMER)
1956#define IDC_ARROWA MAKEINTRESOURCEA(32512)
1957#define IDC_ARROWW MAKEINTRESOURCEW(32512)
1958#define IDC_ARROW WINELIB_NAME_AW(IDC_ARROW)
1959#define IDC_IBEAMA MAKEINTRESOURCEA(32513)
1960#define IDC_IBEAMW MAKEINTRESOURCEW(32513)
1961#define IDC_IBEAM WINELIB_NAME_AW(IDC_IBEAM)
1962#define IDC_WAITA MAKEINTRESOURCEA(32514)
1963#define IDC_WAITW MAKEINTRESOURCEW(32514)
1964#define IDC_WAIT WINELIB_NAME_AW(IDC_WAIT)
1965#define IDC_CROSSA MAKEINTRESOURCEA(32515)
1966#define IDC_CROSSW MAKEINTRESOURCEW(32515)
1967#define IDC_CROSS WINELIB_NAME_AW(IDC_CROSS)
1968#define IDC_UPARROWA MAKEINTRESOURCEA(32516)
1969#define IDC_UPARROWW MAKEINTRESOURCEW(32516)
1970#define IDC_UPARROW WINELIB_NAME_AW(IDC_UPARROW)
1971#define IDC_SIZEA MAKEINTRESOURCEA(32640)
1972#define IDC_SIZEW MAKEINTRESOURCEW(32640)
1973#define IDC_SIZE WINELIB_NAME_AW(IDC_SIZE)
1974#define IDC_ICONA MAKEINTRESOURCEA(32641)
1975#define IDC_ICONW MAKEINTRESOURCEW(32641)
1976#define IDC_ICON WINELIB_NAME_AW(IDC_ICON)
1977#define IDC_SIZENWSEA MAKEINTRESOURCEA(32642)
1978#define IDC_SIZENWSEW MAKEINTRESOURCEW(32642)
1979#define IDC_SIZENWSE WINELIB_NAME_AW(IDC_SIZENWSE)
1980#define IDC_SIZENESWA MAKEINTRESOURCEA(32643)
1981#define IDC_SIZENESWW MAKEINTRESOURCEW(32643)
1982#define IDC_SIZENESW WINELIB_NAME_AW(IDC_SIZENESW)
1983#define IDC_SIZEWEA MAKEINTRESOURCEA(32644)
1984#define IDC_SIZEWEW MAKEINTRESOURCEW(32644)
1985#define IDC_SIZEWE WINELIB_NAME_AW(IDC_SIZEWE)
1986#define IDC_SIZENSA MAKEINTRESOURCEA(32645)
1987#define IDC_SIZENSW MAKEINTRESOURCEW(32645)
1988#define IDC_SIZENS WINELIB_NAME_AW(IDC_SIZENS)
1989#define IDC_SIZEALLA MAKEINTRESOURCEA(32646)
1990#define IDC_SIZEALLW MAKEINTRESOURCEW(32646)
1991#define IDC_SIZEALL WINELIB_NAME_AW(IDC_SIZEALL)
1992#define IDC_NOA MAKEINTRESOURCEA(32648)
1993#define IDC_NOW MAKEINTRESOURCEW(32648)
1994#define IDC_NO WINELIB_NAME_AW(IDC_NO)
1995#define IDC_APPSTARTINGA MAKEINTRESOURCEA(32650)
1996#define IDC_APPSTARTINGW MAKEINTRESOURCEW(32650)
1997#define IDC_APPSTARTING WINELIB_NAME_AW(IDC_APPSTARTING)
1998#define IDC_HELPA MAKEINTRESOURCEA(32651)
1999#define IDC_HELPW MAKEINTRESOURCEW(32651)
2000#define IDC_HELP WINELIB_NAME_AW(IDC_HELP)
2001
2002/* SystemParametersInfo */
2003/* defines below are for all win versions */
2004#define SPI_GETBEEP 1
2005#define SPI_SETBEEP 2
2006#define SPI_GETMOUSE 3
2007#define SPI_SETMOUSE 4
2008#define SPI_GETBORDER 5
2009#define SPI_SETBORDER 6
2010#define SPI_GETKEYBOARDSPEED 10
2011#define SPI_SETKEYBOARDSPEED 11
2012#define SPI_LANGDRIVER 12
2013#define SPI_ICONHORIZONTALSPACING 13
2014#define SPI_GETSCREENSAVETIMEOUT 14
2015#define SPI_SETSCREENSAVETIMEOUT 15
2016#define SPI_GETSCREENSAVEACTIVE 16
2017#define SPI_SETSCREENSAVEACTIVE 17
2018#define SPI_GETGRIDGRANULARITY 18
2019#define SPI_SETGRIDGRANULARITY 19
2020#define SPI_SETDESKWALLPAPER 20
2021#define SPI_SETDESKPATTERN 21
2022#define SPI_GETKEYBOARDDELAY 22
2023#define SPI_SETKEYBOARDDELAY 23
2024#define SPI_ICONVERTICALSPACING 24
2025#define SPI_GETICONTITLEWRAP 25
2026#define SPI_SETICONTITLEWRAP 26
2027#define SPI_GETMENUDROPALIGNMENT 27
2028#define SPI_SETMENUDROPALIGNMENT 28
2029#define SPI_SETDOUBLECLKWIDTH 29
2030#define SPI_SETDOUBLECLKHEIGHT 30
2031#define SPI_GETICONTITLELOGFONT 31
2032#define SPI_SETDOUBLECLICKTIME 32
2033#define SPI_SETMOUSEBUTTONSWAP 33
2034#define SPI_SETICONTITLELOGFONT 34
2035#define SPI_GETFASTTASKSWITCH 35
2036#define SPI_SETFASTTASKSWITCH 36
2037#define SPI_SETDRAGFULLWINDOWS 37
2038#define SPI_GETDRAGFULLWINDOWS 38
2039
2040#define SPI_GETFILTERKEYS 50
2041#define SPI_SETFILTERKEYS 51
2042#define SPI_GETTOGGLEKEYS 52
2043#define SPI_SETTOGGLEKEYS 53
2044#define SPI_GETMOUSEKEYS 54
2045#define SPI_SETMOUSEKEYS 55
2046#define SPI_GETSHOWSOUNDS 56
2047#define SPI_SETSHOWSOUNDS 57
2048#define SPI_GETSTICKYKEYS 58
2049#define SPI_SETSTICKYKEYS 59
2050#define SPI_GETACCESSTIMEOUT 60
2051#define SPI_SETACCESSTIMEOUT 61
2052
2053#define SPI_GETSOUNDSENTRY 64
2054#define SPI_SETSOUNDSENTRY 65
2055
2056/* defines below are for all win versions WINVER >= 0x0400 */
2057#define SPI_SETDRAGFULLWINDOWS 37
2058#define SPI_GETDRAGFULLWINDOWS 38
2059#define SPI_GETNONCLIENTMETRICS 41
2060#define SPI_SETNONCLIENTMETRICS 42
2061#define SPI_GETMINIMIZEDMETRICS 43
2062#define SPI_SETMINIMIZEDMETRICS 44
2063#define SPI_GETICONMETRICS 45
2064#define SPI_SETICONMETRICS 46
2065#define SPI_SETWORKAREA 47
2066#define SPI_GETWORKAREA 48
2067#define SPI_SETPENWINDOWS 49
2068
2069#define SPI_GETSERIALKEYS 62
2070#define SPI_SETSERIALKEYS 63
2071#define SPI_GETHIGHCONTRAST 66
2072#define SPI_SETHIGHCONTRAST 67
2073#define SPI_GETKEYBOARDPREF 68
2074#define SPI_SETKEYBOARDPREF 69
2075#define SPI_GETSCREENREADER 70
2076#define SPI_SETSCREENREADER 71
2077#define SPI_GETANIMATION 72
2078#define SPI_SETANIMATION 73
2079#define SPI_GETFONTSMOOTHING 74
2080#define SPI_SETFONTSMOOTHING 75
2081#define SPI_SETDRAGWIDTH 76
2082#define SPI_SETDRAGHEIGHT 77
2083#define SPI_SETHANDHELD 78
2084#define SPI_GETLOWPOWERTIMEOUT 79
2085#define SPI_GETPOWEROFFTIMEOUT 80
2086#define SPI_SETLOWPOWERTIMEOUT 81
2087#define SPI_SETPOWEROFFTIMEOUT 82
2088#define SPI_GETLOWPOWERACTIVE 83
2089#define SPI_GETPOWEROFFACTIVE 84
2090#define SPI_SETLOWPOWERACTIVE 85
2091#define SPI_SETPOWEROFFACTIVE 86
2092#define SPI_SETCURSORS 87
2093#define SPI_SETICONS 88
2094#define SPI_GETDEFAULTINPUTLANG 89
2095#define SPI_SETDEFAULTINPUTLANG 90
2096#define SPI_SETLANGTOGGLE 91
2097#define SPI_GETWINDOWSEXTENSION 92
2098#define SPI_SETMOUSETRAILS 93
2099#define SPI_GETMOUSETRAILS 94
2100#define SPI_SETSCREENSAVERRUNNING 97
2101#define SPI_SCREENSAVERRUNNING SPI_SETSCREENSAVERRUNNING
2102
2103/* defines below are for all win versions (_WIN32_WINNT >= 0x0400) ||
2104 * (_WIN32_WINDOWS > 0x0400) */
2105#define SPI_GETMOUSEHOVERWIDTH 98
2106#define SPI_SETMOUSEHOVERWIDTH 99
2107#define SPI_GETMOUSEHOVERHEIGHT 100
2108#define SPI_SETMOUSEHOVERHEIGHT 101
2109#define SPI_GETMOUSEHOVERTIME 102
2110#define SPI_SETMOUSEHOVERTIME 103
2111#define SPI_GETWHEELSCROLLLINES 104
2112#define SPI_SETWHEELSCROLLLINES 105
2113
2114#define SPI_GETSHOWIMEUI 110
2115#define SPI_SETSHOWIMEUI 111
2116
2117/* defines below are for all win versions WINVER >= 0x0500 */
2118#define SPI_GETMOUSESPEED 112
2119#define SPI_SETMOUSESPEED 113
2120#define SPI_GETSCREENSAVERRUNNING 114
2121
2122#define SPI_GETACTIVEWINDOWTRACKING 0x1000
2123#define SPI_SETACTIVEWINDOWTRACKING 0x1001
2124#define SPI_GETMENUANIMATION 0x1002
2125#define SPI_SETMENUANIMATION 0x1003
2126#define SPI_GETCOMBOBOXANIMATION 0x1004
2127#define SPI_SETCOMBOBOXANIMATION 0x1005
2128#define SPI_GETLISTBOXSMOOTHSCROLLING 0x1006
2129#define SPI_SETLISTBOXSMOOTHSCROLLING 0x1007
2130#define SPI_GETGRADIENTCAPTIONS 0x1008
2131#define SPI_SETGRADIENTCAPTIONS 0x1009
2132#define SPI_GETMENUUNDERLINES 0x100A
2133#define SPI_SETMENUUNDERLINES 0x100B
2134#define SPI_GETACTIVEWNDTRKZORDER 0x100C
2135#define SPI_SETACTIVEWNDTRKZORDER 0x100D
2136#define SPI_GETHOTTRACKING 0x100E
2137#define SPI_SETHOTTRACKING 0x100F
2138#define SPI_GETFOREGROUNDLOCKTIMEOUT 0x2000
2139#define SPI_SETFOREGROUNDLOCKTIMEOUT 0x2001
2140#define SPI_GETACTIVEWNDTRKTIMEOUT 0x2002
2141#define SPI_SETACTIVEWNDTRKTIMEOUT 0x2003
2142#define SPI_GETFOREGROUNDFLASHCOUNT 0x2004
2143#define SPI_SETFOREGROUNDFLASHCOUNT 0x2005
2144
2145/* SystemParametersInfo flags */
2146
2147#define SPIF_UPDATEINIFILE 1
2148#define SPIF_SENDWININICHANGE 2
2149#define SPIF_SENDCHANGE SPIF_SENDWININICHANGE
2150
2151/* Window Styles */
2152#define WS_OVERLAPPED 0x00000000L
2153#define WS_POPUP 0x80000000L
2154#define WS_CHILD 0x40000000L
2155#define WS_MINIMIZE 0x20000000L
2156#define WS_VISIBLE 0x10000000L
2157#define WS_DISABLED 0x08000000L
2158#define WS_CLIPSIBLINGS 0x04000000L
2159#define WS_CLIPCHILDREN 0x02000000L
2160#define WS_MAXIMIZE 0x01000000L
2161#define WS_CAPTION 0x00C00000L
2162#define WS_BORDER 0x00800000L
2163#define WS_DLGFRAME 0x00400000L
2164#define WS_VSCROLL 0x00200000L
2165#define WS_HSCROLL 0x00100000L
2166#define WS_SYSMENU 0x00080000L
2167#define WS_THICKFRAME 0x00040000L
2168#define WS_GROUP 0x00020000L
2169#define WS_TABSTOP 0x00010000L
2170#define WS_MINIMIZEBOX 0x00020000L
2171#define WS_MAXIMIZEBOX 0x00010000L
2172#define WS_TILED WS_OVERLAPPED
2173#define WS_ICONIC WS_MINIMIZE
2174#define WS_SIZEBOX WS_THICKFRAME
2175#define WS_OVERLAPPEDWINDOW (WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME| WS_MINIMIZEBOX | WS_MAXIMIZEBOX)
2176#define WS_POPUPWINDOW (WS_POPUP | WS_BORDER | WS_SYSMENU)
2177#define WS_CHILDWINDOW (WS_CHILD)
2178#define WS_TILEDWINDOW (WS_OVERLAPPEDWINDOW)
2179
2180/* Window extended styles */
2181#define WS_EX_DLGMODALFRAME 0x00000001L
2182#define WS_EX_DRAGDETECT 0x00000002L
2183#define WS_EX_NOPARENTNOTIFY 0x00000004L
2184#define WS_EX_TOPMOST 0x00000008L
2185#define WS_EX_ACCEPTFILES 0x00000010L
2186#define WS_EX_TRANSPARENT 0x00000020L
2187
2188/* New Win95/WinNT4 styles */
2189#define WS_EX_MDICHILD 0x00000040L
2190#define WS_EX_TOOLWINDOW 0x00000080L
2191#define WS_EX_WINDOWEDGE 0x00000100L
2192#define WS_EX_CLIENTEDGE 0x00000200L
2193#define WS_EX_CONTEXTHELP 0x00000400L
2194#define WS_EX_RIGHT 0x00001000L
2195#define WS_EX_LEFT 0x00000000L
2196#define WS_EX_RTLREADING 0x00002000L
2197#define WS_EX_LTRREADING 0x00000000L
2198#define WS_EX_LEFTSCROLLBAR 0x00004000L
2199#define WS_EX_RIGHTSCROLLBAR 0x00000000L
2200#define WS_EX_CONTROLPARENT 0x00010000L
2201#define WS_EX_STATICEDGE 0x00020000L
2202#define WS_EX_APPWINDOW 0x00040000L
2203
2204#define WS_EX_OVERLAPPEDWINDOW (WS_EX_WINDOWEDGE|WS_EX_CLIENTEDGE)
2205#define WS_EX_PALETTEWINDOW (WS_EX_WINDOWEDGE|WS_EX_TOOLWINDOW|WS_EX_TOPMOST)
2206
2207/* Window scrolling */
2208#define SW_SCROLLCHILDREN 0x0001
2209#define SW_INVALIDATE 0x0002
2210#define SW_ERASE 0x0004
2211
2212/* CreateWindow() coordinates */
2213#define CW_USEDEFAULT ((INT)0x80000000)
2214#define CW_USEDEFAULT16 ((INT16)0x8000)
2215
2216/* ChildWindowFromPointEx Flags */
2217#define CWP_ALL 0x0000
2218#define CWP_SKIPINVISIBLE 0x0001
2219#define CWP_SKIPDISABLED 0x0002
2220#define CWP_SKIPTRANSPARENT 0x0004
2221
2222 /* PeekMessage() options */
2223#define PM_NOREMOVE 0x0000
2224#define PM_REMOVE 0x0001
2225#define PM_NOYIELD 0x0002
2226
2227#define WM_SHOWWINDOW 0x0018
2228
2229/* WM_SHOWWINDOW wParam codes */
2230#define SW_PARENTCLOSING 1
2231#define SW_OTHERMAXIMIZED 2
2232#define SW_PARENTOPENING 3
2233#define SW_OTHERRESTORED 4
2234
2235 /* ShowWindow() codes */
2236#define SW_HIDE 0
2237#define SW_SHOWNORMAL 1
2238#define SW_NORMAL 1
2239#define SW_SHOWMINIMIZED 2
2240#define SW_SHOWMAXIMIZED 3
2241#define SW_MAXIMIZE 3
2242#define SW_SHOWNOACTIVATE 4
2243#define SW_SHOW 5
2244#define SW_MINIMIZE 6
2245#define SW_SHOWMINNOACTIVE 7
2246#define SW_SHOWNA 8
2247#define SW_RESTORE 9
2248#define SW_SHOWDEFAULT 10
2249#define SW_MAX 10
2250#define SW_NORMALNA 0xCC /* undoc. flag in MinMaximize */
2251
2252 /* WM_SIZE message wParam values */
2253#define SIZE_RESTORED 0
2254#define SIZE_MINIMIZED 1
2255#define SIZE_MAXIMIZED 2
2256#define SIZE_MAXSHOW 3
2257#define SIZE_MAXHIDE 4
2258#define SIZENORMAL SIZE_RESTORED
2259#define SIZEICONIC SIZE_MINIMIZED
2260#define SIZEFULLSCREEN SIZE_MAXIMIZED
2261#define SIZEZOOMSHOW SIZE_MAXSHOW
2262#define SIZEZOOMHIDE SIZE_MAXHIDE
2263
2264/* SetWindowPos() and WINDOWPOS flags */
2265#define SWP_NOSIZE 0x0001
2266#define SWP_NOMOVE 0x0002
2267#define SWP_NOZORDER 0x0004
2268#define SWP_NOREDRAW 0x0008
2269#define SWP_NOACTIVATE 0x0010
2270#define SWP_FRAMECHANGED 0x0020 /* The frame changed: send WM_NCCALCSIZE */
2271#define SWP_SHOWWINDOW 0x0040
2272#define SWP_HIDEWINDOW 0x0080
2273#define SWP_NOCOPYBITS 0x0100
2274#define SWP_NOOWNERZORDER 0x0200 /* Don't do owner Z ordering */
2275
2276#define SWP_DRAWFRAME SWP_FRAMECHANGED
2277#define SWP_NOREPOSITION SWP_NOOWNERZORDER
2278
2279#define SWP_NOSENDCHANGING 0x0400
2280#define SWP_DEFERERASE 0x2000
2281
2282#define HWND_DESKTOP ((HWND)0)
2283#define HWND_BROADCAST ((HWND)0xffff)
2284
2285/* SetWindowPos() hwndInsertAfter field values */
2286#define HWND_TOP ((HWND)0)
2287#define HWND_BOTTOM ((HWND)1)
2288#define HWND_TOPMOST ((HWND)-1)
2289#define HWND_NOTOPMOST ((HWND)-2)
2290
2291#define MF_INSERT 0x0000
2292#define MF_CHANGE 0x0080
2293#define MF_APPEND 0x0100
2294#define MF_DELETE 0x0200
2295#define MF_REMOVE 0x1000
2296#define MF_END 0x0080
2297
2298#define MF_ENABLED 0x0000
2299#define MF_GRAYED 0x0001
2300#define MF_DISABLED 0x0002
2301#define MF_STRING 0x0000
2302#define MF_BITMAP 0x0004
2303#define MF_UNCHECKED 0x0000
2304#define MF_CHECKED 0x0008
2305#define MF_POPUP 0x0010
2306#define MF_MENUBARBREAK 0x0020
2307#define MF_MENUBREAK 0x0040
2308#define MF_UNHILITE 0x0000
2309#define MF_HILITE 0x0080
2310#define MF_OWNERDRAW 0x0100
2311#define MF_USECHECKBITMAPS 0x0200
2312#define MF_BYCOMMAND 0x0000
2313#define MF_BYPOSITION 0x0400
2314#define MF_SEPARATOR 0x0800
2315#define MF_DEFAULT 0x1000
2316#define MF_SYSMENU 0x2000
2317#define MF_HELP 0x4000
2318#define MF_RIGHTJUSTIFY 0x4000
2319#define MF_MOUSESELECT 0x8000
2320
2321/* Flags for extended menu item types. */
2322#define MFT_STRING MF_STRING
2323#define MFT_BITMAP MF_BITMAP
2324#define MFT_MENUBARBREAK MF_MENUBARBREAK
2325#define MFT_MENUBREAK MF_MENUBREAK
2326#define MFT_OWNERDRAW MF_OWNERDRAW
2327#define MFT_RADIOCHECK 0x00000200L
2328#define MFT_SEPARATOR MF_SEPARATOR
2329#define MFT_RIGHTORDER 0x00002000L
2330#define MFT_RIGHTJUSTIFY MF_RIGHTJUSTIFY
2331
2332/* Flags for extended menu item states. */
2333#define MFS_GRAYED 0x00000003L
2334#define MFS_DISABLED MFS_GRAYED
2335#define MFS_CHECKED MF_CHECKED
2336#define MFS_HILITE MF_HILITE
2337#define MFS_ENABLED MF_ENABLED
2338#define MFS_UNCHECKED MF_UNCHECKED
2339#define MFS_UNHILITE MF_UNHILITE
2340#define MFS_DEFAULT MF_DEFAULT
2341#define MFS_MASK 0x0000108BL
2342#define MFS_HOTTRACKDRAWN 0x10000000L
2343#define MFS_CACHEDBMP 0x20000000L
2344#define MFS_BOTTOMGAPDROP 0x40000000L
2345#define MFS_TOPGAPDROP 0x80000000L
2346#define MFS_GAPDROP 0xC0000000L
2347
2348
2349/* for GetMenuDefaultItem */
2350#define GMDI_USEDISABLED 0x0001L
2351#define GMDI_GOINTOPOPUPS 0x0002L
2352
2353
2354#define DT_TOP 0
2355#define DT_LEFT 0
2356#define DT_CENTER 1
2357#define DT_RIGHT 2
2358#define DT_VCENTER 4
2359#define DT_BOTTOM 8
2360#define DT_WORDBREAK 16
2361#define DT_SINGLELINE 32
2362#define DT_EXPANDTABS 64
2363#define DT_TABSTOP 128
2364#define DT_NOCLIP 256
2365#define DT_EXTERNALLEADING 512
2366#define DT_CALCRECT 1024
2367#define DT_NOPREFIX 2048
2368#define DT_INTERNAL 4096
2369
2370/* DrawCaption()/DrawCaptionTemp() flags */
2371#define DC_ACTIVE 0x0001
2372#define DC_SMALLCAP 0x0002
2373#define DC_ICON 0x0004
2374#define DC_TEXT 0x0008
2375#define DC_INBUTTON 0x0010
2376
2377/* DrawEdge() flags */
2378#define BDR_RAISEDOUTER 0x0001
2379#define BDR_SUNKENOUTER 0x0002
2380#define BDR_RAISEDINNER 0x0004
2381#define BDR_SUNKENINNER 0x0008
2382
2383#define BDR_OUTER 0x0003
2384#define BDR_INNER 0x000c
2385#define BDR_RAISED 0x0005
2386#define BDR_SUNKEN 0x000a
2387
2388#define EDGE_RAISED (BDR_RAISEDOUTER | BDR_RAISEDINNER)
2389#define EDGE_SUNKEN (BDR_SUNKENOUTER | BDR_SUNKENINNER)
2390#define EDGE_ETCHED (BDR_SUNKENOUTER | BDR_RAISEDINNER)
2391#define EDGE_BUMP (BDR_RAISEDOUTER | BDR_SUNKENINNER)
2392
2393/* border flags */
2394#define BF_LEFT 0x0001
2395#define BF_TOP 0x0002
2396#define BF_RIGHT 0x0004
2397#define BF_BOTTOM 0x0008
2398#define BF_DIAGONAL 0x0010
2399#define BF_MIDDLE 0x0800 /* Fill in the middle */
2400#define BF_SOFT 0x1000 /* For softer buttons */
2401#define BF_ADJUST 0x2000 /* Calculate the space left over */
2402#define BF_FLAT 0x4000 /* For flat rather than 3D borders */
2403#define BF_MONO 0x8000 /* For monochrome borders */
2404#define BF_TOPLEFT (BF_TOP | BF_LEFT)
2405#define BF_TOPRIGHT (BF_TOP | BF_RIGHT)
2406#define BF_BOTTOMLEFT (BF_BOTTOM | BF_LEFT)
2407#define BF_BOTTOMRIGHT (BF_BOTTOM | BF_RIGHT)
2408#define BF_RECT (BF_LEFT | BF_TOP | BF_RIGHT | BF_BOTTOM)
2409#define BF_DIAGONAL_ENDTOPRIGHT (BF_DIAGONAL | BF_TOP | BF_RIGHT)
2410#define BF_DIAGONAL_ENDTOPLEFT (BF_DIAGONAL | BF_TOP | BF_LEFT)
2411#define BF_DIAGONAL_ENDBOTTOMLEFT (BF_DIAGONAL | BF_BOTTOM | BF_LEFT)
2412#define BF_DIAGONAL_ENDBOTTOMRIGHT (BF_DIAGONAL | BF_BOTTOM | BF_RIGHT)
2413
2414/* DrawFrameControl() uType's */
2415
2416#define DFC_CAPTION 1
2417#define DFC_MENU 2
2418#define DFC_SCROLL 3
2419#define DFC_BUTTON 4
2420
2421/* uState's */
2422
2423#define DFCS_CAPTIONCLOSE 0x0000
2424#define DFCS_CAPTIONMIN 0x0001
2425#define DFCS_CAPTIONMAX 0x0002
2426#define DFCS_CAPTIONRESTORE 0x0003
2427#define DFCS_CAPTIONHELP 0x0004 /* Windows 95 only */
2428
2429#define DFCS_MENUARROW 0x0000
2430#define DFCS_MENUCHECK 0x0001
2431#define DFCS_MENUBULLET 0x0002
2432#define DFCS_MENUARROWRIGHT 0x0004
2433
2434#define DFCS_SCROLLUP 0x0000
2435#define DFCS_SCROLLDOWN 0x0001
2436#define DFCS_SCROLLLEFT 0x0002
2437#define DFCS_SCROLLRIGHT 0x0003
2438#define DFCS_SCROLLCOMBOBOX 0x0005
2439#define DFCS_SCROLLSIZEGRIP 0x0008
2440#define DFCS_SCROLLSIZEGRIPRIGHT 0x0010
2441
2442#define DFCS_BUTTONCHECK 0x0000
2443#define DFCS_BUTTONRADIOIMAGE 0x0001
2444#define DFCS_BUTTONRADIOMASK 0x0002 /* to draw nonsquare button */
2445#define DFCS_BUTTONRADIO 0x0004
2446#define DFCS_BUTTON3STATE 0x0008
2447#define DFCS_BUTTONPUSH 0x0010
2448
2449/* additional state of the control */
2450
2451#define DFCS_INACTIVE 0x0100
2452#define DFCS_PUSHED 0x0200
2453#define DFCS_CHECKED 0x0400
2454#define DFCS_ADJUSTRECT 0x2000 /* exclude surrounding edge */
2455#define DFCS_FLAT 0x4000
2456#define DFCS_MONO 0x8000
2457
2458/* Image type */
2459#define DST_COMPLEX 0x0000
2460#define DST_TEXT 0x0001
2461#define DST_PREFIXTEXT 0x0002
2462#define DST_ICON 0x0003
2463#define DST_BITMAP 0x0004
2464
2465/* State type */
2466#define DSS_NORMAL 0x0000
2467#define DSS_UNION 0x0010 /* Gray string appearance */
2468#define DSS_DISABLED 0x0020
2469#define DSS_DEFAULT 0x0040 /* Make it bold */
2470#define DSS_MONO 0x0080
2471#define DSS_RIGHT 0x8000
2472
2473typedef struct
2474{
2475 UINT CtlType;
2476 UINT CtlID;
2477 UINT itemID;
2478 UINT itemAction;
2479 UINT itemState;
2480 HWND hwndItem;
2481 HDC hDC;
2482 RECT rcItem WINE_PACKED;
2483 DWORD itemData WINE_PACKED;
2484} DRAWITEMSTRUCT, *PDRAWITEMSTRUCT, *LPDRAWITEMSTRUCT;
2485
2486
2487typedef struct
2488{
2489 UINT CtlType;
2490 UINT CtlID;
2491 UINT itemID;
2492 UINT itemWidth;
2493 UINT itemHeight;
2494 DWORD itemData;
2495} MEASUREITEMSTRUCT, *PMEASUREITEMSTRUCT, *LPMEASUREITEMSTRUCT;
2496
2497
2498typedef struct
2499{
2500 UINT CtlType;
2501 UINT CtlID;
2502 UINT itemID;
2503 HWND hwndItem;
2504 DWORD itemData;
2505} DELETEITEMSTRUCT, *LPDELETEITEMSTRUCT;
2506
2507
2508typedef struct
2509{
2510 UINT CtlType;
2511 UINT CtlID;
2512 HWND hwndItem;
2513 UINT itemID1;
2514 DWORD itemData1;
2515 UINT itemID2;
2516 DWORD itemData2;
2517 DWORD dwLocaleId;
2518} COMPAREITEMSTRUCT, *PCOMPAREITEMSTRUCT, *LPCOMPAREITEMSTRUCT;
2519
2520
2521/* WM_KEYUP/DOWN/CHAR HIWORD(lParam) flags */
2522#define KF_EXTENDED 0x0100
2523#define KF_DLGMODE 0x0800
2524#define KF_MENUMODE 0x1000
2525#define KF_ALTDOWN 0x2000
2526#define KF_REPEAT 0x4000
2527#define KF_UP 0x8000
2528
2529/* Virtual key codes */
2530#define VK_LBUTTON 0x01
2531#define VK_RBUTTON 0x02
2532#define VK_CANCEL 0x03
2533#define VK_MBUTTON 0x04
2534/* 0x05-0x07 Undefined */
2535#define VK_BACK 0x08
2536#define VK_TAB 0x09
2537/* 0x0A-0x0B Undefined */
2538#define VK_CLEAR 0x0C
2539#define VK_RETURN 0x0D
2540/* 0x0E-0x0F Undefined */
2541#define VK_SHIFT 0x10
2542#define VK_CONTROL 0x11
2543#define VK_MENU 0x12
2544#define VK_PAUSE 0x13
2545#define VK_CAPITAL 0x14
2546/* 0x15-0x19 Reserved for Kanji systems */
2547/* 0x1A Undefined */
2548#define VK_ESCAPE 0x1B
2549/* 0x1C-0x1F Reserved for Kanji systems */
2550#define VK_SPACE 0x20
2551#define VK_PRIOR 0x21
2552#define VK_NEXT 0x22
2553#define VK_END 0x23
2554#define VK_HOME 0x24
2555#define VK_LEFT 0x25
2556#define VK_UP 0x26
2557#define VK_RIGHT 0x27
2558#define VK_DOWN 0x28
2559#define VK_SELECT 0x29
2560#define VK_PRINT 0x2A /* OEM specific in Windows 3.1 SDK */
2561#define VK_EXECUTE 0x2B
2562#define VK_SNAPSHOT 0x2C
2563#define VK_INSERT 0x2D
2564#define VK_DELETE 0x2E
2565#define VK_HELP 0x2F
2566#define VK_0 0x30
2567#define VK_1 0x31
2568#define VK_2 0x32
2569#define VK_3 0x33
2570#define VK_4 0x34
2571#define VK_5 0x35
2572#define VK_6 0x36
2573#define VK_7 0x37
2574#define VK_8 0x38
2575#define VK_9 0x39
2576/* 0x3A-0x40 Undefined */
2577#define VK_A 0x41
2578#define VK_B 0x42
2579#define VK_C 0x43
2580#define VK_D 0x44
2581#define VK_E 0x45
2582#define VK_F 0x46
2583#define VK_G 0x47
2584#define VK_H 0x48
2585#define VK_I 0x49
2586#define VK_J 0x4A
2587#define VK_K 0x4B
2588#define VK_L 0x4C
2589#define VK_M 0x4D
2590#define VK_N 0x4E
2591#define VK_O 0x4F
2592#define VK_P 0x50
2593#define VK_Q 0x51
2594#define VK_R 0x52
2595#define VK_S 0x53
2596#define VK_T 0x54
2597#define VK_U 0x55
2598#define VK_V 0x56
2599#define VK_W 0x57
2600#define VK_X 0x58
2601#define VK_Y 0x59
2602#define VK_Z 0x5A
2603
2604#define VK_LWIN 0x5B
2605#define VK_RWIN 0x5C
2606#define VK_APPS 0x5D
2607/* 0x5E-0x5F Unassigned */
2608#define VK_NUMPAD0 0x60
2609#define VK_NUMPAD1 0x61
2610#define VK_NUMPAD2 0x62
2611#define VK_NUMPAD3 0x63
2612#define VK_NUMPAD4 0x64
2613#define VK_NUMPAD5 0x65
2614#define VK_NUMPAD6 0x66
2615#define VK_NUMPAD7 0x67
2616#define VK_NUMPAD8 0x68
2617#define VK_NUMPAD9 0x69
2618#define VK_MULTIPLY 0x6A
2619#define VK_ADD 0x6B
2620#define VK_SEPARATOR 0x6C
2621#define VK_SUBTRACT 0x6D
2622#define VK_DECIMAL 0x6E
2623#define VK_DIVIDE 0x6F
2624#define VK_F1 0x70
2625#define VK_F2 0x71
2626#define VK_F3 0x72
2627#define VK_F4 0x73
2628#define VK_F5 0x74
2629#define VK_F6 0x75
2630#define VK_F7 0x76
2631#define VK_F8 0x77
2632#define VK_F9 0x78
2633#define VK_F10 0x79
2634#define VK_F11 0x7A
2635#define VK_F12 0x7B
2636#define VK_F13 0x7C
2637#define VK_F14 0x7D
2638#define VK_F15 0x7E
2639#define VK_F16 0x7F
2640#define VK_F17 0x80
2641#define VK_F18 0x81
2642#define VK_F19 0x82
2643#define VK_F20 0x83
2644#define VK_F21 0x84
2645#define VK_F22 0x85
2646#define VK_F23 0x86
2647#define VK_F24 0x87
2648/* 0x88-0x8F Unassigned */
2649#define VK_NUMLOCK 0x90
2650#define VK_SCROLL 0x91
2651/* 0x92-0x9F Unassigned */
2652/*
2653 * differencing between right and left shift/control/alt key.
2654 * Used only by GetAsyncKeyState() and GetKeyState().
2655 */
2656#define VK_LSHIFT 0xA0
2657#define VK_RSHIFT 0xA1
2658#define VK_LCONTROL 0xA2
2659#define VK_RCONTROL 0xA3
2660#define VK_LMENU 0xA4
2661#define VK_RMENU 0xA5
2662/* 0xA6-0xB9 Unassigned */
2663#define VK_OEM_1 0xBA
2664#define VK_OEM_PLUS 0xBB
2665#define VK_OEM_COMMA 0xBC
2666#define VK_OEM_MINUS 0xBD
2667#define VK_OEM_PERIOD 0xBE
2668#define VK_OEM_2 0xBF
2669#define VK_OEM_3 0xC0
2670/* 0xC1-0xDA Unassigned */
2671#define VK_OEM_4 0xDB
2672#define VK_OEM_5 0xDC
2673#define VK_OEM_6 0xDD
2674#define VK_OEM_7 0xDE
2675/* 0xDF-0xE4 OEM specific */
2676
2677#define VK_PROCESSKEY 0xE5
2678
2679/* 0xE6 OEM specific */
2680/* 0xE7-0xE8 Unassigned */
2681/* 0xE9-0xF5 OEM specific */
2682
2683#define VK_ATTN 0xF6
2684#define VK_CRSEL 0xF7
2685#define VK_EXSEL 0xF8
2686#define VK_EREOF 0xF9
2687#define VK_PLAY 0xFA
2688#define VK_ZOOM 0xFB
2689#define VK_NONAME 0xFC
2690#define VK_PA1 0xFD
2691#define VK_OEM_CLEAR 0xFE
2692
2693 /* Key status flags for mouse events */
2694#define MK_LBUTTON 0x0001
2695#define MK_RBUTTON 0x0002
2696#define MK_SHIFT 0x0004
2697#define MK_CONTROL 0x0008
2698#define MK_MBUTTON 0x0010
2699
2700 /* Queue status flags */
2701#define QS_KEY 0x0001
2702#define QS_MOUSEMOVE 0x0002
2703#define QS_MOUSEBUTTON 0x0004
2704#define QS_MOUSE (QS_MOUSEMOVE | QS_MOUSEBUTTON)
2705#define QS_POSTMESSAGE 0x0008
2706#define QS_TIMER 0x0010
2707#define QS_PAINT 0x0020
2708#define QS_SENDMESSAGE 0x0040
2709#define QS_HOTKEY 0x0080
2710#define QS_INPUT (QS_MOUSE | QS_KEY)
2711#define QS_ALLEVENTS (QS_INPUT | QS_POSTMESSAGE | QS_TIMER | QS_PAINT | QS_HOTKEY)
2712#define QS_ALLINPUT (QS_ALLEVENTS | QS_SENDMESSAGE)
2713
2714#define DDL_READWRITE 0x0000
2715#define DDL_READONLY 0x0001
2716#define DDL_HIDDEN 0x0002
2717#define DDL_SYSTEM 0x0004
2718#define DDL_DIRECTORY 0x0010
2719#define DDL_ARCHIVE 0x0020
2720
2721#define DDL_POSTMSGS 0x2000
2722#define DDL_DRIVES 0x4000
2723#define DDL_EXCLUSIVE 0x8000
2724
2725 /* Shell hook values */
2726#define HSHELL_WINDOWCREATED 1
2727#define HSHELL_WINDOWDESTROYED 2
2728#define HSHELL_ACTIVATESHELLWINDOW 3
2729
2730/* Predefined Clipboard Formats */
2731#define CF_TEXT 1
2732#define CF_BITMAP 2
2733#define CF_METAFILEPICT 3
2734#define CF_SYLK 4
2735#define CF_DIF 5
2736#define CF_TIFF 6
2737#define CF_OEMTEXT 7
2738#define CF_DIB 8
2739#define CF_PALETTE 9
2740#define CF_PENDATA 10
2741#define CF_RIFF 11
2742#define CF_WAVE 12
2743#define CF_ENHMETAFILE 14
2744#define CF_HDROP 15
2745#define CF_LOCALE 16
2746#define CF_MAX 17
2747
2748#define CF_OWNERDISPLAY 0x0080
2749#define CF_DSPTEXT 0x0081
2750#define CF_DSPBITMAP 0x0082
2751#define CF_DSPMETAFILEPICT 0x0083
2752
2753/* "Private" formats don't get GlobalFree()'d */
2754#define CF_PRIVATEFIRST 0x0200
2755#define CF_PRIVATELAST 0x02FF
2756
2757/* "GDIOBJ" formats do get DeleteObject()'d */
2758#define CF_GDIOBJFIRST 0x0300
2759#define CF_GDIOBJLAST 0x03FF
2760
2761/* Clipboard command messages */
2762#define WM_CUT 0x0300
2763#define WM_COPY 0x0301
2764#define WM_PASTE 0x0302
2765#define WM_CLEAR 0x0303
2766#define WM_UNDO 0x0304
2767
2768/* Clipboard owner messages */
2769#define WM_RENDERFORMAT 0x0305
2770#define WM_RENDERALLFORMATS 0x0306
2771#define WM_DESTROYCLIPBOARD 0x0307
2772
2773/* Clipboard viewer messages */
2774#define WM_DRAWCLIPBOARD 0x0308
2775#define WM_PAINTCLIPBOARD 0x0309
2776#define WM_SIZECLIPBOARD 0x030B
2777#define WM_VSCROLLCLIPBOARD 0x030A
2778#define WM_HSCROLLCLIPBOARD 0x030E
2779#define WM_ASKCBFORMATNAME 0x030C
2780#define WM_CHANGECBCHAIN 0x030D
2781
2782
2783
2784/* DragObject stuff */
2785
2786typedef struct
2787{
2788 HWND16 hWnd;
2789 HANDLE16 hScope;
2790 WORD wFlags;
2791 HANDLE16 hList;
2792 HANDLE16 hOfStruct;
2793 POINT16 pt WINE_PACKED;
2794 LONG l WINE_PACKED;
2795} DRAGINFO, *LPDRAGINFO;
2796
2797#define DRAGOBJ_PROGRAM 0x0001
2798#define DRAGOBJ_DATA 0x0002
2799#define DRAGOBJ_DIRECTORY 0x0004
2800#define DRAGOBJ_MULTIPLE 0x0008
2801#define DRAGOBJ_EXTERNAL 0x8000
2802
2803#define DRAG_PRINT 0x544E5250
2804#define DRAG_FILE 0x454C4946
2805
2806/* types of LoadImage */
2807#define IMAGE_BITMAP 0
2808#define IMAGE_ICON 1
2809#define IMAGE_CURSOR 2
2810#define IMAGE_ENHMETAFILE 3
2811
2812/* loadflags to LoadImage */
2813#define LR_DEFAULTCOLOR 0x0000
2814#define LR_MONOCHROME 0x0001
2815#define LR_COLOR 0x0002
2816#define LR_COPYRETURNORG 0x0004
2817#define LR_COPYDELETEORG 0x0008
2818#define LR_LOADFROMFILE 0x0010
2819#define LR_LOADTRANSPARENT 0x0020
2820#define LR_DEFAULTSIZE 0x0040
2821#define LR_VGA_COLOR 0x0080
2822#define LR_LOADMAP3DCOLORS 0x1000
2823#define LR_CREATEDIBSECTION 0x2000
2824#define LR_COPYFROMRESOURCE 0x4000
2825#define LR_SHARED 0x8000
2826
2827/* Flags for DrawIconEx. */
2828#define DI_MASK 1
2829#define DI_IMAGE 2
2830#define DI_NORMAL (DI_MASK | DI_IMAGE)
2831#define DI_COMPAT 4
2832#define DI_DEFAULTSIZE 8
2833
2834 /* misc messages */
2835#define WM_NULL 0x0000
2836#define WM_CPL_LAUNCH (WM_USER + 1000)
2837#define WM_CPL_LAUNCHED (WM_USER + 1001)
2838
2839/* WM_NOTIFYFORMAT commands and return values */
2840#define NFR_ANSI 1
2841#define NFR_UNICODE 2
2842#define NF_QUERY 3
2843#define NF_REQUERY 4
2844
2845//SM_ARRANGE return values:
2846#define ARW_BOTTOMLEFT 0x0000L
2847#define ARW_BOTTOMRIGHT 0x0001L
2848#define ARW_TOPLEFT 0x0002L
2849#define ARW_TOPRIGHT 0x0003L
2850#define ARW_STARTMASK 0x0003L
2851#define ARW_STARTRIGHT 0x0001L
2852#define ARW_STARTTOP 0x0002L
2853
2854#define ARW_LEFT 0x0000L
2855#define ARW_RIGHT 0x0000L
2856#define ARW_UP 0x0004L
2857#define ARW_DOWN 0x0004L
2858#define ARW_HIDE 0x0008L
2859#define ARW_VALID 0x000FL
2860
2861typedef BOOL (* CALLBACK NAMEENUMPROCA)(LPSTR, LPARAM);
2862typedef BOOL (* CALLBACK NAMEENUMPROCW)(LPWSTR, LPARAM);
2863
2864typedef NAMEENUMPROCA WINSTAENUMPROCA;
2865typedef NAMEENUMPROCA DESKTOPENUMPROCA;
2866typedef NAMEENUMPROCW WINSTAENUMPROCW;
2867typedef NAMEENUMPROCW DESKTOPENUMPROCW;
2868
2869typedef VOID (* CALLBACK SENDASYNCPROC)(HWND, UINT, DWORD, LRESULT);
2870
2871
2872#include "poppack.h"
2873#define EnumTaskWindows(handle,proc,lparam) \
2874 EnumThreadWindows(handle,proc,lparam)
2875#define OemToAnsiA OemToCharA
2876#define OemToAnsiW OemToCharW
2877#define OemToAnsi WINELIB_NAME_AW(OemToAnsi)
2878#define OemToAnsiBuffA OemToCharBuffA
2879#define OemToAnsiBuffW OemToCharBuffW
2880#define OemToAnsiBuff WINELIB_NAME_AW(OemToAnsiBuff)
2881#define AnsiToOemA CharToOemA
2882#define AnsiToOemW CharToOemW
2883#define AnsiToOem WINELIB_NAME_AW(AnsiToOem)
2884#define AnsiToOemBuffA CharToOemBuffA
2885#define AnsiToOemBuffW CharToOemBuffW
2886#define AnsiToOemBuff WINELIB_NAME_AW(AnsiToOemBuff)
2887WORD WINAPI CascadeWindows (HWND, UINT, const LPRECT,
2888 UINT, const HWND *);
2889INT WINAPI CopyAcceleratorTableA(HACCEL,LPACCEL,INT);
2890INT WINAPI CopyAcceleratorTableW(HACCEL,LPACCEL,INT);
2891#define CopyAcceleratorTable WINELIB_NAME_AW(CopyAcceleratorTable)
2892HICON WINAPI CreateIconIndirect(LPICONINFO);
2893BOOL WINAPI DestroyAcceleratorTable(HACCEL);
2894BOOL WINAPI EnumDisplayMonitors(HDC,LPRECT,MONITORENUMPROC,LPARAM);
2895INT WINAPI EnumPropsExA(HWND,PROPENUMPROCEXA,LPARAM);
2896INT WINAPI EnumPropsExW(HWND,PROPENUMPROCEXW,LPARAM);
2897#define EnumPropsEx WINELIB_NAME_AW(EnumPropsEx)
2898BOOL WINAPI EnumThreadWindows(DWORD,WNDENUMPROC,LPARAM);
2899BOOL WINAPI ExitWindowsEx(UINT,DWORD);
2900BOOL WINAPI GetIconInfo(HICON,LPICONINFO);
2901DWORD WINAPI GetMenuContextHelpId(HMENU);
2902UINT WINAPI GetMenuDefaultItem(HMENU,UINT,UINT);
2903BOOL WINAPI GetMenuInfo(HMENU,LPMENUINFO);
2904BOOL WINAPI GetMenuItemInfoA(HMENU,UINT,BOOL,MENUITEMINFOA*);
2905BOOL WINAPI GetMenuItemInfoW(HMENU,UINT,BOOL,MENUITEMINFOW*);
2906#define GetMenuItemInfo WINELIB_NAME_AW(GetMenuItemInfo)
2907BOOL WINAPI GetMonitorInfoA(HMONITOR,LPMONITORINFO);
2908BOOL WINAPI GetMonitorInfoW(HMONITOR,LPMONITORINFO);
2909#define GetMonitorInfo WINELIB_NAME_AW(GetMonitorInfo)
2910INT WINAPI GetNumberFormatA(LCID,DWORD,LPCSTR,const NUMBERFMTA*,LPSTR,int);
2911INT WINAPI GetNumberFormatW(LCID,DWORD,LPCWSTR,const NUMBERFMTW*,LPWSTR,int);
2912#define GetNumberFormat WINELIB_NAME_AW(GetNumberFormat);
2913DWORD WINAPI GetWindowContextHelpId(HWND);
2914DWORD WINAPI GetWindowThreadProcessId(HWND,LPDWORD);
2915BOOL WINAPI IsWindowUnicode(HWND);
2916HKL WINAPI LoadKeyboardLayoutA(LPCSTR,UINT);
2917HKL WINAPI LoadKeyboardLayoutW(LPCWSTR,UINT);
2918#define LoadKeyboardLayout WINELIB_NAME_AW(LoadKeyboardLayout)
2919INT WINAPI MessageBoxExA(HWND,LPCSTR,LPCSTR,UINT,WORD);
2920INT WINAPI MessageBoxExW(HWND,LPCWSTR,LPCWSTR,UINT,WORD);
2921#define MessageBoxEx WINELIB_NAME_AW(MessageBoxEx)
2922HMONITOR WINAPI MonitorFromPoint(POINT,DWORD);
2923HMONITOR WINAPI MonitorFromRect(LPRECT,DWORD);
2924HMONITOR WINAPI MonitorFromWindow(HWND,DWORD);
2925DWORD WINAPI MsgWaitForMultipleObjects(DWORD,HANDLE*,BOOL,DWORD,DWORD);
2926BOOL WINAPI PaintDesktop(HDC);
2927BOOL WINAPI PostThreadMessageA(DWORD, UINT, WPARAM, LPARAM);
2928BOOL WINAPI PostThreadMessageW(DWORD, UINT, WPARAM, LPARAM);
2929#define PostThreadMessage WINELIB_NAME_AW(PostThreadMessage)
2930UINT WINAPI ReuseDDElParam(UINT,UINT,UINT,UINT,UINT);
2931BOOL WINAPI SendNotifyMessageA(HWND,UINT,WPARAM,LPARAM);
2932BOOL WINAPI SendNotifyMessageW(HWND,UINT,WPARAM,LPARAM);
2933#define SendNotifyMessage WINELIB_NAME_AW(SendNotifyMessage)
2934VOID WINAPI SetDebugErrorLevel(DWORD);
2935VOID WINAPI SetLastErrorEx(DWORD,DWORD);
2936BOOL WINAPI SetMenuDefaultItem(HMENU,UINT,UINT);
2937BOOL WINAPI SetMenuInfo(HMENU,LPCMENUINFO);
2938BOOL WINAPI SetMenuItemInfoA(HMENU,UINT,BOOL,const MENUITEMINFOA*);
2939BOOL WINAPI SetMenuItemInfoW(HMENU,UINT,BOOL,const MENUITEMINFOW*);
2940#define SetMenuItemInfo WINELIB_NAME_AW(SetMenuItemInfo)
2941BOOL WINAPI SetWindowContextHelpId(HWND,DWORD);
2942WORD WINAPI TileWindows (HWND, UINT, const LPRECT,
2943 UINT, const HWND *);
2944BOOL WINAPI TrackPopupMenuEx(HMENU,UINT,INT,INT,HWND,
2945 LPTPMPARAMS);
2946BOOL WINAPI UnpackDDElParam(UINT,UINT,UINT*,UINT*);
2947DWORD WINAPI WaitForInputIdle(HANDLE,DWORD);
2948VOID WINAPI keybd_event(BYTE,BYTE,DWORD,DWORD);
2949VOID WINAPI mouse_event(DWORD,DWORD,DWORD,DWORD,DWORD);
2950
2951/* Declarations for functions that are the same in Win16 and Win32 */
2952VOID WINAPI EndMenu(void);
2953DWORD WINAPI GetDialogBaseUnits(void);
2954BOOL WINAPI GetKeyboardState(LPBYTE);
2955DWORD WINAPI GetMenuCheckMarkDimensions(void);
2956LONG WINAPI GetMessageExtraInfo(void);
2957DWORD WINAPI GetMessagePos(void);
2958LONG WINAPI GetMessageTime(void);
2959DWORD WINAPI GetTickCount(void);
2960ATOM WINAPI GlobalDeleteAtom(ATOM);
2961DWORD WINAPI OemKeyScan(WORD);
2962BOOL WINAPI ReleaseCapture(void);
2963BOOL WINAPI SetKeyboardState(LPBYTE);
2964BOOL WINAPI WaitMessage(VOID);
2965
2966
2967/* Declarations for functions that change between Win16 and Win32 */
2968
2969BOOL WINAPI AdjustWindowRect(LPRECT,DWORD,BOOL);
2970BOOL WINAPI AdjustWindowRectEx(LPRECT,DWORD,BOOL,DWORD);
2971#define AnsiLowerA CharLowerA
2972#define AnsiLowerW CharLowerW
2973#define AnsiLower WINELIB_NAME_AW(AnsiLower)
2974#define AnsiLowerBuffA CharLowerBuffA
2975#define AnsiLowerBuffW CharLowerBuffW
2976#define AnsiLowerBuff WINELIB_NAME_AW(AnsiLowerBuff)
2977#define AnsiNextA CharNextA
2978#define AnsiNextW CharNextW
2979#define AnsiNext WINELIB_NAME_AW(AnsiNext)
2980#define AnsiPrevA CharPrevA
2981#define AnsiPrevW CharPrevW
2982#define AnsiPrev WINELIB_NAME_AW(AnsiPrev)
2983#define AnsiUpperA CharUpperA
2984#define AnsiUpperW CharUpperW
2985#define AnsiUpper WINELIB_NAME_AW(AnsiUpper)
2986#define AnsiUpperBuffA CharUpperBuffA
2987#define AnsiUpperBuffW CharUpperBuffW
2988#define AnsiUpperBuff WINELIB_NAME_AW(AnsiUpperBuff)
2989BOOL WINAPI AnyPopup(void);
2990BOOL WINAPI AppendMenuA(HMENU,UINT,UINT,LPCSTR);
2991BOOL WINAPI AppendMenuW(HMENU,UINT,UINT,LPCWSTR);
2992#define AppendMenu WINELIB_NAME_AW(AppendMenu)
2993UINT WINAPI ArrangeIconicWindows(HWND);
2994HDWP WINAPI BeginDeferWindowPos(INT);
2995HDC WINAPI BeginPaint(HWND,LPPAINTSTRUCT);
2996BOOL WINAPI BringWindowToTop(HWND);
2997BOOL WINAPI CallMsgFilterA(LPMSG,INT);
2998BOOL WINAPI CallMsgFilterW(LPMSG,INT);
2999#define CallMsgFilter WINELIB_NAME_AW(CallMsgFilter)
3000LRESULT WINAPI CallNextHookEx(HHOOK,INT,WPARAM,LPARAM);
3001LRESULT WINAPI CallWindowProcA(WNDPROC,HWND,UINT,WPARAM,LPARAM);
3002LRESULT WINAPI CallWindowProcW(WNDPROC,HWND,UINT,WPARAM,LPARAM);
3003#define CallWindowProc WINELIB_NAME_AW(CallWindowProc)
3004BOOL WINAPI ChangeClipboardChain(HWND,HWND);
3005BOOL WINAPI ChangeMenuA(HMENU,UINT,LPCSTR,UINT,UINT);
3006BOOL WINAPI ChangeMenuW(HMENU,UINT,LPCWSTR,UINT,UINT);
3007#define ChangeMenu WINELIB_NAME_AW(ChangeMenu)
3008LPSTR WINAPI CharLowerA(LPSTR);
3009LPWSTR WINAPI CharLowerW(LPWSTR);
3010#define CharLower WINELIB_NAME_AW(CharLower)
3011DWORD WINAPI CharLowerBuffA(LPSTR,DWORD);
3012DWORD WINAPI CharLowerBuffW(LPWSTR,DWORD);
3013#define CharLowerBuff WINELIB_NAME_AW(CharLowerBuff)
3014LPSTR WINAPI CharNextA(LPCSTR);
3015LPWSTR WINAPI CharNextW(LPCWSTR);
3016#define CharNext WINELIB_NAME_AW(CharNext)
3017LPSTR WINAPI CharNextExA(WORD,LPCSTR,DWORD);
3018LPWSTR WINAPI CharNextExW(WORD,LPCWSTR,DWORD);
3019#define CharNextEx WINELIB_NAME_AW(CharNextEx)
3020LPSTR WINAPI CharPrevA(LPCSTR,LPCSTR);
3021LPWSTR WINAPI CharPrevW(LPCWSTR,LPCWSTR);
3022#define CharPrev WINELIB_NAME_AW(CharPrev)
3023LPSTR WINAPI CharPrevExA(WORD,LPCSTR,LPCSTR,DWORD);
3024LPWSTR WINAPI CharPrevExW(WORD,LPCWSTR,LPCWSTR,DWORD);
3025#define CharPrevEx WINELIB_NAME_AW(CharPrevEx)
3026LPSTR WINAPI CharUpperA(LPSTR);
3027LPWSTR WINAPI CharUpperW(LPWSTR);
3028#define CharUpper WINELIB_NAME_AW(CharUpper)
3029DWORD WINAPI CharUpperBuffA(LPSTR,DWORD);
3030DWORD WINAPI CharUpperBuffW(LPWSTR,DWORD);
3031#define CharUpperBuff WINELIB_NAME_AW(CharUpperBuff)
3032BOOL WINAPI CharToOemA(LPCSTR,LPSTR);
3033BOOL WINAPI CharToOemW(LPCWSTR,LPSTR);
3034#define CharToOem WINELIB_NAME_AW(CharToOem)
3035BOOL WINAPI CharToOemBuffA(LPCSTR,LPSTR,DWORD);
3036BOOL WINAPI CharToOemBuffW(LPCWSTR,LPSTR,DWORD);
3037#define CharToOemBuff WINELIB_NAME_AW(CharToOemBuff)
3038BOOL WINAPI CheckDlgButton(HWND,INT,UINT);
3039DWORD WINAPI CheckMenuItem(HMENU,UINT,UINT);
3040BOOL WINAPI CheckMenuRadioItem(HMENU,UINT,UINT,UINT,UINT);
3041BOOL WINAPI CheckRadioButton(HWND,UINT,UINT,UINT);
3042HWND WINAPI ChildWindowFromPoint(HWND,POINT);
3043HWND WINAPI ChildWindowFromPointEx(HWND,POINT,UINT);
3044BOOL WINAPI ClearCommBreak(HANDLE);
3045BOOL WINAPI ClientToScreen(HWND,LPPOINT);
3046BOOL WINAPI ClipCursor(const RECT*);
3047BOOL WINAPI CloseClipboard(void);
3048BOOL WINAPI CloseWindow(HWND);
3049#define CopyCursor(cur) ((HCURSOR)CopyIcon((HICON)(cur)))
3050HICON WINAPI CopyIcon(HICON);
3051HICON WINAPI CopyImage(HANDLE,UINT,INT,INT,UINT);
3052BOOL WINAPI CopyRect(RECT*,const RECT*);
3053INT WINAPI CountClipboardFormats(void);
3054BOOL WINAPI CreateCaret(HWND,HBITMAP,INT,INT);
3055HCURSOR WINAPI CreateCursor(HINSTANCE,INT,INT,INT,INT,LPCVOID,LPCVOID);
3056#define CreateDialogA(inst,ptr,hwnd,dlg) \
3057 CreateDialogParamA(inst,ptr,hwnd,dlg,0)
3058#define CreateDialogW(inst,ptr,hwnd,dlg) \
3059 CreateDialogParamW(inst,ptr,hwnd,dlg,0)
3060#define CreateDialog WINELIB_NAME_AW(CreateDialog)
3061#define CreateDialogIndirectA(inst,ptr,hwnd,dlg) \
3062 CreateDialogIndirectParamA(inst,ptr,hwnd,dlg,0)
3063#define CreateDialogIndirectW(inst,ptr,hwnd,dlg) \
3064 CreateDialogIndirectParamW(inst,ptr,hwnd,dlg,0)
3065#define CreateDialogIndirect WINELIB_NAME_AW(CreateDialogIndirect)
3066HWND WINAPI CreateDialogIndirectParamA(HINSTANCE,LPCDLGTEMPLATEA,HWND,
3067 DLGPROC,LPARAM);
3068HWND WINAPI CreateDialogIndirectParamW(HINSTANCE,LPCDLGTEMPLATEW,HWND,
3069 DLGPROC,LPARAM);
3070#define CreateDialogIndirectParam WINELIB_NAME_AW(CreateDialogIndirectParam)
3071HWND WINAPI CreateDialogParamA(HINSTANCE,LPCSTR,HWND,DLGPROC,LPARAM);
3072HWND WINAPI CreateDialogParamW(HINSTANCE,LPCWSTR,HWND,DLGPROC,LPARAM);
3073#define CreateDialogParam WINELIB_NAME_AW(CreateDialogParam)
3074HICON WINAPI CreateIcon(HINSTANCE,INT,INT,BYTE,BYTE,LPCVOID,LPCVOID);
3075HICON WINAPI CreateIconFromResource(LPBYTE,UINT,BOOL,DWORD);
3076HICON WINAPI CreateIconFromResourceEx(LPBYTE,UINT,BOOL,DWORD,INT,INT,UINT);
3077HMENU WINAPI CreateMenu(void);
3078HMENU WINAPI CreatePopupMenu(void);
3079#define CreateWindowA(className,titleName,style,x,y,width,height,\
3080 parent,menu,instance,param) \
3081 CreateWindowExA(0,className,titleName,style,x,y,width,height,\
3082 parent,menu,instance,param)
3083#define CreateWindowW(className,titleName,style,x,y,width,height,\
3084 parent,menu,instance,param) \
3085 CreateWindowExW(0,className,titleName,style,x,y,width,height,\
3086 parent,menu,instance,param)
3087#define CreateWindow WINELIB_NAME_AW(CreateWindow)
3088HWND WINAPI CreateWindowExA(DWORD,LPCSTR,LPCSTR,DWORD,INT,INT,
3089 INT,INT,HWND,HMENU,HINSTANCE,LPVOID);
3090HWND WINAPI CreateWindowExW(DWORD,LPCWSTR,LPCWSTR,DWORD,INT,INT,
3091 INT,INT,HWND,HMENU,HINSTANCE,LPVOID);
3092#define CreateWindowEx WINELIB_NAME_AW(CreateWindowEx)
3093HWND WINAPI CreateMDIWindowA(LPCSTR,LPCSTR,DWORD,INT,INT,
3094 INT,INT,HWND,HINSTANCE,LPARAM);
3095HWND WINAPI CreateMDIWindowW(LPCWSTR,LPCWSTR,DWORD,INT,INT,
3096 INT,INT,HWND,HINSTANCE,LPARAM);
3097#define CreateMDIWindow WINELIB_NAME_AW(CreateMDIWindow)
3098LRESULT WINAPI DefDlgProcA(HWND,UINT,WPARAM,LPARAM);
3099LRESULT WINAPI DefDlgProcW(HWND,UINT,WPARAM,LPARAM);
3100#define DefDlgProc WINELIB_NAME_AW(DefDlgProc)
3101HDWP WINAPI DeferWindowPos(HDWP,HWND,HWND,INT,INT,INT,INT,UINT);
3102LRESULT WINAPI DefFrameProcA(HWND,HWND,UINT,WPARAM,LPARAM);
3103LRESULT WINAPI DefFrameProcW(HWND,HWND,UINT,WPARAM,LPARAM);
3104#define DefFrameProc WINELIB_NAME_AW(DefFrameProc)
3105#define DefHookProc(code,wparam,lparam,phhook) \
3106 CallNextHookEx(*(phhook),code,wparam,lparam)
3107LRESULT WINAPI DefMDIChildProcA(HWND,UINT,WPARAM,LPARAM);
3108LRESULT WINAPI DefMDIChildProcW(HWND,UINT,WPARAM,LPARAM);
3109#define DefMDIChildProc WINELIB_NAME_AW(DefMDIChildProc)
3110LRESULT WINAPI DefWindowProcA(HWND,UINT,WPARAM,LPARAM);
3111LRESULT WINAPI DefWindowProcW(HWND,UINT,WPARAM,LPARAM);
3112#define DefWindowProc WINELIB_NAME_AW(DefWindowProc)
3113BOOL WINAPI DeleteMenu(HMENU,UINT,UINT);
3114BOOL WINAPI DestroyCaret(void);
3115BOOL WINAPI DestroyCursor(HCURSOR);
3116BOOL WINAPI DestroyIcon(HICON);
3117BOOL WINAPI DestroyMenu(HMENU);
3118BOOL WINAPI DestroyWindow(HWND);
3119#define DialogBoxA(inst,template,owner,func) \
3120 DialogBoxParamA(inst,template,owner,func,0)
3121#define DialogBoxW(inst,template,owner,func) \
3122 DialogBoxParamW(inst,template,owner,func,0)
3123#define DialogBox WINELIB_NAME_AW(DialogBox)
3124#define DialogBoxIndirectA(inst,template,owner,func) \
3125 DialogBoxIndirectParamA(inst,template,owner,func,0)
3126#define DialogBoxIndirectW(inst,template,owner,func) \
3127 DialogBoxIndirectParamW(inst,template,owner,func,0)
3128#define DialogBoxIndirect WINELIB_NAME_AW(DialogBoxIndirect)
3129INT WINAPI DialogBoxIndirectParamA(HINSTANCE,LPCDLGTEMPLATEA,HWND,DLGPROC,LPARAM);
3130INT WINAPI DialogBoxIndirectParamW(HINSTANCE,LPCDLGTEMPLATEW,HWND,DLGPROC,LPARAM);
3131#define DialogBoxIndirectParam WINELIB_NAME_AW(DialogBoxIndirectParam)
3132INT WINAPI DialogBoxParamA(HINSTANCE,LPCSTR,HWND,DLGPROC,LPARAM);
3133INT WINAPI DialogBoxParamW(HINSTANCE,LPCWSTR,HWND,DLGPROC,LPARAM);
3134#define DialogBoxParam WINELIB_NAME_AW(DialogBoxParam)
3135LONG WINAPI DispatchMessageA(const MSG*);
3136LONG WINAPI DispatchMessageW(const MSG*);
3137#define DispatchMessage WINELIB_NAME_AW(DispatchMessage)
3138INT WINAPI DlgDirListA(HWND,LPSTR,INT,INT,UINT);
3139INT WINAPI DlgDirListW(HWND,LPWSTR,INT,INT,UINT);
3140#define DlgDirList WINELIB_NAME_AW(DlgDirList)
3141INT WINAPI DlgDirListComboBoxA(HWND,LPSTR,INT,INT,UINT);
3142INT WINAPI DlgDirListComboBoxW(HWND,LPWSTR,INT,INT,UINT);
3143#define DlgDirListComboBox WINELIB_NAME_AW(DlgDirListComboBox)
3144BOOL WINAPI DlgDirSelectComboBoxExA(HWND,LPSTR,INT,INT);
3145BOOL WINAPI DlgDirSelectComboBoxExW(HWND,LPWSTR,INT,INT);
3146#define DlgDirSelectComboBoxEx WINELIB_NAME_AW(DlgDirSelectComboBoxEx)
3147BOOL WINAPI DlgDirSelectExA(HWND,LPSTR,INT,INT);
3148BOOL WINAPI DlgDirSelectExW(HWND,LPWSTR,INT,INT);
3149#define DlgDirSelectEx WINELIB_NAME_AW(DlgDirSelectEx)
3150BOOL WINAPI DragDetect(HWND,POINT);
3151DWORD WINAPI DragObject(HWND,HWND,UINT,DWORD,HCURSOR);
3152BOOL WINAPI DrawAnimatedRects(HWND,int,const RECT*,const RECT*);
3153BOOL WINAPI DrawCaption(HWND,HDC,const RECT*,UINT);
3154BOOL WINAPI DrawCaptionTempA(HWND,HDC,const RECT*,HFONT,HICON,LPCSTR,UINT);
3155BOOL WINAPI DrawCaptionTempW(HWND,HDC,const RECT*,HFONT,HICON,LPCWSTR,UINT);
3156#define DrawCaptionTemp WINELIB_NAME_AW(DrawCaptionTemp)
3157BOOL WINAPI DrawEdge(HDC,LPRECT,UINT,UINT);
3158BOOL WINAPI DrawFocusRect(HDC,const RECT*);
3159BOOL WINAPI DrawFrameControl(HDC,LPRECT,UINT,UINT);
3160BOOL WINAPI DrawIcon(HDC,INT,INT,HICON);
3161BOOL WINAPI DrawIconEx(HDC,INT,INT,HICON,INT,INT,
3162 UINT,HBRUSH,UINT);
3163BOOL WINAPI DrawMenuBar(HWND);
3164BOOL WINAPI DrawStateA(HDC,HBRUSH,DRAWSTATEPROC,LPARAM,WPARAM,INT,INT,INT,INT,UINT);
3165BOOL WINAPI DrawStateW(HDC,HBRUSH,DRAWSTATEPROC,LPARAM,WPARAM,INT,INT,INT,INT,UINT);
3166#define DrawState WINELIB_NAME_AW(DrawState)
3167INT WINAPI DrawTextA(HDC,LPCSTR,INT,LPRECT,UINT);
3168INT WINAPI DrawTextW(HDC,LPCWSTR,INT,LPRECT,UINT);
3169#define DrawText WINELIB_NAME_AW(DrawText)
3170INT WINAPI DrawTextExA(HDC,LPCSTR,INT,LPRECT,UINT,LPDRAWTEXTPARAMS);
3171INT WINAPI DrawTextExW(HDC,LPWSTR,INT,LPRECT,UINT,LPDRAWTEXTPARAMS);
3172#define DrawTextEx WINELIB_NAME_AW(DrawTextEx)
3173BOOL WINAPI EmptyClipboard(void);
3174BOOL WINAPI EnableMenuItem(HMENU,UINT,UINT);
3175BOOL WINAPI EnableScrollBar(HWND,INT,UINT);
3176BOOL WINAPI EnableWindow(HWND,BOOL);
3177BOOL WINAPI EndDeferWindowPos(HDWP);
3178BOOL WINAPI EndDialog(HWND,INT);
3179BOOL WINAPI EndPaint(HWND,const PAINTSTRUCT*);
3180BOOL WINAPI EnumChildWindows(HWND,WNDENUMPROC,LPARAM);
3181UINT WINAPI EnumClipboardFormats(UINT);
3182INT WINAPI EnumPropsA(HWND,PROPENUMPROCA);
3183INT WINAPI EnumPropsW(HWND,PROPENUMPROCW);
3184#define EnumProps WINELIB_NAME_AW(EnumProps)
3185BOOL WINAPI EnumWindows(WNDENUMPROC,LPARAM);
3186BOOL WINAPI EqualRect(const RECT*,const RECT*);
3187BOOL WINAPI EscapeCommFunction(HANDLE,UINT);
3188INT WINAPI ExcludeUpdateRgn(HDC,HWND);
3189#define ExitWindows(a,b) ExitWindowsEx(EWX_LOGOFF,0xffffffff)
3190INT WINAPI FillRect(HDC,const RECT*,HBRUSH);
3191HWND WINAPI FindWindowA(LPCSTR,LPCSTR);
3192HWND WINAPI FindWindowW(LPCWSTR,LPCWSTR);
3193#define FindWindow WINELIB_NAME_AW(FindWindow)
3194HWND WINAPI FindWindowExA(HWND,HWND,LPCSTR,LPCSTR);
3195HWND WINAPI FindWindowExW(HWND,HWND,LPCWSTR,LPCWSTR);
3196#define FindWindowEx WINELIB_NAME_AW(FindWindowEx)
3197BOOL WINAPI FlashWindow(HWND,BOOL);
3198INT WINAPI FrameRect(HDC,const RECT*,HBRUSH);
3199HWND WINAPI GetActiveWindow(void);
3200DWORD WINAPI GetAppCompatFlags(HTASK);
3201WORD WINAPI GetAsyncKeyState(INT);
3202HWND WINAPI GetCapture(void);
3203UINT WINAPI GetCaretBlinkTime(void);
3204BOOL WINAPI GetCaretPos(LPPOINT);
3205BOOL WINAPI GetClassInfoA(HINSTANCE,LPCSTR,WNDCLASSA *);
3206BOOL WINAPI GetClassInfoW(HINSTANCE,LPCWSTR,WNDCLASSW *);
3207#define GetClassInfo WINELIB_NAME_AW(GetClassInfo)
3208BOOL WINAPI GetClassInfoExA(HINSTANCE,LPCSTR,WNDCLASSEXA *);
3209BOOL WINAPI GetClassInfoExW(HINSTANCE,LPCWSTR,WNDCLASSEXW *);
3210#define GetClassInfoEx WINELIB_NAME_AW(GetClassInfoEx)
3211LONG WINAPI GetClassLongA(HWND,INT);
3212LONG WINAPI GetClassLongW(HWND,INT);
3213#define GetClassLong WINELIB_NAME_AW(GetClassLong)
3214INT WINAPI GetClassNameA(HWND,LPSTR,INT);
3215INT WINAPI GetClassNameW(HWND,LPWSTR,INT);
3216#define GetClassName WINELIB_NAME_AW(GetClassName)
3217WORD WINAPI GetClassWord(HWND,INT);
3218BOOL WINAPI GetClientRect(HWND,LPRECT);
3219HANDLE WINAPI GetClipboardData(UINT);
3220INT WINAPI GetClipboardFormatNameA(UINT,LPSTR,INT);
3221INT WINAPI GetClipboardFormatNameW(UINT,LPWSTR,INT);
3222#define GetClipboardFormatName WINELIB_NAME_AW(GetClipboardFormatName)
3223HWND WINAPI GetClipboardOwner(void);
3224HWND WINAPI GetClipboardViewer(void);
3225BOOL WINAPI GetClipCursor(LPRECT);
3226#define GetCurrentTime() GetTickCount()
3227HCURSOR WINAPI GetCursor(void);
3228BOOL WINAPI GetCursorPos(LPPOINT);
3229HDC WINAPI GetDC(HWND);
3230HDC WINAPI GetDCEx(HWND,HRGN,DWORD);
3231HWND WINAPI GetDesktopWindow(void);
3232INT WINAPI GetDlgCtrlID(HWND);
3233HWND WINAPI GetDlgItem(HWND,INT);
3234UINT WINAPI GetDlgItemInt(HWND,INT,BOOL*,BOOL);
3235UINT WINAPI GetDlgItemTextA(HWND,INT,LPSTR,UINT);
3236UINT WINAPI GetDlgItemTextW(HWND,INT,LPWSTR,UINT);
3237#define GetDlgItemText WINELIB_NAME_AW(GetDlgItemText)
3238UINT WINAPI GetDoubleClickTime(void);
3239HWND WINAPI GetFocus(void);
3240HWND WINAPI GetForegroundWindow(void);
3241BOOL WINAPI GetInputState(void);
3242UINT WINAPI GetInternalWindowPos(HWND,LPRECT,LPPOINT);
3243UINT WINAPI GetKBCodePage(void);
3244INT WINAPI GetKeyboardType(INT);
3245INT WINAPI GetKeyNameTextA(LONG,LPSTR,INT);
3246INT WINAPI GetKeyNameTextW(LONG,LPWSTR,INT);
3247#define GetKeyNameText WINELIB_NAME_AW(GetKeyNameText)
3248INT WINAPI GetKeyboardLayoutNameA(LPSTR);
3249INT WINAPI GetKeyboardLayoutNameW(LPWSTR);
3250#define GetKeyboardLayoutName WINELIB_NAME_AW(GetKeyboardLayoutName)
3251INT16 WINAPI GetKeyState(INT);
3252HWND WINAPI GetLastActivePopup(HWND);
3253HMENU WINAPI GetMenu(HWND);
3254INT WINAPI GetMenuItemCount(HMENU);
3255UINT WINAPI GetMenuItemID(HMENU,INT);
3256BOOL WINAPI GetMenuItemRect(HWND,HMENU,UINT,LPRECT);
3257UINT WINAPI GetMenuState(HMENU,UINT,UINT);
3258INT WINAPI GetMenuStringA(HMENU,UINT,LPSTR,INT,UINT);
3259INT WINAPI GetMenuStringW(HMENU,UINT,LPWSTR,INT,UINT);
3260#define GetMenuString WINELIB_NAME_AW(GetMenuString)
3261BOOL WINAPI GetMessageA(LPMSG,HWND,UINT,UINT);
3262BOOL WINAPI GetMessageW(LPMSG,HWND,UINT,UINT);
3263#define GetMessage WINELIB_NAME_AW(GetMessage)
3264HWND WINAPI GetNextDlgGroupItem(HWND,HWND,BOOL);
3265HWND WINAPI GetNextDlgTabItem(HWND,HWND,BOOL);
3266#define GetNextWindow GetWindow
3267HWND WINAPI GetOpenClipboardWindow(void);
3268HWND WINAPI GetParent(HWND);
3269INT WINAPI GetPriorityClipboardFormat(UINT*,INT);
3270HANDLE WINAPI GetPropA(HWND,LPCSTR);
3271HANDLE WINAPI GetPropW(HWND,LPCWSTR);
3272#define GetProp WINELIB_NAME_AW(GetProp)
3273DWORD WINAPI GetQueueStatus(UINT);
3274BOOL WINAPI GetScrollInfo(HWND,INT,LPSCROLLINFO);
3275INT WINAPI GetScrollPos(HWND,INT);
3276BOOL WINAPI GetScrollRange(HWND,INT,LPINT,LPINT);
3277HWND WINAPI GetShellWindow(void);
3278HMENU WINAPI GetSubMenu(HMENU,INT);
3279COLORREF WINAPI GetSysColor(INT);
3280HBRUSH WINAPI GetSysColorBrush(INT);
3281#define GetSysModalWindow() ((HWND)0)
3282HMENU WINAPI GetSystemMenu(HWND,BOOL);
3283INT WINAPI GetSystemMetrics(INT);
3284DWORD WINAPI GetTabbedTextExtentA(HDC,LPCSTR,INT,INT,INT*);
3285DWORD WINAPI GetTabbedTextExtentW(HDC,LPCWSTR,INT,INT,INT*);
3286#define GetTabbedTextExtent WINELIB_NAME_AW(GetTabbedTextExtent)
3287HWND WINAPI GetTopWindow(HWND);
3288BOOL WINAPI GetUpdateRect(HWND,LPRECT,BOOL);
3289INT WINAPI GetUpdateRgn(HWND,HRGN,BOOL);
3290HWND WINAPI GetWindow(HWND,UINT);
3291HDC WINAPI GetWindowDC(HWND);
3292LONG WINAPI GetWindowLongA(HWND,INT);
3293LONG WINAPI GetWindowLongW(HWND,INT);
3294#define GetWindowLong WINELIB_NAME_AW(GetWindowLong)
3295BOOL WINAPI GetWindowPlacement(HWND,LPWINDOWPLACEMENT);
3296BOOL WINAPI GetWindowRect(HWND,LPRECT);
3297INT WINAPI GetWindowRgn(HWND,HRGN);
3298#define GetWindowTask(hwnd) ((HTASK)GetWindowThreadProcessId(hwnd,NULL))
3299INT WINAPI GetWindowTextA(HWND,LPSTR,INT);
3300INT WINAPI GetWindowTextW(HWND,LPWSTR,INT);
3301#define GetWindowText WINELIB_NAME_AW(GetWindowText)
3302INT WINAPI GetWindowTextLengthA(HWND);
3303INT WINAPI GetWindowTextLengthW(HWND);
3304#define GetWindowTextLength WINELIB_NAME_AW(GetWindowTextLength)
3305WORD WINAPI GetWindowWord(HWND,INT);
3306ATOM WINAPI GlobalAddAtomA(LPCSTR);
3307ATOM WINAPI GlobalAddAtomW(LPCWSTR);
3308#define GlobalAddAtom WINELIB_NAME_AW(GlobalAddAtom)
3309ATOM WINAPI GlobalFindAtomA(LPCSTR);
3310ATOM WINAPI GlobalFindAtomW(LPCWSTR);
3311#define GlobalFindAtom WINELIB_NAME_AW(GlobalFindAtom)
3312UINT WINAPI GlobalGetAtomNameA(ATOM,LPSTR,INT);
3313UINT WINAPI GlobalGetAtomNameW(ATOM,LPWSTR,INT);
3314#define GlobalGetAtomName WINELIB_NAME_AW(GlobalGetAtomName)
3315BOOL WINAPI GrayStringA(HDC,HBRUSH,GRAYSTRINGPROC,LPARAM,
3316 INT,INT,INT,INT,INT);
3317BOOL WINAPI GrayStringW(HDC,HBRUSH,GRAYSTRINGPROC,LPARAM,
3318 INT,INT,INT,INT,INT);
3319#define GrayString WINELIB_NAME_AW(GrayString)
3320BOOL WINAPI HideCaret(HWND);
3321BOOL WINAPI HiliteMenuItem(HWND,HMENU,UINT,UINT);
3322BOOL WINAPI InflateRect(LPRECT,INT,INT);
3323BOOL WINAPI InSendMessage(void);
3324BOOL WINAPI InsertMenuA(HMENU,UINT,UINT,UINT,LPCSTR);
3325BOOL WINAPI InsertMenuW(HMENU,UINT,UINT,UINT,LPCWSTR);
3326#define InsertMenu WINELIB_NAME_AW(InsertMenu)
3327BOOL WINAPI InsertMenuItemA(HMENU,UINT,BOOL,const MENUITEMINFOA*);
3328BOOL WINAPI InsertMenuItemW(HMENU,UINT,BOOL,const MENUITEMINFOW*);
3329#define InsertMenuItem WINELIB_NAME_AW(InsertMenuItem)
3330BOOL WINAPI IntersectRect(LPRECT,const RECT*,const RECT*);
3331BOOL WINAPI InvalidateRect(HWND,const RECT*,BOOL);
3332BOOL WINAPI InvalidateRgn(HWND,HRGN,BOOL);
3333BOOL WINAPI InvertRect(HDC,const RECT*);
3334BOOL WINAPI IsCharAlphaA(CHAR);
3335BOOL WINAPI IsCharAlphaW(WCHAR);
3336#define IsCharAlpha WINELIB_NAME_AW(IsCharAlpha)
3337BOOL WINAPI IsCharAlphaNumericA(CHAR);
3338BOOL WINAPI IsCharAlphaNumericW(WCHAR);
3339#define IsCharAlphaNumeric WINELIB_NAME_AW(IsCharAlphaNumeric)
3340BOOL WINAPI IsCharLowerA(CHAR);
3341BOOL WINAPI IsCharLowerW(WCHAR);
3342#define IsCharLower WINELIB_NAME_AW(IsCharLower)
3343BOOL WINAPI IsCharUpperA(CHAR);
3344BOOL WINAPI IsCharUpperW(WCHAR);
3345#define IsCharUpper WINELIB_NAME_AW(IsCharUpper)
3346BOOL WINAPI IsChild(HWND,HWND);
3347BOOL WINAPI IsClipboardFormatAvailable(UINT);
3348BOOL WINAPI IsDialogMessageA(HWND,LPMSG);
3349BOOL WINAPI IsDialogMessageW(HWND,LPMSG);
3350#define IsDialogMessage WINELIB_NAME_AW(IsDialogMessage)
3351BOOL WINAPI IsDlgButtonChecked(HWND,UINT);
3352BOOL WINAPI IsIconic(HWND);
3353BOOL WINAPI IsMenu(HMENU);
3354BOOL WINAPI IsRectEmpty(const RECT*);
3355BOOL WINAPI IsWindow(HWND);
3356BOOL WINAPI IsWindowEnabled(HWND);
3357BOOL WINAPI IsWindowVisible(HWND);
3358BOOL WINAPI IsZoomed(HWND);
3359BOOL WINAPI KillSystemTimer(HWND,UINT);
3360BOOL WINAPI KillTimer(HWND,UINT);
3361HACCEL WINAPI LoadAcceleratorsA(HINSTANCE,LPCSTR);
3362HACCEL WINAPI LoadAcceleratorsW(HINSTANCE,LPCWSTR);
3363#define LoadAccelerators WINELIB_NAME_AW(LoadAccelerators)
3364HBITMAP WINAPI LoadBitmapA(HANDLE,LPCSTR);
3365HBITMAP WINAPI LoadBitmapW(HANDLE,LPCWSTR);
3366#define LoadBitmap WINELIB_NAME_AW(LoadBitmap)
3367HCURSOR WINAPI LoadCursorA(HINSTANCE,LPCSTR);
3368HCURSOR WINAPI LoadCursorW(HINSTANCE,LPCWSTR);
3369#define LoadCursor WINELIB_NAME_AW(LoadCursor)
3370HCURSOR WINAPI LoadCursorFromFileA(LPCSTR);
3371HCURSOR WINAPI LoadCursorFromFileW(LPCWSTR);
3372#define LoadCursorFromFile WINELIB_NAME_AW(LoadCursorFromFile)
3373HICON WINAPI LoadIconA(HINSTANCE,LPCSTR);
3374HICON WINAPI LoadIconW(HINSTANCE,LPCWSTR);
3375#define LoadIcon WINELIB_NAME_AW(LoadIcon)
3376HANDLE WINAPI LoadImageA(HINSTANCE,LPCSTR,UINT,INT,INT,UINT);
3377HANDLE WINAPI LoadImageW(HINSTANCE,LPCWSTR,UINT,INT,INT,UINT);
3378#define LoadImage WINELIB_NAME_AW(LoadImage)
3379HMENU WINAPI LoadMenuA(HINSTANCE,LPCSTR);
3380HMENU WINAPI LoadMenuW(HINSTANCE,LPCWSTR);
3381#define LoadMenu WINELIB_NAME_AW(LoadMenu)
3382HMENU WINAPI LoadMenuIndirectA(const MENUITEMTEMPLATEHEADER *);
3383HMENU WINAPI LoadMenuIndirectW(const MENUITEMTEMPLATEHEADER *);
3384#define LoadMenuIndirect WINELIB_NAME_AW(LoadMenuIndirect)
3385INT WINAPI LoadStringA(HINSTANCE,UINT,LPSTR,INT);
3386INT WINAPI LoadStringW(HINSTANCE,UINT,LPWSTR,INT);
3387#define LoadString WINELIB_NAME_AW(LoadString)
3388BOOL WINAPI LockWindowUpdate(HWND);
3389INT WINAPI LookupIconIdFromDirectory(LPBYTE,BOOL);
3390INT WINAPI LookupIconIdFromDirectoryEx(LPBYTE,BOOL,INT,INT,UINT);
3391UINT WINAPI MapVirtualKeyA(UINT,UINT);
3392UINT WINAPI MapVirtualKeyW(UINT,UINT);
3393#define MapVirtualKey WINELIB_NAME_AW(MapVirtualKey)
3394UINT WINAPI MapVirtualKeyEx32A(UINT,UINT,HKL);
3395#define MapVirtualKeyEx WINELIB_NAME_AW(MapVirtualKeyEx)
3396BOOL WINAPI MapDialogRect(HWND,LPRECT);
3397INT WINAPI MapWindowPoints(HWND,HWND,LPPOINT,UINT);
3398BOOL WINAPI MessageBeep(UINT);
3399INT WINAPI MessageBoxA(HWND,LPCSTR,LPCSTR,UINT);
3400INT WINAPI MessageBoxW(HWND,LPCWSTR,LPCWSTR,UINT);
3401#define MessageBox WINELIB_NAME_AW(MessageBox)
3402INT WINAPI MessageBoxIndirectA(LPMSGBOXPARAMSA);
3403INT WINAPI MessageBoxIndirectW(LPMSGBOXPARAMSW);
3404#define MessageBoxIndirect WINELIB_NAME_AW(MessageBoxIndirect)
3405BOOL WINAPI ModifyMenuA(HMENU,UINT,UINT,UINT,LPCSTR);
3406BOOL WINAPI ModifyMenuW(HMENU,UINT,UINT,UINT,LPCWSTR);
3407#define ModifyMenu WINELIB_NAME_AW(ModifyMenu)
3408BOOL WINAPI MoveWindow(HWND,INT,INT,INT,INT,BOOL);
3409BOOL WINAPI OemToCharA(LPCSTR,LPSTR);
3410BOOL WINAPI OemToCharW(LPCSTR,LPWSTR);
3411#define OemToChar WINELIB_NAME_AW(OemToChar)
3412BOOL WINAPI OemToCharBuffA(LPCSTR,LPSTR,DWORD);
3413BOOL WINAPI OemToCharBuffW(LPCSTR,LPWSTR,DWORD);
3414#define OemToCharBuff WINELIB_NAME_AW(OemToCharBuff)
3415BOOL WINAPI OffsetRect(LPRECT,INT,INT);
3416BOOL WINAPI OpenClipboard(HWND);
3417BOOL WINAPI OpenIcon(HWND);
3418BOOL WINAPI PeekMessageA(LPMSG,HWND,UINT,UINT,UINT);
3419BOOL WINAPI PeekMessageW(LPMSG,HWND,UINT,UINT,UINT);
3420#define PeekMessage WINELIB_NAME_AW(PeekMessage)
3421#define PostAppMessageA(thread,msg,wparam,lparam) \
3422 PostThreadMessageA((DWORD)(thread),msg,wparam,lparam)
3423#define PostAppMessageW(thread,msg,wparam,lparam) \
3424 PostThreadMessageW((DWORD)(thread),msg,wparam,lparam)
3425#define PostAppMessage WINELIB_NAME_AW(PostAppMessage)
3426BOOL WINAPI PostMessageA(HWND,UINT,WPARAM,LPARAM);
3427BOOL WINAPI PostMessageW(HWND,UINT,WPARAM,LPARAM);
3428#define PostMessage WINELIB_NAME_AW(PostMessage)
3429void WINAPI PostQuitMessage(INT);
3430BOOL WINAPI PtInRect(const RECT*,POINT);
3431BOOL WINAPI RedrawWindow(HWND,const RECT*,HRGN,UINT);
3432ATOM WINAPI RegisterClassA(const WNDCLASSA *);
3433ATOM WINAPI RegisterClassW(const WNDCLASSW *);
3434#define RegisterClass WINELIB_NAME_AW(RegisterClass)
3435ATOM WINAPI RegisterClassExA(const WNDCLASSEXA *);
3436ATOM WINAPI RegisterClassExW(const WNDCLASSEXW *);
3437#define RegisterClassEx WINELIB_NAME_AW(RegisterClassEx)
3438UINT WINAPI RegisterClipboardFormatA(LPCSTR);
3439UINT WINAPI RegisterClipboardFormatW(LPCWSTR);
3440#define RegisterClipboardFormat WINELIB_NAME_AW(RegisterClipboardFormat)
3441UINT WINAPI RegisterWindowMessageA(LPCSTR);
3442UINT WINAPI RegisterWindowMessageW(LPCWSTR);
3443#define RegisterWindowMessage WINELIB_NAME_AW(RegisterWindowMessage)
3444INT WINAPI ReleaseDC(HWND,HDC);
3445BOOL WINAPI RemoveMenu(HMENU,UINT,UINT);
3446HANDLE WINAPI RemovePropA(HWND,LPCSTR);
3447HANDLE WINAPI RemovePropW(HWND,LPCWSTR);
3448#define RemoveProp WINELIB_NAME_AW(RemoveProp)
3449BOOL WINAPI ReplyMessage(LRESULT);
3450BOOL WINAPI ScreenToClient(HWND,LPPOINT);
3451VOID WINAPI ScrollChildren(HWND,UINT,WPARAM,LPARAM);
3452BOOL WINAPI ScrollDC(HDC,INT,INT,const RECT*,const RECT*,
3453 HRGN,LPRECT);
3454BOOL WINAPI ScrollWindow(HWND,INT,INT,const RECT*,const RECT*);
3455INT WINAPI ScrollWindowEx(HWND,INT,INT,const RECT*,
3456 const RECT*,HRGN,LPRECT,UINT);
3457LRESULT WINAPI SendDlgItemMessageA(HWND,INT,UINT,WPARAM,LPARAM);
3458LRESULT WINAPI SendDlgItemMessageW(HWND,INT,UINT,WPARAM,LPARAM);
3459#define SendDlgItemMessage WINELIB_NAME_AW(SendDlgItemMessage)
3460LRESULT WINAPI SendMessageA(HWND,UINT,WPARAM,LPARAM);
3461LRESULT WINAPI SendMessageW(HWND,UINT,WPARAM,LPARAM);
3462#define SendMessage WINELIB_NAME_AW(SendMessage)
3463LRESULT WINAPI SendMessageTimeoutA(HWND,UINT,WPARAM,LPARAM,UINT,
3464 UINT,LPDWORD);
3465LRESULT WINAPI SendMessageTimeoutW(HWND,UINT,WPARAM,LPARAM,UINT,
3466 UINT,LPDWORD);
3467#define SendMessageTimeout WINELIB_NAME_AW(SendMessageTimeout)
3468HWND WINAPI SetActiveWindow(HWND);
3469HWND WINAPI SetCapture(HWND);
3470BOOL WINAPI SetCaretBlinkTime(UINT);
3471BOOL WINAPI SetCaretPos(INT,INT);
3472LONG WINAPI SetClassLongA(HWND,INT,LONG);
3473LONG WINAPI SetClassLongW(HWND,INT,LONG);
3474#define SetClassLong WINELIB_NAME_AW(SetClassLong)
3475WORD WINAPI SetClassWord(HWND,INT,WORD);
3476HANDLE WINAPI SetClipboardData(UINT,HANDLE);
3477HWND WINAPI SetClipboardViewer(HWND);
3478BOOL WINAPI SetCommBreak(HANDLE);
3479HCURSOR WINAPI SetCursor(HCURSOR);
3480BOOL WINAPI SetCursorPos(INT,INT);
3481BOOL WINAPI SetDeskWallPaper(LPCSTR);
3482BOOL WINAPI SetDlgItemInt(HWND,INT,UINT,BOOL);
3483BOOL WINAPI SetDlgItemTextA(HWND,INT,LPCSTR);
3484BOOL WINAPI SetDlgItemTextW(HWND,INT,LPCWSTR);
3485#define SetDlgItemText WINELIB_NAME_AW(SetDlgItemText)
3486BOOL WINAPI SetDoubleClickTime(UINT);
3487HWND WINAPI SetFocus(HWND);
3488BOOL WINAPI SetForegroundWindow(HWND);
3489void WINAPI SetInternalWindowPos(HWND,UINT,LPRECT,LPPOINT);
3490BOOL WINAPI SetMenu(HWND,HMENU);
3491BOOL WINAPI SetMenuContextHelpId(HMENU,DWORD);
3492BOOL WINAPI SetMenuItemBitmaps(HMENU,UINT,UINT,HBITMAP,HBITMAP);
3493BOOL WINAPI SetMessageQueue(INT);
3494HWND WINAPI SetParent(HWND,HWND);
3495BOOL WINAPI SetPropA(HWND,LPCSTR,HANDLE);
3496BOOL WINAPI SetPropW(HWND,LPCWSTR,HANDLE);
3497#define SetProp WINELIB_NAME_AW(SetProp)
3498BOOL WINAPI SetRect(LPRECT,INT,INT,INT,INT);
3499BOOL WINAPI SetRectEmpty(LPRECT);
3500INT WINAPI SetScrollInfo(HWND,INT,const SCROLLINFO*,BOOL);
3501INT WINAPI SetScrollPos(HWND,INT,INT,BOOL);
3502BOOL WINAPI SetScrollRange(HWND,INT,INT,INT,BOOL);
3503BOOL WINAPI SetSysColors(INT,const INT*,const COLORREF*);
3504#define SetSysModalWindow(hwnd) ((HWND)0)
3505BOOL WINAPI SetSystemCursor(HCURSOR,DWORD);
3506BOOL WINAPI SetSystemMenu(HWND,HMENU);
3507UINT WINAPI SetSystemTimer(HWND,UINT,UINT,TIMERPROC);
3508UINT WINAPI SetTimer(HWND,UINT,UINT,TIMERPROC);
3509LONG WINAPI SetWindowLongA(HWND,INT,LONG);
3510LONG WINAPI SetWindowLongW(HWND,INT,LONG);
3511#define SetWindowLong WINELIB_NAME_AW(SetWindowLong)
3512BOOL WINAPI SetWindowPlacement(HWND,const WINDOWPLACEMENT*);
3513HHOOK WINAPI SetWindowsHookA(INT,HOOKPROC);
3514HHOOK WINAPI SetWindowsHookW(INT,HOOKPROC);
3515#define SetWindowsHook WINELIB_NAME_AW(SetWindowsHook)
3516HHOOK WINAPI SetWindowsHookExA(INT,HOOKPROC,HINSTANCE,DWORD);
3517HHOOK WINAPI SetWindowsHookExW(INT,HOOKPROC,HINSTANCE,DWORD);
3518#define SetWindowsHookEx WINELIB_NAME_AW(SetWindowsHookEx)
3519BOOL WINAPI SetWindowPos(HWND,HWND,INT,INT,INT,INT,UINT);
3520INT WINAPI SetWindowRgn(HWND,HRGN,BOOL);
3521BOOL WINAPI SetWindowTextA(HWND,LPCSTR);
3522BOOL WINAPI SetWindowTextW(HWND,LPCWSTR);
3523#define SetWindowText WINELIB_NAME_AW(SetWindowText)
3524WORD WINAPI SetWindowWord(HWND,INT,WORD);
3525BOOL WINAPI ShowCaret(HWND);
3526INT WINAPI ShowCursor(BOOL);
3527BOOL WINAPI ShowScrollBar(HWND,INT,BOOL);
3528BOOL WINAPI ShowOwnedPopups(HWND,BOOL);
3529BOOL WINAPI ShowWindow(HWND,INT);
3530BOOL WINAPI SubtractRect(LPRECT,const RECT*,const RECT*);
3531BOOL WINAPI SwapMouseButton(BOOL);
3532BOOL WINAPI SwitchToThisWindow(HWND,BOOL);
3533BOOL WINAPI SystemParametersInfoA(UINT,UINT,LPVOID,UINT);
3534BOOL WINAPI SystemParametersInfoW(UINT,UINT,LPVOID,UINT);
3535#define SystemParametersInfo WINELIB_NAME_AW(SystemParametersInfo)
3536LONG WINAPI TabbedTextOutA(HDC,INT,INT,LPCSTR,INT,INT,INT*,INT);
3537LONG WINAPI TabbedTextOutW(HDC,INT,INT,LPCWSTR,INT,INT,INT*,INT);
3538#define TabbedTextOut WINELIB_NAME_AW(TabbedTextOut)
3539INT WINAPI ToAscii(UINT,UINT,LPBYTE,LPWORD,UINT);
3540INT WINAPI ToAsciiEx(UINT,UINT,LPBYTE,LPWORD,UINT,HKL);
3541BOOL WINAPI TrackPopupMenu(HMENU,UINT,INT,INT,INT,HWND,const RECT*);
3542INT WINAPI TranslateAccelerator(HWND,HACCEL,LPMSG);
3543BOOL WINAPI TranslateMDISysAccel(HWND,LPMSG);
3544BOOL WINAPI TranslateMessage(const MSG*);
3545BOOL WINAPI UnhookWindowsHook(INT,HOOKPROC);
3546BOOL WINAPI UnhookWindowsHookEx(HHOOK);
3547BOOL WINAPI UnionRect(LPRECT,const RECT*,const RECT*);
3548BOOL WINAPI UnregisterClassA(LPCSTR,HINSTANCE);
3549BOOL WINAPI UnregisterClassW(LPCWSTR,HINSTANCE);
3550BOOL WINAPI UpdateWindow(HWND);
3551BOOL WINAPI ValidateRect(HWND,const RECT*);
3552BOOL WINAPI ValidateRgn(HWND,HRGN);
3553WORD WINAPI VkKeyScanA(CHAR);
3554WORD WINAPI VkKeyScanW(WCHAR);
3555#define VkKeyScan WINELIB_NAME_AW(VkKeyScan)
3556WORD WINAPI VkKeyScanExA(CHAR, HKL);
3557WORD WINAPI VkKeyScanExW(WCHAR, HKL);
3558#define VkKeyScanEx WINELIB_NAME_AW(VkKeyScanEx)
3559HWND WINAPI WindowFromDC(HDC);
3560HWND WINAPI WindowFromPoint(POINT);
3561BOOL WINAPI WinHelpA(HWND,LPCSTR,UINT,DWORD);
3562BOOL WINAPI WinHelpW(HWND,LPCWSTR,UINT,DWORD);
3563#define WinHelp WINELIB_NAME_AW(WinHelp)
3564UINT WINAPI WNetAddConnectionA(LPCSTR,LPCSTR,LPCSTR);
3565UINT WINAPI WNetAddConnectionW(LPCWSTR,LPCWSTR,LPCWSTR);
3566#define WNetAddConnection WINELIB_NAME_AW(WNetAddConnection)
3567INT WINAPIV wsnprintfA(LPSTR,UINT,LPCSTR,...);
3568INT WINAPIV wsnprintfW(LPWSTR,UINT,LPCWSTR,...);
3569#define wsnprintf WINELIB_NAME_AW(wsnprintf)
3570INT WINAPIV wsprintfA(LPSTR,LPCSTR,...);
3571INT WINAPIV wsprintfW(LPWSTR,LPCWSTR,...);
3572#define wsprintf WINELIB_NAME_AW(wsprintf)
3573INT WINAPI wvsnprintfA(LPSTR,UINT,LPCSTR,va_list);
3574INT WINAPI wvsnprintfW(LPWSTR,UINT,LPCWSTR,va_list);
3575#define wvsnprintf WINELIB_NAME_AW(wvsnprintf)
3576INT WINAPI wvsprintfA(LPSTR,LPCSTR,va_list);
3577INT WINAPI wvsprintfW(LPWSTR,LPCWSTR,va_list);
3578
3579BOOL WINAPI RegisterShellHook16(HWND16,UINT16);
3580/* NOTE: This is SYSTEM.3, not USER.182, which is also named KillSystemTimer */
3581WORD WINAPI SYSTEM_KillSystemTimer( WORD );
3582
3583/* Extra functions that don't exist in the Windows API */
3584
3585HPEN WINAPI GetSysColorPen(INT);
3586INT WINAPI LoadMessageA(HMODULE,UINT,WORD,LPSTR,INT);
3587INT WINAPI LoadMessageW(HMODULE,UINT,WORD,LPWSTR,INT);
3588
3589VOID WINAPI ScreenSwitchEnable16(WORD);
3590
3591INT WINAPI NativeDlgBoxIP(HMODULE,HINSTANCE,LPCSTR,HWND,DLGPROC,LPARAM);
3592INT WINAPI NativeCreateDlgIP(HMODULE,HINSTANCE,LPCSTR,HWND,DLGPROC,LPARAM);
3593HBITMAP WINAPI NativeLoadBitmap(HINSTANCE hInstance,LPCTSTR lpBitmapName);
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.