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

Last change on this file since 7804 was 7804, checked in by sandervl, 24 years ago

* empty log message *

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