Optimized include/*.h: (recursively) include all headers needed by
[wine/testsucceed.git] / include / winuser.h
blob34df8e5eb8a700dfbc666a07ac354a28bdc2f6e2
1 #ifndef __INCLUDE_WINUSER_H
2 #define __INCLUDE_WINUSER_H
4 #ifndef RC_INVOKED
5 #include <stdarg.h>
6 #endif
7 #include "wintypes.h"
8 #include "wingdi.h"
9 #include "wine/winestring.h"
11 #pragma pack(1)
13 /* flags for HIGHCONTRAST dwFlags field */
14 #define HCF_HIGHCONTRASTON 0x00000001
15 #define HCF_AVAILABLE 0x00000002
16 #define HCF_HOTKEYACTIVE 0x00000004
17 #define HCF_CONFIRMHOTKEY 0x00000008
18 #define HCF_HOTKEYSOUND 0x00000010
19 #define HCF_INDICATOR 0x00000020
20 #define HCF_HOTKEYAVAILABLE 0x00000040
22 typedef struct tagHIGHCONTRAST32A
24 UINT32 cbSize;
25 DWORD dwFlags;
26 LPSTR lpszDefaultScheme;
27 } HIGHCONTRAST32A, *LPHIGHCONTRAST32A;
29 typedef struct tagHIGHCONTRAST32W
31 UINT32 cbSize;
32 DWORD dwFlags;
33 LPWSTR lpszDefaultScheme;
34 } HIGHCONTRAST32W, *LPHIGHCONTRAST32W;
36 DECL_WINELIB_TYPE_AW(HIGHCONTRAST)
37 DECL_WINELIB_TYPE_AW(LPHIGHCONTRAST)
39 typedef struct
41 UINT32 message;
42 UINT32 paramL;
43 UINT32 paramH;
44 DWORD time;
45 HWND32 hwnd;
46 } EVENTMSG32, *LPEVENTMSG32;
48 DECL_WINELIB_TYPE(EVENTMSG)
49 DECL_WINELIB_TYPE(LPEVENTMSG)
51 /* Mouse hook structure */
53 typedef struct
55 POINT32 pt;
56 HWND32 hwnd;
57 UINT32 wHitTestCode;
58 DWORD dwExtraInfo;
59 } MOUSEHOOKSTRUCT32, *PMOUSEHOOKSTRUCT32, *LPMOUSEHOOKSTRUCT32;
61 DECL_WINELIB_TYPE(MOUSEHOOKSTRUCT)
62 DECL_WINELIB_TYPE(PMOUSEHOOKSTRUCT)
63 DECL_WINELIB_TYPE(LPMOUSEHOOKSTRUCT)
65 /* Hardware hook structure */
67 typedef struct
69 HWND32 hWnd;
70 UINT32 wMessage;
71 WPARAM32 wParam;
72 LPARAM lParam;
73 } HARDWAREHOOKSTRUCT32, *LPHARDWAREHOOKSTRUCT32;
75 DECL_WINELIB_TYPE(HARDWAREHOOKSTRUCT)
76 DECL_WINELIB_TYPE(LPHARDWAREHOOKSTRUCT)
78 /* Debug hook structure */
80 typedef struct
82 DWORD idThread;
83 DWORD idThreadInstaller;
84 LPARAM lParam;
85 WPARAM32 wParam;
86 INT32 code;
87 } DEBUGHOOKINFO32, *LPDEBUGHOOKINFO32;
89 DECL_WINELIB_TYPE(DEBUGHOOKINFO)
90 DECL_WINELIB_TYPE(LPDEBUGHOOKINFO)
92 /***** Dialogs *****/
93 #ifdef FSHIFT
94 /* Gcc on Solaris has a version of this that we don't care about. */
95 #undef FSHIFT
96 #endif
98 #define FVIRTKEY TRUE /* Assumed to be == TRUE */
99 #define FNOINVERT 0x02
100 #define FSHIFT 0x04
101 #define FCONTROL 0x08
102 #define FALT 0x10
105 typedef struct tagANIMATIONINFO
107 UINT32 cbSize;
108 INT32 iMinAnimate;
109 } ANIMATIONINFO, *LPANIMATIONINFO;
111 typedef struct tagNMHDR
113 HWND32 hwndFrom;
114 UINT32 idFrom;
115 UINT32 code;
116 } NMHDR, *LPNMHDR;
118 typedef struct
120 UINT32 cbSize;
121 INT32 iTabLength;
122 INT32 iLeftMargin;
123 INT32 iRightMargin;
124 UINT32 uiLengthDrawn;
125 } DRAWTEXTPARAMS,*LPDRAWTEXTPARAMS;
127 #define WM_USER 0x0400
129 typedef struct
131 UINT32 length;
132 UINT32 flags;
133 UINT32 showCmd;
134 POINT32 ptMinPosition WINE_PACKED;
135 POINT32 ptMaxPosition WINE_PACKED;
136 RECT32 rcNormalPosition WINE_PACKED;
137 } WINDOWPLACEMENT32, *LPWINDOWPLACEMENT32;
139 DECL_WINELIB_TYPE(WINDOWPLACEMENT)
140 DECL_WINELIB_TYPE(LPWINDOWPLACEMENT)
142 /* WINDOWPLACEMENT flags */
143 #define WPF_SETMINPOSITION 0x0001
144 #define WPF_RESTORETOMAXIMIZED 0x0002
146 /***** Dialogs *****/
148 /* cbWndExtra bytes for dialog class */
149 #define DLGWINDOWEXTRA 30
151 /* Button control styles */
152 #define BS_PUSHBUTTON 0x00000000L
153 #define BS_DEFPUSHBUTTON 0x00000001L
154 #define BS_CHECKBOX 0x00000002L
155 #define BS_AUTOCHECKBOX 0x00000003L
156 #define BS_RADIOBUTTON 0x00000004L
157 #define BS_3STATE 0x00000005L
158 #define BS_AUTO3STATE 0x00000006L
159 #define BS_GROUPBOX 0x00000007L
160 #define BS_USERBUTTON 0x00000008L
161 #define BS_AUTORADIOBUTTON 0x00000009L
162 #define BS_OWNERDRAW 0x0000000BL
163 #define BS_LEFTTEXT 0x00000020L
165 /* Dialog styles */
166 #define DS_ABSALIGN 0x0001
167 #define DS_SYSMODAL 0x0002
168 #define DS_3DLOOK 0x0004 /* win95 */
169 #define DS_FIXEDSYS 0x0008 /* win95 */
170 #define DS_NOFAILCREATE 0x0010 /* win95 */
171 #define DS_LOCALEDIT 0x0020
172 #define DS_SETFONT 0x0040
173 #define DS_MODALFRAME 0x0080
174 #define DS_NOIDLEMSG 0x0100
175 #define DS_SETFOREGROUND 0x0200 /* win95 */
176 #define DS_CONTROL 0x0400 /* win95 */
177 #define DS_CENTER 0x0800 /* win95 */
178 #define DS_CENTERMOUSE 0x1000 /* win95 */
179 #define DS_CONTEXTHELP 0x2000 /* win95 */
182 /* Dialog messages */
183 #define DM_GETDEFID (WM_USER+0)
184 #define DM_SETDEFID (WM_USER+1)
186 #define DC_HASDEFID 0x534b
188 /* Owner draw control types */
189 #define ODT_MENU 1
190 #define ODT_LISTBOX 2
191 #define ODT_COMBOBOX 3
192 #define ODT_BUTTON 4
194 /* Owner draw actions */
195 #define ODA_DRAWENTIRE 0x0001
196 #define ODA_SELECT 0x0002
197 #define ODA_FOCUS 0x0004
199 /* Owner draw state */
200 #define ODS_SELECTED 0x0001
201 #define ODS_GRAYED 0x0002
202 #define ODS_DISABLED 0x0004
203 #define ODS_CHECKED 0x0008
204 #define ODS_FOCUS 0x0010
206 /* Edit control styles */
207 #define ES_LEFT 0x00000000
208 #define ES_CENTER 0x00000001
209 #define ES_RIGHT 0x00000002
210 #define ES_MULTILINE 0x00000004
211 #define ES_UPPERCASE 0x00000008
212 #define ES_LOWERCASE 0x00000010
213 #define ES_PASSWORD 0x00000020
214 #define ES_AUTOVSCROLL 0x00000040
215 #define ES_AUTOHSCROLL 0x00000080
216 #define ES_NOHIDESEL 0x00000100
217 #define ES_OEMCONVERT 0x00000400
218 #define ES_READONLY 0x00000800
219 #define ES_WANTRETURN 0x00001000
220 #define ES_NUMBER 0x00002000
222 /* OEM Resource Ordinal Numbers */
223 #define OBM_CLOSE 32754
224 #define OBM_UPARROW 32753
225 #define OBM_DNARROW 32752
226 #define OBM_RGARROW 32751
227 #define OBM_LFARROW 32750
228 #define OBM_REDUCE 32749
229 #define OBM_ZOOM 32748
230 #define OBM_RESTORE 32747
231 #define OBM_REDUCED 32746
232 #define OBM_ZOOMD 32745
233 #define OBM_RESTORED 32744
234 #define OBM_UPARROWD 32743
235 #define OBM_DNARROWD 32742
236 #define OBM_RGARROWD 32741
237 #define OBM_LFARROWD 32740
238 #define OBM_MNARROW 32739
239 #define OBM_COMBO 32738
240 #define OBM_UPARROWI 32737
241 #define OBM_DNARROWI 32736
242 #define OBM_RGARROWI 32735
243 #define OBM_LFARROWI 32734
245 #define OBM_FOLDER 32733
246 #define OBM_FOLDER2 32732
247 #define OBM_FLOPPY 32731
248 #define OBM_HDISK 32730
249 #define OBM_CDROM 32729
250 #define OBM_TRTYPE 32728
252 /* Wine extension, I think. */
253 #define OBM_RADIOCHECK 32727
255 #define OBM_OLD_CLOSE 32767
256 #define OBM_SIZE 32766
257 #define OBM_OLD_UPARROW 32765
258 #define OBM_OLD_DNARROW 32764
259 #define OBM_OLD_RGARROW 32763
260 #define OBM_OLD_LFARROW 32762
261 #define OBM_BTSIZE 32761
262 #define OBM_CHECK 32760
263 #define OBM_CHECKBOXES 32759
264 #define OBM_BTNCORNERS 32758
265 #define OBM_OLD_REDUCE 32757
266 #define OBM_OLD_ZOOM 32756
267 #define OBM_OLD_RESTORE 32755
269 #define OCR_BUMMER 100
270 #define OCR_DRAGOBJECT 101
272 #define OCR_NORMAL 32512
273 #define OCR_IBEAM 32513
274 #define OCR_WAIT 32514
275 #define OCR_CROSS 32515
276 #define OCR_UP 32516
277 #define OCR_SIZE 32640
278 #define OCR_ICON 32641
279 #define OCR_SIZENWSE 32642
280 #define OCR_SIZENESW 32643
281 #define OCR_SIZEWE 32644
282 #define OCR_SIZENS 32645
283 #define OCR_SIZEALL 32646
284 #define OCR_ICOCUR 32647
285 #define OCR_NO 32648
286 #define OCR_APPSTARTING 32650
287 #define OCR_HELP 32651 /* only defined in wine */
289 #define OIC_SAMPLE 32512
290 #define OIC_HAND 32513
291 #define OIC_QUES 32514
292 #define OIC_BANG 32515
293 #define OIC_NOTE 32516
294 #define OIC_PORTRAIT 32517
295 #define OIC_LANDSCAPE 32518
296 #define OIC_WINEICON 32519
298 /* Edit control messages */
299 #define EM_GETSEL32 0x00b0
300 #define EM_GETSEL WINELIB_NAME(EM_GETSEL)
301 #define EM_SETSEL32 0x00b1
302 #define EM_SETSEL WINELIB_NAME(EM_SETSEL)
303 #define EM_GETRECT32 0x00b2
304 #define EM_GETRECT WINELIB_NAME(EM_GETRECT)
305 #define EM_SETRECT32 0x00b3
306 #define EM_SETRECT WINELIB_NAME(EM_SETRECT)
307 #define EM_SETRECTNP32 0x00b4
308 #define EM_SETRECTNP WINELIB_NAME(EM_SETRECTNP)
309 #define EM_SCROLL32 0x00b5
310 #define EM_SCROLL WINELIB_NAME(EM_SCROLL)
311 #define EM_LINESCROLL32 0x00b6
312 #define EM_LINESCROLL WINELIB_NAME(EM_LINESCROLL)
313 #define EM_SCROLLCARET32 0x00b7
314 #define EM_SCROLLCARET WINELIB_NAME(EM_SCROLLCARET)
315 #define EM_GETMODIFY32 0x00b8
316 #define EM_GETMODIFY WINELIB_NAME(EM_GETMODIFY)
317 #define EM_SETMODIFY32 0x00b9
318 #define EM_SETMODIFY WINELIB_NAME(EM_SETMODIFY)
319 #define EM_GETLINECOUNT32 0x00ba
320 #define EM_GETLINECOUNT WINELIB_NAME(EM_GETLINECOUNT)
321 #define EM_LINEINDEX32 0x00bb
322 #define EM_LINEINDEX WINELIB_NAME(EM_LINEINDEX)
323 #define EM_SETHANDLE32 0x00bc
324 #define EM_SETHANDLE WINELIB_NAME(EM_SETHANDLE)
325 #define EM_GETHANDLE32 0x00bd
326 #define EM_GETHANDLE WINELIB_NAME(EM_GETHANDLE)
327 #define EM_GETTHUMB32 0x00be
328 #define EM_GETTHUMB WINELIB_NAME(EM_GETTHUMB)
329 /* FIXME : missing from specs 0x00bf and 0x00c0 */
330 #define EM_LINELENGTH32 0x00c1
331 #define EM_LINELENGTH WINELIB_NAME(EM_LINELENGTH)
332 #define EM_REPLACESEL32 0x00c2
333 #define EM_REPLACESEL WINELIB_NAME(EM_REPLACESEL)
334 /* FIXME : missing from specs 0x00c3 */
335 #define EM_GETLINE32 0x00c4
336 #define EM_GETLINE WINELIB_NAME(EM_GETLINE)
337 #define EM_LIMITTEXT32 0x00c5
338 #define EM_LIMITTEXT WINELIB_NAME(EM_LIMITTEXT)
339 #define EM_CANUNDO32 0x00c6
340 #define EM_CANUNDO WINELIB_NAME(EM_CANUNDO)
341 #define EM_UNDO32 0x00c7
342 #define EM_UNDO WINELIB_NAME(EM_UNDO)
343 #define EM_FMTLINES32 0x00c8
344 #define EM_FMTLINES WINELIB_NAME(EM_FMTLINES)
345 #define EM_LINEFROMCHAR32 0x00c9
346 #define EM_LINEFROMCHAR WINELIB_NAME(EM_LINEFROMCHAR)
347 /* FIXME : missing from specs 0x00ca */
348 #define EM_SETTABSTOPS32 0x00cb
349 #define EM_SETTABSTOPS WINELIB_NAME(EM_SETTABSTOPS)
350 #define EM_SETPASSWORDCHAR32 0x00cc
351 #define EM_SETPASSWORDCHAR WINELIB_NAME(EM_SETPASSWORDCHAR)
352 #define EM_EMPTYUNDOBUFFER32 0x00cd
353 #define EM_EMPTYUNDOBUFFER WINELIB_NAME(EM_EMPTYUNDOBUFFER)
354 #define EM_GETFIRSTVISIBLELINE32 0x00ce
355 #define EM_GETFIRSTVISIBLELINE WINELIB_NAME(EM_GETFIRSTVISIBLELINE)
356 #define EM_SETREADONLY32 0x00cf
357 #define EM_SETREADONLY WINELIB_NAME(EM_SETREADONLY)
358 #define EM_SETWORDBREAKPROC32 0x00d0
359 #define EM_SETWORDBREAKPROC WINELIB_NAME(EM_SETWORDBREAKPROC)
360 #define EM_GETWORDBREAKPROC32 0x00d1
361 #define EM_GETWORDBREAKPROC WINELIB_NAME(EM_GETWORDBREAKPROC)
362 #define EM_GETPASSWORDCHAR32 0x00d2
363 #define EM_GETPASSWORDCHAR WINELIB_NAME(EM_GETPASSWORDCHAR)
364 #define EM_SETMARGINS32 0x00d3
365 #define EM_SETMARGINS WINELIB_NAME(EM_SETMARGINS)
366 #define EM_GETMARGINS32 0x00d4
367 #define EM_GETMARGINS WINELIB_NAME(EM_GETMARGINS)
368 #define EM_GETLIMITTEXT32 0x00d5
369 #define EM_GETLIMITTEXT WINELIB_NAME(EM_GETLIMITTEXT)
370 #define EM_POSFROMCHAR32 0x00d6
371 #define EM_POSFROMCHAR WINELIB_NAME(EM_POSFROMCHAR)
372 #define EM_CHARFROMPOS32 0x00d7
373 #define EM_CHARFROMPOS WINELIB_NAME(EM_CHARFROMPOS)
374 /* a name change since win95 */
375 #define EM_SETLIMITTEXT32 EM_LIMITTEXT32
376 #define EM_SETLIMITTEXT WINELIB_NAME(EM_SETLIMITTEXT)
378 /* EDITWORDBREAKPROC code values */
379 #define WB_LEFT 0
380 #define WB_RIGHT 1
381 #define WB_ISDELIMITER 2
383 /* Edit control notification codes */
384 #define EN_SETFOCUS 0x0100
385 #define EN_KILLFOCUS 0x0200
386 #define EN_CHANGE 0x0300
387 #define EN_UPDATE 0x0400
388 #define EN_ERRSPACE 0x0500
389 #define EN_MAXTEXT 0x0501
390 #define EN_HSCROLL 0x0601
391 #define EN_VSCROLL 0x0602
393 /* New since win95 : EM_SETMARGIN parameters */
394 #define EC_LEFTMARGIN 0x0001
395 #define EC_RIGHTMARGIN 0x0002
396 #define EC_USEFONTINFO 0xffff
399 /* Messages */
401 /* WM_GETDLGCODE values */
404 #define WM_NULL 0x0000
405 #define WM_CREATE 0x0001
406 #define WM_DESTROY 0x0002
407 #define WM_MOVE 0x0003
408 #define WM_SIZEWAIT 0x0004
409 #define WM_SIZE 0x0005
410 #define WM_ACTIVATE 0x0006
411 #define WM_SETFOCUS 0x0007
412 #define WM_KILLFOCUS 0x0008
413 #define WM_SETVISIBLE 0x0009
414 #define WM_ENABLE 0x000a
415 #define WM_SETREDRAW 0x000b
416 #define WM_SETTEXT 0x000c
417 #define WM_GETTEXT 0x000d
418 #define WM_GETTEXTLENGTH 0x000e
419 #define WM_PAINT 0x000f
420 #define WM_CLOSE 0x0010
421 #define WM_QUERYENDSESSION 0x0011
422 #define WM_QUIT 0x0012
423 #define WM_QUERYOPEN 0x0013
424 #define WM_ERASEBKGND 0x0014
425 #define WM_SYSCOLORCHANGE 0x0015
426 #define WM_ENDSESSION 0x0016
427 #define WM_SYSTEMERROR 0x0017
428 #define WM_SHOWWINDOW 0x0018
429 #define WM_CTLCOLOR 0x0019
430 #define WM_WININICHANGE 0x001a
431 #define WM_SETTINGCHANGE WM_WININICHANGE
432 #define WM_DEVMODECHANGE 0x001b
433 #define WM_ACTIVATEAPP 0x001c
434 #define WM_FONTCHANGE 0x001d
435 #define WM_TIMECHANGE 0x001e
436 #define WM_CANCELMODE 0x001f
437 #define WM_SETCURSOR 0x0020
438 #define WM_MOUSEACTIVATE 0x0021
439 #define WM_CHILDACTIVATE 0x0022
440 #define WM_QUEUESYNC 0x0023
441 #define WM_GETMINMAXINFO 0x0024
443 #define WM_PAINTICON 0x0026
444 #define WM_ICONERASEBKGND 0x0027
445 #define WM_NEXTDLGCTL 0x0028
446 #define WM_ALTTABACTIVE 0x0029
447 #define WM_SPOOLERSTATUS 0x002a
448 #define WM_DRAWITEM 0x002b
449 #define WM_MEASUREITEM 0x002c
450 #define WM_DELETEITEM 0x002d
451 #define WM_VKEYTOITEM 0x002e
452 #define WM_CHARTOITEM 0x002f
453 #define WM_SETFONT 0x0030
454 #define WM_GETFONT 0x0031
455 #define WM_SETHOTKEY 0x0032
456 #define WM_GETHOTKEY 0x0033
457 #define WM_FILESYSCHANGE 0x0034
458 #define WM_ISACTIVEICON 0x0035
459 #define WM_QUERYPARKICON 0x0036
460 #define WM_QUERYDRAGICON 0x0037
461 #define WM_QUERYSAVESTATE 0x0038
462 #define WM_COMPAREITEM 0x0039
463 #define WM_TESTING 0x003a
465 #define WM_OTHERWINDOWCREATED 0x003c
466 #define WM_OTHERWINDOWDESTROYED 0x003d
467 #define WM_ACTIVATESHELLWINDOW 0x003e
469 #define WM_COMPACTING 0x0041
471 #define WM_COMMNOTIFY 0x0044
472 #define WM_WINDOWPOSCHANGING 0x0046
473 #define WM_WINDOWPOSCHANGED 0x0047
474 #define WM_POWER 0x0048
476 /* Win32 4.0 messages */
477 #define WM_COPYDATA 0x004a
478 #define WM_CANCELJOURNAL 0x004b
479 #define WM_NOTIFY 0x004e
480 #define WM_HELP 0x0053
481 #define WM_NOTIFYFORMAT 0x0055
483 #define WM_CONTEXTMENU 0x007b
484 #define WM_STYLECHANGING 0x007c
485 #define WM_STYLECHANGED 0x007d
486 #define WM_DISPLAYCHANGE 0x007e
487 #define WM_GETICON 0x007f
488 #define WM_SETICON 0x0080
490 /* Non-client system messages */
491 #define WM_NCCREATE 0x0081
492 #define WM_NCDESTROY 0x0082
493 #define WM_NCCALCSIZE 0x0083
494 #define WM_NCHITTEST 0x0084
495 #define WM_NCPAINT 0x0085
496 #define WM_NCACTIVATE 0x0086
498 #define WM_GETDLGCODE 0x0087
499 #define WM_SYNCPAINT 0x0088
500 #define WM_SYNCTASK 0x0089
502 /* Non-client mouse messages */
503 #define WM_NCMOUSEMOVE 0x00a0
504 #define WM_NCLBUTTONDOWN 0x00a1
505 #define WM_NCLBUTTONUP 0x00a2
506 #define WM_NCLBUTTONDBLCLK 0x00a3
507 #define WM_NCRBUTTONDOWN 0x00a4
508 #define WM_NCRBUTTONUP 0x00a5
509 #define WM_NCRBUTTONDBLCLK 0x00a6
510 #define WM_NCMBUTTONDOWN 0x00a7
511 #define WM_NCMBUTTONUP 0x00a8
512 #define WM_NCMBUTTONDBLCLK 0x00a9
514 /* Keyboard messages */
515 #define WM_KEYDOWN 0x0100
516 #define WM_KEYUP 0x0101
517 #define WM_CHAR 0x0102
518 #define WM_DEADCHAR 0x0103
519 #define WM_SYSKEYDOWN 0x0104
520 #define WM_SYSKEYUP 0x0105
521 #define WM_SYSCHAR 0x0106
522 #define WM_SYSDEADCHAR 0x0107
523 #define WM_KEYFIRST WM_KEYDOWN
524 #define WM_KEYLAST 0x0108
526 #define WM_INITDIALOG 0x0110
527 #define WM_COMMAND 0x0111
528 #define WM_SYSCOMMAND 0x0112
529 #define WM_TIMER 0x0113
530 #define WM_SYSTIMER 0x0118
532 /* scroll messages */
533 #define WM_HSCROLL 0x0114
534 #define WM_VSCROLL 0x0115
536 /* Menu messages */
537 #define WM_INITMENU 0x0116
538 #define WM_INITMENUPOPUP 0x0117
540 #define WM_MENUSELECT 0x011F
541 #define WM_MENUCHAR 0x0120
542 #define WM_ENTERIDLE 0x0121
544 #define WM_LBTRACKPOINT 0x0131
546 /* Win32 CTLCOLOR messages */
547 #define WM_CTLCOLORMSGBOX 0x0132
548 #define WM_CTLCOLOREDIT 0x0133
549 #define WM_CTLCOLORLISTBOX 0x0134
550 #define WM_CTLCOLORBTN 0x0135
551 #define WM_CTLCOLORDLG 0x0136
552 #define WM_CTLCOLORSCROLLBAR 0x0137
553 #define WM_CTLCOLORSTATIC 0x0138
555 /* Mouse messages */
556 #define WM_MOUSEMOVE 0x0200
557 #define WM_LBUTTONDOWN 0x0201
558 #define WM_LBUTTONUP 0x0202
559 #define WM_LBUTTONDBLCLK 0x0203
560 #define WM_RBUTTONDOWN 0x0204
561 #define WM_RBUTTONUP 0x0205
562 #define WM_RBUTTONDBLCLK 0x0206
563 #define WM_MBUTTONDOWN 0x0207
564 #define WM_MBUTTONUP 0x0208
565 #define WM_MBUTTONDBLCLK 0x0209
566 #define WM_MOUSEFIRST WM_MOUSEMOVE
567 #define WM_MOUSELAST WM_MBUTTONDBLCLK
569 #define WM_PARENTNOTIFY 0x0210
570 #define WM_ENTERMENULOOP 0x0211
571 #define WM_EXITMENULOOP 0x0212
572 #define WM_NEXTMENU 0x0213
574 /* Win32 4.0 messages */
575 #define WM_SIZING 0x0214
576 #define WM_CAPTURECHANGED 0x0215
577 #define WM_MOVING 0x0216
579 /* MDI messages */
580 #define WM_MDICREATE 0x0220
581 #define WM_MDIDESTROY 0x0221
582 #define WM_MDIACTIVATE 0x0222
583 #define WM_MDIRESTORE 0x0223
584 #define WM_MDINEXT 0x0224
585 #define WM_MDIMAXIMIZE 0x0225
586 #define WM_MDITILE 0x0226
587 #define WM_MDICASCADE 0x0227
588 #define WM_MDIICONARRANGE 0x0228
589 #define WM_MDIGETACTIVE 0x0229
590 #define WM_MDIREFRESHMENU 0x0234
592 /* D&D messages */
593 #define WM_DROPOBJECT 0x022A
594 #define WM_QUERYDROPOBJECT 0x022B
595 #define WM_BEGINDRAG 0x022C
596 #define WM_DRAGLOOP 0x022D
597 #define WM_DRAGSELECT 0x022E
598 #define WM_DRAGMOVE 0x022F
599 #define WM_MDISETMENU 0x0230
601 #define WM_ENTERSIZEMOVE 0x0231
602 #define WM_EXITSIZEMOVE 0x0232
603 #define WM_DROPFILES 0x0233
605 #define WM_CUT 0x0300
606 #define WM_COPY 0x0301
607 #define WM_PASTE 0x0302
608 #define WM_CLEAR 0x0303
609 #define WM_UNDO 0x0304
610 #define WM_RENDERFORMAT 0x0305
611 #define WM_RENDERALLFORMATS 0x0306
612 #define WM_DESTROYCLIPBOARD 0x0307
613 #define WM_DRAWCLIPBOARD 0x0308
614 #define WM_PAINTCLIPBOARD 0x0309
615 #define WM_VSCROLLCLIPBOARD 0x030A
616 #define WM_SIZECLIPBOARD 0x030B
617 #define WM_ASKCBFORMATNAME 0x030C
618 #define WM_CHANGECBCHAIN 0x030D
619 #define WM_HSCROLLCLIPBOARD 0x030E
620 #define WM_QUERYNEWPALETTE 0x030F
621 #define WM_PALETTEISCHANGING 0x0310
622 #define WM_PALETTECHANGED 0x0311
623 #define WM_HOTKEY 0x0312
625 #define WM_PRINT 0x0317
626 #define WM_PRINTCLIENT 0x0318
628 /* FIXME: This does not belong to any libwine interface header */
629 /* MFC messages [370-37f] */
631 #define WM_QUERYAFXWNDPROC 0x0360
632 #define WM_SIZEPARENT 0x0361
633 #define WM_SETMESSAGESTRING 0x0362
634 #define WM_IDLEUPDATECMDUI 0x0363
635 #define WM_INITIALUPDATE 0x0364
636 #define WM_COMMANDHELP 0x0365
637 #define WM_HELPHITTEST 0x0366
638 #define WM_EXITHELPMODE 0x0367
639 #define WM_RECALCPARENT 0x0368
640 #define WM_SIZECHILD 0x0369
641 #define WM_KICKIDLE 0x036A
642 #define WM_QUERYCENTERWND 0x036B
643 #define WM_DISABLEMODAL 0x036C
644 #define WM_FLOATSTATUS 0x036D
645 #define WM_ACTIVATETOPLEVEL 0x036E
646 #define WM_QUERY3DCONTROLS 0x036F
647 #define WM_SOCKET_NOTIFY 0x0373
648 #define WM_SOCKET_DEAD 0x0374
649 #define WM_POPMESSAGESTRING 0x0375
650 #define WM_OCC_LOADFROMSTREAM 0x0376
651 #define WM_OCC_LOADFROMSTORAGE 0x0377
652 #define WM_OCC_INITNEW 0x0378
653 #define WM_OCC_LOADFROMSTREAM_EX 0x037A
654 #define WM_OCC_LOADFROMSTORAGE_EX 0x037B
655 #define WM_QUEUE_SENTINEL 0x0379
657 /* end of MFC messages */
659 /* FIXME: This does not belong to any libwine interface header */
660 #define WM_COALESCE_FIRST 0x0390
661 #define WM_COALESCE_LAST 0x039F
665 #define DLGC_WANTARROWS 0x0001
666 #define DLGC_WANTTAB 0x0002
667 #define DLGC_WANTALLKEYS 0x0004
668 #define DLGC_WANTMESSAGE 0x0004
669 #define DLGC_HASSETSEL 0x0008
670 #define DLGC_DEFPUSHBUTTON 0x0010
671 #define DLGC_UNDEFPUSHBUTTON 0x0020
672 #define DLGC_RADIOBUTTON 0x0040
673 #define DLGC_WANTCHARS 0x0080
674 #define DLGC_STATIC 0x0100
675 #define DLGC_BUTTON 0x2000
677 /* Standard dialog button IDs */
678 #define IDOK 1
679 #define IDCANCEL 2
680 #define IDABORT 3
681 #define IDRETRY 4
682 #define IDIGNORE 5
683 #define IDYES 6
684 #define IDNO 7
685 #define IDCLOSE 8
686 #define IDHELP 9
688 /****** Window classes ******/
690 typedef struct
692 LPVOID lpCreateParams;
693 HINSTANCE32 hInstance;
694 HMENU32 hMenu;
695 HWND32 hwndParent;
696 INT32 cy;
697 INT32 cx;
698 INT32 y;
699 INT32 x;
700 LONG style;
701 LPCSTR lpszName;
702 LPCSTR lpszClass;
703 DWORD dwExStyle;
704 } CREATESTRUCT32A, *LPCREATESTRUCT32A;
706 typedef struct
708 LPVOID lpCreateParams;
709 HINSTANCE32 hInstance;
710 HMENU32 hMenu;
711 HWND32 hwndParent;
712 INT32 cy;
713 INT32 cx;
714 INT32 y;
715 INT32 x;
716 LONG style;
717 LPCWSTR lpszName;
718 LPCWSTR lpszClass;
719 DWORD dwExStyle;
720 } CREATESTRUCT32W, *LPCREATESTRUCT32W;
722 DECL_WINELIB_TYPE_AW(CREATESTRUCT)
723 DECL_WINELIB_TYPE_AW(LPCREATESTRUCT)
725 typedef struct
727 HMENU32 hWindowMenu;
728 UINT32 idFirstChild;
729 } CLIENTCREATESTRUCT32, *LPCLIENTCREATESTRUCT32;
731 DECL_WINELIB_TYPE(CLIENTCREATESTRUCT)
732 DECL_WINELIB_TYPE(LPCLIENTCREATESTRUCT)
734 typedef struct
736 LPCSTR szClass;
737 LPCSTR szTitle;
738 HINSTANCE32 hOwner;
739 INT32 x;
740 INT32 y;
741 INT32 cx;
742 INT32 cy;
743 DWORD style;
744 LPARAM lParam;
745 } MDICREATESTRUCT32A, *LPMDICREATESTRUCT32A;
747 typedef struct
749 LPCWSTR szClass;
750 LPCWSTR szTitle;
751 HINSTANCE32 hOwner;
752 INT32 x;
753 INT32 y;
754 INT32 cx;
755 INT32 cy;
756 DWORD style;
757 LPARAM lParam;
758 } MDICREATESTRUCT32W, *LPMDICREATESTRUCT32W;
760 DECL_WINELIB_TYPE_AW(MDICREATESTRUCT)
761 DECL_WINELIB_TYPE_AW(LPMDICREATESTRUCT)
763 #define MDITILE_VERTICAL 0x0000
764 #define MDITILE_HORIZONTAL 0x0001
765 #define MDITILE_SKIPDISABLED 0x0002
767 #define MDIS_ALLCHILDSTYLES 0x0001
769 typedef struct {
770 DWORD styleOld;
771 DWORD styleNew;
772 } STYLESTRUCT, *LPSTYLESTRUCT;
774 /* Offsets for GetWindowLong() and GetWindowWord() */
775 #define GWL_USERDATA (-21)
776 #define GWL_EXSTYLE (-20)
777 #define GWL_STYLE (-16)
778 #define GWW_ID (-12)
779 #define GWL_ID GWW_ID
780 #define GWW_HWNDPARENT (-8)
781 #define GWL_HWNDPARENT GWW_HWNDPARENT
782 #define GWW_HINSTANCE (-6)
783 #define GWL_HINSTANCE GWW_HINSTANCE
784 #define GWL_WNDPROC (-4)
785 #define DWL_MSGRESULT 0
786 #define DWL_DLGPROC 4
787 #define DWL_USER 8
789 /* GetWindow() constants */
790 #define GW_HWNDFIRST 0
791 #define GW_HWNDLAST 1
792 #define GW_HWNDNEXT 2
793 #define GW_HWNDPREV 3
794 #define GW_OWNER 4
795 #define GW_CHILD 5
797 /* WM_GETMINMAXINFO struct */
798 typedef struct
800 POINT32 ptReserved;
801 POINT32 ptMaxSize;
802 POINT32 ptMaxPosition;
803 POINT32 ptMinTrackSize;
804 POINT32 ptMaxTrackSize;
805 } MINMAXINFO32, *PMINMAXINFO32, *LPMINMAXINFO32;
807 DECL_WINELIB_TYPE(MINMAXINFO)
808 DECL_WINELIB_TYPE(PMINMAXINFO)
809 DECL_WINELIB_TYPE(LPMINMAXINFO)
811 /* RedrawWindow() flags */
812 #define RDW_INVALIDATE 0x0001
813 #define RDW_INTERNALPAINT 0x0002
814 #define RDW_ERASE 0x0004
815 #define RDW_VALIDATE 0x0008
816 #define RDW_NOINTERNALPAINT 0x0010
817 #define RDW_NOERASE 0x0020
818 #define RDW_NOCHILDREN 0x0040
819 #define RDW_ALLCHILDREN 0x0080
820 #define RDW_UPDATENOW 0x0100
821 #define RDW_ERASENOW 0x0200
822 #define RDW_FRAME 0x0400
823 #define RDW_NOFRAME 0x0800
825 /* debug flags */
826 #define DBGFILL_ALLOC 0xfd
827 #define DBGFILL_FREE 0xfb
828 #define DBGFILL_BUFFER 0xf9
829 #define DBGFILL_STACK 0xf7
831 /* WM_WINDOWPOSCHANGING/CHANGED struct */
832 typedef struct
834 HWND32 hwnd;
835 HWND32 hwndInsertAfter;
836 INT32 x;
837 INT32 y;
838 INT32 cx;
839 INT32 cy;
840 UINT32 flags;
841 } WINDOWPOS32, *PWINDOWPOS32, *LPWINDOWPOS32;
843 DECL_WINELIB_TYPE(WINDOWPOS)
844 DECL_WINELIB_TYPE(PWINDOWPOS)
845 DECL_WINELIB_TYPE(LPWINDOWPOS)
847 /* WM_MOUSEACTIVATE return values */
848 #define MA_ACTIVATE 1
849 #define MA_ACTIVATEANDEAT 2
850 #define MA_NOACTIVATE 3
851 #define MA_NOACTIVATEANDEAT 4
853 /* WM_ACTIVATE wParam values */
854 #define WA_INACTIVE 0
855 #define WA_ACTIVE 1
856 #define WA_CLICKACTIVE 2
858 /* WM_NCCALCSIZE parameter structure */
859 typedef struct
861 RECT32 rgrc[3];
862 WINDOWPOS32 *lppos;
863 } NCCALCSIZE_PARAMS32, *LPNCCALCSIZE_PARAMS32;
865 DECL_WINELIB_TYPE(NCCALCSIZE_PARAMS)
866 DECL_WINELIB_TYPE(LPNCCALCSIZE_PARAMS)
868 /* WM_NCCALCSIZE return flags */
869 #define WVR_ALIGNTOP 0x0010
870 #define WVR_ALIGNLEFT 0x0020
871 #define WVR_ALIGNBOTTOM 0x0040
872 #define WVR_ALIGNRIGHT 0x0080
873 #define WVR_HREDRAW 0x0100
874 #define WVR_VREDRAW 0x0200
875 #define WVR_REDRAW (WVR_HREDRAW | WVR_VREDRAW)
876 #define WVR_VALIDRECTS 0x0400
878 /* WM_NCHITTEST return codes */
879 #define HTERROR (-2)
880 #define HTTRANSPARENT (-1)
881 #define HTNOWHERE 0
882 #define HTCLIENT 1
883 #define HTCAPTION 2
884 #define HTSYSMENU 3
885 #define HTSIZE 4
886 #define HTMENU 5
887 #define HTHSCROLL 6
888 #define HTVSCROLL 7
889 #define HTMINBUTTON 8
890 #define HTMAXBUTTON 9
891 #define HTLEFT 10
892 #define HTRIGHT 11
893 #define HTTOP 12
894 #define HTTOPLEFT 13
895 #define HTTOPRIGHT 14
896 #define HTBOTTOM 15
897 #define HTBOTTOMLEFT 16
898 #define HTBOTTOMRIGHT 17
899 #define HTBORDER 18
900 #define HTGROWBOX HTSIZE
901 #define HTREDUCE HTMINBUTTON
902 #define HTZOOM HTMAXBUTTON
903 #define HTOBJECT 19
904 #define HTCLOSE 20
905 #define HTHELP 21
906 #define HTSIZEFIRST HTLEFT
907 #define HTSIZELAST HTBOTTOMRIGHT
909 /* WM_SYSCOMMAND parameters */
910 #ifdef SC_SIZE /* at least HP-UX: already defined in /usr/include/sys/signal.h */
911 #undef SC_SIZE
912 #endif
913 #define SC_SIZE 0xf000
914 #define SC_MOVE 0xf010
915 #define SC_MINIMIZE 0xf020
916 #define SC_MAXIMIZE 0xf030
917 #define SC_NEXTWINDOW 0xf040
918 #define SC_PREVWINDOW 0xf050
919 #define SC_CLOSE 0xf060
920 #define SC_VSCROLL 0xf070
921 #define SC_HSCROLL 0xf080
922 #define SC_MOUSEMENU 0xf090
923 #define SC_KEYMENU 0xf100
924 #define SC_ARRANGE 0xf110
925 #define SC_RESTORE 0xf120
926 #define SC_TASKLIST 0xf130
927 #define SC_SCREENSAVE 0xf140
928 #define SC_HOTKEY 0xf150
930 #define CS_VREDRAW 0x0001
931 #define CS_HREDRAW 0x0002
932 #define CS_KEYCVTWINDOW 0x0004
933 #define CS_DBLCLKS 0x0008
934 #define CS_OWNDC 0x0020
935 #define CS_CLASSDC 0x0040
936 #define CS_PARENTDC 0x0080
937 #define CS_NOKEYCVT 0x0100
938 #define CS_NOCLOSE 0x0200
939 #define CS_SAVEBITS 0x0800
940 #define CS_BYTEALIGNCLIENT 0x1000
941 #define CS_BYTEALIGNWINDOW 0x2000
942 #define CS_GLOBALCLASS 0x4000
944 /* Offsets for GetClassLong() and GetClassWord() */
945 #define GCL_MENUNAME (-8)
946 #define GCW_HBRBACKGROUND (-10)
947 #define GCL_HBRBACKGROUND GCW_HBRBACKGROUND
948 #define GCW_HCURSOR (-12)
949 #define GCL_HCURSOR GCW_HCURSOR
950 #define GCW_HICON (-14)
951 #define GCL_HICON GCW_HICON
952 #define GCW_HMODULE (-16)
953 #define GCL_HMODULE GCW_HMODULE
954 #define GCW_CBWNDEXTRA (-18)
955 #define GCL_CBWNDEXTRA GCW_CBWNDEXTRA
956 #define GCW_CBCLSEXTRA (-20)
957 #define GCL_CBCLSEXTRA GCW_CBCLSEXTRA
958 #define GCL_WNDPROC (-24)
959 #define GCW_STYLE (-26)
960 #define GCL_STYLE GCW_STYLE
961 #define GCW_ATOM (-32)
962 #define GCW_HICONSM (-34)
963 #define GCL_HICONSM GCW_HICONSM
965 #ifndef NOWINOFFSETS
966 #define GCW_HBRBACKGROUND (-10)
967 #endif
970 /***** Window hooks *****/
972 /* Hook values */
973 #define WH_MIN (-1)
974 #define WH_MSGFILTER (-1)
975 #define WH_JOURNALRECORD 0
976 #define WH_JOURNALPLAYBACK 1
977 #define WH_KEYBOARD 2
978 #define WH_GETMESSAGE 3
979 #define WH_CALLWNDPROC 4
980 #define WH_CBT 5
981 #define WH_SYSMSGFILTER 6
982 #define WH_MOUSE 7
983 #define WH_HARDWARE 8
984 #define WH_DEBUG 9
985 #define WH_SHELL 10
986 #define WH_FOREGROUNDIDLE 11
987 #define WH_CALLWNDPROCRET 12
988 #define WH_MAX 12
990 #define WH_MINHOOK WH_MIN
991 #define WH_MAXHOOK WH_MAX
992 #define WH_NB_HOOKS (WH_MAXHOOK-WH_MINHOOK+1)
994 /* Hook action codes */
995 #define HC_ACTION 0
996 #define HC_GETNEXT 1
997 #define HC_SKIP 2
998 #define HC_NOREMOVE 3
999 #define HC_NOREM HC_NOREMOVE
1000 #define HC_SYSMODALON 4
1001 #define HC_SYSMODALOFF 5
1003 /* CallMsgFilter() values */
1004 #define MSGF_DIALOGBOX 0
1005 #define MSGF_MESSAGEBOX 1
1006 #define MSGF_MENU 2
1007 #define MSGF_MOVE 3
1008 #define MSGF_SIZE 4
1009 #define MSGF_SCROLLBAR 5
1010 #define MSGF_NEXTWINDOW 6
1011 #define MSGF_MAINLOOP 8
1012 #define MSGF_USER 4096
1014 typedef struct
1016 UINT32 style;
1017 WNDPROC32 lpfnWndProc;
1018 INT32 cbClsExtra;
1019 INT32 cbWndExtra;
1020 HINSTANCE32 hInstance;
1021 HICON32 hIcon;
1022 HCURSOR32 hCursor;
1023 HBRUSH32 hbrBackground;
1024 LPCSTR lpszMenuName;
1025 LPCSTR lpszClassName;
1026 } WNDCLASS32A, *LPWNDCLASS32A;
1028 typedef struct
1030 UINT32 style;
1031 WNDPROC32 lpfnWndProc;
1032 INT32 cbClsExtra;
1033 INT32 cbWndExtra;
1034 HINSTANCE32 hInstance;
1035 HICON32 hIcon;
1036 HCURSOR32 hCursor;
1037 HBRUSH32 hbrBackground;
1038 LPCWSTR lpszMenuName;
1039 LPCWSTR lpszClassName;
1040 } WNDCLASS32W, *LPWNDCLASS32W;
1042 DECL_WINELIB_TYPE_AW(WNDCLASS)
1043 DECL_WINELIB_TYPE_AW(LPWNDCLASS)
1045 typedef struct {
1046 DWORD dwData;
1047 DWORD cbData;
1048 LPVOID lpData;
1049 } COPYDATASTRUCT, *PCOPYDATASTRUCT, *LPCOPYDATASTRUCT;
1051 typedef struct {
1052 HMENU32 hmenuIn;
1053 HMENU32 hmenuNext;
1054 HWND32 hwndNext;
1055 } MDINEXTMENU, *PMDINEXTMENU, *LPMDINEXTMENU;
1057 /* WinHelp internal structure */
1058 typedef struct {
1059 WORD size;
1060 WORD command;
1061 LONG data;
1062 LONG reserved;
1063 WORD ofsFilename;
1064 WORD ofsData;
1065 } WINHELP,*LPWINHELP;
1067 typedef struct
1069 UINT16 mkSize;
1070 BYTE mkKeyList;
1071 BYTE szKeyPhrase[1];
1072 } MULTIKEYHELP, *LPMULTIKEYHELP;
1074 typedef struct {
1075 WORD wStructSize;
1076 WORD x;
1077 WORD y;
1078 WORD dx;
1079 WORD dy;
1080 WORD wMax;
1081 char rgchMember[2];
1082 } HELPWININFO, *LPHELPWININFO;
1084 #define HELP_CONTEXT 0x0001
1085 #define HELP_QUIT 0x0002
1086 #define HELP_INDEX 0x0003
1087 #define HELP_CONTENTS 0x0003
1088 #define HELP_HELPONHELP 0x0004
1089 #define HELP_SETINDEX 0x0005
1090 #define HELP_SETCONTENTS 0x0005
1091 #define HELP_CONTEXTPOPUP 0x0008
1092 #define HELP_FORCEFILE 0x0009
1093 #define HELP_KEY 0x0101
1094 #define HELP_COMMAND 0x0102
1095 #define HELP_PARTIALKEY 0x0105
1096 #define HELP_MULTIKEY 0x0201
1097 #define HELP_SETWINPOS 0x0203
1098 #define HELP_CONTEXTMENU 0x000a
1099 #define HELP_FINDER 0x000b
1100 #define HELP_WM_HELP 0x000c
1101 #define HELP_SETPOPUP_POS 0x000d
1103 #define HELP_TCARD 0x8000
1104 #define HELP_TCARD_DATA 0x0010
1105 #define HELP_TCARD_OTHER_CALLER 0x0011
1108 /* ChangeDisplaySettings return codes */
1110 #define DISP_CHANGE_SUCCESSFUL 0
1111 #define DISP_CHANGE_RESTART 1
1112 #define DISP_CHANGE_FAILED (-1)
1113 #define DISP_CHANGE_BADMODE (-2)
1114 #define DISP_CHANGE_NOTUPDATED (-3)
1115 #define DISP_CHANGE_BADFLAGS (-4)
1117 /* flags to FormatMessage */
1118 #define FORMAT_MESSAGE_ALLOCATE_BUFFER 0x00000100
1119 #define FORMAT_MESSAGE_IGNORE_INSERTS 0x00000200
1120 #define FORMAT_MESSAGE_FROM_STRING 0x00000400
1121 #define FORMAT_MESSAGE_FROM_HMODULE 0x00000800
1122 #define FORMAT_MESSAGE_FROM_SYSTEM 0x00001000
1123 #define FORMAT_MESSAGE_ARGUMENT_ARRAY 0x00002000
1124 #define FORMAT_MESSAGE_MAX_WIDTH_MASK 0x000000FF
1126 typedef struct
1128 UINT32 cbSize;
1129 UINT32 style;
1130 WNDPROC32 lpfnWndProc;
1131 INT32 cbClsExtra;
1132 INT32 cbWndExtra;
1133 HINSTANCE32 hInstance;
1134 HICON32 hIcon;
1135 HCURSOR32 hCursor;
1136 HBRUSH32 hbrBackground;
1137 LPCSTR lpszMenuName;
1138 LPCSTR lpszClassName;
1139 HICON32 hIconSm;
1140 } WNDCLASSEX32A, *LPWNDCLASSEX32A;
1142 typedef struct
1144 UINT32 cbSize;
1145 UINT32 style;
1146 WNDPROC32 lpfnWndProc;
1147 INT32 cbClsExtra;
1148 INT32 cbWndExtra;
1149 HINSTANCE32 hInstance;
1150 HICON32 hIcon;
1151 HCURSOR32 hCursor;
1152 HBRUSH32 hbrBackground;
1153 LPCWSTR lpszMenuName;
1154 LPCWSTR lpszClassName;
1155 HICON32 hIconSm;
1156 } WNDCLASSEX32W, *LPWNDCLASSEX32W;
1158 DECL_WINELIB_TYPE_AW(WNDCLASSEX)
1159 DECL_WINELIB_TYPE_AW(LPWNDCLASSEX)
1161 typedef struct
1163 HWND32 hwnd;
1164 UINT32 message;
1165 WPARAM32 wParam;
1166 LPARAM lParam;
1167 DWORD time;
1168 POINT32 pt;
1169 } MSG32, *LPMSG32;
1171 DECL_WINELIB_TYPE(MSG)
1172 DECL_WINELIB_TYPE(LPMSG)
1174 /* Cursors / Icons */
1176 typedef struct {
1177 BOOL32 fIcon;
1178 DWORD xHotspot;
1179 DWORD yHotspot;
1180 HBITMAP32 hbmMask;
1181 HBITMAP32 hbmColor;
1182 } ICONINFO32,*LPICONINFO32;
1184 DECL_WINELIB_TYPE(ICONINFO)
1185 DECL_WINELIB_TYPE(LPICONINFO)
1187 /* this is the 6 byte accel struct used in Win32 when presented to the user */
1188 typedef struct
1190 BYTE fVirt;
1191 BYTE pad0;
1192 WORD key;
1193 WORD cmd;
1194 } ACCEL32, *LPACCEL32;
1196 /* this is the 8 byte accel struct used in Win32 resources (internal only) */
1197 typedef struct
1199 BYTE fVirt;
1200 BYTE pad0;
1201 WORD key;
1202 WORD cmd;
1203 WORD pad1;
1204 } PE_ACCEL, *LPPE_ACCEL;
1206 DECL_WINELIB_TYPE(ACCEL)
1207 DECL_WINELIB_TYPE(LPACCEL)
1209 /* Flags for TrackPopupMenu */
1210 #define TPM_LEFTBUTTON 0x0000
1211 #define TPM_RIGHTBUTTON 0x0002
1212 #define TPM_LEFTALIGN 0x0000
1213 #define TPM_CENTERALIGN 0x0004
1214 #define TPM_RIGHTALIGN 0x0008
1215 #define TPM_TOPALIGN 0x0000
1216 #define TPM_VCENTERALIGN 0x0010
1217 #define TPM_BOTTOMALIGN 0x0020
1218 #define TPM_HORIZONTAL 0x0000
1219 #define TPM_VERTICAL 0x0040
1220 #define TPM_NONOTIFY 0x0080
1221 #define TPM_RETURNCMD 0x0100
1223 typedef struct
1225 UINT32 cbSize;
1226 RECT32 rcExclude;
1227 } TPMPARAMS, *LPTPMPARAMS;
1229 /* FIXME: not sure this one is correct */
1230 typedef struct {
1231 UINT32 cbSize;
1232 UINT32 fMask;
1233 UINT32 fType;
1234 UINT32 fState;
1235 UINT32 wID;
1236 HMENU32 hSubMenu;
1237 HBITMAP32 hbmpChecked;
1238 HBITMAP32 hbmpUnchecked;
1239 DWORD dwItemData;
1240 LPSTR dwTypeData;
1241 UINT32 cch;
1242 } MENUITEMINFO32A, *LPMENUITEMINFO32A;
1244 typedef struct {
1245 UINT32 cbSize;
1246 UINT32 fMask;
1247 UINT32 fType;
1248 UINT32 fState;
1249 UINT32 wID;
1250 HMENU32 hSubMenu;
1251 HBITMAP32 hbmpChecked;
1252 HBITMAP32 hbmpUnchecked;
1253 DWORD dwItemData;
1254 LPWSTR dwTypeData;
1255 UINT32 cch;
1256 } MENUITEMINFO32W, *LPMENUITEMINFO32W;
1258 DECL_WINELIB_TYPE_AW(MENUITEMINFO)
1259 DECL_WINELIB_TYPE_AW(LPMENUITEMINFO)
1261 /* Field specifiers for MENUITEMINFO[AW] type. */
1262 #define MIIM_STATE 0x00000001
1263 #define MIIM_ID 0x00000002
1264 #define MIIM_SUBMENU 0x00000004
1265 #define MIIM_CHECKMARKS 0x00000008
1266 #define MIIM_TYPE 0x00000010
1267 #define MIIM_DATA 0x00000020
1269 /* DrawState defines ... */
1270 typedef BOOL32 (CALLBACK *DRAWSTATEPROC32)(HDC32,LPARAM,WPARAM32,INT32,INT32);
1271 DECL_WINELIB_TYPE(DRAWSTATEPROC)
1273 /* WM_H/VSCROLL commands */
1274 #define SB_LINEUP 0
1275 #define SB_LINELEFT 0
1276 #define SB_LINEDOWN 1
1277 #define SB_LINERIGHT 1
1278 #define SB_PAGEUP 2
1279 #define SB_PAGELEFT 2
1280 #define SB_PAGEDOWN 3
1281 #define SB_PAGERIGHT 3
1282 #define SB_THUMBPOSITION 4
1283 #define SB_THUMBTRACK 5
1284 #define SB_TOP 6
1285 #define SB_LEFT 6
1286 #define SB_BOTTOM 7
1287 #define SB_RIGHT 7
1288 #define SB_ENDSCROLL 8
1290 /* Scroll bar selection constants */
1291 #define SB_HORZ 0
1292 #define SB_VERT 1
1293 #define SB_CTL 2
1294 #define SB_BOTH 3
1296 /* Scrollbar styles */
1297 #define SBS_HORZ 0x0000L
1298 #define SBS_VERT 0x0001L
1299 #define SBS_TOPALIGN 0x0002L
1300 #define SBS_LEFTALIGN 0x0002L
1301 #define SBS_BOTTOMALIGN 0x0004L
1302 #define SBS_RIGHTALIGN 0x0004L
1303 #define SBS_SIZEBOXTOPLEFTALIGN 0x0002L
1304 #define SBS_SIZEBOXBOTTOMRIGHTALIGN 0x0004L
1305 #define SBS_SIZEBOX 0x0008L
1306 #define SBS_SIZEGRIP 0x0010L
1308 /* EnableScrollBar() flags */
1309 #define ESB_ENABLE_BOTH 0x0000
1310 #define ESB_DISABLE_BOTH 0x0003
1312 #define ESB_DISABLE_LEFT 0x0001
1313 #define ESB_DISABLE_RIGHT 0x0002
1315 #define ESB_DISABLE_UP 0x0001
1316 #define ESB_DISABLE_DOWN 0x0002
1318 #define ESB_DISABLE_LTUP ESB_DISABLE_LEFT
1319 #define ESB_DISABLE_RTDN ESB_DISABLE_RIGHT
1321 /* Win32 button control messages */
1322 #define BM_GETCHECK32 0x00f0
1323 #define BM_SETCHECK32 0x00f1
1324 #define BM_GETSTATE32 0x00f2
1325 #define BM_SETSTATE32 0x00f3
1326 #define BM_SETSTYLE32 0x00f4
1327 #define BM_CLICK32 0x00f5
1328 #define BM_GETIMAGE32 0x00f6
1329 #define BM_SETIMAGE32 0x00f7
1330 /* Winelib button control messages */
1331 #define BM_GETCHECK WINELIB_NAME(BM_GETCHECK)
1332 #define BM_SETCHECK WINELIB_NAME(BM_SETCHECK)
1333 #define BM_GETSTATE WINELIB_NAME(BM_GETSTATE)
1334 #define BM_SETSTATE WINELIB_NAME(BM_SETSTATE)
1335 #define BM_SETSTYLE WINELIB_NAME(BM_SETSTYLE)
1336 #define BM_CLICK WINELIB_NAME(BM_CLICK)
1337 #define BM_GETIMAGE WINELIB_NAME(BM_GETIMAGE)
1338 #define BM_SETIMAGE WINELIB_NAME(BM_SETIMAGE)
1340 /* Button notification codes */
1341 #define BN_CLICKED 0
1342 #define BN_PAINT 1
1343 #define BN_HILITE 2
1344 #define BN_UNHILITE 3
1345 #define BN_DISABLE 4
1346 #define BN_DOUBLECLICKED 5
1348 /* Static Control Styles */
1349 #define SS_LEFT 0x00000000L
1350 #define SS_CENTER 0x00000001L
1351 #define SS_RIGHT 0x00000002L
1352 #define SS_ICON 0x00000003L
1353 #define SS_BLACKRECT 0x00000004L
1354 #define SS_GRAYRECT 0x00000005L
1355 #define SS_WHITERECT 0x00000006L
1356 #define SS_BLACKFRAME 0x00000007L
1357 #define SS_GRAYFRAME 0x00000008L
1358 #define SS_WHITEFRAME 0x00000009L
1360 #define SS_SIMPLE 0x0000000BL
1361 #define SS_LEFTNOWORDWRAP 0x0000000CL
1363 #define SS_OWNERDRAW 0x0000000DL
1364 #define SS_BITMAP 0x0000000EL
1365 #define SS_ENHMETAFILE 0x0000000FL
1367 #define SS_ETCHEDHORZ 0x00000010L
1368 #define SS_ETCHEDVERT 0x00000011L
1369 #define SS_ETCHEDFRAME 0x00000012L
1370 #define SS_TYPEMASK 0x0000001FL
1372 #define SS_NOPREFIX 0x00000080L
1373 #define SS_NOTIFY 0x00000100L
1374 #define SS_CENTERIMAGE 0x00000200L
1375 #define SS_RIGHTJUST 0x00000400L
1376 #define SS_REALSIZEIMAGE 0x00000800L
1377 #define SS_SUNKEN 0x00001000L
1379 /* Static Control Messages */
1380 #define STM_SETICON32 0x0170
1381 #define STM_SETICON WINELIB_NAME(STM_SETICON)
1382 #define STM_GETICON32 0x0171
1383 #define STM_GETICON WINELIB_NAME(STM_GETICON)
1384 #define STM_SETIMAGE 0x0172
1385 #define STM_GETIMAGE 0x0173
1387 /* Scrollbar messages */
1388 #define SBM_SETPOS32 0x00e0
1389 #define SBM_SETPOS WINELIB_NAME(SBM_SETPOS)
1390 #define SBM_GETPOS32 0x00e1
1391 #define SBM_GETPOS WINELIB_NAME(SBM_GETPOS)
1392 #define SBM_SETRANGE32 0x00e2
1393 #define SBM_SETRANGE WINELIB_NAME(SBM_SETRANGE)
1394 #define SBM_GETRANGE32 0x00e3
1395 #define SBM_GETRANGE WINELIB_NAME(SBM_GETRANGE)
1396 #define SBM_ENABLE_ARROWS32 0x00e4
1397 #define SBM_ENABLE_ARROWS WINELIB_NAME(SBM_ENABLE_ARROWS)
1398 #define SBM_SETRANGEREDRAW32 0x00e6
1399 #define SBM_SETRANGEREDRAW WINELIB_NAME(SBM_SETRANGEREDRAW)
1400 #define SBM_SETSCROLLINFO32 0x00e9
1401 #define SBM_SETSCROLLINFO WINELIB_NAME(SBM_SETSCROLLINFO)
1402 #define SBM_GETSCROLLINFO32 0x00ea
1403 #define SBM_GETSCROLLINFO WINELIB_NAME(SBM_GETSCROLLINFO)
1405 /* Scrollbar info */
1406 typedef struct
1408 UINT32 cbSize;
1409 UINT32 fMask;
1410 INT32 nMin;
1411 INT32 nMax;
1412 UINT32 nPage;
1413 INT32 nPos;
1414 INT32 nTrackPos;
1415 } SCROLLINFO, *LPSCROLLINFO;
1417 /* GetScrollInfo() flags */
1418 #define SIF_RANGE 0x0001
1419 #define SIF_PAGE 0x0002
1420 #define SIF_POS 0x0004
1421 #define SIF_DISABLENOSCROLL 0x0008
1422 #define SIF_TRACKPOS 0x0010
1423 #define SIF_ALL (SIF_RANGE | SIF_PAGE | SIF_POS | SIF_TRACKPOS)
1425 /* Listbox styles */
1426 #define LBS_NOTIFY 0x0001
1427 #define LBS_SORT 0x0002
1428 #define LBS_NOREDRAW 0x0004
1429 #define LBS_MULTIPLESEL 0x0008
1430 #define LBS_OWNERDRAWFIXED 0x0010
1431 #define LBS_OWNERDRAWVARIABLE 0x0020
1432 #define LBS_HASSTRINGS 0x0040
1433 #define LBS_USETABSTOPS 0x0080
1434 #define LBS_NOINTEGRALHEIGHT 0x0100
1435 #define LBS_MULTICOLUMN 0x0200
1436 #define LBS_WANTKEYBOARDINPUT 0x0400
1437 #define LBS_EXTENDEDSEL 0x0800
1438 #define LBS_DISABLENOSCROLL 0x1000
1439 #define LBS_NODATA 0x2000
1440 #define LBS_NOSEL 0x4000
1441 #define LBS_STANDARD (LBS_NOTIFY | LBS_SORT | WS_VSCROLL | WS_BORDER)
1443 /* Listbox messages */
1444 #define LB_ADDSTRING32 0x0180
1445 #define LB_ADDSTRING WINELIB_NAME(LB_ADDSTRING)
1446 #define LB_INSERTSTRING32 0x0181
1447 #define LB_INSERTSTRING WINELIB_NAME(LB_INSERTSTRING)
1448 #define LB_DELETESTRING32 0x0182
1449 #define LB_DELETESTRING WINELIB_NAME(LB_DELETESTRING)
1450 #define LB_SELITEMRANGEEX32 0x0183
1451 #define LB_SELITEMRANGEEX WINELIB_NAME(LB_SELITEMRANGEEX)
1452 #define LB_RESETCONTENT32 0x0184
1453 #define LB_RESETCONTENT WINELIB_NAME(LB_RESETCONTENT)
1454 #define LB_SETSEL32 0x0185
1455 #define LB_SETSEL WINELIB_NAME(LB_SETSEL)
1456 #define LB_SETCURSEL32 0x0186
1457 #define LB_SETCURSEL WINELIB_NAME(LB_SETCURSEL)
1458 #define LB_GETSEL32 0x0187
1459 #define LB_GETSEL WINELIB_NAME(LB_GETSEL)
1460 #define LB_GETCURSEL32 0x0188
1461 #define LB_GETCURSEL WINELIB_NAME(LB_GETCURSEL)
1462 #define LB_GETTEXT32 0x0189
1463 #define LB_GETTEXT WINELIB_NAME(LB_GETTEXT)
1464 #define LB_GETTEXTLEN32 0x018a
1465 #define LB_GETTEXTLEN WINELIB_NAME(LB_GETTEXTLEN)
1466 #define LB_GETCOUNT32 0x018b
1467 #define LB_GETCOUNT WINELIB_NAME(LB_GETCOUNT)
1468 #define LB_SELECTSTRING32 0x018c
1469 #define LB_SELECTSTRING WINELIB_NAME(LB_SELECTSTRING)
1470 #define LB_DIR32 0x018d
1471 #define LB_DIR WINELIB_NAME(LB_DIR)
1472 #define LB_GETTOPINDEX32 0x018e
1473 #define LB_GETTOPINDEX WINELIB_NAME(LB_GETTOPINDEX)
1474 #define LB_FINDSTRING32 0x018f
1475 #define LB_FINDSTRING WINELIB_NAME(LB_FINDSTRING)
1476 #define LB_GETSELCOUNT32 0x0190
1477 #define LB_GETSELCOUNT WINELIB_NAME(LB_GETSELCOUNT)
1478 #define LB_GETSELITEMS32 0x0191
1479 #define LB_GETSELITEMS WINELIB_NAME(LB_GETSELITEMS)
1480 #define LB_SETTABSTOPS32 0x0192
1481 #define LB_SETTABSTOPS WINELIB_NAME(LB_SETTABSTOPS)
1482 #define LB_GETHORIZONTALEXTENT32 0x0193
1483 #define LB_GETHORIZONTALEXTENT WINELIB_NAME(LB_GETHORIZONTALEXTENT)
1484 #define LB_SETHORIZONTALEXTENT32 0x0194
1485 #define LB_SETHORIZONTALEXTENT WINELIB_NAME(LB_SETHORIZONTALEXTENT)
1486 #define LB_SETCOLUMNWIDTH32 0x0195
1487 #define LB_SETCOLUMNWIDTH WINELIB_NAME(LB_SETCOLUMNWIDTH)
1488 #define LB_ADDFILE32 0x0196
1489 #define LB_ADDFILE WINELIB_NAME(LB_ADDFILE)
1490 #define LB_SETTOPINDEX32 0x0197
1491 #define LB_SETTOPINDEX WINELIB_NAME(LB_SETTOPINDEX)
1492 #define LB_GETITEMRECT32 0x0198
1493 #define LB_GETITEMRECT WINELIB_NAME(LB_GETITEMRECT)
1494 #define LB_GETITEMDATA32 0x0199
1495 #define LB_GETITEMDATA WINELIB_NAME(LB_GETITEMDATA)
1496 #define LB_SETITEMDATA32 0x019a
1497 #define LB_SETITEMDATA WINELIB_NAME(LB_SETITEMDATA)
1498 #define LB_SELITEMRANGE32 0x019b
1499 #define LB_SELITEMRANGE WINELIB_NAME(LB_SELITEMRANGE)
1500 #define LB_SETANCHORINDEX32 0x019c
1501 #define LB_SETANCHORINDEX WINELIB_NAME(LB_SETANCHORINDEX)
1502 #define LB_GETANCHORINDEX32 0x019d
1503 #define LB_GETANCHORINDEX WINELIB_NAME(LB_GETANCHORINDEX)
1504 #define LB_SETCARETINDEX32 0x019e
1505 #define LB_SETCARETINDEX WINELIB_NAME(LB_SETCARETINDEX)
1506 #define LB_GETCARETINDEX32 0x019f
1507 #define LB_GETCARETINDEX WINELIB_NAME(LB_GETCARETINDEX)
1508 #define LB_SETITEMHEIGHT32 0x01a0
1509 #define LB_SETITEMHEIGHT WINELIB_NAME(LB_SETITEMHEIGHT)
1510 #define LB_GETITEMHEIGHT32 0x01a1
1511 #define LB_GETITEMHEIGHT WINELIB_NAME(LB_GETITEMHEIGHT)
1512 #define LB_FINDSTRINGEXACT32 0x01a2
1513 #define LB_FINDSTRINGEXACT WINELIB_NAME(LB_FINDSTRINGEXACT)
1514 #define LB_CARETON32 0x01a3
1515 #define LB_CARETON WINELIB_NAME(LB_CARETON)
1516 #define LB_CARETOFF32 0x01a4
1517 #define LB_CARETOFF WINELIB_NAME(LB_CARETOFF)
1518 #define LB_SETLOCALE32 0x01a5
1519 #define LB_SETLOCALE WINELIB_NAME(LB_SETLOCALE)
1520 #define LB_GETLOCALE32 0x01a6
1521 #define LB_GETLOCALE WINELIB_NAME(LB_GETLOCALE)
1522 #define LB_SETCOUNT32 0x01a7
1523 #define LB_SETCOUNT WINELIB_NAME(LB_SETCOUNT)
1524 #define LB_INITSTORAGE32 0x01a8
1525 #define LB_INITSTORAGE WINELIB_NAME(LB_INITSTORAGE)
1526 #define LB_ITEMFROMPOINT32 0x01a9
1527 #define LB_ITEMFROMPOINT WINELIB_NAME(LB_ITEMFROMPOINT)
1529 /* Listbox notification codes */
1530 #define LBN_ERRSPACE (-2)
1531 #define LBN_SELCHANGE 1
1532 #define LBN_DBLCLK 2
1533 #define LBN_SELCANCEL 3
1534 #define LBN_SETFOCUS 4
1535 #define LBN_KILLFOCUS 5
1537 /* Listbox message return values */
1538 #define LB_OKAY 0
1539 #define LB_ERR (-1)
1540 #define LB_ERRSPACE (-2)
1542 #define LB_CTLCODE 0L
1544 /* Combo box styles */
1545 #define CBS_SIMPLE 0x0001L
1546 #define CBS_DROPDOWN 0x0002L
1547 #define CBS_DROPDOWNLIST 0x0003L
1548 #define CBS_OWNERDRAWFIXED 0x0010L
1549 #define CBS_OWNERDRAWVARIABLE 0x0020L
1550 #define CBS_AUTOHSCROLL 0x0040L
1551 #define CBS_OEMCONVERT 0x0080L
1552 #define CBS_SORT 0x0100L
1553 #define CBS_HASSTRINGS 0x0200L
1554 #define CBS_NOINTEGRALHEIGHT 0x0400L
1555 #define CBS_DISABLENOSCROLL 0x0800L
1557 #define CBS_UPPERCASE 0x2000L
1558 #define CBS_LOWERCASE 0x4000L
1561 /* Combo box messages */
1562 #define CB_GETEDITSEL32 0x0140
1563 #define CB_GETEDITSEL WINELIB_NAME(CB_GETEDITSEL)
1564 #define CB_LIMITTEXT32 0x0141
1565 #define CB_LIMITTEXT WINELIB_NAME(CB_LIMITTEXT)
1566 #define CB_SETEDITSEL32 0x0142
1567 #define CB_SETEDITSEL WINELIB_NAME(CB_SETEDITSEL)
1568 #define CB_ADDSTRING32 0x0143
1569 #define CB_ADDSTRING WINELIB_NAME(CB_ADDSTRING)
1570 #define CB_DELETESTRING32 0x0144
1571 #define CB_DELETESTRING WINELIB_NAME(CB_DELETESTRING)
1572 #define CB_DIR32 0x0145
1573 #define CB_DIR WINELIB_NAME(CB_DIR)
1574 #define CB_GETCOUNT32 0x0146
1575 #define CB_GETCOUNT WINELIB_NAME(CB_GETCOUNT)
1576 #define CB_GETCURSEL32 0x0147
1577 #define CB_GETCURSEL WINELIB_NAME(CB_GETCURSEL)
1578 #define CB_GETLBTEXT32 0x0148
1579 #define CB_GETLBTEXT WINELIB_NAME(CB_GETLBTEXT)
1580 #define CB_GETLBTEXTLEN32 0x0149
1581 #define CB_GETLBTEXTLEN WINELIB_NAME(CB_GETLBTEXTLEN)
1582 #define CB_INSERTSTRING32 0x014a
1583 #define CB_INSERTSTRING WINELIB_NAME(CB_INSERTSTRING)
1584 #define CB_RESETCONTENT32 0x014b
1585 #define CB_RESETCONTENT WINELIB_NAME(CB_RESETCONTENT)
1586 #define CB_FINDSTRING32 0x014c
1587 #define CB_FINDSTRING WINELIB_NAME(CB_FINDSTRING)
1588 #define CB_SELECTSTRING32 0x014d
1589 #define CB_SELECTSTRING WINELIB_NAME(CB_SELECTSTRING)
1590 #define CB_SETCURSEL32 0x014e
1591 #define CB_SETCURSEL WINELIB_NAME(CB_SETCURSEL)
1592 #define CB_SHOWDROPDOWN32 0x014f
1593 #define CB_SHOWDROPDOWN WINELIB_NAME(CB_SHOWDROPDOWN)
1594 #define CB_GETITEMDATA32 0x0150
1595 #define CB_GETITEMDATA WINELIB_NAME(CB_GETITEMDATA)
1596 #define CB_SETITEMDATA32 0x0151
1597 #define CB_SETITEMDATA WINELIB_NAME(CB_SETITEMDATA)
1598 #define CB_GETDROPPEDCONTROLRECT32 0x0152
1599 #define CB_GETDROPPEDCONTROLRECT WINELIB_NAME(CB_GETDROPPEDCONTROLRECT)
1600 #define CB_SETITEMHEIGHT32 0x0153
1601 #define CB_SETITEMHEIGHT WINELIB_NAME(CB_SETITEMHEIGHT)
1602 #define CB_GETITEMHEIGHT32 0x0154
1603 #define CB_GETITEMHEIGHT WINELIB_NAME(CB_GETITEMHEIGHT)
1604 #define CB_SETEXTENDEDUI32 0x0155
1605 #define CB_SETEXTENDEDUI WINELIB_NAME(CB_SETEXTENDEDUI)
1606 #define CB_GETEXTENDEDUI32 0x0156
1607 #define CB_GETEXTENDEDUI WINELIB_NAME(CB_GETEXTENDEDUI)
1608 #define CB_GETDROPPEDSTATE32 0x0157
1609 #define CB_GETDROPPEDSTATE WINELIB_NAME(CB_GETDROPPEDSTATE)
1610 #define CB_FINDSTRINGEXACT32 0x0158
1611 #define CB_FINDSTRINGEXACT WINELIB_NAME(CB_FINDSTRINGEXACT)
1612 #define CB_SETLOCALE32 0x0159
1613 #define CB_SETLOCALE WINELIB_NAME(CB_SETLOCALE)
1614 #define CB_GETLOCALE32 0x015a
1615 #define CB_GETLOCALE WINELIB_NAME(CB_GETLOCALE)
1616 #define CB_GETTOPINDEX32 0x015b
1617 #define CB_GETTOPINDEX WINELIB_NAME(CB_GETTOPINDEX)
1618 #define CB_SETTOPINDEX32 0x015c
1619 #define CB_SETTOPINDEX WINELIB_NAME(CB_SETTOPINDEX)
1620 #define CB_GETHORIZONTALEXTENT32 0x015d
1621 #define CB_GETHORIZONTALEXTENT WINELIB_NAME(CB_GETHORIZONTALEXTENT)
1622 #define CB_SETHORIZONTALEXTENT32 0x015e
1623 #define CB_SETHORIZONTALEXTENT WINELIB_NAME(CB_SETHORIZONTALEXTENT)
1624 #define CB_GETDROPPEDWIDTH32 0x015f
1625 #define CB_GETDROPPEDWIDTH WINELIB_NAME(CB_GETDROPPEDWIDTH)
1626 #define CB_SETDROPPEDWIDTH32 0x0160
1627 #define CB_SETDROPPEDWIDTH WINELIB_NAME(CB_SETDROPPEDWIDTH)
1628 #define CB_INITSTORAGE32 0x0161
1629 #define CB_INITSTORAGE WINELIB_NAME(CB_INITSTORAGE)
1631 /* Combo box notification codes */
1632 #define CBN_ERRSPACE (-1)
1633 #define CBN_SELCHANGE 1
1634 #define CBN_DBLCLK 2
1635 #define CBN_SETFOCUS 3
1636 #define CBN_KILLFOCUS 4
1637 #define CBN_EDITCHANGE 5
1638 #define CBN_EDITUPDATE 6
1639 #define CBN_DROPDOWN 7
1640 #define CBN_CLOSEUP 8
1641 #define CBN_SELENDOK 9
1642 #define CBN_SELENDCANCEL 10
1644 /* Combo box message return values */
1645 #define CB_OKAY 0
1646 #define CB_ERR (-1)
1647 #define CB_ERRSPACE (-2)
1649 #define MB_OK 0x00000000
1650 #define MB_OKCANCEL 0x00000001
1651 #define MB_ABORTRETRYIGNORE 0x00000002
1652 #define MB_YESNOCANCEL 0x00000003
1653 #define MB_YESNO 0x00000004
1654 #define MB_RETRYCANCEL 0x00000005
1655 #define MB_TYPEMASK 0x0000000F
1657 #define MB_ICONHAND 0x00000010
1658 #define MB_ICONQUESTION 0x00000020
1659 #define MB_ICONEXCLAMATION 0x00000030
1660 #define MB_ICONASTERISK 0x00000040
1661 #define MB_USERICON 0x00000080
1662 #define MB_ICONMASK 0x000000F0
1664 #define MB_ICONINFORMATION MB_ICONASTERISK
1665 #define MB_ICONSTOP MB_ICONHAND
1666 #define MB_ICONWARNING MB_ICONEXCLAMATION
1667 #define MB_ICONERROR MB_ICONHAND
1669 #define MB_DEFBUTTON1 0x00000000
1670 #define MB_DEFBUTTON2 0x00000100
1671 #define MB_DEFBUTTON3 0x00000200
1672 #define MB_DEFBUTTON4 0x00000300
1673 #define MB_DEFMASK 0x00000F00
1675 #define MB_APPLMODAL 0x00000000
1676 #define MB_SYSTEMMODAL 0x00001000
1677 #define MB_TASKMODAL 0x00002000
1678 #define MB_MODEMASK 0x00003000
1680 #define MB_HELP 0x00004000
1681 #define MB_NOFOCUS 0x00008000
1682 #define MB_MISCMASK 0x0000C000
1684 #define MB_SETFOREGROUND 0x00010000
1685 #define MB_DEFAULT_DESKTOP_ONLY 0x00020000
1686 #define MB_SERVICE_NOTIFICATION 0x00040000
1687 #define MB_TOPMOST 0x00040000
1688 #define MB_RIGHT 0x00080000
1689 #define MB_RTLREADING 0x00100000
1691 #define HELPINFO_WINDOW 0x0001
1692 #define HELPINFO_MENUITEM 0x0002
1694 /* Structure pointed to by lParam of WM_HELP */
1695 typedef struct
1697 UINT32 cbSize; /* Size in bytes of this struct */
1698 INT32 iContextType; /* Either HELPINFO_WINDOW or HELPINFO_MENUITEM */
1699 INT32 iCtrlId; /* Control Id or a Menu item Id. */
1700 HANDLE32 hItemHandle; /* hWnd of control or hMenu. */
1701 DWORD dwContextId; /* Context Id associated with this item */
1702 POINT32 MousePos; /* Mouse Position in screen co-ordinates */
1703 } HELPINFO,*LPHELPINFO;
1705 typedef void (CALLBACK *MSGBOXCALLBACK)(LPHELPINFO lpHelpInfo);
1707 typedef struct
1709 UINT32 cbSize;
1710 HWND32 hwndOwner;
1711 HINSTANCE32 hInstance;
1712 LPCSTR lpszText;
1713 LPCSTR lpszCaption;
1714 DWORD dwStyle;
1715 LPCSTR lpszIcon;
1716 DWORD dwContextHelpId;
1717 MSGBOXCALLBACK lpfnMsgBoxCallback;
1718 DWORD dwLanguageId;
1719 } MSGBOXPARAMS32A,*LPMSGBOXPARAMS32A;
1721 typedef struct
1723 UINT32 cbSize;
1724 HWND32 hwndOwner;
1725 HINSTANCE32 hInstance;
1726 LPCWSTR lpszText;
1727 LPCWSTR lpszCaption;
1728 DWORD dwStyle;
1729 LPCWSTR lpszIcon;
1730 DWORD dwContextHelpId;
1731 MSGBOXCALLBACK lpfnMsgBoxCallback;
1732 DWORD dwLanguageId;
1733 } MSGBOXPARAMS32W,*LPMSGBOXPARAMS32W;
1735 DECL_WINELIB_TYPE_AW(MSGBOXPARAMS)
1736 DECL_WINELIB_TYPE_AW(LPMSGBOXPARAMS)
1738 typedef struct _numberfmt32a {
1739 UINT32 NumDigits;
1740 UINT32 LeadingZero;
1741 UINT32 Grouping;
1742 LPCSTR lpDecimalSep;
1743 LPCSTR lpThousandSep;
1744 UINT32 NegativeOrder;
1745 } NUMBERFMT32A;
1747 typedef struct _numberfmt32w {
1748 UINT32 NumDigits;
1749 UINT32 LeadingZero;
1750 UINT32 Grouping;
1751 LPCWSTR lpDecimalSep;
1752 LPCWSTR lpThousandSep;
1753 UINT32 NegativeOrder;
1754 } NUMBERFMT32W;
1756 #define MONITOR_DEFAULTTONULL 0x00000000
1757 #define MONITOR_DEFAULTTOPRIMARY 0x00000001
1758 #define MONITOR_DEFAULTTONEAREST 0x00000002
1760 #define MONITORINFOF_PRIMARY 0x00000001
1762 typedef struct tagMONITORINFO
1764 DWORD cbSize;
1765 RECT32 rcMonitor;
1766 RECT32 rcWork;
1767 DWORD dwFlags;
1768 } MONITORINFO, *LPMONITORINFO;
1770 typedef struct tagMONITORINFOEX32A
1772 MONITORINFO dummy;
1773 CHAR szDevice[CCHDEVICENAME];
1774 } MONITORINFOEX32A, *LPMONITORINFOEX32A;
1776 typedef struct tagMONITORINFOEX32W
1778 MONITORINFO dummy;
1779 WCHAR szDevice[CCHDEVICENAME];
1780 } MONITORINFOEX32W, *LPMONITORINFOEX32W;
1782 DECL_WINELIB_TYPE_AW(MONITORINFOEX)
1783 DECL_WINELIB_TYPE_AW(LPMONITORINFOEX)
1785 typedef BOOL32 (CALLBACK *MONITORENUMPROC)(HMONITOR,HDC32,LPRECT32,LPARAM);
1787 typedef struct tagDLGTEMPLATE
1789 DWORD style;
1790 DWORD dwExtendedStyle;
1791 WORD cdit;
1792 short x;
1793 short y;
1794 short cx;
1795 short cy;
1796 }DLGTEMPLATE, *LPDLGTEMPLATE;
1797 typedef const DLGTEMPLATE *LPCDLGTEMPLATE;
1798 /* Fixme: use this instaed of LPCVOID for CreateDialogIndirectParam and DialogBoxIndirectParam*/
1799 typedef struct tagDLGITEMTEMPLATE
1801 DWORD style;
1802 DWORD dwExtendedStyle;
1803 WORD cdit;
1804 short x;
1805 short y;
1806 short cx;
1807 short cy;
1808 WORD id;
1809 }DLGITEMTEMPLATE, *LPDLGITEMTEMPLATE;
1811 typedef const DLGITEMTEMPLATE *LPCDLGITEMTEMPLATE;
1813 /* CBT hook values */
1814 #define HCBT_MOVESIZE 0
1815 #define HCBT_MINMAX 1
1816 #define HCBT_QS 2
1817 #define HCBT_CREATEWND 3
1818 #define HCBT_DESTROYWND 4
1819 #define HCBT_ACTIVATE 5
1820 #define HCBT_CLICKSKIPPED 6
1821 #define HCBT_KEYSKIPPED 7
1822 #define HCBT_SYSCOMMAND 8
1823 #define HCBT_SETFOCUS 9
1825 /* CBT hook structures */
1827 typedef struct
1829 CREATESTRUCT32A *lpcs;
1830 HWND32 hwndInsertAfter;
1831 } CBT_CREATEWND32A, *LPCBT_CREATEWND32A;
1833 typedef struct
1835 CREATESTRUCT32W *lpcs;
1836 HWND32 hwndInsertAfter;
1837 } CBT_CREATEWND32W, *LPCBT_CREATEWND32W;
1839 DECL_WINELIB_TYPE_AW(CBT_CREATEWND)
1840 DECL_WINELIB_TYPE_AW(LPCBT_CREATEWND)
1842 typedef struct
1844 BOOL32 fMouse;
1845 HWND32 hWndActive;
1846 } CBTACTIVATESTRUCT32, *LPCBTACTIVATESTRUCT32;
1848 DECL_WINELIB_TYPE(CBTACTIVATESTRUCT)
1849 DECL_WINELIB_TYPE(LPCBTACTIVATESTRUCT)
1851 /* modifiers for RegisterHotKey */
1852 #define MOD_ALT 0x0001
1853 #define MOD_CONTROL 0x0002
1854 #define MOD_SHIFT 0x0004
1855 #define MOD_WIN 0x0008
1857 /* ids for RegisterHotKey */
1858 #define IDHOT_SNAPWINDOW (-1) /* SHIFT-PRINTSCRN */
1859 #define IDHOT_SNAPDESKTOP (-2) /* PRINTSCRN */
1861 /* keybd_event flags */
1862 #define KEYEVENTF_EXTENDEDKEY 0x0001
1863 #define KEYEVENTF_KEYUP 0x0002
1864 #define KEYEVENTF_WINE_FORCEEXTENDED 0x8000
1866 /* mouse_event flags */
1867 #define MOUSEEVENTF_MOVE 0x0001
1868 #define MOUSEEVENTF_LEFTDOWN 0x0002
1869 #define MOUSEEVENTF_LEFTUP 0x0004
1870 #define MOUSEEVENTF_RIGHTDOWN 0x0008
1871 #define MOUSEEVENTF_RIGHTUP 0x0010
1872 #define MOUSEEVENTF_MIDDLEDOWN 0x0020
1873 #define MOUSEEVENTF_MIDDLEUP 0x0040
1874 #define MOUSEEVENTF_ABSOLUTE 0x8000
1876 /* ExitWindows() flags */
1877 #define EW_RESTARTWINDOWS 0x0042
1878 #define EW_REBOOTSYSTEM 0x0043
1879 #define EW_EXITANDEXECAPP 0x0044
1881 /* ExitWindowsEx() flags */
1882 #define EWX_LOGOFF 0
1883 #define EWX_SHUTDOWN 1
1884 #define EWX_REBOOT 2
1885 #define EWX_FORCE 4
1886 #define EWX_POWEROFF 8
1888 /* SetLastErrorEx types */
1889 #define SLE_ERROR 0x00000001
1890 #define SLE_MINORERROR 0x00000002
1891 #define SLE_WARNING 0x00000003
1893 /* Predefined resources */
1894 #define IDI_APPLICATION32A MAKEINTRESOURCE32A(32512)
1895 #define IDI_APPLICATION32W MAKEINTRESOURCE32W(32512)
1896 #define IDI_APPLICATION WINELIB_NAME_AW(IDI_APPLICATION)
1897 #define IDI_HAND32A MAKEINTRESOURCE32A(32513)
1898 #define IDI_HAND32W MAKEINTRESOURCE32W(32513)
1899 #define IDI_HAND WINELIB_NAME_AW(IDI_HAND)
1900 #define IDI_QUESTION32A MAKEINTRESOURCE32A(32514)
1901 #define IDI_QUESTION32W MAKEINTRESOURCE32W(32514)
1902 #define IDI_QUESTION WINELIB_NAME_AW(IDI_QUESTION)
1903 #define IDI_EXCLAMATION32A MAKEINTRESOURCE32A(32515)
1904 #define IDI_EXCLAMATION32W MAKEINTRESOURCE32W(32515)
1905 #define IDI_EXCLAMATION WINELIB_NAME_AW(IDI_EXCLAMATION)
1906 #define IDI_ASTERISK32A MAKEINTRESOURCE32A(32516)
1907 #define IDI_ASTERISK32W MAKEINTRESOURCE32W(32516)
1908 #define IDI_ASTERISK WINELIB_NAME_AW(IDI_ASTERISK)
1910 #define IDC_BUMMER32A MAKEINTRESOURCE32A(100)
1911 #define IDC_BUMMER32W MAKEINTRESOURCE32W(100)
1912 #define IDC_BUMMER WINELIB_NAME_AW(IDC_BUMMER)
1913 #define IDC_ARROW32A MAKEINTRESOURCE32A(32512)
1914 #define IDC_ARROW32W MAKEINTRESOURCE32W(32512)
1915 #define IDC_ARROW WINELIB_NAME_AW(IDC_ARROW)
1916 #define IDC_IBEAM32A MAKEINTRESOURCE32A(32513)
1917 #define IDC_IBEAM32W MAKEINTRESOURCE32W(32513)
1918 #define IDC_IBEAM WINELIB_NAME_AW(IDC_IBEAM)
1919 #define IDC_WAIT32A MAKEINTRESOURCE32A(32514)
1920 #define IDC_WAIT32W MAKEINTRESOURCE32W(32514)
1921 #define IDC_WAIT WINELIB_NAME_AW(IDC_WAIT)
1922 #define IDC_CROSS32A MAKEINTRESOURCE32A(32515)
1923 #define IDC_CROSS32W MAKEINTRESOURCE32W(32515)
1924 #define IDC_CROSS WINELIB_NAME_AW(IDC_CROSS)
1925 #define IDC_UPARROW32A MAKEINTRESOURCE32A(32516)
1926 #define IDC_UPARROW32W MAKEINTRESOURCE32W(32516)
1927 #define IDC_UPARROW WINELIB_NAME_AW(IDC_UPARROW)
1928 #define IDC_SIZE32A MAKEINTRESOURCE32A(32640)
1929 #define IDC_SIZE32W MAKEINTRESOURCE32W(32640)
1930 #define IDC_SIZE WINELIB_NAME_AW(IDC_SIZE)
1931 #define IDC_ICON32A MAKEINTRESOURCE32A(32641)
1932 #define IDC_ICON32W MAKEINTRESOURCE32W(32641)
1933 #define IDC_ICON WINELIB_NAME_AW(IDC_ICON)
1934 #define IDC_SIZENWSE32A MAKEINTRESOURCE32A(32642)
1935 #define IDC_SIZENWSE32W MAKEINTRESOURCE32W(32642)
1936 #define IDC_SIZENWSE WINELIB_NAME_AW(IDC_SIZENWSE)
1937 #define IDC_SIZENESW32A MAKEINTRESOURCE32A(32643)
1938 #define IDC_SIZENESW32W MAKEINTRESOURCE32W(32643)
1939 #define IDC_SIZENESW WINELIB_NAME_AW(IDC_SIZENESW)
1940 #define IDC_SIZEWE32A MAKEINTRESOURCE32A(32644)
1941 #define IDC_SIZEWE32W MAKEINTRESOURCE32W(32644)
1942 #define IDC_SIZEWE WINELIB_NAME_AW(IDC_SIZEWE)
1943 #define IDC_SIZENS32A MAKEINTRESOURCE32A(32645)
1944 #define IDC_SIZENS32W MAKEINTRESOURCE32W(32645)
1945 #define IDC_SIZENS WINELIB_NAME_AW(IDC_SIZENS)
1946 #define IDC_SIZEALL32A MAKEINTRESOURCE32A(32646)
1947 #define IDC_SIZEALL32W MAKEINTRESOURCE32W(32646)
1948 #define IDC_SIZEALL WINELIB_NAME_AW(IDC_SIZEALL)
1949 #define IDC_NO32A MAKEINTRESOURCE32A(32648)
1950 #define IDC_NO32W MAKEINTRESOURCE32W(32648)
1951 #define IDC_NO WINELIB_NAME_AW(IDC_NO)
1952 #define IDC_APPSTARTING32A MAKEINTRESOURCE32A(32650)
1953 #define IDC_APPSTARTING32W MAKEINTRESOURCE32W(32650)
1954 #define IDC_APPSTARTING WINELIB_NAME_AW(IDC_APPSTARTING)
1955 #define IDC_HELP32A MAKEINTRESOURCE32A(32651)
1956 #define IDC_HELP32W MAKEINTRESOURCE32W(32651)
1957 #define IDC_HELP WINELIB_NAME_AW(IDC_HELP)
1959 /* SystemParametersInfo */
1960 /* defines below are for all win versions */
1961 #define SPI_GETBEEP 1
1962 #define SPI_SETBEEP 2
1963 #define SPI_GETMOUSE 3
1964 #define SPI_SETMOUSE 4
1965 #define SPI_GETBORDER 5
1966 #define SPI_SETBORDER 6
1967 #define SPI_GETKEYBOARDSPEED 10
1968 #define SPI_SETKEYBOARDSPEED 11
1969 #define SPI_LANGDRIVER 12
1970 #define SPI_ICONHORIZONTALSPACING 13
1971 #define SPI_GETSCREENSAVETIMEOUT 14
1972 #define SPI_SETSCREENSAVETIMEOUT 15
1973 #define SPI_GETSCREENSAVEACTIVE 16
1974 #define SPI_SETSCREENSAVEACTIVE 17
1975 #define SPI_GETGRIDGRANULARITY 18
1976 #define SPI_SETGRIDGRANULARITY 19
1977 #define SPI_SETDESKWALLPAPER 20
1978 #define SPI_SETDESKPATTERN 21
1979 #define SPI_GETKEYBOARDDELAY 22
1980 #define SPI_SETKEYBOARDDELAY 23
1981 #define SPI_ICONVERTICALSPACING 24
1982 #define SPI_GETICONTITLEWRAP 25
1983 #define SPI_SETICONTITLEWRAP 26
1984 #define SPI_GETMENUDROPALIGNMENT 27
1985 #define SPI_SETMENUDROPALIGNMENT 28
1986 #define SPI_SETDOUBLECLKWIDTH 29
1987 #define SPI_SETDOUBLECLKHEIGHT 30
1988 #define SPI_GETICONTITLELOGFONT 31
1989 #define SPI_SETDOUBLECLICKTIME 32
1990 #define SPI_SETMOUSEBUTTONSWAP 33
1991 #define SPI_SETICONTITLELOGFONT 34
1992 #define SPI_GETFASTTASKSWITCH 35
1993 #define SPI_SETFASTTASKSWITCH 36
1994 #define SPI_SETDRAGFULLWINDOWS 37
1995 #define SPI_GETDRAGFULLWINDOWS 38
1997 #define SPI_GETFILTERKEYS 50
1998 #define SPI_SETFILTERKEYS 51
1999 #define SPI_GETTOGGLEKEYS 52
2000 #define SPI_SETTOGGLEKEYS 53
2001 #define SPI_GETMOUSEKEYS 54
2002 #define SPI_SETMOUSEKEYS 55
2003 #define SPI_GETSHOWSOUNDS 56
2004 #define SPI_SETSHOWSOUNDS 57
2005 #define SPI_GETSTICKYKEYS 58
2006 #define SPI_SETSTICKYKEYS 59
2007 #define SPI_GETACCESSTIMEOUT 60
2008 #define SPI_SETACCESSTIMEOUT 61
2010 #define SPI_GETSOUNDSENTRY 64
2011 #define SPI_SETSOUNDSENTRY 65
2013 /* defines below are for all win versions WINVER >= 0x0400 */
2014 #define SPI_SETDRAGFULLWINDOWS 37
2015 #define SPI_GETDRAGFULLWINDOWS 38
2016 #define SPI_GETNONCLIENTMETRICS 41
2017 #define SPI_SETNONCLIENTMETRICS 42
2018 #define SPI_GETMINIMIZEDMETRICS 43
2019 #define SPI_SETMINIMIZEDMETRICS 44
2020 #define SPI_GETICONMETRICS 45
2021 #define SPI_SETICONMETRICS 46
2022 #define SPI_SETWORKAREA 47
2023 #define SPI_GETWORKAREA 48
2024 #define SPI_SETPENWINDOWS 49
2026 #define SPI_GETSERIALKEYS 62
2027 #define SPI_SETSERIALKEYS 63
2028 #define SPI_GETHIGHCONTRAST 66
2029 #define SPI_SETHIGHCONTRAST 67
2030 #define SPI_GETKEYBOARDPREF 68
2031 #define SPI_SETKEYBOARDPREF 69
2032 #define SPI_GETSCREENREADER 70
2033 #define SPI_SETSCREENREADER 71
2034 #define SPI_GETANIMATION 72
2035 #define SPI_SETANIMATION 73
2036 #define SPI_GETFONTSMOOTHING 74
2037 #define SPI_SETFONTSMOOTHING 75
2038 #define SPI_SETDRAGWIDTH 76
2039 #define SPI_SETDRAGHEIGHT 77
2040 #define SPI_SETHANDHELD 78
2041 #define SPI_GETLOWPOWERTIMEOUT 79
2042 #define SPI_GETPOWEROFFTIMEOUT 80
2043 #define SPI_SETLOWPOWERTIMEOUT 81
2044 #define SPI_SETPOWEROFFTIMEOUT 82
2045 #define SPI_GETLOWPOWERACTIVE 83
2046 #define SPI_GETPOWEROFFACTIVE 84
2047 #define SPI_SETLOWPOWERACTIVE 85
2048 #define SPI_SETPOWEROFFACTIVE 86
2049 #define SPI_SETCURSORS 87
2050 #define SPI_SETICONS 88
2051 #define SPI_GETDEFAULTINPUTLANG 89
2052 #define SPI_SETDEFAULTINPUTLANG 90
2053 #define SPI_SETLANGTOGGLE 91
2054 #define SPI_GETWINDOWSEXTENSION 92
2055 #define SPI_SETMOUSETRAILS 93
2056 #define SPI_GETMOUSETRAILS 94
2057 #define SPI_SETSCREENSAVERRUNNING 97
2058 #define SPI_SCREENSAVERRUNNING SPI_SETSCREENSAVERRUNNING
2060 /* defines below are for all win versions (_WIN32_WINNT >= 0x0400) ||
2061 * (_WIN32_WINDOWS > 0x0400) */
2062 #define SPI_GETMOUSEHOVERWIDTH 98
2063 #define SPI_SETMOUSEHOVERWIDTH 99
2064 #define SPI_GETMOUSEHOVERHEIGHT 100
2065 #define SPI_SETMOUSEHOVERHEIGHT 101
2066 #define SPI_GETMOUSEHOVERTIME 102
2067 #define SPI_SETMOUSEHOVERTIME 103
2068 #define SPI_GETWHEELSCROLLLINES 104
2069 #define SPI_SETWHEELSCROLLLINES 105
2071 #define SPI_GETSHOWIMEUI 110
2072 #define SPI_SETSHOWIMEUI 111
2074 /* defines below are for all win versions WINVER >= 0x0500 */
2075 #define SPI_GETMOUSESPEED 112
2076 #define SPI_SETMOUSESPEED 113
2077 #define SPI_GETSCREENSAVERRUNNING 114
2079 #define SPI_GETACTIVEWINDOWTRACKING 0x1000
2080 #define SPI_SETACTIVEWINDOWTRACKING 0x1001
2081 #define SPI_GETMENUANIMATION 0x1002
2082 #define SPI_SETMENUANIMATION 0x1003
2083 #define SPI_GETCOMBOBOXANIMATION 0x1004
2084 #define SPI_SETCOMBOBOXANIMATION 0x1005
2085 #define SPI_GETLISTBOXSMOOTHSCROLLING 0x1006
2086 #define SPI_SETLISTBOXSMOOTHSCROLLING 0x1007
2087 #define SPI_GETGRADIENTCAPTIONS 0x1008
2088 #define SPI_SETGRADIENTCAPTIONS 0x1009
2089 #define SPI_GETMENUUNDERLINES 0x100A
2090 #define SPI_SETMENUUNDERLINES 0x100B
2091 #define SPI_GETACTIVEWNDTRKZORDER 0x100C
2092 #define SPI_SETACTIVEWNDTRKZORDER 0x100D
2093 #define SPI_GETHOTTRACKING 0x100E
2094 #define SPI_SETHOTTRACKING 0x100F
2095 #define SPI_GETFOREGROUNDLOCKTIMEOUT 0x2000
2096 #define SPI_SETFOREGROUNDLOCKTIMEOUT 0x2001
2097 #define SPI_GETACTIVEWNDTRKTIMEOUT 0x2002
2098 #define SPI_SETACTIVEWNDTRKTIMEOUT 0x2003
2099 #define SPI_GETFOREGROUNDFLASHCOUNT 0x2004
2100 #define SPI_SETFOREGROUNDFLASHCOUNT 0x2005
2102 /* SystemParametersInfo flags */
2104 #define SPIF_UPDATEINIFILE 1
2105 #define SPIF_SENDWININICHANGE 2
2106 #define SPIF_SENDCHANGE SPIF_SENDWININICHANGE
2108 /* Window Styles */
2109 #define WS_OVERLAPPED 0x00000000L
2110 #define WS_POPUP 0x80000000L
2111 #define WS_CHILD 0x40000000L
2112 #define WS_MINIMIZE 0x20000000L
2113 #define WS_VISIBLE 0x10000000L
2114 #define WS_DISABLED 0x08000000L
2115 #define WS_CLIPSIBLINGS 0x04000000L
2116 #define WS_CLIPCHILDREN 0x02000000L
2117 #define WS_MAXIMIZE 0x01000000L
2118 #define WS_CAPTION 0x00C00000L
2119 #define WS_BORDER 0x00800000L
2120 #define WS_DLGFRAME 0x00400000L
2121 #define WS_VSCROLL 0x00200000L
2122 #define WS_HSCROLL 0x00100000L
2123 #define WS_SYSMENU 0x00080000L
2124 #define WS_THICKFRAME 0x00040000L
2125 #define WS_GROUP 0x00020000L
2126 #define WS_TABSTOP 0x00010000L
2127 #define WS_MINIMIZEBOX 0x00020000L
2128 #define WS_MAXIMIZEBOX 0x00010000L
2129 #define WS_TILED WS_OVERLAPPED
2130 #define WS_ICONIC WS_MINIMIZE
2131 #define WS_SIZEBOX WS_THICKFRAME
2132 #define WS_OVERLAPPEDWINDOW (WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME| WS_MINIMIZEBOX | WS_MAXIMIZEBOX)
2133 #define WS_POPUPWINDOW (WS_POPUP | WS_BORDER | WS_SYSMENU)
2134 #define WS_CHILDWINDOW (WS_CHILD)
2135 #define WS_TILEDWINDOW (WS_OVERLAPPEDWINDOW)
2137 /* Window extended styles */
2138 #define WS_EX_DLGMODALFRAME 0x00000001L
2139 #define WS_EX_DRAGDETECT 0x00000002L
2140 #define WS_EX_NOPARENTNOTIFY 0x00000004L
2141 #define WS_EX_TOPMOST 0x00000008L
2142 #define WS_EX_ACCEPTFILES 0x00000010L
2143 #define WS_EX_TRANSPARENT 0x00000020L
2145 /* New Win95/WinNT4 styles */
2146 #define WS_EX_MDICHILD 0x00000040L
2147 #define WS_EX_TOOLWINDOW 0x00000080L
2148 #define WS_EX_WINDOWEDGE 0x00000100L
2149 #define WS_EX_CLIENTEDGE 0x00000200L
2150 #define WS_EX_CONTEXTHELP 0x00000400L
2151 #define WS_EX_RIGHT 0x00001000L
2152 #define WS_EX_LEFT 0x00000000L
2153 #define WS_EX_RTLREADING 0x00002000L
2154 #define WS_EX_LTRREADING 0x00000000L
2155 #define WS_EX_LEFTSCROLLBAR 0x00004000L
2156 #define WS_EX_RIGHTSCROLLBAR 0x00000000L
2157 #define WS_EX_CONTROLPARENT 0x00010000L
2158 #define WS_EX_STATICEDGE 0x00020000L
2159 #define WS_EX_APPWINDOW 0x00040000L
2161 #define WS_EX_OVERLAPPEDWINDOW (WS_EX_WINDOWEDGE|WS_EX_CLIENTEDGE)
2162 #define WS_EX_PALETTEWINDOW (WS_EX_WINDOWEDGE|WS_EX_TOOLWINDOW|WS_EX_TOPMOST)
2164 /* Window scrolling */
2165 #define SW_SCROLLCHILDREN 0x0001
2166 #define SW_INVALIDATE 0x0002
2167 #define SW_ERASE 0x0004
2169 /* CreateWindow() coordinates */
2170 #define CW_USEDEFAULT32 ((INT32)0x80000000)
2171 #define CW_USEDEFAULT WINELIB_NAME(CW_USEDEFAULT)
2173 /* ChildWindowFromPointEx Flags */
2174 #define CWP_ALL 0x0000
2175 #define CWP_SKIPINVISIBLE 0x0001
2176 #define CWP_SKIPDISABLED 0x0002
2177 #define CWP_SKIPTRANSPARENT 0x0004
2179 /* PeekMessage() options */
2180 #define PM_NOREMOVE 0x0000
2181 #define PM_REMOVE 0x0001
2182 #define PM_NOYIELD 0x0002
2184 #define WM_SHOWWINDOW 0x0018
2186 /* WM_SHOWWINDOW wParam codes */
2187 #define SW_PARENTCLOSING 1
2188 #define SW_OTHERMAXIMIZED 2
2189 #define SW_PARENTOPENING 3
2190 #define SW_OTHERRESTORED 4
2192 /* ShowWindow() codes */
2193 #define SW_HIDE 0
2194 #define SW_SHOWNORMAL 1
2195 #define SW_NORMAL 1
2196 #define SW_SHOWMINIMIZED 2
2197 #define SW_SHOWMAXIMIZED 3
2198 #define SW_MAXIMIZE 3
2199 #define SW_SHOWNOACTIVATE 4
2200 #define SW_SHOW 5
2201 #define SW_MINIMIZE 6
2202 #define SW_SHOWMINNOACTIVE 7
2203 #define SW_SHOWNA 8
2204 #define SW_RESTORE 9
2205 #define SW_SHOWDEFAULT 10
2206 #define SW_MAX 10
2207 #define SW_NORMALNA 0xCC /* undoc. flag in MinMaximize */
2209 /* WM_SIZE message wParam values */
2210 #define SIZE_RESTORED 0
2211 #define SIZE_MINIMIZED 1
2212 #define SIZE_MAXIMIZED 2
2213 #define SIZE_MAXSHOW 3
2214 #define SIZE_MAXHIDE 4
2215 #define SIZENORMAL SIZE_RESTORED
2216 #define SIZEICONIC SIZE_MINIMIZED
2217 #define SIZEFULLSCREEN SIZE_MAXIMIZED
2218 #define SIZEZOOMSHOW SIZE_MAXSHOW
2219 #define SIZEZOOMHIDE SIZE_MAXHIDE
2221 /* SetWindowPos() and WINDOWPOS flags */
2222 #define SWP_NOSIZE 0x0001
2223 #define SWP_NOMOVE 0x0002
2224 #define SWP_NOZORDER 0x0004
2225 #define SWP_NOREDRAW 0x0008
2226 #define SWP_NOACTIVATE 0x0010
2227 #define SWP_FRAMECHANGED 0x0020 /* The frame changed: send WM_NCCALCSIZE */
2228 #define SWP_SHOWWINDOW 0x0040
2229 #define SWP_HIDEWINDOW 0x0080
2230 #define SWP_NOCOPYBITS 0x0100
2231 #define SWP_NOOWNERZORDER 0x0200 /* Don't do owner Z ordering */
2233 #define SWP_DRAWFRAME SWP_FRAMECHANGED
2234 #define SWP_NOREPOSITION SWP_NOOWNERZORDER
2236 #define SWP_NOSENDCHANGING 0x0400
2237 #define SWP_DEFERERASE 0x2000
2239 #define HWND_DESKTOP ((HWND32)0)
2240 #define HWND_BROADCAST ((HWND32)0xffff)
2242 /* SetWindowPos() hwndInsertAfter field values */
2243 #define HWND_TOP ((HWND32)0)
2244 #define HWND_BOTTOM ((HWND32)1)
2245 #define HWND_TOPMOST ((HWND32)-1)
2246 #define HWND_NOTOPMOST ((HWND32)-2)
2248 #define MF_INSERT 0x0000
2249 #define MF_CHANGE 0x0080
2250 #define MF_APPEND 0x0100
2251 #define MF_DELETE 0x0200
2252 #define MF_REMOVE 0x1000
2253 #define MF_END 0x0080
2255 #define MF_ENABLED 0x0000
2256 #define MF_GRAYED 0x0001
2257 #define MF_DISABLED 0x0002
2258 #define MF_STRING 0x0000
2259 #define MF_BITMAP 0x0004
2260 #define MF_UNCHECKED 0x0000
2261 #define MF_CHECKED 0x0008
2262 #define MF_POPUP 0x0010
2263 #define MF_MENUBARBREAK 0x0020
2264 #define MF_MENUBREAK 0x0040
2265 #define MF_UNHILITE 0x0000
2266 #define MF_HILITE 0x0080
2267 #define MF_OWNERDRAW 0x0100
2268 #define MF_USECHECKBITMAPS 0x0200
2269 #define MF_BYCOMMAND 0x0000
2270 #define MF_BYPOSITION 0x0400
2271 #define MF_SEPARATOR 0x0800
2272 #define MF_DEFAULT 0x1000
2273 #define MF_SYSMENU 0x2000
2274 #define MF_HELP 0x4000
2275 #define MF_RIGHTJUSTIFY 0x4000
2276 #define MF_MOUSESELECT 0x8000
2278 /* Flags for extended menu item types. */
2279 #define MFT_STRING MF_STRING
2280 #define MFT_BITMAP MF_BITMAP
2281 #define MFT_MENUBARBREAK MF_MENUBARBREAK
2282 #define MFT_MENUBREAK MF_MENUBREAK
2283 #define MFT_OWNERDRAW MF_OWNERDRAW
2284 #define MFT_RADIOCHECK 0x00000200L
2285 #define MFT_SEPARATOR MF_SEPARATOR
2286 #define MFT_RIGHTORDER 0x00002000L
2287 #define MFT_RIGHTJUSTIFY MF_RIGHTJUSTIFY
2289 /* Flags for extended menu item states. */
2290 #define MFS_GRAYED 0x00000003L
2291 #define MFS_DISABLED MFS_GRAYED
2292 #define MFS_CHECKED MF_CHECKED
2293 #define MFS_HILITE MF_HILITE
2294 #define MFS_ENABLED MF_ENABLED
2295 #define MFS_UNCHECKED MF_UNCHECKED
2296 #define MFS_UNHILITE MF_UNHILITE
2297 #define MFS_DEFAULT MF_DEFAULT
2299 #define DT_TOP 0
2300 #define DT_LEFT 0
2301 #define DT_CENTER 1
2302 #define DT_RIGHT 2
2303 #define DT_VCENTER 4
2304 #define DT_BOTTOM 8
2305 #define DT_WORDBREAK 16
2306 #define DT_SINGLELINE 32
2307 #define DT_EXPANDTABS 64
2308 #define DT_TABSTOP 128
2309 #define DT_NOCLIP 256
2310 #define DT_EXTERNALLEADING 512
2311 #define DT_CALCRECT 1024
2312 #define DT_NOPREFIX 2048
2313 #define DT_INTERNAL 4096
2315 /* DrawCaption()/DrawCaptionTemp() flags */
2316 #define DC_ACTIVE 0x0001
2317 #define DC_SMALLCAP 0x0002
2318 #define DC_ICON 0x0004
2319 #define DC_TEXT 0x0008
2320 #define DC_INBUTTON 0x0010
2322 /* DrawEdge() flags */
2323 #define BDR_RAISEDOUTER 0x0001
2324 #define BDR_SUNKENOUTER 0x0002
2325 #define BDR_RAISEDINNER 0x0004
2326 #define BDR_SUNKENINNER 0x0008
2328 #define BDR_OUTER 0x0003
2329 #define BDR_INNER 0x000c
2330 #define BDR_RAISED 0x0005
2331 #define BDR_SUNKEN 0x000a
2333 #define EDGE_RAISED (BDR_RAISEDOUTER | BDR_RAISEDINNER)
2334 #define EDGE_SUNKEN (BDR_SUNKENOUTER | BDR_SUNKENINNER)
2335 #define EDGE_ETCHED (BDR_SUNKENOUTER | BDR_RAISEDINNER)
2336 #define EDGE_BUMP (BDR_RAISEDOUTER | BDR_SUNKENINNER)
2338 /* border flags */
2339 #define BF_LEFT 0x0001
2340 #define BF_TOP 0x0002
2341 #define BF_RIGHT 0x0004
2342 #define BF_BOTTOM 0x0008
2343 #define BF_DIAGONAL 0x0010
2344 #define BF_MIDDLE 0x0800 /* Fill in the middle */
2345 #define BF_SOFT 0x1000 /* For softer buttons */
2346 #define BF_ADJUST 0x2000 /* Calculate the space left over */
2347 #define BF_FLAT 0x4000 /* For flat rather than 3D borders */
2348 #define BF_MONO 0x8000 /* For monochrome borders */
2349 #define BF_TOPLEFT (BF_TOP | BF_LEFT)
2350 #define BF_TOPRIGHT (BF_TOP | BF_RIGHT)
2351 #define BF_BOTTOMLEFT (BF_BOTTOM | BF_LEFT)
2352 #define BF_BOTTOMRIGHT (BF_BOTTOM | BF_RIGHT)
2353 #define BF_RECT (BF_LEFT | BF_TOP | BF_RIGHT | BF_BOTTOM)
2354 #define BF_DIAGONAL_ENDTOPRIGHT (BF_DIAGONAL | BF_TOP | BF_RIGHT)
2355 #define BF_DIAGONAL_ENDTOPLEFT (BF_DIAGONAL | BF_TOP | BF_LEFT)
2356 #define BF_DIAGONAL_ENDBOTTOMLEFT (BF_DIAGONAL | BF_BOTTOM | BF_LEFT)
2357 #define BF_DIAGONAL_ENDBOTTOMRIGHT (BF_DIAGONAL | BF_BOTTOM | BF_RIGHT)
2359 /* DrawFrameControl() uType's */
2361 #define DFC_CAPTION 1
2362 #define DFC_MENU 2
2363 #define DFC_SCROLL 3
2364 #define DFC_BUTTON 4
2366 /* uState's */
2368 #define DFCS_CAPTIONCLOSE 0x0000
2369 #define DFCS_CAPTIONMIN 0x0001
2370 #define DFCS_CAPTIONMAX 0x0002
2371 #define DFCS_CAPTIONRESTORE 0x0003
2372 #define DFCS_CAPTIONHELP 0x0004 /* Windows 95 only */
2374 #define DFCS_MENUARROW 0x0000
2375 #define DFCS_MENUCHECK 0x0001
2376 #define DFCS_MENUBULLET 0x0002
2377 #define DFCS_MENUARROWRIGHT 0x0004
2379 #define DFCS_SCROLLUP 0x0000
2380 #define DFCS_SCROLLDOWN 0x0001
2381 #define DFCS_SCROLLLEFT 0x0002
2382 #define DFCS_SCROLLRIGHT 0x0003
2383 #define DFCS_SCROLLCOMBOBOX 0x0005
2384 #define DFCS_SCROLLSIZEGRIP 0x0008
2385 #define DFCS_SCROLLSIZEGRIPRIGHT 0x0010
2387 #define DFCS_BUTTONCHECK 0x0000
2388 #define DFCS_BUTTONRADIOIMAGE 0x0001
2389 #define DFCS_BUTTONRADIOMASK 0x0002 /* to draw nonsquare button */
2390 #define DFCS_BUTTONRADIO 0x0004
2391 #define DFCS_BUTTON3STATE 0x0008
2392 #define DFCS_BUTTONPUSH 0x0010
2394 /* additional state of the control */
2396 #define DFCS_INACTIVE 0x0100
2397 #define DFCS_PUSHED 0x0200
2398 #define DFCS_CHECKED 0x0400
2399 #define DFCS_ADJUSTRECT 0x2000 /* exclude surrounding edge */
2400 #define DFCS_FLAT 0x4000
2401 #define DFCS_MONO 0x8000
2403 /* Image type */
2404 #define DST_COMPLEX 0x0000
2405 #define DST_TEXT 0x0001
2406 #define DST_PREFIXTEXT 0x0002
2407 #define DST_ICON 0x0003
2408 #define DST_BITMAP 0x0004
2410 /* State type */
2411 #define DSS_NORMAL 0x0000
2412 #define DSS_UNION 0x0010 /* Gray string appearance */
2413 #define DSS_DISABLED 0x0020
2414 #define DSS_DEFAULT 0x0040 /* Make it bold */
2415 #define DSS_MONO 0x0080
2416 #define DSS_RIGHT 0x8000
2418 typedef struct
2420 UINT32 CtlType;
2421 UINT32 CtlID;
2422 UINT32 itemID;
2423 UINT32 itemAction;
2424 UINT32 itemState;
2425 HWND32 hwndItem;
2426 HDC32 hDC;
2427 RECT32 rcItem WINE_PACKED;
2428 DWORD itemData WINE_PACKED;
2429 } DRAWITEMSTRUCT32, *PDRAWITEMSTRUCT32, *LPDRAWITEMSTRUCT32;
2431 DECL_WINELIB_TYPE(DRAWITEMSTRUCT)
2432 DECL_WINELIB_TYPE(PDRAWITEMSTRUCT)
2433 DECL_WINELIB_TYPE(LPDRAWITEMSTRUCT)
2435 typedef struct
2437 UINT32 CtlType;
2438 UINT32 CtlID;
2439 UINT32 itemID;
2440 UINT32 itemWidth;
2441 UINT32 itemHeight;
2442 DWORD itemData;
2443 } MEASUREITEMSTRUCT32, *PMEASUREITEMSTRUCT32, *LPMEASUREITEMSTRUCT32;
2445 DECL_WINELIB_TYPE(MEASUREITEMSTRUCT)
2446 DECL_WINELIB_TYPE(PMEASUREITEMSTRUCT)
2447 DECL_WINELIB_TYPE(LPMEASUREITEMSTRUCT)
2449 typedef struct
2451 UINT32 CtlType;
2452 UINT32 CtlID;
2453 UINT32 itemID;
2454 HWND32 hwndItem;
2455 DWORD itemData;
2456 } DELETEITEMSTRUCT32, *LPDELETEITEMSTRUCT32;
2458 DECL_WINELIB_TYPE(DELETEITEMSTRUCT)
2459 DECL_WINELIB_TYPE(LPDELETEITEMSTRUCT)
2461 typedef struct
2463 UINT32 CtlType;
2464 UINT32 CtlID;
2465 HWND32 hwndItem;
2466 UINT32 itemID1;
2467 DWORD itemData1;
2468 UINT32 itemID2;
2469 DWORD itemData2;
2470 DWORD dwLocaleId;
2471 } COMPAREITEMSTRUCT32, *LPCOMPAREITEMSTRUCT32;
2473 DECL_WINELIB_TYPE(COMPAREITEMSTRUCT)
2474 DECL_WINELIB_TYPE(LPCOMPAREITEMSTRUCT)
2476 /* WM_KEYUP/DOWN/CHAR HIWORD(lParam) flags */
2477 #define KF_EXTENDED 0x0100
2478 #define KF_DLGMODE 0x0800
2479 #define KF_MENUMODE 0x1000
2480 #define KF_ALTDOWN 0x2000
2481 #define KF_REPEAT 0x4000
2482 #define KF_UP 0x8000
2484 /* Virtual key codes */
2485 #define VK_LBUTTON 0x01
2486 #define VK_RBUTTON 0x02
2487 #define VK_CANCEL 0x03
2488 #define VK_MBUTTON 0x04
2489 /* 0x05-0x07 Undefined */
2490 #define VK_BACK 0x08
2491 #define VK_TAB 0x09
2492 /* 0x0A-0x0B Undefined */
2493 #define VK_CLEAR 0x0C
2494 #define VK_RETURN 0x0D
2495 /* 0x0E-0x0F Undefined */
2496 #define VK_SHIFT 0x10
2497 #define VK_CONTROL 0x11
2498 #define VK_MENU 0x12
2499 #define VK_PAUSE 0x13
2500 #define VK_CAPITAL 0x14
2501 /* 0x15-0x19 Reserved for Kanji systems */
2502 /* 0x1A Undefined */
2503 #define VK_ESCAPE 0x1B
2504 /* 0x1C-0x1F Reserved for Kanji systems */
2505 #define VK_SPACE 0x20
2506 #define VK_PRIOR 0x21
2507 #define VK_NEXT 0x22
2508 #define VK_END 0x23
2509 #define VK_HOME 0x24
2510 #define VK_LEFT 0x25
2511 #define VK_UP 0x26
2512 #define VK_RIGHT 0x27
2513 #define VK_DOWN 0x28
2514 #define VK_SELECT 0x29
2515 #define VK_PRINT 0x2A /* OEM specific in Windows 3.1 SDK */
2516 #define VK_EXECUTE 0x2B
2517 #define VK_SNAPSHOT 0x2C
2518 #define VK_INSERT 0x2D
2519 #define VK_DELETE 0x2E
2520 #define VK_HELP 0x2F
2521 #define VK_0 0x30
2522 #define VK_1 0x31
2523 #define VK_2 0x32
2524 #define VK_3 0x33
2525 #define VK_4 0x34
2526 #define VK_5 0x35
2527 #define VK_6 0x36
2528 #define VK_7 0x37
2529 #define VK_8 0x38
2530 #define VK_9 0x39
2531 /* 0x3A-0x40 Undefined */
2532 #define VK_A 0x41
2533 #define VK_B 0x42
2534 #define VK_C 0x43
2535 #define VK_D 0x44
2536 #define VK_E 0x45
2537 #define VK_F 0x46
2538 #define VK_G 0x47
2539 #define VK_H 0x48
2540 #define VK_I 0x49
2541 #define VK_J 0x4A
2542 #define VK_K 0x4B
2543 #define VK_L 0x4C
2544 #define VK_M 0x4D
2545 #define VK_N 0x4E
2546 #define VK_O 0x4F
2547 #define VK_P 0x50
2548 #define VK_Q 0x51
2549 #define VK_R 0x52
2550 #define VK_S 0x53
2551 #define VK_T 0x54
2552 #define VK_U 0x55
2553 #define VK_V 0x56
2554 #define VK_W 0x57
2555 #define VK_X 0x58
2556 #define VK_Y 0x59
2557 #define VK_Z 0x5A
2559 #define VK_LWIN 0x5B
2560 #define VK_RWIN 0x5C
2561 #define VK_APPS 0x5D
2562 /* 0x5E-0x5F Unassigned */
2563 #define VK_NUMPAD0 0x60
2564 #define VK_NUMPAD1 0x61
2565 #define VK_NUMPAD2 0x62
2566 #define VK_NUMPAD3 0x63
2567 #define VK_NUMPAD4 0x64
2568 #define VK_NUMPAD5 0x65
2569 #define VK_NUMPAD6 0x66
2570 #define VK_NUMPAD7 0x67
2571 #define VK_NUMPAD8 0x68
2572 #define VK_NUMPAD9 0x69
2573 #define VK_MULTIPLY 0x6A
2574 #define VK_ADD 0x6B
2575 #define VK_SEPARATOR 0x6C
2576 #define VK_SUBTRACT 0x6D
2577 #define VK_DECIMAL 0x6E
2578 #define VK_DIVIDE 0x6F
2579 #define VK_F1 0x70
2580 #define VK_F2 0x71
2581 #define VK_F3 0x72
2582 #define VK_F4 0x73
2583 #define VK_F5 0x74
2584 #define VK_F6 0x75
2585 #define VK_F7 0x76
2586 #define VK_F8 0x77
2587 #define VK_F9 0x78
2588 #define VK_F10 0x79
2589 #define VK_F11 0x7A
2590 #define VK_F12 0x7B
2591 #define VK_F13 0x7C
2592 #define VK_F14 0x7D
2593 #define VK_F15 0x7E
2594 #define VK_F16 0x7F
2595 #define VK_F17 0x80
2596 #define VK_F18 0x81
2597 #define VK_F19 0x82
2598 #define VK_F20 0x83
2599 #define VK_F21 0x84
2600 #define VK_F22 0x85
2601 #define VK_F23 0x86
2602 #define VK_F24 0x87
2603 /* 0x88-0x8F Unassigned */
2604 #define VK_NUMLOCK 0x90
2605 #define VK_SCROLL 0x91
2606 /* 0x92-0x9F Unassigned */
2608 * differencing between right and left shift/control/alt key.
2609 * Used only by GetAsyncKeyState() and GetKeyState().
2611 #define VK_LSHIFT 0xA0
2612 #define VK_RSHIFT 0xA1
2613 #define VK_LCONTROL 0xA2
2614 #define VK_RCONTROL 0xA3
2615 #define VK_LMENU 0xA4
2616 #define VK_RMENU 0xA5
2617 /* 0xA6-0xB9 Unassigned */
2618 #define VK_OEM_1 0xBA
2619 #define VK_OEM_PLUS 0xBB
2620 #define VK_OEM_COMMA 0xBC
2621 #define VK_OEM_MINUS 0xBD
2622 #define VK_OEM_PERIOD 0xBE
2623 #define VK_OEM_2 0xBF
2624 #define VK_OEM_3 0xC0
2625 /* 0xC1-0xDA Unassigned */
2626 #define VK_OEM_4 0xDB
2627 #define VK_OEM_5 0xDC
2628 #define VK_OEM_6 0xDD
2629 #define VK_OEM_7 0xDE
2630 /* 0xDF-0xE4 OEM specific */
2632 #define VK_PROCESSKEY 0xE5
2634 /* 0xE6 OEM specific */
2635 /* 0xE7-0xE8 Unassigned */
2636 /* 0xE9-0xF5 OEM specific */
2638 #define VK_ATTN 0xF6
2639 #define VK_CRSEL 0xF7
2640 #define VK_EXSEL 0xF8
2641 #define VK_EREOF 0xF9
2642 #define VK_PLAY 0xFA
2643 #define VK_ZOOM 0xFB
2644 #define VK_NONAME 0xFC
2645 #define VK_PA1 0xFD
2646 #define VK_OEM_CLEAR 0xFE
2648 /* Key status flags for mouse events */
2649 #define MK_LBUTTON 0x0001
2650 #define MK_RBUTTON 0x0002
2651 #define MK_SHIFT 0x0004
2652 #define MK_CONTROL 0x0008
2653 #define MK_MBUTTON 0x0010
2655 /* Queue status flags */
2656 #define QS_KEY 0x0001
2657 #define QS_MOUSEMOVE 0x0002
2658 #define QS_MOUSEBUTTON 0x0004
2659 #define QS_MOUSE (QS_MOUSEMOVE | QS_MOUSEBUTTON)
2660 #define QS_POSTMESSAGE 0x0008
2661 #define QS_TIMER 0x0010
2662 #define QS_PAINT 0x0020
2663 #define QS_SENDMESSAGE 0x0040
2664 #define QS_ALLINPUT 0x007f
2666 #define DDL_READWRITE 0x0000
2667 #define DDL_READONLY 0x0001
2668 #define DDL_HIDDEN 0x0002
2669 #define DDL_SYSTEM 0x0004
2670 #define DDL_DIRECTORY 0x0010
2671 #define DDL_ARCHIVE 0x0020
2673 #define DDL_POSTMSGS 0x2000
2674 #define DDL_DRIVES 0x4000
2675 #define DDL_EXCLUSIVE 0x8000
2677 /* Shell hook values */
2678 #define HSHELL_WINDOWCREATED 1
2679 #define HSHELL_WINDOWDESTROYED 2
2680 #define HSHELL_ACTIVATESHELLWINDOW 3
2682 /* Predefined Clipboard Formats */
2683 #define CF_TEXT 1
2684 #define CF_BITMAP 2
2685 #define CF_METAFILEPICT 3
2686 #define CF_SYLK 4
2687 #define CF_DIF 5
2688 #define CF_TIFF 6
2689 #define CF_OEMTEXT 7
2690 #define CF_DIB 8
2691 #define CF_PALETTE 9
2692 #define CF_PENDATA 10
2693 #define CF_RIFF 11
2694 #define CF_WAVE 12
2695 #define CF_ENHMETAFILE 14
2697 #define CF_OWNERDISPLAY 0x0080
2698 #define CF_DSPTEXT 0x0081
2699 #define CF_DSPBITMAP 0x0082
2700 #define CF_DSPMETAFILEPICT 0x0083
2702 /* "Private" formats don't get GlobalFree()'d */
2703 #define CF_PRIVATEFIRST 0x0200
2704 #define CF_PRIVATELAST 0x02FF
2706 /* "GDIOBJ" formats do get DeleteObject()'d */
2707 #define CF_GDIOBJFIRST 0x0300
2708 #define CF_GDIOBJLAST 0x03FF
2710 /* Clipboard command messages */
2711 #define WM_CUT 0x0300
2712 #define WM_COPY 0x0301
2713 #define WM_PASTE 0x0302
2714 #define WM_CLEAR 0x0303
2715 #define WM_UNDO 0x0304
2717 /* Clipboard owner messages */
2718 #define WM_RENDERFORMAT 0x0305
2719 #define WM_RENDERALLFORMATS 0x0306
2720 #define WM_DESTROYCLIPBOARD 0x0307
2722 /* Clipboard viewer messages */
2723 #define WM_DRAWCLIPBOARD 0x0308
2724 #define WM_PAINTCLIPBOARD 0x0309
2725 #define WM_SIZECLIPBOARD 0x030B
2726 #define WM_VSCROLLCLIPBOARD 0x030A
2727 #define WM_HSCROLLCLIPBOARD 0x030E
2728 #define WM_ASKCBFORMATNAME 0x030C
2729 #define WM_CHANGECBCHAIN 0x030D
2733 /* DragObject stuff */
2735 typedef struct
2737 HWND16 hWnd;
2738 HANDLE16 hScope;
2739 WORD wFlags;
2740 HANDLE16 hList;
2741 HANDLE16 hOfStruct;
2742 POINT16 pt WINE_PACKED;
2743 LONG l WINE_PACKED;
2744 } DRAGINFO, *LPDRAGINFO;
2746 #define DRAGOBJ_PROGRAM 0x0001
2747 #define DRAGOBJ_DATA 0x0002
2748 #define DRAGOBJ_DIRECTORY 0x0004
2749 #define DRAGOBJ_MULTIPLE 0x0008
2750 #define DRAGOBJ_EXTERNAL 0x8000
2752 #define DRAG_PRINT 0x544E5250
2753 #define DRAG_FILE 0x454C4946
2755 /* types of LoadImage */
2756 #define IMAGE_BITMAP 0
2757 #define IMAGE_ICON 1
2758 #define IMAGE_CURSOR 2
2759 #define IMAGE_ENHMETA 3
2761 /* loadflags to LoadImage */
2762 #define LR_DEFAULTCOLOR 0x0000
2763 #define LR_MONOCHROME 0x0001
2764 #define LR_COLOR 0x0002
2765 #define LR_COPYRETURNORG 0x0004
2766 #define LR_COPYDELETEORG 0x0008
2767 #define LR_LOADFROMFILE 0x0010
2768 #define LR_LOADTRANSPARENT 0x0020
2769 #define LR_DEFAULTSIZE 0x0040
2770 #define LR_VGA_COLOR 0x0080
2771 #define LR_LOADMAP3DCOLORS 0x1000
2772 #define LR_CREATEDIBSECTION 0x2000
2773 #define LR_COPYFROMRESOURCE 0x4000
2774 #define LR_SHARED 0x8000
2776 /* Flags for DrawIconEx. */
2777 #define DI_MASK 1
2778 #define DI_IMAGE 2
2779 #define DI_NORMAL (DI_MASK | DI_IMAGE)
2780 #define DI_COMPAT 4
2781 #define DI_DEFAULTSIZE 8
2783 /* misc messages */
2784 #define WM_NULL 0x0000
2785 #define WM_CPL_LAUNCH (WM_USER + 1000)
2786 #define WM_CPL_LAUNCHED (WM_USER + 1001)
2788 /* WM_NOTIFYFORMAT commands and return values */
2789 #define NFR_ANSI 1
2790 #define NFR_UNICODE 2
2791 #define NF_QUERY 3
2792 #define NF_REQUERY 4
2794 #pragma pack(4)
2795 #define EnumTaskWindows32(handle,proc,lparam) \
2796 EnumThreadWindows(handle,proc,lparam)
2797 #define EnumTaskWindows WINELIB_NAME(EnumTaskWindows)
2798 #define OemToAnsi32A OemToChar32A
2799 #define OemToAnsi32W OemToChar32W
2800 #define OemToAnsi WINELIB_NAME_AW(OemToAnsi)
2801 #define OemToAnsiBuff32A OemToCharBuff32A
2802 #define OemToAnsiBuff32W OemToCharBuff32W
2803 #define OemToAnsiBuff WINELIB_NAME_AW(OemToAnsiBuff)
2804 #define AnsiToOem32A CharToOem32A
2805 #define AnsiToOem32W CharToOem32W
2806 #define AnsiToOem WINELIB_NAME_AW(AnsiToOem)
2807 #define AnsiToOemBuff32A CharToOemBuff32A
2808 #define AnsiToOemBuff32W CharToOemBuff32W
2809 #define AnsiToOemBuff WINELIB_NAME_AW(AnsiToOemBuff)
2810 WORD WINAPI CascadeWindows (HWND32, UINT32, const LPRECT32,
2811 UINT32, const HWND32 *);
2812 INT32 WINAPI CopyAcceleratorTable32A(HACCEL32,LPACCEL32,INT32);
2813 INT32 WINAPI CopyAcceleratorTable32W(HACCEL32,LPACCEL32,INT32);
2814 #define CopyAcceleratorTable WINELIB_NAME_AW(CopyAcceleratorTable)
2815 HICON32 WINAPI CreateIconIndirect(LPICONINFO32);
2816 BOOL32 WINAPI DestroyAcceleratorTable(HACCEL32);
2817 BOOL32 WINAPI EnumDisplayMonitors(HDC32,LPRECT32,MONITORENUMPROC,LPARAM);
2818 INT32 WINAPI EnumPropsEx32A(HWND32,PROPENUMPROCEX32A,LPARAM);
2819 INT32 WINAPI EnumPropsEx32W(HWND32,PROPENUMPROCEX32W,LPARAM);
2820 #define EnumPropsEx WINELIB_NAME_AW(EnumPropsEx)
2821 BOOL32 WINAPI EnumThreadWindows(DWORD,WNDENUMPROC32,LPARAM);
2822 BOOL32 WINAPI ExitWindowsEx(UINT32,DWORD);
2823 BOOL32 WINAPI GetIconInfo32(HICON32,LPICONINFO32);
2824 #define GetIconInfo WINELIB_NAME(GetIconInfo)
2825 DWORD WINAPI GetMenuContextHelpId32(HMENU32);
2826 #define GetMenuContextHelpId WINELIB_NAME(GetMenuContextHelpId)
2827 UINT32 WINAPI GetMenuDefaultItem32(HMENU32,UINT32,UINT32);
2828 #define GetMenuDefaultItem WINELIB_NAME(GetMenuDefaultItem)
2829 BOOL32 WINAPI GetMenuItemInfo32A(HMENU32,UINT32,BOOL32,MENUITEMINFO32A*);
2830 BOOL32 WINAPI GetMenuItemInfo32W(HMENU32,UINT32,BOOL32,MENUITEMINFO32W*);
2831 #define GetMenuItemInfo WINELIB_NAME_AW(GetMenuItemInfo)
2832 BOOL32 WINAPI GetMonitorInfo32A(HMONITOR,LPMONITORINFO);
2833 BOOL32 WINAPI GetMonitorInfo32W(HMONITOR,LPMONITORINFO);
2834 #define GetMonitorInfo WINELIB_NAME_AW(GetMonitorInfo)
2835 INT32 WINAPI GetNumberFormat32A(LCID,DWORD,LPCSTR,const NUMBERFMT32A*,LPSTR,int);
2836 INT32 WINAPI GetNumberFormat32W(LCID,DWORD,LPCWSTR,const NUMBERFMT32W*,LPWSTR,int);
2837 #define GetNumberFormat WINELIB_NAME_AW(GetNumberFormat);
2838 DWORD WINAPI GetWindowContextHelpId(HWND32);
2839 DWORD WINAPI GetWindowThreadProcessId(HWND32,LPDWORD);
2840 BOOL32 WINAPI IsWindowUnicode(HWND32);
2841 HKL32 WINAPI LoadKeyboardLayout32A(LPCSTR,UINT32);
2842 HKL32 WINAPI LoadKeyboardLayout32W(LPCWSTR,UINT32);
2843 #define LoadKeyboardLayout WINELIB_NAME_AW(LoadKeyboardLayout)
2844 INT32 WINAPI MessageBoxEx32A(HWND32,LPCSTR,LPCSTR,UINT32,WORD);
2845 INT32 WINAPI MessageBoxEx32W(HWND32,LPCWSTR,LPCWSTR,UINT32,WORD);
2846 #define MessageBoxEx WINELIB_NAME_AW(MessageBoxEx)
2847 HMONITOR WINAPI MonitorFromPoint(POINT32,DWORD);
2848 HMONITOR WINAPI MonitorFromRect(LPRECT32,DWORD);
2849 HMONITOR WINAPI MonitorFromWindow(HWND32,DWORD);
2850 DWORD WINAPI MsgWaitForMultipleObjects(DWORD,HANDLE32*,BOOL32,DWORD,DWORD);
2851 BOOL32 WINAPI PaintDesktop(HDC32);
2852 BOOL32 WINAPI PostThreadMessage32A(DWORD, UINT32, WPARAM32, LPARAM);
2853 BOOL32 WINAPI PostThreadMessage32W(DWORD, UINT32, WPARAM32, LPARAM);
2854 #define PostThreadMessage WINELIB_NAME_AW(PostThreadMessage)
2855 UINT32 WINAPI ReuseDDElParam(UINT32,UINT32,UINT32,UINT32,UINT32);
2856 BOOL32 WINAPI SendNotifyMessage32A(HWND32,UINT32,WPARAM32,LPARAM);
2857 BOOL32 WINAPI SendNotifyMessage32W(HWND32,UINT32,WPARAM32,LPARAM);
2858 #define SendNotifyMessage WINELIB_NAME_AW(SendNotifyMessage)
2859 VOID WINAPI SetDebugErrorLevel(DWORD);
2860 VOID WINAPI SetLastErrorEx(DWORD,DWORD);
2861 BOOL32 WINAPI SetMenuDefaultItem32(HMENU32,UINT32,UINT32);
2862 #define SetMenuDefaultItem WINELIB_NAME(SetMenuDefaultItem)
2863 BOOL32 WINAPI SetMenuItemInfo32A(HMENU32,UINT32,BOOL32,const MENUITEMINFO32A*);
2864 BOOL32 WINAPI SetMenuItemInfo32W(HMENU32,UINT32,BOOL32,const MENUITEMINFO32W*);
2865 #define SetMenuItemInfo WINELIB_NAME_AW(SetMenuItemInfo)
2866 BOOL32 WINAPI SetWindowContextHelpId(HWND32,DWORD);
2867 WORD WINAPI TileWindows (HWND32, UINT32, const LPRECT32,
2868 UINT32, const HWND32 *);
2869 BOOL32 WINAPI TrackPopupMenuEx(HMENU32,UINT32,INT32,INT32,HWND32,
2870 LPTPMPARAMS);
2871 UINT32 WINAPI UnpackDDElParam(UINT32,UINT32,UINT32*,UINT32*);
2872 DWORD WINAPI WaitForInputIdle(HANDLE32,DWORD);
2873 VOID WINAPI keybd_event(BYTE,BYTE,DWORD,DWORD);
2874 VOID WINAPI mouse_event(DWORD,DWORD,DWORD,DWORD,DWORD);
2876 /* Declarations for functions that are the same in Win16 and Win32 */
2877 VOID WINAPI EndMenu(void);
2878 DWORD WINAPI GetDialogBaseUnits(void);
2879 VOID WINAPI GetKeyboardState(LPBYTE);
2880 DWORD WINAPI GetMenuCheckMarkDimensions(void);
2881 LONG WINAPI GetMessageExtraInfo(void);
2882 DWORD WINAPI GetMessagePos(void);
2883 LONG WINAPI GetMessageTime(void);
2884 DWORD WINAPI GetTickCount(void);
2885 ATOM WINAPI GlobalDeleteAtom(ATOM);
2886 DWORD WINAPI OemKeyScan(WORD);
2887 VOID WINAPI ReleaseCapture(void);
2888 VOID WINAPI SetKeyboardState(LPBYTE);
2889 VOID WINAPI WaitMessage(VOID);
2892 /* Declarations for functions that change between Win16 and Win32 */
2894 BOOL32 WINAPI AdjustWindowRect32(LPRECT32,DWORD,BOOL32);
2895 #define AdjustWindowRect WINELIB_NAME(AdjustWindowRect)
2896 BOOL32 WINAPI AdjustWindowRectEx32(LPRECT32,DWORD,BOOL32,DWORD);
2897 #define AdjustWindowRectEx WINELIB_NAME(AdjustWindowRectEx)
2898 #define AnsiLower32A CharLower32A
2899 #define AnsiLower32W CharLower32W
2900 #define AnsiLower WINELIB_NAME_AW(AnsiLower)
2901 #define AnsiLowerBuff32A CharLowerBuff32A
2902 #define AnsiLowerBuff32W CharLowerBuff32W
2903 #define AnsiLowerBuff WINELIB_NAME_AW(AnsiLowerBuff)
2904 #define AnsiNext32A CharNext32A
2905 #define AnsiNext32W CharNext32W
2906 #define AnsiNext WINELIB_NAME_AW(AnsiNext)
2907 #define AnsiPrev32A CharPrev32A
2908 #define AnsiPrev32W CharPrev32W
2909 #define AnsiPrev WINELIB_NAME_AW(AnsiPrev)
2910 #define AnsiUpper32A CharUpper32A
2911 #define AnsiUpper32W CharUpper32W
2912 #define AnsiUpper WINELIB_NAME_AW(AnsiUpper)
2913 #define AnsiUpperBuff32A CharUpperBuff32A
2914 #define AnsiUpperBuff32W CharUpperBuff32W
2915 #define AnsiUpperBuff WINELIB_NAME_AW(AnsiUpperBuff)
2916 BOOL32 WINAPI AnyPopup32(void);
2917 #define AnyPopup WINELIB_NAME(AnyPopup)
2918 BOOL32 WINAPI AppendMenu32A(HMENU32,UINT32,UINT32,LPCSTR);
2919 BOOL32 WINAPI AppendMenu32W(HMENU32,UINT32,UINT32,LPCWSTR);
2920 #define AppendMenu WINELIB_NAME_AW(AppendMenu)
2921 UINT32 WINAPI ArrangeIconicWindows32(HWND32);
2922 #define ArrangeIconicWindows WINELIB_NAME(ArrangeIconicWindows)
2923 HDWP32 WINAPI BeginDeferWindowPos32(INT32);
2924 #define BeginDeferWindowPos WINELIB_NAME(BeginDeferWindowPos)
2925 HDC32 WINAPI BeginPaint32(HWND32,LPPAINTSTRUCT32);
2926 #define BeginPaint WINELIB_NAME(BeginPaint)
2927 BOOL32 WINAPI BringWindowToTop32(HWND32);
2928 #define BringWindowToTop WINELIB_NAME(BringWindowToTop)
2929 BOOL32 WINAPI CallMsgFilter32A(LPMSG32,INT32);
2930 BOOL32 WINAPI CallMsgFilter32W(LPMSG32,INT32);
2931 #define CallMsgFilter WINELIB_NAME_AW(CallMsgFilter)
2932 LRESULT WINAPI CallNextHookEx32(HHOOK,INT32,WPARAM32,LPARAM);
2933 #define CallNextHookEx WINELIB_NAME(CallNextHookEx)
2934 LRESULT WINAPI CallWindowProc32A(WNDPROC32,HWND32,UINT32,WPARAM32,LPARAM);
2935 LRESULT WINAPI CallWindowProc32W(WNDPROC32,HWND32,UINT32,WPARAM32,LPARAM);
2936 #define CallWindowProc WINELIB_NAME_AW(CallWindowProc)
2937 BOOL32 WINAPI ChangeClipboardChain32(HWND32,HWND32);
2938 #define ChangeClipboardChain WINELIB_NAME(ChangeClipboardChain)
2939 BOOL32 WINAPI ChangeMenu32A(HMENU32,UINT32,LPCSTR,UINT32,UINT32);
2940 BOOL32 WINAPI ChangeMenu32W(HMENU32,UINT32,LPCWSTR,UINT32,UINT32);
2941 #define ChangeMenu WINELIB_NAME_AW(ChangeMenu)
2942 LPSTR WINAPI CharLower32A(LPSTR);
2943 LPWSTR WINAPI CharLower32W(LPWSTR);
2944 #define CharLower WINELIB_NAME_AW(CharLower)
2945 DWORD WINAPI CharLowerBuff32A(LPSTR,DWORD);
2946 DWORD WINAPI CharLowerBuff32W(LPWSTR,DWORD);
2947 #define CharLowerBuff WINELIB_NAME_AW(CharLowerBuff)
2948 LPSTR WINAPI CharNext32A(LPCSTR);
2949 LPWSTR WINAPI CharNext32W(LPCWSTR);
2950 #define CharNext WINELIB_NAME_AW(CharNext)
2951 LPSTR WINAPI CharNextEx32A(WORD,LPCSTR,DWORD);
2952 LPWSTR WINAPI CharNextEx32W(WORD,LPCWSTR,DWORD);
2953 #define CharNextEx WINELIB_NAME_AW(CharNextEx)
2954 LPSTR WINAPI CharPrev32A(LPCSTR,LPCSTR);
2955 LPWSTR WINAPI CharPrev32W(LPCWSTR,LPCWSTR);
2956 #define CharPrev WINELIB_NAME_AW(CharPrev)
2957 LPSTR WINAPI CharPrevEx32A(WORD,LPCSTR,LPCSTR,DWORD);
2958 LPWSTR WINAPI CharPrevEx32W(WORD,LPCWSTR,LPCWSTR,DWORD);
2959 #define CharPrevEx WINELIB_NAME_AW(CharPrevEx)
2960 LPSTR WINAPI CharUpper32A(LPSTR);
2961 LPWSTR WINAPI CharUpper32W(LPWSTR);
2962 #define CharUpper WINELIB_NAME_AW(CharUpper)
2963 DWORD WINAPI CharUpperBuff32A(LPSTR,DWORD);
2964 DWORD WINAPI CharUpperBuff32W(LPWSTR,DWORD);
2965 #define CharUpperBuff WINELIB_NAME_AW(CharUpperBuff)
2966 BOOL32 WINAPI CharToOem32A(LPCSTR,LPSTR);
2967 BOOL32 WINAPI CharToOem32W(LPCWSTR,LPSTR);
2968 #define CharToOem WINELIB_NAME_AW(CharToOem)
2969 BOOL32 WINAPI CharToOemBuff32A(LPCSTR,LPSTR,DWORD);
2970 BOOL32 WINAPI CharToOemBuff32W(LPCWSTR,LPSTR,DWORD);
2971 #define CharToOemBuff WINELIB_NAME_AW(CharToOemBuff)
2972 BOOL32 WINAPI CheckDlgButton32(HWND32,INT32,UINT32);
2973 #define CheckDlgButton WINELIB_NAME(CheckDlgButton)
2974 DWORD WINAPI CheckMenuItem32(HMENU32,UINT32,UINT32);
2975 #define CheckMenuItem WINELIB_NAME(CheckMenuItem)
2976 BOOL32 WINAPI CheckMenuRadioItem32(HMENU32,UINT32,UINT32,UINT32,UINT32);
2977 #define CheckMenuRadioItem WINELIB_NAME(CheckMenuRadioItem)
2978 BOOL32 WINAPI CheckRadioButton32(HWND32,UINT32,UINT32,UINT32);
2979 #define CheckRadioButton WINELIB_NAME(CheckRadioButton)
2980 HWND32 WINAPI ChildWindowFromPoint32(HWND32,POINT32);
2981 #define ChildWindowFromPoint WINELIB_NAME(ChildWindowFromPoint)
2982 HWND32 WINAPI ChildWindowFromPointEx32(HWND32,POINT32,UINT32);
2983 #define ChildWindowFromPointEx WINELIB_NAME(ChildWindowFromPointEx)
2984 BOOL32 WINAPI ClearCommBreak32(INT32);
2985 #define ClearCommBreak WINELIB_NAME(ClearCommBreak)
2986 BOOL32 WINAPI ClientToScreen32(HWND32,LPPOINT32);
2987 #define ClientToScreen WINELIB_NAME(ClientToScreen)
2988 BOOL32 WINAPI ClipCursor32(const RECT32*);
2989 #define ClipCursor WINELIB_NAME(ClipCursor)
2990 BOOL32 WINAPI CloseClipboard32(void);
2991 #define CloseClipboard WINELIB_NAME(CloseClipboard)
2992 BOOL32 WINAPI CloseWindow32(HWND32);
2993 #define CloseWindow WINELIB_NAME(CloseWindow)
2994 #define CopyCursor32(cur) ((HCURSOR32)CopyIcon32((HICON32)(cur)))
2995 #define CopyCursor WINELIB_NAME(CopyCursor)
2996 HICON32 WINAPI CopyIcon32(HICON32);
2997 #define CopyIcon WINELIB_NAME(CopyIcon)
2998 HICON32 WINAPI CopyImage32(HANDLE32,UINT32,INT32,INT32,UINT32);
2999 #define CopyImage WINELIB_NAME(CopyImage)
3000 BOOL32 WINAPI CopyRect32(RECT32*,const RECT32*);
3001 #define CopyRect WINELIB_NAME(CopyRect)
3002 INT32 WINAPI CountClipboardFormats32(void);
3003 #define CountClipboardFormats WINELIB_NAME(CountClipboardFormats)
3004 BOOL32 WINAPI CreateCaret32(HWND32,HBITMAP32,INT32,INT32);
3005 #define CreateCaret WINELIB_NAME(CreateCaret)
3006 HCURSOR32 WINAPI CreateCursor32(HINSTANCE32,INT32,INT32,INT32,INT32,LPCVOID,LPCVOID);
3007 #define CreateCursor WINELIB_NAME(CreateCursor)
3008 #define CreateDialog32A(inst,ptr,hwnd,dlg) \
3009 CreateDialogParam32A(inst,ptr,hwnd,dlg,0)
3010 #define CreateDialog32W(inst,ptr,hwnd,dlg) \
3011 CreateDialogParam32W(inst,ptr,hwnd,dlg,0)
3012 #define CreateDialog WINELIB_NAME_AW(CreateDialog)
3013 #define CreateDialogIndirect32A(inst,ptr,hwnd,dlg) \
3014 CreateDialogIndirectParam32A(inst,ptr,hwnd,dlg,0)
3015 #define CreateDialogIndirect32W(inst,ptr,hwnd,dlg) \
3016 CreateDialogIndirectParam32W(inst,ptr,hwnd,dlg,0)
3017 #define CreateDialogIndirect WINELIB_NAME_AW(CreateDialogIndirect)
3018 HWND32 WINAPI CreateDialogIndirectParam32A(HINSTANCE32,LPCVOID,HWND32,
3019 DLGPROC32,LPARAM);
3020 HWND32 WINAPI CreateDialogIndirectParam32W(HINSTANCE32,LPCVOID,HWND32,
3021 DLGPROC32,LPARAM);
3022 #define CreateDialogIndirectParam WINELIB_NAME_AW(CreateDialogIndirectParam)
3023 HWND32 WINAPI CreateDialogParam32A(HINSTANCE32,LPCSTR,HWND32,DLGPROC32,LPARAM);
3024 HWND32 WINAPI CreateDialogParam32W(HINSTANCE32,LPCWSTR,HWND32,DLGPROC32,LPARAM);
3025 #define CreateDialogParam WINELIB_NAME_AW(CreateDialogParam)
3026 HICON32 WINAPI CreateIcon32(HINSTANCE32,INT32,INT32,BYTE,BYTE,LPCVOID,LPCVOID);
3027 #define CreateIcon WINELIB_NAME(CreateIcon)
3028 HICON32 WINAPI CreateIconFromResource32(LPBYTE,UINT32,BOOL32,DWORD);
3029 #define CreateIconFromResource WINELIB_NAME(CreateIconFromResource)
3030 HICON32 WINAPI CreateIconFromResourceEx32(LPBYTE,UINT32,BOOL32,DWORD,INT32,INT32,UINT32);
3031 #define CreateIconFromResourceEx WINELIB_NAME(CreateIconFromResourceEx)
3032 HMENU32 WINAPI CreateMenu32(void);
3033 #define CreateMenu WINELIB_NAME(CreateMenu)
3034 HMENU32 WINAPI CreatePopupMenu32(void);
3035 #define CreatePopupMenu WINELIB_NAME(CreatePopupMenu)
3036 #define CreateWindow32A(className,titleName,style,x,y,width,height,\
3037 parent,menu,instance,param) \
3038 CreateWindowEx32A(0,className,titleName,style,x,y,width,height,\
3039 parent,menu,instance,param)
3040 #define CreateWindow32W(className,titleName,style,x,y,width,height,\
3041 parent,menu,instance,param) \
3042 CreateWindowEx32W(0,className,titleName,style,x,y,width,height,\
3043 parent,menu,instance,param)
3044 #define CreateWindow WINELIB_NAME_AW(CreateWindow)
3045 HWND32 WINAPI CreateWindowEx32A(DWORD,LPCSTR,LPCSTR,DWORD,INT32,INT32,
3046 INT32,INT32,HWND32,HMENU32,HINSTANCE32,LPVOID);
3047 HWND32 WINAPI CreateWindowEx32W(DWORD,LPCWSTR,LPCWSTR,DWORD,INT32,INT32,
3048 INT32,INT32,HWND32,HMENU32,HINSTANCE32,LPVOID);
3049 #define CreateWindowEx WINELIB_NAME_AW(CreateWindowEx)
3050 HWND32 WINAPI CreateMDIWindow32A(LPCSTR,LPCSTR,DWORD,INT32,INT32,
3051 INT32,INT32,HWND32,HINSTANCE32,LPARAM);
3052 HWND32 WINAPI CreateMDIWindow32W(LPCWSTR,LPCWSTR,DWORD,INT32,INT32,
3053 INT32,INT32,HWND32,HINSTANCE32,LPARAM);
3054 #define CreateMDIWindow WINELIB_NAME_AW(CreateMDIWindow)
3055 LRESULT WINAPI DefDlgProc32A(HWND32,UINT32,WPARAM32,LPARAM);
3056 LRESULT WINAPI DefDlgProc32W(HWND32,UINT32,WPARAM32,LPARAM);
3057 #define DefDlgProc WINELIB_NAME_AW(DefDlgProc)
3058 HDWP32 WINAPI DeferWindowPos32(HDWP32,HWND32,HWND32,INT32,INT32,INT32,INT32,UINT32);
3059 #define DeferWindowPos WINELIB_NAME(DeferWindowPos)
3060 LRESULT WINAPI DefFrameProc32A(HWND32,HWND32,UINT32,WPARAM32,LPARAM);
3061 LRESULT WINAPI DefFrameProc32W(HWND32,HWND32,UINT32,WPARAM32,LPARAM);
3062 #define DefFrameProc WINELIB_NAME_AW(DefFrameProc)
3063 #define DefHookProc32(code,wparam,lparam,phhook) \
3064 CallNextHookEx32(*(phhook),code,wparam,lparam)
3065 #define DefHookProc WINELIB_NAME(DefHookProc)
3066 LRESULT WINAPI DefMDIChildProc32A(HWND32,UINT32,WPARAM32,LPARAM);
3067 LRESULT WINAPI DefMDIChildProc32W(HWND32,UINT32,WPARAM32,LPARAM);
3068 #define DefMDIChildProc WINELIB_NAME_AW(DefMDIChildProc)
3069 LRESULT WINAPI DefWindowProc32A(HWND32,UINT32,WPARAM32,LPARAM);
3070 LRESULT WINAPI DefWindowProc32W(HWND32,UINT32,WPARAM32,LPARAM);
3071 #define DefWindowProc WINELIB_NAME_AW(DefWindowProc)
3072 BOOL32 WINAPI DeleteMenu32(HMENU32,UINT32,UINT32);
3073 #define DeleteMenu WINELIB_NAME(DeleteMenu)
3074 BOOL32 WINAPI DestroyCaret32(void);
3075 #define DestroyCaret WINELIB_NAME(DestroyCaret)
3076 BOOL32 WINAPI DestroyCursor32(HCURSOR32);
3077 #define DestroyCursor WINELIB_NAME(DestroyCursor)
3078 BOOL32 WINAPI DestroyIcon32(HICON32);
3079 #define DestroyIcon WINELIB_NAME(DestroyIcon)
3080 BOOL32 WINAPI DestroyMenu32(HMENU32);
3081 #define DestroyMenu WINELIB_NAME(DestroyMenu)
3082 BOOL32 WINAPI DestroyWindow32(HWND32);
3083 #define DestroyWindow WINELIB_NAME(DestroyWindow)
3084 #define DialogBox32A(inst,template,owner,func) \
3085 DialogBoxParam32A(inst,template,owner,func,0)
3086 #define DialogBox32W(inst,template,owner,func) \
3087 DialogBoxParam32W(inst,template,owner,func,0)
3088 #define DialogBox WINELIB_NAME_AW(DialogBox)
3089 #define DialogBoxIndirect32A(inst,template,owner,func) \
3090 DialogBoxIndirectParam32A(inst,template,owner,func,0)
3091 #define DialogBoxIndirect32W(inst,template,owner,func) \
3092 DialogBoxIndirectParam32W(inst,template,owner,func,0)
3093 #define DialogBoxIndirect WINELIB_NAME_AW(DialogBoxIndirect)
3094 INT32 WINAPI DialogBoxIndirectParam32A(HINSTANCE32,LPCVOID,HWND32,DLGPROC32,LPARAM);
3095 INT32 WINAPI DialogBoxIndirectParam32W(HINSTANCE32,LPCVOID,HWND32,DLGPROC32,LPARAM);
3096 #define DialogBoxIndirectParam WINELIB_NAME_AW(DialogBoxIndirectParam)
3097 INT32 WINAPI DialogBoxParam32A(HINSTANCE32,LPCSTR,HWND32,DLGPROC32,LPARAM);
3098 INT32 WINAPI DialogBoxParam32W(HINSTANCE32,LPCWSTR,HWND32,DLGPROC32,LPARAM);
3099 #define DialogBoxParam WINELIB_NAME_AW(DialogBoxParam)
3100 LONG WINAPI DispatchMessage32A(const MSG32*);
3101 LONG WINAPI DispatchMessage32W(const MSG32*);
3102 #define DispatchMessage WINELIB_NAME_AW(DispatchMessage)
3103 INT32 WINAPI DlgDirList32A(HWND32,LPSTR,INT32,INT32,UINT32);
3104 INT32 WINAPI DlgDirList32W(HWND32,LPWSTR,INT32,INT32,UINT32);
3105 #define DlgDirList WINELIB_NAME_AW(DlgDirList)
3106 INT32 WINAPI DlgDirListComboBox32A(HWND32,LPSTR,INT32,INT32,UINT32);
3107 INT32 WINAPI DlgDirListComboBox32W(HWND32,LPWSTR,INT32,INT32,UINT32);
3108 #define DlgDirListComboBox WINELIB_NAME_AW(DlgDirListComboBox)
3109 BOOL32 WINAPI DlgDirSelectComboBoxEx32A(HWND32,LPSTR,INT32,INT32);
3110 BOOL32 WINAPI DlgDirSelectComboBoxEx32W(HWND32,LPWSTR,INT32,INT32);
3111 #define DlgDirSelectComboBoxEx WINELIB_NAME_AW(DlgDirSelectComboBoxEx)
3112 BOOL32 WINAPI DlgDirSelectEx32A(HWND32,LPSTR,INT32,INT32);
3113 BOOL32 WINAPI DlgDirSelectEx32W(HWND32,LPWSTR,INT32,INT32);
3114 #define DlgDirSelectEx WINELIB_NAME_AW(DlgDirSelectEx)
3115 BOOL32 WINAPI DragDetect32(HWND32,POINT32);
3116 #define DragDetect WINELIB_NAME(DragDetect)
3117 DWORD WINAPI DragObject32(HWND32,HWND32,UINT32,DWORD,HCURSOR32);
3118 #define DragObject WINELIB_NAME(DragObject)
3119 BOOL32 WINAPI DrawAnimatedRects32(HWND32,int,const RECT32*,const RECT32*);
3120 #define DrawAnimatedRects WINELIB_NAME(DrawAnimatedRects)
3121 BOOL32 WINAPI DrawCaption32(HWND32,HDC32,const RECT32*,UINT32);
3122 #define DrawCaption WINELIB_NAME(DrawCaption)
3123 BOOL32 WINAPI DrawCaptionTemp32A(HWND32,HDC32,const RECT32*,HFONT32,HICON32,LPCSTR,UINT32);
3124 BOOL32 WINAPI DrawCaptionTemp32W(HWND32,HDC32,const RECT32*,HFONT32,HICON32,LPCWSTR,UINT32);
3125 #define DrawCaptionTemp WINELIB_NAME_AW(DrawCaptionTemp)
3126 BOOL32 WINAPI DrawEdge32(HDC32,LPRECT32,UINT32,UINT32);
3127 #define DrawEdge WINELIB_NAME(DrawEdge)
3128 BOOL32 WINAPI DrawFocusRect32(HDC32,const RECT32*);
3129 #define DrawFocusRect WINELIB_NAME(DrawFocusRect)
3130 BOOL32 WINAPI DrawFrameControl32(HDC32,LPRECT32,UINT32,UINT32);
3131 #define DrawFrameControl WINELIB_NAME(DrawFrameControl)
3132 BOOL32 WINAPI DrawIcon32(HDC32,INT32,INT32,HICON32);
3133 #define DrawIcon WINELIB_NAME(DrawIcon)
3134 BOOL32 WINAPI DrawIconEx32(HDC32,INT32,INT32,HICON32,INT32,INT32,
3135 UINT32,HBRUSH32,UINT32);
3136 #define DrawIconEx WINELIB_NAME(DrawIconEx)
3137 BOOL32 WINAPI DrawMenuBar32(HWND32);
3138 #define DrawMenuBar WINELIB_NAME(DrawMenuBar)
3139 BOOL32 WINAPI DrawState32A(HDC32,HBRUSH32,DRAWSTATEPROC32,LPARAM,WPARAM32,INT32,INT32,INT32,INT32,UINT32);
3140 BOOL32 WINAPI DrawState32W(HDC32,HBRUSH32,DRAWSTATEPROC32,LPARAM,WPARAM32,INT32,INT32,INT32,INT32,UINT32);
3141 #define DrawState WINELIB_NAME_AW(DrawState)
3142 INT32 WINAPI DrawText32A(HDC32,LPCSTR,INT32,LPRECT32,UINT32);
3143 INT32 WINAPI DrawText32W(HDC32,LPCWSTR,INT32,LPRECT32,UINT32);
3144 #define DrawText WINELIB_NAME_AW(DrawText)
3145 BOOL32 WINAPI EmptyClipboard32(void);
3146 #define EmptyClipboard WINELIB_NAME(EmptyClipboard)
3147 UINT32 WINAPI EnableMenuItem32(HMENU32,UINT32,UINT32);
3148 #define EnableMenuItem WINELIB_NAME(EnableMenuItem)
3149 BOOL32 WINAPI EnableScrollBar32(HWND32,INT32,UINT32);
3150 #define EnableScrollBar WINELIB_NAME(EnableScrollBar)
3151 BOOL32 WINAPI EnableWindow32(HWND32,BOOL32);
3152 #define EnableWindow WINELIB_NAME(EnableWindow)
3153 BOOL32 WINAPI EndDeferWindowPos32(HDWP32);
3154 #define EndDeferWindowPos WINELIB_NAME(EndDeferWindowPos)
3155 BOOL32 WINAPI EndDialog32(HWND32,INT32);
3156 #define EndDialog WINELIB_NAME(EndDialog)
3157 BOOL32 WINAPI EndPaint32(HWND32,const PAINTSTRUCT32*);
3158 #define EndPaint WINELIB_NAME(EndPaint)
3159 BOOL32 WINAPI EnumChildWindows32(HWND32,WNDENUMPROC32,LPARAM);
3160 #define EnumChildWindows WINELIB_NAME(EnumChildWindows)
3161 UINT32 WINAPI EnumClipboardFormats32(UINT32);
3162 #define EnumClipboardFormats WINELIB_NAME(EnumClipboardFormats)
3163 INT32 WINAPI EnumProps32A(HWND32,PROPENUMPROC32A);
3164 INT32 WINAPI EnumProps32W(HWND32,PROPENUMPROC32W);
3165 #define EnumProps WINELIB_NAME_AW(EnumProps)
3166 BOOL32 WINAPI EnumWindows32(WNDENUMPROC32,LPARAM);
3167 #define EnumWindows WINELIB_NAME(EnumWindows)
3168 BOOL32 WINAPI EqualRect32(const RECT32*,const RECT32*);
3169 #define EqualRect WINELIB_NAME(EqualRect)
3170 BOOL32 WINAPI EscapeCommFunction32(INT32,UINT32);
3171 #define EscapeCommFunction WINELIB_NAME(EscapeCommFunction)
3172 INT32 WINAPI ExcludeUpdateRgn32(HDC32,HWND32);
3173 #define ExcludeUpdateRgn WINELIB_NAME(ExcludeUpdateRgn)
3174 #define ExitWindows32(a,b) ExitWindowsEx(EWX_LOGOFF,0xffffffff)
3175 #define ExitWindows WINELIB_NAME(ExitWindows)
3176 INT32 WINAPI FillRect32(HDC32,const RECT32*,HBRUSH32);
3177 #define FillRect WINELIB_NAME(FillRect)
3178 HWND32 WINAPI FindWindow32A(LPCSTR,LPCSTR);
3179 HWND32 WINAPI FindWindow32W(LPCWSTR,LPCWSTR);
3180 #define FindWindow WINELIB_NAME_AW(FindWindow)
3181 HWND32 WINAPI FindWindowEx32A(HWND32,HWND32,LPCSTR,LPCSTR);
3182 HWND32 WINAPI FindWindowEx32W(HWND32,HWND32,LPCWSTR,LPCWSTR);
3183 #define FindWindowEx WINELIB_NAME_AW(FindWindowEx)
3184 BOOL32 WINAPI FlashWindow32(HWND32,BOOL32);
3185 #define FlashWindow WINELIB_NAME(FlashWindow)
3186 INT32 WINAPI FrameRect32(HDC32,const RECT32*,HBRUSH32);
3187 #define FrameRect WINELIB_NAME(FrameRect)
3188 HWND32 WINAPI GetActiveWindow32(void);
3189 #define GetActiveWindow WINELIB_NAME(GetActiveWindow)
3190 DWORD WINAPI GetAppCompatFlags32(HTASK32);
3191 #define GetAppCompatFlags WINELIB_NAME(GetAppCompatFlags)
3192 WORD WINAPI GetAsyncKeyState32(INT32);
3193 #define GetAsyncKeyState WINELIB_NAME(GetAsyncKeyState)
3194 HWND32 WINAPI GetCapture32(void);
3195 #define GetCapture WINELIB_NAME(GetCapture)
3196 UINT32 WINAPI GetCaretBlinkTime32(void);
3197 #define GetCaretBlinkTime WINELIB_NAME(GetCaretBlinkTime)
3198 BOOL32 WINAPI GetCaretPos32(LPPOINT32);
3199 #define GetCaretPos WINELIB_NAME(GetCaretPos)
3200 BOOL32 WINAPI GetClassInfo32A(HINSTANCE32,LPCSTR,WNDCLASS32A *);
3201 BOOL32 WINAPI GetClassInfo32W(HINSTANCE32,LPCWSTR,WNDCLASS32W *);
3202 #define GetClassInfo WINELIB_NAME_AW(GetClassInfo)
3203 BOOL32 WINAPI GetClassInfoEx32A(HINSTANCE32,LPCSTR,WNDCLASSEX32A *);
3204 BOOL32 WINAPI GetClassInfoEx32W(HINSTANCE32,LPCWSTR,WNDCLASSEX32W *);
3205 #define GetClassInfoEx WINELIB_NAME_AW(GetClassInfoEx)
3206 LONG WINAPI GetClassLong32A(HWND32,INT32);
3207 LONG WINAPI GetClassLong32W(HWND32,INT32);
3208 #define GetClassLong WINELIB_NAME_AW(GetClassLong)
3209 INT32 WINAPI GetClassName32A(HWND32,LPSTR,INT32);
3210 INT32 WINAPI GetClassName32W(HWND32,LPWSTR,INT32);
3211 #define GetClassName WINELIB_NAME_AW(GetClassName)
3212 WORD WINAPI GetClassWord32(HWND32,INT32);
3213 #define GetClassWord WINELIB_NAME(GetClassWord)
3214 BOOL32 WINAPI GetClientRect32(HWND32,LPRECT32);
3215 #define GetClientRect WINELIB_NAME(GetClientRect)
3216 HANDLE32 WINAPI GetClipboardData32(UINT32);
3217 #define GetClipboardData WINELIB_NAME(GetClipboardData)
3218 INT32 WINAPI GetClipboardFormatName32A(UINT32,LPSTR,INT32);
3219 INT32 WINAPI GetClipboardFormatName32W(UINT32,LPWSTR,INT32);
3220 #define GetClipboardFormatName WINELIB_NAME_AW(GetClipboardFormatName)
3221 HWND32 WINAPI GetClipboardOwner32(void);
3222 #define GetClipboardOwner WINELIB_NAME(GetClipboardOwner)
3223 HWND32 WINAPI GetClipboardViewer32(void);
3224 #define GetClipboardViewer WINELIB_NAME(GetClipboardViewer)
3225 BOOL32 WINAPI GetClipCursor32(LPRECT32);
3226 #define GetClipCursor WINELIB_NAME(GetClipCursor)
3227 #define GetCurrentTime32() GetTickCount()
3228 #define GetCurrentTime WINELIB_NAME(GetCurrentTime)
3229 HCURSOR32 WINAPI GetCursor32(void);
3230 #define GetCursor WINELIB_NAME(GetCursor)
3231 BOOL32 WINAPI GetCursorPos32(LPPOINT32);
3232 #define GetCursorPos WINELIB_NAME(GetCursorPos)
3233 HDC32 WINAPI GetDC32(HWND32);
3234 #define GetDC WINELIB_NAME(GetDC)
3235 HDC32 WINAPI GetDCEx32(HWND32,HRGN32,DWORD);
3236 #define GetDCEx WINELIB_NAME(GetDCEx)
3237 HWND32 WINAPI GetDesktopWindow32(void);
3238 #define GetDesktopWindow WINELIB_NAME(GetDesktopWindow)
3239 INT32 WINAPI GetDlgCtrlID32(HWND32);
3240 #define GetDlgCtrlID WINELIB_NAME(GetDlgCtrlID)
3241 HWND32 WINAPI GetDlgItem32(HWND32,INT32);
3242 #define GetDlgItem WINELIB_NAME(GetDlgItem)
3243 UINT32 WINAPI GetDlgItemInt32(HWND32,INT32,BOOL32*,BOOL32);
3244 #define GetDlgItemInt WINELIB_NAME(GetDlgItemInt)
3245 INT32 WINAPI GetDlgItemText32A(HWND32,INT32,LPSTR,UINT32);
3246 INT32 WINAPI GetDlgItemText32W(HWND32,INT32,LPWSTR,UINT32);
3247 #define GetDlgItemText WINELIB_NAME_AW(GetDlgItemText)
3248 UINT32 WINAPI GetDoubleClickTime32(void);
3249 #define GetDoubleClickTime WINELIB_NAME(GetDoubleClickTime)
3250 HWND32 WINAPI GetFocus32(void);
3251 #define GetFocus WINELIB_NAME(GetFocus)
3252 HWND32 WINAPI GetForegroundWindow32(void);
3253 #define GetForegroundWindow WINELIB_NAME(GetForegroundWindow)
3254 BOOL32 WINAPI GetInputState32(void);
3255 #define GetInputState WINELIB_NAME(GetInputState)
3256 UINT32 WINAPI GetInternalWindowPos32(HWND32,LPRECT32,LPPOINT32);
3257 #define GetInternalWindowPos WINELIB_NAME(GetInternalWindowPos)
3258 UINT32 WINAPI GetKBCodePage32(void);
3259 #define GetKBCodePage WINELIB_NAME(GetKBCodePage)
3260 INT32 WINAPI GetKeyboardType32(INT32);
3261 #define GetKeyboardType WINELIB_NAME(GetKeyboardType)
3262 INT32 WINAPI GetKeyNameText32A(LONG,LPSTR,INT32);
3263 INT32 WINAPI GetKeyNameText32W(LONG,LPWSTR,INT32);
3264 #define GetKeyNameText WINELIB_NAME_AW(GetKeyNameText)
3265 INT32 WINAPI GetKeyboardLayoutName32A(LPSTR);
3266 INT32 WINAPI GetKeyboardLayoutName32W(LPWSTR);
3267 #define GetKeyboardLayoutName WINELIB_NAME_AW(GetKeyboardLayoutName)
3268 INT16 WINAPI GetKeyState32(INT32);
3269 #define GetKeyState WINELIB_NAME(GetKeyState)
3270 HWND32 WINAPI GetLastActivePopup32(HWND32);
3271 #define GetLastActivePopup WINELIB_NAME(GetLastActivePopup)
3272 HMENU32 WINAPI GetMenu32(HWND32);
3273 #define GetMenu WINELIB_NAME(GetMenu)
3274 INT32 WINAPI GetMenuItemCount32(HMENU32);
3275 #define GetMenuItemCount WINELIB_NAME(GetMenuItemCount)
3276 UINT32 WINAPI GetMenuItemID32(HMENU32,INT32);
3277 #define GetMenuItemID WINELIB_NAME(GetMenuItemID)
3278 BOOL32 WINAPI GetMenuItemRect32(HWND32,HMENU32,UINT32,LPRECT32);
3279 #define GetMenuItemRect WINELIB_NAME(GetMenuItemRect)
3280 UINT32 WINAPI GetMenuState32(HMENU32,UINT32,UINT32);
3281 #define GetMenuState WINELIB_NAME(GetMenuState)
3282 INT32 WINAPI GetMenuString32A(HMENU32,UINT32,LPSTR,INT32,UINT32);
3283 INT32 WINAPI GetMenuString32W(HMENU32,UINT32,LPWSTR,INT32,UINT32);
3284 #define GetMenuString WINELIB_NAME_AW(GetMenuString)
3285 BOOL32 WINAPI GetMessage32A(LPMSG32,HWND32,UINT32,UINT32);
3286 BOOL32 WINAPI GetMessage32W(LPMSG32,HWND32,UINT32,UINT32);
3287 #define GetMessage WINELIB_NAME_AW(GetMessage)
3288 HWND32 WINAPI GetNextDlgGroupItem32(HWND32,HWND32,BOOL32);
3289 #define GetNextDlgGroupItem WINELIB_NAME(GetNextDlgGroupItem)
3290 HWND32 WINAPI GetNextDlgTabItem32(HWND32,HWND32,BOOL32);
3291 #define GetNextDlgTabItem WINELIB_NAME(GetNextDlgTabItem)
3292 #define GetNextWindow32 GetWindow32
3293 #define GetNextWindow WINELIB_NAME(GetNextWindow)
3294 HWND32 WINAPI GetOpenClipboardWindow32(void);
3295 #define GetOpenClipboardWindow WINELIB_NAME(GetOpenClipboardWindow)
3296 HWND32 WINAPI GetParent32(HWND32);
3297 #define GetParent WINELIB_NAME(GetParent)
3298 INT32 WINAPI GetPriorityClipboardFormat32(UINT32*,INT32);
3299 #define GetPriorityClipboardFormat WINELIB_NAME(GetPriorityClipboardFormat)
3300 HANDLE32 WINAPI GetProp32A(HWND32,LPCSTR);
3301 HANDLE32 WINAPI GetProp32W(HWND32,LPCWSTR);
3302 #define GetProp WINELIB_NAME_AW(GetProp)
3303 DWORD WINAPI GetQueueStatus32(UINT32);
3304 #define GetQueueStatus WINELIB_NAME(GetQueueStatus)
3305 BOOL32 WINAPI GetScrollInfo32(HWND32,INT32,LPSCROLLINFO);
3306 #define GetScrollInfo WINELIB_NAME(GetScrollInfo)
3307 INT32 WINAPI GetScrollPos32(HWND32,INT32);
3308 #define GetScrollPos WINELIB_NAME(GetScrollPos)
3309 BOOL32 WINAPI GetScrollRange32(HWND32,INT32,LPINT32,LPINT32);
3310 #define GetScrollRange WINELIB_NAME(GetScrollRange)
3311 HWND32 WINAPI GetShellWindow32(void);
3312 #define GetShellWindow WINELIB_NAME(GetShellWindow)
3313 HMENU32 WINAPI GetSubMenu32(HMENU32,INT32);
3314 #define GetSubMenu WINELIB_NAME(GetSubMenu)
3315 COLORREF WINAPI GetSysColor32(INT32);
3316 #define GetSysColor WINELIB_NAME(GetSysColor)
3317 HBRUSH32 WINAPI GetSysColorBrush32(INT32);
3318 #define GetSysColorBrush WINELIB_NAME(GetSysColorBrush)
3319 #define GetSysModalWindow32() ((HWND32)0)
3320 #define GetSysModalWindow WINELIB_NAME(GetSysModalWindow)
3321 HMENU32 WINAPI GetSystemMenu32(HWND32,BOOL32);
3322 #define GetSystemMenu WINELIB_NAME(GetSystemMenu)
3323 INT32 WINAPI GetSystemMetrics32(INT32);
3324 #define GetSystemMetrics WINELIB_NAME(GetSystemMetrics)
3325 DWORD WINAPI GetTabbedTextExtent32A(HDC32,LPCSTR,INT32,INT32,const INT32*);
3326 DWORD WINAPI GetTabbedTextExtent32W(HDC32,LPCWSTR,INT32,INT32,const INT32*);
3327 #define GetTabbedTextExtent WINELIB_NAME_AW(GetTabbedTextExtent)
3328 HWND32 WINAPI GetTopWindow32(HWND32);
3329 #define GetTopWindow WINELIB_NAME(GetTopWindow)
3330 BOOL32 WINAPI GetUpdateRect32(HWND32,LPRECT32,BOOL32);
3331 #define GetUpdateRect WINELIB_NAME(GetUpdateRect)
3332 INT32 WINAPI GetUpdateRgn32(HWND32,HRGN32,BOOL32);
3333 #define GetUpdateRgn WINELIB_NAME(GetUpdateRgn)
3334 HWND32 WINAPI GetWindow32(HWND32,WORD);
3335 #define GetWindow WINELIB_NAME(GetWindow)
3336 HDC32 WINAPI GetWindowDC32(HWND32);
3337 #define GetWindowDC WINELIB_NAME(GetWindowDC)
3338 LONG WINAPI GetWindowLong32A(HWND32,INT32);
3339 LONG WINAPI GetWindowLong32W(HWND32,INT32);
3340 #define GetWindowLong WINELIB_NAME_AW(GetWindowLong)
3341 BOOL32 WINAPI GetWindowPlacement32(HWND32,LPWINDOWPLACEMENT32);
3342 #define GetWindowPlacement WINELIB_NAME(GetWindowPlacement)
3343 BOOL32 WINAPI GetWindowRect32(HWND32,LPRECT32);
3344 #define GetWindowRect WINELIB_NAME(GetWindowRect)
3345 INT32 WINAPI GetWindowRgn32(HWND32,HRGN32);
3346 #define GetWindowRgn WINELIB_NAME(GetWindowRgn)
3347 #define GetWindowTask32(hwnd) ((HTASK32)GetWindowThreadProcessId(hwnd,NULL))
3348 #define GetWindowTask WINELIB_NAME(GetWindowTask)
3349 INT32 WINAPI GetWindowText32A(HWND32,LPSTR,INT32);
3350 INT32 WINAPI GetWindowText32W(HWND32,LPWSTR,INT32);
3351 #define GetWindowText WINELIB_NAME_AW(GetWindowText)
3352 INT32 WINAPI GetWindowTextLength32A(HWND32);
3353 INT32 WINAPI GetWindowTextLength32W(HWND32);
3354 #define GetWindowTextLength WINELIB_NAME_AW(GetWindowTextLength)
3355 WORD WINAPI GetWindowWord32(HWND32,INT32);
3356 #define GetWindowWord WINELIB_NAME(GetWindowWord)
3357 ATOM WINAPI GlobalAddAtom32A(LPCSTR);
3358 ATOM WINAPI GlobalAddAtom32W(LPCWSTR);
3359 #define GlobalAddAtom WINELIB_NAME_AW(GlobalAddAtom)
3360 ATOM WINAPI GlobalFindAtom32A(LPCSTR);
3361 ATOM WINAPI GlobalFindAtom32W(LPCWSTR);
3362 #define GlobalFindAtom WINELIB_NAME_AW(GlobalFindAtom)
3363 UINT32 WINAPI GlobalGetAtomName32A(ATOM,LPSTR,INT32);
3364 UINT32 WINAPI GlobalGetAtomName32W(ATOM,LPWSTR,INT32);
3365 #define GlobalGetAtomName WINELIB_NAME_AW(GlobalGetAtomName)
3366 BOOL32 WINAPI GrayString32A(HDC32,HBRUSH32,GRAYSTRINGPROC32,LPARAM,
3367 INT32,INT32,INT32,INT32,INT32);
3368 BOOL32 WINAPI GrayString32W(HDC32,HBRUSH32,GRAYSTRINGPROC32,LPARAM,
3369 INT32,INT32,INT32,INT32,INT32);
3370 #define GrayString WINELIB_NAME_AW(GrayString)
3371 BOOL32 WINAPI HideCaret32(HWND32);
3372 #define HideCaret WINELIB_NAME(HideCaret)
3373 BOOL32 WINAPI HiliteMenuItem32(HWND32,HMENU32,UINT32,UINT32);
3374 #define HiliteMenuItem WINELIB_NAME(HiliteMenuItem)
3375 BOOL32 WINAPI InflateRect32(LPRECT32,INT32,INT32);
3376 #define InflateRect WINELIB_NAME(InflateRect)
3377 BOOL32 WINAPI InSendMessage32(void);
3378 #define InSendMessage WINELIB_NAME(InSendMessage)
3379 BOOL32 WINAPI InsertMenu32A(HMENU32,UINT32,UINT32,UINT32,LPCSTR);
3380 BOOL32 WINAPI InsertMenu32W(HMENU32,UINT32,UINT32,UINT32,LPCWSTR);
3381 #define InsertMenu WINELIB_NAME_AW(InsertMenu)
3382 BOOL32 WINAPI InsertMenuItem32A(HMENU32,UINT32,BOOL32,const MENUITEMINFO32A*);
3383 BOOL32 WINAPI InsertMenuItem32W(HMENU32,UINT32,BOOL32,const MENUITEMINFO32W*);
3384 #define InsertMenuItem WINELIB_NAME_AW(InsertMenuItem)
3385 BOOL32 WINAPI IntersectRect32(LPRECT32,const RECT32*,const RECT32*);
3386 #define IntersectRect WINELIB_NAME(IntersectRect)
3387 BOOL32 WINAPI InvalidateRect32(HWND32,const RECT32*,BOOL32);
3388 #define InvalidateRect WINELIB_NAME(InvalidateRect)
3389 BOOL32 WINAPI InvalidateRgn32(HWND32,HRGN32,BOOL32);
3390 #define InvalidateRgn WINELIB_NAME(InvalidateRgn)
3391 BOOL32 WINAPI InvertRect32(HDC32,const RECT32*);
3392 #define InvertRect WINELIB_NAME(InvertRect)
3393 BOOL32 WINAPI IsCharAlpha32A(CHAR);
3394 BOOL32 WINAPI IsCharAlpha32W(WCHAR);
3395 #define IsCharAlpha WINELIB_NAME_AW(IsCharAlpha)
3396 BOOL32 WINAPI IsCharAlphaNumeric32A(CHAR);
3397 BOOL32 WINAPI IsCharAlphaNumeric32W(WCHAR);
3398 #define IsCharAlphaNumeric WINELIB_NAME_AW(IsCharAlphaNumeric)
3399 BOOL32 WINAPI IsCharLower32A(CHAR);
3400 BOOL32 WINAPI IsCharLower32W(WCHAR);
3401 #define IsCharLower WINELIB_NAME_AW(IsCharLower)
3402 BOOL32 WINAPI IsCharUpper32A(CHAR);
3403 BOOL32 WINAPI IsCharUpper32W(WCHAR);
3404 #define IsCharUpper WINELIB_NAME_AW(IsCharUpper)
3405 BOOL32 WINAPI IsChild32(HWND32,HWND32);
3406 #define IsChild WINELIB_NAME(IsChild)
3407 BOOL32 WINAPI IsClipboardFormatAvailable32(UINT32);
3408 #define IsClipboardFormatAvailable WINELIB_NAME(IsClipboardFormatAvailable)
3409 BOOL32 WINAPI IsDialogMessage32A(HWND32,LPMSG32);
3410 BOOL32 WINAPI IsDialogMessage32W(HWND32,LPMSG32);
3411 #define IsDialogMessage WINELIB_NAME_AW(IsDialogMessage)
3412 UINT32 WINAPI IsDlgButtonChecked32(HWND32,UINT32);
3413 #define IsDlgButtonChecked WINELIB_NAME(IsDlgButtonChecked)
3414 BOOL32 WINAPI IsIconic32(HWND32);
3415 #define IsIconic WINELIB_NAME(IsIconic)
3416 BOOL32 WINAPI IsMenu32(HMENU32);
3417 #define IsMenu WINELIB_NAME(IsMenu)
3418 BOOL32 WINAPI IsRectEmpty32(const RECT32*);
3419 #define IsRectEmpty WINELIB_NAME(IsRectEmpty)
3420 BOOL32 WINAPI IsWindow32(HWND32);
3421 #define IsWindow WINELIB_NAME(IsWindow)
3422 BOOL32 WINAPI IsWindowEnabled32(HWND32);
3423 #define IsWindowEnabled WINELIB_NAME(IsWindowEnabled)
3424 BOOL32 WINAPI IsWindowVisible32(HWND32);
3425 #define IsWindowVisible WINELIB_NAME(IsWindowVisible)
3426 BOOL32 WINAPI IsZoomed32(HWND32);
3427 #define IsZoomed WINELIB_NAME(IsZoomed)
3428 BOOL32 WINAPI KillSystemTimer32(HWND32,UINT32);
3429 #define KillSystemTimer WINELIB_NAME(KillSystemTimer)
3430 BOOL32 WINAPI KillTimer32(HWND32,UINT32);
3431 #define KillTimer WINELIB_NAME(KillTimer)
3432 HACCEL32 WINAPI LoadAccelerators32A(HINSTANCE32,LPCSTR);
3433 HACCEL32 WINAPI LoadAccelerators32W(HINSTANCE32,LPCWSTR);
3434 #define LoadAccelerators WINELIB_NAME_AW(LoadAccelerators)
3435 HBITMAP32 WINAPI LoadBitmap32A(HANDLE32,LPCSTR);
3436 HBITMAP32 WINAPI LoadBitmap32W(HANDLE32,LPCWSTR);
3437 #define LoadBitmap WINELIB_NAME_AW(LoadBitmap)
3438 HCURSOR32 WINAPI LoadCursor32A(HINSTANCE32,LPCSTR);
3439 HCURSOR32 WINAPI LoadCursor32W(HINSTANCE32,LPCWSTR);
3440 #define LoadCursor WINELIB_NAME_AW(LoadCursor)
3441 HCURSOR32 WINAPI LoadCursorFromFile32A(LPCSTR);
3442 HCURSOR32 WINAPI LoadCursorFromFile32W(LPCWSTR);
3443 #define LoadCursorFromFile WINELIB_NAME_AW(LoadCursorFromFile)
3444 HICON32 WINAPI LoadIcon32A(HINSTANCE32,LPCSTR);
3445 HICON32 WINAPI LoadIcon32W(HINSTANCE32,LPCWSTR);
3446 #define LoadIcon WINELIB_NAME_AW(LoadIcon)
3447 HANDLE32 WINAPI LoadImage32A(HINSTANCE32,LPCSTR,UINT32,INT32,INT32,UINT32);
3448 HANDLE32 WINAPI LoadImage32W(HINSTANCE32,LPCWSTR,UINT32,INT32,INT32,UINT32);
3449 #define LoadImage WINELIB_NAME_AW(LoadImage)
3450 HMENU32 WINAPI LoadMenu32A(HINSTANCE32,LPCSTR);
3451 HMENU32 WINAPI LoadMenu32W(HINSTANCE32,LPCWSTR);
3452 #define LoadMenu WINELIB_NAME_AW(LoadMenu)
3453 HMENU32 WINAPI LoadMenuIndirect32A(LPCVOID);
3454 HMENU32 WINAPI LoadMenuIndirect32W(LPCVOID);
3455 #define LoadMenuIndirect WINELIB_NAME_AW(LoadMenuIndirect)
3456 INT32 WINAPI LoadString32A(HINSTANCE32,UINT32,LPSTR,INT32);
3457 INT32 WINAPI LoadString32W(HINSTANCE32,UINT32,LPWSTR,INT32);
3458 #define LoadString WINELIB_NAME_AW(LoadString)
3459 BOOL32 WINAPI LockWindowUpdate32(HWND32);
3460 #define LockWindowUpdate WINELIB_NAME(LockWindowUpdate)
3461 INT32 WINAPI LookupIconIdFromDirectory32(LPBYTE,BOOL32);
3462 #define LookupIconIdFromDirectory WINELIB_NAME(LookupIconIdFromDirectory)
3463 INT32 WINAPI LookupIconIdFromDirectoryEx32(LPBYTE,BOOL32,INT32,INT32,UINT32);
3464 #define LookupIconIdFromDirectoryEx WINELIB_NAME(LookupIconIdFromDirectoryEx)
3465 UINT32 WINAPI MapVirtualKey32A(UINT32,UINT32);
3466 UINT32 WINAPI MapVirtualKey32W(UINT32,UINT32);
3467 #define MapVirtualKey WINELIB_NAME_AW(MapVirtualKey)
3468 UINT32 WINAPI MapVirtualKeyEx32A(UINT32,UINT32,HKL32);
3469 #define MapVirtualKeyEx WINELIB_NAME_AW(MapVirtualKeyEx)
3470 BOOL32 WINAPI MapDialogRect32(HWND32,LPRECT32);
3471 #define MapDialogRect WINELIB_NAME(MapDialogRect)
3472 INT32 WINAPI MapWindowPoints32(HWND32,HWND32,LPPOINT32,UINT32);
3473 #define MapWindowPoints WINELIB_NAME(MapWindowPoints)
3474 BOOL32 WINAPI MessageBeep32(UINT32);
3475 #define MessageBeep WINELIB_NAME(MessageBeep)
3476 INT32 WINAPI MessageBox32A(HWND32,LPCSTR,LPCSTR,UINT32);
3477 INT32 WINAPI MessageBox32W(HWND32,LPCWSTR,LPCWSTR,UINT32);
3478 #define MessageBox WINELIB_NAME_AW(MessageBox)
3479 INT32 WINAPI MessageBoxIndirect32A(LPMSGBOXPARAMS32A);
3480 INT32 WINAPI MessageBoxIndirect32W(LPMSGBOXPARAMS32W);
3481 #define MessageBoxIndirect WINELIB_NAME_AW(MessageBoxIndirect)
3482 BOOL32 WINAPI ModifyMenu32A(HMENU32,UINT32,UINT32,UINT32,LPCSTR);
3483 BOOL32 WINAPI ModifyMenu32W(HMENU32,UINT32,UINT32,UINT32,LPCWSTR);
3484 #define ModifyMenu WINELIB_NAME_AW(ModifyMenu)
3485 BOOL32 WINAPI MoveWindow32(HWND32,INT32,INT32,INT32,INT32,BOOL32);
3486 #define MoveWindow WINELIB_NAME(MoveWindow)
3487 BOOL32 WINAPI OemToChar32A(LPCSTR,LPSTR);
3488 BOOL32 WINAPI OemToChar32W(LPCSTR,LPWSTR);
3489 #define OemToChar WINELIB_NAME_AW(OemToChar)
3490 BOOL32 WINAPI OemToCharBuff32A(LPCSTR,LPSTR,DWORD);
3491 BOOL32 WINAPI OemToCharBuff32W(LPCSTR,LPWSTR,DWORD);
3492 #define OemToCharBuff WINELIB_NAME_AW(OemToCharBuff)
3493 BOOL32 WINAPI OffsetRect32(LPRECT32,INT32,INT32);
3494 #define OffsetRect WINELIB_NAME(OffsetRect)
3495 BOOL32 WINAPI OpenClipboard32(HWND32);
3496 #define OpenClipboard WINELIB_NAME(OpenClipboard)
3497 BOOL32 WINAPI OpenIcon32(HWND32);
3498 #define OpenIcon WINELIB_NAME(OpenIcon)
3499 BOOL32 WINAPI PeekMessage32A(LPMSG32,HWND32,UINT32,UINT32,UINT32);
3500 BOOL32 WINAPI PeekMessage32W(LPMSG32,HWND32,UINT32,UINT32,UINT32);
3501 #define PeekMessage WINELIB_NAME_AW(PeekMessage)
3502 #define PostAppMessage32A(thread,msg,wparam,lparam) \
3503 PostThreadMessage32A((DWORD)(thread),msg,wparam,lparam)
3504 #define PostAppMessage32W(thread,msg,wparam,lparam) \
3505 PostThreadMessage32W((DWORD)(thread),msg,wparam,lparam)
3506 #define PostAppMessage WINELIB_NAME_AW(PostAppMessage)
3507 BOOL32 WINAPI PostMessage32A(HWND32,UINT32,WPARAM32,LPARAM);
3508 BOOL32 WINAPI PostMessage32W(HWND32,UINT32,WPARAM32,LPARAM);
3509 #define PostMessage WINELIB_NAME_AW(PostMessage)
3510 void WINAPI PostQuitMessage32(INT32);
3511 #define PostQuitMessage WINELIB_NAME(PostQuitMessage)
3512 BOOL32 WINAPI PtInRect32(const RECT32*,POINT32);
3513 #define PtInRect WINELIB_NAME(PtInRect)
3514 BOOL32 WINAPI RedrawWindow32(HWND32,const RECT32*,HRGN32,UINT32);
3515 #define RedrawWindow WINELIB_NAME(RedrawWindow)
3516 ATOM WINAPI RegisterClass32A(const WNDCLASS32A *);
3517 ATOM WINAPI RegisterClass32W(const WNDCLASS32W *);
3518 #define RegisterClass WINELIB_NAME_AW(RegisterClass)
3519 ATOM WINAPI RegisterClassEx32A(const WNDCLASSEX32A *);
3520 ATOM WINAPI RegisterClassEx32W(const WNDCLASSEX32W *);
3521 #define RegisterClassEx WINELIB_NAME_AW(RegisterClassEx)
3522 UINT32 WINAPI RegisterClipboardFormat32A(LPCSTR);
3523 UINT32 WINAPI RegisterClipboardFormat32W(LPCWSTR);
3524 #define RegisterClipboardFormat WINELIB_NAME_AW(RegisterClipboardFormat)
3525 WORD WINAPI RegisterWindowMessage32A(LPCSTR);
3526 WORD WINAPI RegisterWindowMessage32W(LPCWSTR);
3527 #define RegisterWindowMessage WINELIB_NAME_AW(RegisterWindowMessage)
3528 INT32 WINAPI ReleaseDC32(HWND32,HDC32);
3529 #define ReleaseDC WINELIB_NAME(ReleaseDC)
3530 BOOL32 WINAPI RemoveMenu32(HMENU32,UINT32,UINT32);
3531 #define RemoveMenu WINELIB_NAME(RemoveMenu)
3532 HANDLE32 WINAPI RemoveProp32A(HWND32,LPCSTR);
3533 HANDLE32 WINAPI RemoveProp32W(HWND32,LPCWSTR);
3534 #define RemoveProp WINELIB_NAME_AW(RemoveProp)
3535 BOOL32 WINAPI ReplyMessage32(LRESULT);
3536 #define ReplyMessage WINELIB_NAME(ReplyMessage)
3537 BOOL32 WINAPI ScreenToClient32(HWND32,LPPOINT32);
3538 #define ScreenToClient WINELIB_NAME(ScreenToClient)
3539 VOID WINAPI ScrollChildren32(HWND32,UINT32,WPARAM32,LPARAM);
3540 #define ScrollChildren WINELIB_NAME(ScrollChildren)
3541 BOOL32 WINAPI ScrollDC32(HDC32,INT32,INT32,const RECT32*,const RECT32*,
3542 HRGN32,LPRECT32);
3543 #define ScrollDC WINELIB_NAME(ScrollDC)
3544 BOOL32 WINAPI ScrollWindow32(HWND32,INT32,INT32,const RECT32*,const RECT32*);
3545 #define ScrollWindow WINELIB_NAME(ScrollWindow)
3546 INT32 WINAPI ScrollWindowEx32(HWND32,INT32,INT32,const RECT32*,
3547 const RECT32*,HRGN32,LPRECT32,UINT32);
3548 #define ScrollWindowEx WINELIB_NAME(ScrollWindowEx)
3549 LRESULT WINAPI SendDlgItemMessage32A(HWND32,INT32,UINT32,WPARAM32,LPARAM);
3550 LRESULT WINAPI SendDlgItemMessage32W(HWND32,INT32,UINT32,WPARAM32,LPARAM);
3551 #define SendDlgItemMessage WINELIB_NAME_AW(SendDlgItemMessage)
3552 LRESULT WINAPI SendMessage32A(HWND32,UINT32,WPARAM32,LPARAM);
3553 LRESULT WINAPI SendMessage32W(HWND32,UINT32,WPARAM32,LPARAM);
3554 #define SendMessage WINELIB_NAME_AW(SendMessage)
3555 LRESULT WINAPI SendMessageTimeout32A(HWND32,UINT32,WPARAM32,LPARAM,UINT32,
3556 UINT32,LPDWORD);
3557 LRESULT WINAPI SendMessageTimeout32W(HWND32,UINT32,WPARAM32,LPARAM,UINT32,
3558 UINT32,LPDWORD);
3559 #define SendMessageTimeout WINELIB_NAME_AW(SendMessageTimeout)
3560 HWND32 WINAPI SetActiveWindow32(HWND32);
3561 #define SetActiveWindow WINELIB_NAME(SetActiveWindow)
3562 HWND32 WINAPI SetCapture32(HWND32);
3563 #define SetCapture WINELIB_NAME(SetCapture)
3564 BOOL32 WINAPI SetCaretBlinkTime32(UINT32);
3565 #define SetCaretBlinkTime WINELIB_NAME(SetCaretBlinkTime)
3566 BOOL32 WINAPI SetCaretPos32(INT32,INT32);
3567 #define SetCaretPos WINELIB_NAME(SetCaretPos)
3568 LONG WINAPI SetClassLong32A(HWND32,INT32,LONG);
3569 LONG WINAPI SetClassLong32W(HWND32,INT32,LONG);
3570 #define SetClassLong WINELIB_NAME_AW(SetClassLong)
3571 WORD WINAPI SetClassWord32(HWND32,INT32,WORD);
3572 #define SetClassWord WINELIB_NAME(SetClassWord)
3573 HANDLE32 WINAPI SetClipboardData32(UINT32,HANDLE32);
3574 #define SetClipboardData WINELIB_NAME(SetClipboardData)
3575 HWND32 WINAPI SetClipboardViewer32(HWND32);
3576 #define SetClipboardViewer WINELIB_NAME(SetClipboardViewer)
3577 BOOL32 WINAPI SetCommBreak32(INT32);
3578 #define SetCommBreak WINELIB_NAME(SetCommBreak)
3579 HCURSOR32 WINAPI SetCursor32(HCURSOR32);
3580 #define SetCursor WINELIB_NAME(SetCursor)
3581 BOOL32 WINAPI SetCursorPos32(INT32,INT32);
3582 #define SetCursorPos WINELIB_NAME(SetCursorPos)
3583 BOOL32 WINAPI SetDeskWallPaper32(LPCSTR);
3584 #define SetDeskWallPaper WINELIB_NAME(SetDeskWallPaper)
3585 BOOL32 WINAPI SetDlgItemInt32(HWND32,INT32,UINT32,BOOL32);
3586 #define SetDlgItemInt WINELIB_NAME(SetDlgItemInt)
3587 BOOL32 WINAPI SetDlgItemText32A(HWND32,INT32,LPCSTR);
3588 BOOL32 WINAPI SetDlgItemText32W(HWND32,INT32,LPCWSTR);
3589 #define SetDlgItemText WINELIB_NAME_AW(SetDlgItemText)
3590 BOOL32 WINAPI SetDoubleClickTime32(UINT32);
3591 #define SetDoubleClickTime WINELIB_NAME(SetDoubleClickTime)
3592 HWND32 WINAPI SetFocus32(HWND32);
3593 #define SetFocus WINELIB_NAME(SetFocus)
3594 BOOL32 WINAPI SetForegroundWindow32(HWND32);
3595 #define SetForegroundWindow WINELIB_NAME(SetForegroundWindow)
3596 void WINAPI SetInternalWindowPos32(HWND32,UINT32,LPRECT32,LPPOINT32);
3597 #define SetInternalWindowPos WINELIB_NAME(SetInternalWindowPos)
3598 BOOL32 WINAPI SetMenu32(HWND32,HMENU32);
3599 #define SetMenu WINELIB_NAME(SetMenu)
3600 BOOL32 WINAPI SetMenuContextHelpId32(HMENU32,DWORD);
3601 #define SetMenuContextHelpId WINELIB_NAME(SetMenuContextHelpId)
3602 BOOL32 WINAPI SetMenuItemBitmaps32(HMENU32,UINT32,UINT32,HBITMAP32,HBITMAP32);
3603 #define SetMenuItemBitmaps WINELIB_NAME(SetMenuItemBitmaps)
3604 BOOL32 WINAPI SetMessageQueue32(INT32);
3605 #define SetMessageQueue WINELIB_NAME(SetMessageQueue)
3606 HWND32 WINAPI SetParent32(HWND32,HWND32);
3607 #define SetParent WINELIB_NAME(SetParent)
3608 BOOL32 WINAPI SetProp32A(HWND32,LPCSTR,HANDLE32);
3609 BOOL32 WINAPI SetProp32W(HWND32,LPCWSTR,HANDLE32);
3610 #define SetProp WINELIB_NAME_AW(SetProp)
3611 BOOL32 WINAPI SetRect32(LPRECT32,INT32,INT32,INT32,INT32);
3612 #define SetRect WINELIB_NAME(SetRect)
3613 BOOL32 WINAPI SetRectEmpty32(LPRECT32);
3614 #define SetRectEmpty WINELIB_NAME(SetRectEmpty)
3615 INT32 WINAPI SetScrollInfo32(HWND32,INT32,const SCROLLINFO*,BOOL32);
3616 #define SetScrollInfo WINELIB_NAME(SetScrollInfo)
3617 INT32 WINAPI SetScrollPos32(HWND32,INT32,INT32,BOOL32);
3618 #define SetScrollPos WINELIB_NAME(SetScrollPos)
3619 BOOL32 WINAPI SetScrollRange32(HWND32,INT32,INT32,INT32,BOOL32);
3620 #define SetScrollRange WINELIB_NAME(SetScrollRange)
3621 BOOL32 WINAPI SetSysColors32(INT32,const INT32*,const COLORREF*);
3622 #define SetSysColors WINELIB_NAME(SetSysColors)
3623 #define SetSysModalWindow32(hwnd) ((HWND32)0)
3624 #define SetSysModalWindow WINELIB_NAME(SetSysModalWindow)
3625 BOOL32 WINAPI SetSystemMenu32(HWND32,HMENU32);
3626 #define SetSystemMenu WINELIB_NAME(SetSystemMenu)
3627 UINT32 WINAPI SetSystemTimer32(HWND32,UINT32,UINT32,TIMERPROC32);
3628 #define SetSystemTimer WINELIB_NAME(SetSystemTimer)
3629 UINT32 WINAPI SetTimer32(HWND32,UINT32,UINT32,TIMERPROC32);
3630 #define SetTimer WINELIB_NAME(SetTimer)
3631 LONG WINAPI SetWindowLong32A(HWND32,INT32,LONG);
3632 LONG WINAPI SetWindowLong32W(HWND32,INT32,LONG);
3633 #define SetWindowLong WINELIB_NAME_AW(SetWindowLong)
3634 BOOL32 WINAPI SetWindowPlacement32(HWND32,const WINDOWPLACEMENT32*);
3635 #define SetWindowPlacement WINELIB_NAME(SetWindowPlacement)
3636 HHOOK WINAPI SetWindowsHook32A(INT32,HOOKPROC32);
3637 HHOOK WINAPI SetWindowsHook32W(INT32,HOOKPROC32);
3638 #define SetWindowsHook WINELIB_NAME_AW(SetWindowsHook)
3639 HHOOK WINAPI SetWindowsHookEx32A(INT32,HOOKPROC32,HINSTANCE32,DWORD);
3640 HHOOK WINAPI SetWindowsHookEx32W(INT32,HOOKPROC32,HINSTANCE32,DWORD);
3641 #define SetWindowsHookEx WINELIB_NAME_AW(SetWindowsHookEx)
3642 BOOL32 WINAPI SetWindowPos32(HWND32,HWND32,INT32,INT32,INT32,INT32,WORD);
3643 #define SetWindowPos WINELIB_NAME(SetWindowPos)
3644 INT32 WINAPI SetWindowRgn32(HWND32,HRGN32,BOOL32);
3645 #define SetWindowRgn WINELIB_NAME(SetWindowRgn)
3646 BOOL32 WINAPI SetWindowText32A(HWND32,LPCSTR);
3647 BOOL32 WINAPI SetWindowText32W(HWND32,LPCWSTR);
3648 #define SetWindowText WINELIB_NAME_AW(SetWindowText)
3649 WORD WINAPI SetWindowWord32(HWND32,INT32,WORD);
3650 #define SetWindowWord WINELIB_NAME(SetWindowWord)
3651 BOOL32 WINAPI ShowCaret32(HWND32);
3652 #define ShowCaret WINELIB_NAME(ShowCaret)
3653 INT32 WINAPI ShowCursor32(BOOL32);
3654 #define ShowCursor WINELIB_NAME(ShowCursor)
3655 BOOL32 WINAPI ShowScrollBar32(HWND32,INT32,BOOL32);
3656 #define ShowScrollBar WINELIB_NAME(ShowScrollBar)
3657 BOOL32 WINAPI ShowOwnedPopups32(HWND32,BOOL32);
3658 #define ShowOwnedPopups WINELIB_NAME(ShowOwnedPopups)
3659 BOOL32 WINAPI ShowWindow32(HWND32,INT32);
3660 #define ShowWindow WINELIB_NAME(ShowWindow)
3661 BOOL32 WINAPI SubtractRect32(LPRECT32,const RECT32*,const RECT32*);
3662 #define SubtractRect WINELIB_NAME(SubtractRect)
3663 BOOL32 WINAPI SwapMouseButton32(BOOL32);
3664 #define SwapMouseButton WINELIB_NAME(SwapMouseButton)
3665 VOID WINAPI SwitchToThisWindow32(HWND32,BOOL32);
3666 #define SwitchToThisWindow WINELIB_NAME(SwitchToThisWindow)
3667 BOOL32 WINAPI SystemParametersInfo32A(UINT32,UINT32,LPVOID,UINT32);
3668 BOOL32 WINAPI SystemParametersInfo32W(UINT32,UINT32,LPVOID,UINT32);
3669 #define SystemParametersInfo WINELIB_NAME_AW(SystemParametersInfo)
3670 LONG WINAPI TabbedTextOut32A(HDC32,INT32,INT32,LPCSTR,INT32,INT32,const INT32*,INT32);
3671 LONG WINAPI TabbedTextOut32W(HDC32,INT32,INT32,LPCWSTR,INT32,INT32,const INT32*,INT32);
3672 #define TabbedTextOut WINELIB_NAME_AW(TabbedTextOut)
3673 INT32 WINAPI ToAscii32(UINT32,UINT32,LPBYTE,LPWORD,UINT32);
3674 #define ToAscii WINELIB_NAME(ToAscii)
3675 BOOL32 WINAPI TrackPopupMenu32(HMENU32,UINT32,INT32,INT32,INT32,HWND32,const RECT32*);
3676 #define TrackPopupMenu WINELIB_NAME(TrackPopupMenu)
3677 INT32 WINAPI TranslateAccelerator32(HWND32,HACCEL32,LPMSG32);
3678 #define TranslateAccelerator WINELIB_NAME(TranslateAccelerator)
3679 BOOL32 WINAPI TranslateMDISysAccel32(HWND32,LPMSG32);
3680 #define TranslateMDISysAccel WINELIB_NAME(TranslateMDISysAccel)
3681 BOOL32 WINAPI TranslateMessage32(const MSG32*);
3682 #define TranslateMessage WINELIB_NAME(TranslateMessage)
3683 BOOL32 WINAPI UnhookWindowsHook32(INT32,HOOKPROC32);
3684 #define UnhookWindowsHook WINELIB_NAME(UnhookWindowsHook)
3685 BOOL32 WINAPI UnhookWindowsHookEx32(HHOOK);
3686 #define UnhookWindowsHookEx WINELIB_NAME(UnhookWindowsHookEx)
3687 BOOL32 WINAPI UnionRect32(LPRECT32,const RECT32*,const RECT32*);
3688 #define UnionRect WINELIB_NAME(UnionRect)
3689 BOOL32 WINAPI UnregisterClass32A(LPCSTR,HINSTANCE32);
3690 BOOL32 WINAPI UnregisterClass32W(LPCWSTR,HINSTANCE32);
3691 #define UnregisterClass WINELIB_NAME_AW(UnregisterClass)
3692 VOID WINAPI UpdateWindow32(HWND32);
3693 #define UpdateWindow WINELIB_NAME(UpdateWindow)
3694 VOID WINAPI ValidateRect32(HWND32,const RECT32*);
3695 #define ValidateRect WINELIB_NAME(ValidateRect)
3696 VOID WINAPI ValidateRgn32(HWND32,HRGN32);
3697 #define ValidateRgn WINELIB_NAME(ValidateRgn)
3698 WORD WINAPI VkKeyScan32A(CHAR);
3699 WORD WINAPI VkKeyScan32W(WCHAR);
3700 #define VkKeyScan WINELIB_NAME_AW(VkKeyScan)
3701 HWND32 WINAPI WindowFromDC32(HDC32);
3702 #define WindowFromDC WINELIB_NAME(WindowFromDC)
3703 HWND32 WINAPI WindowFromPoint32(POINT32);
3704 #define WindowFromPoint WINELIB_NAME(WindowFromPoint)
3705 BOOL32 WINAPI WinHelp32A(HWND32,LPCSTR,UINT32,DWORD);
3706 BOOL32 WINAPI WinHelp32W(HWND32,LPCWSTR,UINT32,DWORD);
3707 #define WinHelp WINELIB_NAME_AW(WinHelp)
3708 UINT32 WINAPI WNetAddConnection32A(LPCSTR,LPCSTR,LPCSTR);
3709 UINT32 WINAPI WNetAddConnection32W(LPCWSTR,LPCWSTR,LPCWSTR);
3710 #define WNetAddConnection WINELIB_NAME_AW(WNetAddConnection)
3711 INT32 WINAPIV wsnprintf32A(LPSTR,UINT32,LPCSTR,...);
3712 INT32 WINAPIV wsnprintf32W(LPWSTR,UINT32,LPCWSTR,...);
3713 #define wsnprintf WINELIB_NAME_AW(wsnprintf)
3714 INT32 WINAPIV wsprintf32A(LPSTR,LPCSTR,...);
3715 INT32 WINAPIV wsprintf32W(LPWSTR,LPCWSTR,...);
3716 #define wsprintf WINELIB_NAME_AW(wsprintf)
3717 INT32 WINAPI wvsnprintf32A(LPSTR,UINT32,LPCSTR,va_list);
3718 INT32 WINAPI wvsnprintf32W(LPWSTR,UINT32,LPCWSTR,va_list);
3719 #define wvsnprintf WINELIB_NAME_AW(wvsnprintf)
3720 INT32 WINAPI wvsprintf32A(LPSTR,LPCSTR,va_list);
3721 INT32 WINAPI wvsprintf32W(LPWSTR,LPCWSTR,va_list);
3722 #define wvsprintf WINELIB_NAME_AW(wvsprintf)
3724 BOOL32 WINAPI RegisterShellHook(HWND16,UINT16);
3725 /* NOTE: This is SYSTEM.3, not USER.182, which is also named KillSystemTimer */
3726 WORD WINAPI SYSTEM_KillSystemTimer( WORD );
3728 /* Extra functions that don't exist in the Windows API */
3730 HPEN32 WINAPI GetSysColorPen32(INT32);
3731 INT32 WINAPI LoadMessage32A(HMODULE32,UINT32,WORD,LPSTR,INT32);
3732 INT32 WINAPI LoadMessage32W(HMODULE32,UINT32,WORD,LPWSTR,INT32);
3734 VOID WINAPI ScreenSwitchEnable(WORD);
3736 #endif /* __INCLUDE_WINUSER_H */