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

Last change on this file since 6858 was 6858, checked in by phaller, 24 years ago

added NT/2000/XP low level hooks

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