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

Last change on this file since 8385 was 8385, checked in by sandervl, 23 years ago

header updates

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