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

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

added SWP_ASYNCWINDOWPOS

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