15 /* Define a bunch of callback types */
18 typedef BOOL
CALLBACK (*DLGPROC
)(HWND
,UINT
,WPARAM
,LPARAM
);
19 typedef BOOL
CALLBACK (*DRAWSTATEPROC
)(HDC
,LPARAM
,WPARAM
,int,int);
20 typedef INT
CALLBACK (*EDITWORDBREAKPROCA
)(LPSTR
,INT
,INT
,INT
);
21 typedef INT
CALLBACK (*EDITWORDBREAKPROCW
)(LPWSTR
,INT
,INT
,INT
);
22 typedef BOOL
CALLBACK (*GRAYSTRINGPROC
)(HDC
,LPARAM
,INT
);
23 typedef LRESULT
CALLBACK (*HOOKPROC
)(INT
,WPARAM
,LPARAM
);
24 typedef BOOL
CALLBACK (*NAMEENUMPROCA
)(LPSTR
,LPARAM
);
25 typedef BOOL
CALLBACK (*NAMEENUMPROCW
)(LPWSTR
,LPARAM
);
26 typedef BOOL
CALLBACK (*PROPENUMPROCA
)(HWND
,LPCSTR
,HANDLE
);
27 typedef BOOL
CALLBACK (*PROPENUMPROCW
)(HWND
,LPCWSTR
,HANDLE
);
28 typedef BOOL
CALLBACK (*PROPENUMPROCEXA
)(HWND
,LPCSTR
,HANDLE
,DWORD
);
29 typedef BOOL
CALLBACK (*PROPENUMPROCEXW
)(HWND
,LPCWSTR
,HANDLE
,DWORD
);
30 typedef VOID
CALLBACK (*SENDASYNCPROC
)(HWND
,UINT
,DWORD
,LRESULT
);
31 typedef VOID
CALLBACK (*TIMERPROC
)(HWND
,UINT
,UINT
,DWORD
);
32 typedef BOOL
CALLBACK (*WNDENUMPROC
)(HWND
,LPARAM
);
34 typedef FARPROC DLGPROC
;
35 typedef FARPROC DRAWSTATEPROC
;
36 typedef FARPROC EDITWORDBREAKPROCA
;
37 typedef FARPROC EDITWORDBREAKPROCW
;
38 typedef FARPROC GRAYSTRINGPROC
;
39 typedef FARPROC HOOKPROC
;
40 typedef FARPROC NAMEENUMPROCA
;
41 typedef FARPROC NAMEENUMPROCW
;
42 typedef FARPROC PROPENUMPROCA
;
43 typedef FARPROC PROPENUMPROCW
;
44 typedef FARPROC PROPENUMPROCEXA
;
45 typedef FARPROC PROPENUMPROCEXW
;
46 typedef FARPROC SENDASYNCPROC
;
47 typedef FARPROC TIMERPROC
;
48 typedef FARPROC WNDENUMPROC
;
51 typedef NAMEENUMPROCA WINSTAENUMPROCA
;
52 typedef NAMEENUMPROCA DESKTOPENUMPROCA
;
53 typedef NAMEENUMPROCW WINSTAENUMPROCW
;
54 typedef NAMEENUMPROCW DESKTOPENUMPROCW
;
56 typedef LRESULT
CALLBACK (*WNDPROC
)(HWND
,UINT
,WPARAM
,LPARAM
);
58 DECL_WINELIB_TYPE_AW(DESKTOPENUMPROC
)
59 DECL_WINELIB_TYPE_AW(EDITWORDBREAKPROC
)
60 DECL_WINELIB_TYPE_AW(NAMEENUMPROC
)
61 DECL_WINELIB_TYPE_AW(PROPENUMPROC
)
62 DECL_WINELIB_TYPE_AW(PROPENUMPROCEX
)
63 DECL_WINELIB_TYPE_AW(WINSTAENUMPROC
)
69 /* flags for HIGHCONTRAST dwFlags field */
70 #define HCF_HIGHCONTRASTON 0x00000001
71 #define HCF_AVAILABLE 0x00000002
72 #define HCF_HOTKEYACTIVE 0x00000004
73 #define HCF_CONFIRMHOTKEY 0x00000008
74 #define HCF_HOTKEYSOUND 0x00000010
75 #define HCF_INDICATOR 0x00000020
76 #define HCF_HOTKEYAVAILABLE 0x00000040
78 typedef struct tagHIGHCONTRASTA
82 LPSTR lpszDefaultScheme
;
83 } HIGHCONTRASTA
, *LPHIGHCONTRASTA
;
85 typedef struct tagHIGHCONTRASTW
89 LPWSTR lpszDefaultScheme
;
90 } HIGHCONTRASTW
, *LPHIGHCONTRASTW
;
92 DECL_WINELIB_TYPE_AW(HIGHCONTRAST
)
93 DECL_WINELIB_TYPE_AW(LPHIGHCONTRAST
)
102 } EVENTMSG
, *PEVENTMSG
, *LPEVENTMSG
;
105 /* Mouse hook structure */
113 } MOUSEHOOKSTRUCT
, *PMOUSEHOOKSTRUCT
, *LPMOUSEHOOKSTRUCT
;
116 /* Hardware hook structure */
124 } HARDWAREHOOKSTRUCT
, *PHARDWAREHOOKSTRUCT
, *LPHARDWAREHOOKSTRUCT
;
127 /* Debug hook structure */
132 DWORD idThreadInstaller
;
136 } DEBUGHOOKINFO
, *PDEBUGHOOKINFO
, *LPDEBUGHOOKINFO
;
141 #define KLF_ACTIVATE 0x00000001
142 #define KLF_SUBSTITUTE_OK 0x00000002
143 #define KLF_UNLOADPREVIOUS 0x00000004
144 #define KLF_REORDER 0x00000008
145 #define KLF_REPLACELANG 0x00000010
146 #define KLF_NOTELLSHELL 0x00000080
148 #define KL_NAMELENGTH 9
150 /***** Dialogs *****/
151 /* Gcc on Solaris has a version of this that we don't care about */
154 #define FVIRTKEY TRUE /* Assumed to be == TRUE */
155 #define FNOINVERT 0x02
157 #define FCONTROL 0x08
161 typedef struct tagANIMATIONINFO
165 } ANIMATIONINFO
, *LPANIMATIONINFO
;
167 typedef struct tagNMHDR
181 } DRAWTEXTPARAMS
,*LPDRAWTEXTPARAMS
;
183 #define WM_USER 0x0400
185 #define DT_EDITCONTROL 0x00002000
186 #define DT_PATH_ELLIPSIS 0x00004000
187 #define DT_END_ELLIPSIS 0x00008000
188 #define DT_MODIFYSTRING 0x00010000
189 #define DT_RTLREADING 0x00020000
190 #define DT_WORD_ELLIPSIS 0x00040000
198 } CWPSTRUCT
, *PCWPSTRUCT
, *LPCWPSTRUCT
;
207 } CWPRETSTRUCT
, *PCWPRETSTRUCT
, *LPCWPRETSTRUCT
;
214 POINT ptMinPosition WINE_PACKED
;
215 POINT ptMaxPosition WINE_PACKED
;
216 RECT rcNormalPosition WINE_PACKED
;
217 } WINDOWPLACEMENT
, *PWINDOWPLACEMENT
, *LPWINDOWPLACEMENT
;
220 /* WINDOWPLACEMENT flags */
221 #define WPF_SETMINPOSITION 0x0001
222 #define WPF_RESTORETOMAXIMIZED 0x0002
224 /***** Dialogs *****/
226 /* cbWndExtra bytes for dialog class */
227 #define DLGWINDOWEXTRA 30
229 /* Button control styles */
230 #define BS_PUSHBUTTON 0x00000000L
231 #define BS_DEFPUSHBUTTON 0x00000001L
232 #define BS_CHECKBOX 0x00000002L
233 #define BS_AUTOCHECKBOX 0x00000003L
234 #define BS_RADIOBUTTON 0x00000004L
235 #define BS_3STATE 0x00000005L
236 #define BS_AUTO3STATE 0x00000006L
237 #define BS_GROUPBOX 0x00000007L
238 #define BS_USERBUTTON 0x00000008L
239 #define BS_AUTORADIOBUTTON 0x00000009L
240 #define BS_OWNERDRAW 0x0000000BL
241 #define BS_LEFTTEXT 0x00000020L
242 #define BS_RIGHTBUTTON BS_LEFTTEXT
244 #define BS_TEXT 0x00000000L
245 #define BS_ICON 0x00000040L
246 #define BS_BITMAP 0x00000080L
247 #define BS_LEFT 0x00000100L
248 #define BS_RIGHT 0x00000200L
249 #define BS_CENTER 0x00000300L
250 #define BS_TOP 0x00000400L
251 #define BS_BOTTOM 0x00000800L
252 #define BS_VCENTER 0x00000C00L
253 #define BS_PUSHLIKE 0x00001000L
254 #define BS_MULTILINE 0x00002000L
255 #define BS_NOTIFY 0x00004000L
256 #define BS_FLAT 0x00008000L
259 #define DS_ABSALIGN 0x0001
260 #define DS_SYSMODAL 0x0002
261 #define DS_3DLOOK 0x0004 /* win95 */
262 #define DS_FIXEDSYS 0x0008 /* win95 */
263 #define DS_NOFAILCREATE 0x0010 /* win95 */
264 #define DS_LOCALEDIT 0x0020
265 #define DS_SETFONT 0x0040
266 #define DS_MODALFRAME 0x0080
267 #define DS_NOIDLEMSG 0x0100
268 #define DS_SETFOREGROUND 0x0200 /* win95 */
269 #define DS_CONTROL 0x0400 /* win95 */
270 #define DS_CENTER 0x0800 /* win95 */
271 #define DS_CENTERMOUSE 0x1000 /* win95 */
272 #define DS_CONTEXTHELP 0x2000 /* win95 */
275 /* Dialog messages */
276 #define DM_GETDEFID (WM_USER+0)
277 #define DM_SETDEFID (WM_USER+1)
278 #define DM_REPOSITION (WM_USER+2)
280 #define DC_HASDEFID 0x534b
282 /* Owner draw control types */
284 #define ODT_LISTBOX 2
285 #define ODT_COMBOBOX 3
289 /* Owner draw actions */
290 #define ODA_DRAWENTIRE 0x0001
291 #define ODA_SELECT 0x0002
292 #define ODA_FOCUS 0x0004
294 /* Owner draw state */
295 #define ODS_SELECTED 0x0001
296 #define ODS_GRAYED 0x0002
297 #define ODS_DISABLED 0x0004
298 #define ODS_CHECKED 0x0008
299 #define ODS_FOCUS 0x0010
300 #define ODS_COMBOBOXEDIT 0x1000
301 #define ODS_HOTLIGHT 0x0040
302 #define ODS_INACTIVE 0x0080
304 /* Edit control styles */
305 #define ES_LEFT 0x00000000
306 #define ES_CENTER 0x00000001
307 #define ES_RIGHT 0x00000002
308 #define ES_MULTILINE 0x00000004
309 #define ES_UPPERCASE 0x00000008
310 #define ES_LOWERCASE 0x00000010
311 #define ES_PASSWORD 0x00000020
312 #define ES_AUTOVSCROLL 0x00000040
313 #define ES_AUTOHSCROLL 0x00000080
314 #define ES_NOHIDESEL 0x00000100
315 #define ES_COMBO 0x00000200 /* Undocumented. Parent is a combobox */
316 #define ES_OEMCONVERT 0x00000400
317 #define ES_READONLY 0x00000800
318 #define ES_WANTRETURN 0x00001000
319 #define ES_NUMBER 0x00002000
321 /* OEM Resource Ordinal Numbers */
322 #define OBM_CLOSED 32731
323 #define OBM_TRTYPE 32732
324 #define OBM_LFARROWI 32734
325 #define OBM_RGARROWI 32735
326 #define OBM_DNARROWI 32736
327 #define OBM_UPARROWI 32737
328 #define OBM_COMBO 32738
329 #define OBM_MNARROW 32739
330 #define OBM_LFARROWD 32740
331 #define OBM_RGARROWD 32741
332 #define OBM_DNARROWD 32742
333 #define OBM_UPARROWD 32743
334 #define OBM_RESTORED 32744
335 #define OBM_ZOOMD 32745
336 #define OBM_REDUCED 32746
337 #define OBM_RESTORE 32747
338 #define OBM_ZOOM 32748
339 #define OBM_REDUCE 32749
340 #define OBM_LFARROW 32750
341 #define OBM_RGARROW 32751
342 #define OBM_DNARROW 32752
343 #define OBM_UPARROW 32753
344 #define OBM_CLOSE 32754
345 #define OBM_OLD_RESTORE 32755
346 #define OBM_OLD_ZOOM 32756
347 #define OBM_OLD_REDUCE 32757
348 #define OBM_BTNCORNERS 32758
349 #define OBM_CHECKBOXES 32759
350 #define OBM_CHECK 32760
351 #define OBM_BTSIZE 32761
352 #define OBM_OLD_LFARROW 32762
353 #define OBM_OLD_RGARROW 32763
354 #define OBM_OLD_DNARROW 32764
355 #define OBM_OLD_UPARROW 32765
356 #define OBM_SIZE 32766
357 #define OBM_OLD_CLOSE 32767
359 #define OCR_NORMAL 32512
360 #define OCR_IBEAM 32513
361 #define OCR_WAIT 32514
362 #define OCR_CROSS 32515
364 #define OCR_SIZE 32640
365 #define OCR_ICON 32641
366 #define OCR_SIZENWSE 32642
367 #define OCR_SIZENESW 32643
368 #define OCR_SIZEWE 32644
369 #define OCR_SIZENS 32645
370 #define OCR_SIZEALL 32646
371 #define OCR_ICOCUR 32647
373 #define OCR_HAND 32649
374 #define OCR_APPSTARTING 32650
375 #define OCR_HELP 32651
377 /* only defined in wine (FIXME) */
378 #define OCR_DRAGOBJECT 32653
380 #define OIC_SAMPLE 32512
381 #define OIC_HAND 32513
382 #define OIC_QUES 32514
383 #define OIC_BANG 32515
384 #define OIC_NOTE 32516
385 #define OIC_WINLOGO 32517
386 #define OIC_WARNING OIC_BANG
387 #define OIC_ERROR OIC_HAND
388 #define OIC_INFORMATION OIC_NOTE
390 #define COLOR_SCROLLBAR 0
391 #define COLOR_BACKGROUND 1
392 #define COLOR_ACTIVECAPTION 2
393 #define COLOR_INACTIVECAPTION 3
395 #define COLOR_WINDOW 5
396 #define COLOR_WINDOWFRAME 6
397 #define COLOR_MENUTEXT 7
398 #define COLOR_WINDOWTEXT 8
399 #define COLOR_CAPTIONTEXT 9
400 #define COLOR_ACTIVEBORDER 10
401 #define COLOR_INACTIVEBORDER 11
402 #define COLOR_APPWORKSPACE 12
403 #define COLOR_HIGHLIGHT 13
404 #define COLOR_HIGHLIGHTTEXT 14
405 #define COLOR_BTNFACE 15
406 #define COLOR_BTNSHADOW 16
407 #define COLOR_GRAYTEXT 17
408 #define COLOR_BTNTEXT 18
409 #define COLOR_INACTIVECAPTIONTEXT 19
410 #define COLOR_BTNHIGHLIGHT 20
412 #define COLOR_3DDKSHADOW 21
413 #define COLOR_3DLIGHT 22
414 #define COLOR_INFOTEXT 23
415 #define COLOR_INFOBK 24
416 #define COLOR_DESKTOP COLOR_BACKGROUND
417 #define COLOR_3DFACE COLOR_BTNFACE
418 #define COLOR_3DSHADOW COLOR_BTNSHADOW
419 #define COLOR_3DHIGHLIGHT COLOR_BTNHIGHLIGHT
420 #define COLOR_3DHILIGHT COLOR_BTNHIGHLIGHT
421 #define COLOR_BTNHILIGHT COLOR_BTNHIGHLIGHT
423 #define COLOR_ALTERNATEBTNFACE 25 /* undocumented, constant's name unknown */
424 #define COLOR_HOTLIGHT 26
425 #define COLOR_GRADIENTACTIVECAPTION 27
426 #define COLOR_GRADIENTINACTIVECAPTION 28
428 /* WM_CTLCOLOR values */
429 #define CTLCOLOR_MSGBOX 0
430 #define CTLCOLOR_EDIT 1
431 #define CTLCOLOR_LISTBOX 2
432 #define CTLCOLOR_BTN 3
433 #define CTLCOLOR_DLG 4
434 #define CTLCOLOR_SCROLLBAR 5
435 #define CTLCOLOR_STATIC 6
437 /* Edit control messages */
438 #define EM_GETSEL 0x00b0
439 #define EM_SETSEL 0x00b1
440 #define EM_GETRECT 0x00b2
441 #define EM_SETRECT 0x00b3
442 #define EM_SETRECTNP 0x00b4
443 #define EM_SCROLL 0x00b5
444 #define EM_LINESCROLL 0x00b6
445 #define EM_SCROLLCARET 0x00b7
446 #define EM_GETMODIFY 0x00b8
447 #define EM_SETMODIFY 0x00b9
448 #define EM_GETLINECOUNT 0x00ba
449 #define EM_LINEINDEX 0x00bb
450 #define EM_SETHANDLE 0x00bc
451 #define EM_GETHANDLE 0x00bd
452 #define EM_GETTHUMB 0x00be
453 /* FIXME : missing from specs 0x00bf and 0x00c0 */
454 #define EM_LINELENGTH 0x00c1
455 #define EM_REPLACESEL 0x00c2
456 /* FIXME : missing from specs 0x00c3 */
457 #define EM_GETLINE 0x00c4
458 #define EM_LIMITTEXT 0x00c5
459 #define EM_CANUNDO 0x00c6
460 #define EM_UNDO 0x00c7
461 #define EM_FMTLINES 0x00c8
462 #define EM_LINEFROMCHAR 0x00c9
463 /* FIXME : missing from specs 0x00ca */
464 #define EM_SETTABSTOPS 0x00cb
465 #define EM_SETPASSWORDCHAR 0x00cc
466 #define EM_EMPTYUNDOBUFFER 0x00cd
467 #define EM_GETFIRSTVISIBLELINE 0x00ce
468 #define EM_SETREADONLY 0x00cf
469 #define EM_SETWORDBREAKPROC 0x00d0
470 #define EM_GETWORDBREAKPROC 0x00d1
471 #define EM_GETPASSWORDCHAR 0x00d2
472 #define EM_SETMARGINS 0x00d3
473 #define EM_GETMARGINS 0x00d4
474 #define EM_GETLIMITTEXT 0x00d5
475 #define EM_POSFROMCHAR 0x00d6
476 #define EM_CHARFROMPOS 0x00d7
477 /* a name change since win95 */
478 #define EM_SETLIMITTEXT EM_LIMITTEXT
480 /* EDITWORDBREAKPROC code values */
483 #define WB_ISDELIMITER 2
485 /* Edit control notification codes */
486 #define EN_SETFOCUS 0x0100
487 #define EN_KILLFOCUS 0x0200
488 #define EN_CHANGE 0x0300
489 #define EN_UPDATE 0x0400
490 #define EN_ERRSPACE 0x0500
491 #define EN_MAXTEXT 0x0501
492 #define EN_HSCROLL 0x0601
493 #define EN_VSCROLL 0x0602
495 /* New since win95 : EM_SETMARGIN parameters */
496 #define EC_LEFTMARGIN 0x0001
497 #define EC_RIGHTMARGIN 0x0002
498 #define EC_USEFONTINFO 0xffff
501 /* GetSystemMetrics() codes */
502 #define SM_CXSCREEN 0
503 #define SM_CYSCREEN 1
504 #define SM_CXVSCROLL 2
505 #define SM_CYHSCROLL 3
506 #define SM_CYCAPTION 4
507 #define SM_CXBORDER 5
508 #define SM_CYBORDER 6
509 #define SM_CXDLGFRAME 7
510 #define SM_CYDLGFRAME 8
511 #define SM_CYVTHUMB 9
512 #define SM_CXHTHUMB 10
515 #define SM_CXCURSOR 13
516 #define SM_CYCURSOR 14
518 #define SM_CXFULLSCREEN 16
519 #define SM_CYFULLSCREEN 17
520 #define SM_CYKANJIWINDOW 18
521 #define SM_MOUSEPRESENT 19
522 #define SM_CYVSCROLL 20
523 #define SM_CXHSCROLL 21
525 #define SM_SWAPBUTTON 23
526 #define SM_RESERVED1 24
527 #define SM_RESERVED2 25
528 #define SM_RESERVED3 26
529 #define SM_RESERVED4 27
534 #define SM_CXFRAME 32
535 #define SM_CYFRAME 33
536 #define SM_CXMINTRACK 34
537 #define SM_CYMINTRACK 35
538 #define SM_CXDOUBLECLK 36
539 #define SM_CYDOUBLECLK 37
540 #define SM_CXICONSPACING 38
541 #define SM_CYICONSPACING 39
542 #define SM_MENUDROPALIGNMENT 40
543 #define SM_PENWINDOWS 41
544 #define SM_DBCSENABLED 42
545 #define SM_CMOUSEBUTTONS 43
546 #define SM_CXFIXEDFRAME SM_CXDLGFRAME
547 #define SM_CYFIXEDFRAME SM_CYDLGFRAME
548 #define SM_CXSIZEFRAME SM_CXFRAME
549 #define SM_CYSIZEFRAME SM_CYFRAME
553 #define SM_CXMINSPACING 47
554 #define SM_CYMINSPACING 48
555 #define SM_CXSMICON 49
556 #define SM_CYSMICON 50
557 #define SM_CYSMCAPTION 51
558 #define SM_CXSMSIZE 52
559 #define SM_CYSMSIZE 53
560 #define SM_CXMENUSIZE 54
561 #define SM_CYMENUSIZE 55
562 #define SM_ARRANGE 56
563 #define SM_CXMINIMIZED 57
564 #define SM_CYMINIMIZED 58
565 #define SM_CXMAXTRACK 59
566 #define SM_CYMAXTRACK 60
567 #define SM_CXMAXIMIZED 61
568 #define SM_CYMAXIMIZED 62
569 #define SM_NETWORK 63
570 #define SM_CLEANBOOT 67
573 #define SM_SHOWSOUNDS 70
574 #define SM_CXMENUCHECK 71
575 #define SM_CYMENUCHECK 72
576 #define SM_SLOWMACHINE 73
577 #define SM_MIDEASTENABLED 74
578 #define SM_MOUSEWHEELPRESENT 75
579 #define SM_XVIRTUALSCREEN 76
580 #define SM_YVIRTUALSCREEN 77
581 #define SM_CXVIRTUALSCREEN 78
582 #define SM_CYVIRTUALSCREEN 79
583 #define SM_CMONITORS 80
584 #define SM_SAMEDISPLAYFORMAT 81
585 #define SM_CMETRICS 83
590 /* WM_GETDLGCODE values */
593 #define WM_NULL 0x0000
594 #define WM_CREATE 0x0001
595 #define WM_DESTROY 0x0002
596 #define WM_MOVE 0x0003
597 #define WM_SIZEWAIT 0x0004
598 #define WM_SIZE 0x0005
599 #define WM_ACTIVATE 0x0006
600 #define WM_SETFOCUS 0x0007
601 #define WM_KILLFOCUS 0x0008
602 #define WM_SETVISIBLE 0x0009
603 #define WM_ENABLE 0x000a
604 #define WM_SETREDRAW 0x000b
605 #define WM_SETTEXT 0x000c
606 #define WM_GETTEXT 0x000d
607 #define WM_GETTEXTLENGTH 0x000e
608 #define WM_PAINT 0x000f
609 #define WM_CLOSE 0x0010
610 #define WM_QUERYENDSESSION 0x0011
611 #define WM_QUIT 0x0012
612 #define WM_QUERYOPEN 0x0013
613 #define WM_ERASEBKGND 0x0014
614 #define WM_SYSCOLORCHANGE 0x0015
615 #define WM_ENDSESSION 0x0016
616 #define WM_SYSTEMERROR 0x0017
617 #define WM_SHOWWINDOW 0x0018
618 #define WM_CTLCOLOR 0x0019
619 #define WM_WININICHANGE 0x001a
620 #define WM_SETTINGCHANGE WM_WININICHANGE
621 #define WM_DEVMODECHANGE 0x001b
622 #define WM_ACTIVATEAPP 0x001c
623 #define WM_FONTCHANGE 0x001d
624 #define WM_TIMECHANGE 0x001e
625 #define WM_CANCELMODE 0x001f
626 #define WM_SETCURSOR 0x0020
627 #define WM_MOUSEACTIVATE 0x0021
628 #define WM_CHILDACTIVATE 0x0022
629 #define WM_QUEUESYNC 0x0023
630 #define WM_GETMINMAXINFO 0x0024
632 #define WM_PAINTICON 0x0026
633 #define WM_ICONERASEBKGND 0x0027
634 #define WM_NEXTDLGCTL 0x0028
635 #define WM_ALTTABACTIVE 0x0029
636 #define WM_SPOOLERSTATUS 0x002a
637 #define WM_DRAWITEM 0x002b
638 #define WM_MEASUREITEM 0x002c
639 #define WM_DELETEITEM 0x002d
640 #define WM_VKEYTOITEM 0x002e
641 #define WM_CHARTOITEM 0x002f
642 #define WM_SETFONT 0x0030
643 #define WM_GETFONT 0x0031
644 #define WM_SETHOTKEY 0x0032
645 #define WM_GETHOTKEY 0x0033
646 #define WM_FILESYSCHANGE 0x0034
647 #define WM_ISACTIVEICON 0x0035
648 #define WM_QUERYPARKICON 0x0036
649 #define WM_QUERYDRAGICON 0x0037
650 #define WM_QUERYSAVESTATE 0x0038
651 #define WM_COMPAREITEM 0x0039
652 #define WM_TESTING 0x003a
654 #define WM_OTHERWINDOWCREATED 0x003c
655 #define WM_OTHERWINDOWDESTROYED 0x003d
656 #define WM_ACTIVATESHELLWINDOW 0x003e
658 #define WM_COMPACTING 0x0041
660 #define WM_COMMNOTIFY 0x0044
661 #define WM_WINDOWPOSCHANGING 0x0046
662 #define WM_WINDOWPOSCHANGED 0x0047
663 #define WM_POWER 0x0048
665 /* Win32 4.0 messages */
666 #define WM_COPYDATA 0x004a
667 #define WM_CANCELJOURNAL 0x004b
668 #define WM_NOTIFY 0x004e
669 #define WM_INPUTLANGCHANGEREQUEST 0x0050
670 #define WM_INPUTLANGCHANGE 0x0051
671 #define WM_TCARD 0x0052
672 #define WM_HELP 0x0053
673 #define WM_USERCHANGED 0x0054
674 #define WM_NOTIFYFORMAT 0x0055
676 #define WM_CONTEXTMENU 0x007b
677 #define WM_STYLECHANGING 0x007c
678 #define WM_STYLECHANGED 0x007d
679 #define WM_DISPLAYCHANGE 0x007e
680 #define WM_GETICON 0x007f
681 #define WM_SETICON 0x0080
683 /* Non-client system messages */
684 #define WM_NCCREATE 0x0081
685 #define WM_NCDESTROY 0x0082
686 #define WM_NCCALCSIZE 0x0083
687 #define WM_NCHITTEST 0x0084
688 #define WM_NCPAINT 0x0085
689 #define WM_NCACTIVATE 0x0086
691 #define WM_GETDLGCODE 0x0087
692 #define WM_SYNCPAINT 0x0088
693 #define WM_SYNCTASK 0x0089
695 /* Non-client mouse messages */
696 #define WM_NCMOUSEMOVE 0x00a0
697 #define WM_NCLBUTTONDOWN 0x00a1
698 #define WM_NCLBUTTONUP 0x00a2
699 #define WM_NCLBUTTONDBLCLK 0x00a3
700 #define WM_NCRBUTTONDOWN 0x00a4
701 #define WM_NCRBUTTONUP 0x00a5
702 #define WM_NCRBUTTONDBLCLK 0x00a6
703 #define WM_NCMBUTTONDOWN 0x00a7
704 #define WM_NCMBUTTONUP 0x00a8
705 #define WM_NCMBUTTONDBLCLK 0x00a9
707 /* Keyboard messages */
708 #define WM_KEYDOWN 0x0100
709 #define WM_KEYUP 0x0101
710 #define WM_CHAR 0x0102
711 #define WM_DEADCHAR 0x0103
712 #define WM_SYSKEYDOWN 0x0104
713 #define WM_SYSKEYUP 0x0105
714 #define WM_SYSCHAR 0x0106
715 #define WM_SYSDEADCHAR 0x0107
716 #define WM_KEYFIRST WM_KEYDOWN
717 #define WM_KEYLAST 0x0108
719 /* Win32 4.0 messages for IME */
720 #define WM_IME_STARTCOMPOSITION 0x010d
721 #define WM_IME_ENDCOMPOSITION 0x010e
722 #define WM_IME_COMPOSITION 0x010f
723 #define WM_IME_KEYLAST 0x010f
725 #define WM_INITDIALOG 0x0110
726 #define WM_COMMAND 0x0111
727 #define WM_SYSCOMMAND 0x0112
728 #define WM_TIMER 0x0113
729 #define WM_SYSTIMER 0x0118
731 /* scroll messages */
732 #define WM_HSCROLL 0x0114
733 #define WM_VSCROLL 0x0115
736 #define WM_INITMENU 0x0116
737 #define WM_INITMENUPOPUP 0x0117
739 #define WM_MENUSELECT 0x011F
740 #define WM_MENUCHAR 0x0120
741 #define WM_ENTERIDLE 0x0121
743 #define WM_LBTRACKPOINT 0x0131
745 /* Win32 CTLCOLOR messages */
746 #define WM_CTLCOLORMSGBOX 0x0132
747 #define WM_CTLCOLOREDIT 0x0133
748 #define WM_CTLCOLORLISTBOX 0x0134
749 #define WM_CTLCOLORBTN 0x0135
750 #define WM_CTLCOLORDLG 0x0136
751 #define WM_CTLCOLORSCROLLBAR 0x0137
752 #define WM_CTLCOLORSTATIC 0x0138
755 #define WM_MOUSEMOVE 0x0200
756 #define WM_LBUTTONDOWN 0x0201
757 #define WM_LBUTTONUP 0x0202
758 #define WM_LBUTTONDBLCLK 0x0203
759 #define WM_RBUTTONDOWN 0x0204
760 #define WM_RBUTTONUP 0x0205
761 #define WM_RBUTTONDBLCLK 0x0206
762 #define WM_MBUTTONDOWN 0x0207
763 #define WM_MBUTTONUP 0x0208
764 #define WM_MBUTTONDBLCLK 0x0209
765 #define WM_MOUSEWHEEL 0x020A
766 #define WM_MOUSEFIRST WM_MOUSEMOVE
769 #define WM_MOUSELAST WM_MOUSEWHEEL
771 #define WHEEL_DELTA 120
772 #define WHEEL_PAGESCROLL (UINT_MAX)
773 #define WM_PARENTNOTIFY 0x0210
774 #define WM_ENTERMENULOOP 0x0211
775 #define WM_EXITMENULOOP 0x0212
776 #define WM_NEXTMENU 0x0213
778 /* Win32 4.0 messages */
779 #define WM_SIZING 0x0214
780 #define WM_CAPTURECHANGED 0x0215
781 #define WM_MOVING 0x0216
782 #define WM_POWERBROADCAST 0x0218
783 #define WM_DEVICECHANGE 0x0219
785 /* wParam for WM_SIZING message */
789 #define WMSZ_TOPLEFT 4
790 #define WMSZ_TOPRIGHT 5
791 #define WMSZ_BOTTOM 6
792 #define WMSZ_BOTTOMLEFT 7
793 #define WMSZ_BOTTOMRIGHT 8
796 #define WM_MDICREATE 0x0220
797 #define WM_MDIDESTROY 0x0221
798 #define WM_MDIACTIVATE 0x0222
799 #define WM_MDIRESTORE 0x0223
800 #define WM_MDINEXT 0x0224
801 #define WM_MDIMAXIMIZE 0x0225
802 #define WM_MDITILE 0x0226
803 #define WM_MDICASCADE 0x0227
804 #define WM_MDIICONARRANGE 0x0228
805 #define WM_MDIGETACTIVE 0x0229
806 #define WM_MDIREFRESHMENU 0x0234
809 #define WM_DROPOBJECT 0x022A
810 #define WM_QUERYDROPOBJECT 0x022B
811 #define WM_BEGINDRAG 0x022C
812 #define WM_DRAGLOOP 0x022D
813 #define WM_DRAGSELECT 0x022E
814 #define WM_DRAGMOVE 0x022F
815 #define WM_MDISETMENU 0x0230
817 #define WM_ENTERSIZEMOVE 0x0231
818 #define WM_EXITSIZEMOVE 0x0232
819 #define WM_DROPFILES 0x0233
822 /* Win32 4.0 messages for IME */
823 #define WM_IME_SETCONTEXT 0x0281
824 #define WM_IME_NOTIFY 0x0282
825 #define WM_IME_CONTROL 0x0283
826 #define WM_IME_COMPOSITIONFULL 0x0284
827 #define WM_IME_SELECT 0x0285
828 #define WM_IME_CHAR 0x0286
829 /* Win32 5.0 messages for IME */
830 #define WM_IME_REQUEST 0x0288
832 /* Win32 4.0 messages for IME */
833 #define WM_IME_KEYDOWN 0x0290
834 #define WM_IME_KEYUP 0x0291
836 /* Clipboard command messages */
837 #define WM_CUT 0x0300
838 #define WM_COPY 0x0301
839 #define WM_PASTE 0x0302
840 #define WM_CLEAR 0x0303
841 #define WM_UNDO 0x0304
843 /* Clipboard owner messages */
844 #define WM_RENDERFORMAT 0x0305
845 #define WM_RENDERALLFORMATS 0x0306
846 #define WM_DESTROYCLIPBOARD 0x0307
848 /* Clipboard viewer messages */
849 #define WM_DRAWCLIPBOARD 0x0308
850 #define WM_PAINTCLIPBOARD 0x0309
851 #define WM_VSCROLLCLIPBOARD 0x030A
852 #define WM_SIZECLIPBOARD 0x030B
853 #define WM_ASKCBFORMATNAME 0x030C
854 #define WM_CHANGECBCHAIN 0x030D
855 #define WM_HSCROLLCLIPBOARD 0x030E
857 #define WM_QUERYNEWPALETTE 0x030F
858 #define WM_PALETTEISCHANGING 0x0310
859 #define WM_PALETTECHANGED 0x0311
860 #define WM_HOTKEY 0x0312
862 #define WM_PRINT 0x0317
863 #define WM_PRINTCLIENT 0x0318
865 /* FIXME: This does not belong to any libwine interface header */
866 /* MFC messages [360-38f] */
868 #define WM_QUERYAFXWNDPROC 0x0360
869 #define WM_SIZEPARENT 0x0361
870 #define WM_SETMESSAGESTRING 0x0362
871 #define WM_IDLEUPDATECMDUI 0x0363
872 #define WM_INITIALUPDATE 0x0364
873 #define WM_COMMANDHELP 0x0365
874 #define WM_HELPHITTEST 0x0366
875 #define WM_EXITHELPMODE 0x0367
876 #define WM_RECALCPARENT 0x0368
877 #define WM_SIZECHILD 0x0369
878 #define WM_KICKIDLE 0x036A
879 #define WM_QUERYCENTERWND 0x036B
880 #define WM_DISABLEMODAL 0x036C
881 #define WM_FLOATSTATUS 0x036D
882 #define WM_ACTIVATETOPLEVEL 0x036E
883 #define WM_QUERY3DCONTROLS 0x036F
884 #define WM_SOCKET_NOTIFY 0x0373
885 #define WM_SOCKET_DEAD 0x0374
886 #define WM_POPMESSAGESTRING 0x0375
887 #define WM_OCC_LOADFROMSTREAM 0x0376
888 #define WM_OCC_LOADFROMSTORAGE 0x0377
889 #define WM_OCC_INITNEW 0x0378
890 #define WM_OCC_LOADFROMSTREAM_EX 0x037A
891 #define WM_OCC_LOADFROMSTORAGE_EX 0x037B
892 #define WM_QUEUE_SENTINEL 0x0379
894 #define WM_PENWINFIRST 0x0380
895 #define WM_PENWINLAST 0x038F
897 /* end of MFC messages */
899 /* FIXME: The following two lines do not belong to any libwine interface header */
900 #define WM_COALESCE_FIRST 0x0390
901 #define WM_COALESCE_LAST 0x039F
903 #define WM_APP 0x8000
906 #define DLGC_WANTARROWS 0x0001
907 #define DLGC_WANTTAB 0x0002
908 #define DLGC_WANTALLKEYS 0x0004
909 #define DLGC_WANTMESSAGE 0x0004
910 #define DLGC_HASSETSEL 0x0008
911 #define DLGC_DEFPUSHBUTTON 0x0010
912 #define DLGC_UNDEFPUSHBUTTON 0x0020
913 #define DLGC_RADIOBUTTON 0x0040
914 #define DLGC_WANTCHARS 0x0080
915 #define DLGC_STATIC 0x0100
916 #define DLGC_BUTTON 0x2000
918 /* Standard dialog button IDs */
929 /****** Window classes ******/
931 typedef struct tagCREATESTRUCTA
933 LPVOID lpCreateParams
;
945 } CREATESTRUCTA
, *LPCREATESTRUCTA
;
949 LPVOID lpCreateParams
;
961 } CREATESTRUCTW
, *LPCREATESTRUCTW
;
963 DECL_WINELIB_TYPE_AW(CREATESTRUCT
)
964 DECL_WINELIB_TYPE_AW(LPCREATESTRUCT
)
973 BYTE rgbReserved
[32];
974 } PAINTSTRUCT
, *PPAINTSTRUCT
, *LPPAINTSTRUCT
;
980 } CLIENTCREATESTRUCT
, *LPCLIENTCREATESTRUCT
;
994 } MDICREATESTRUCTA
, *LPMDICREATESTRUCTA
;
1007 } MDICREATESTRUCTW
, *LPMDICREATESTRUCTW
;
1009 DECL_WINELIB_TYPE_AW(MDICREATESTRUCT
)
1010 DECL_WINELIB_TYPE_AW(LPMDICREATESTRUCT
)
1012 #define MDITILE_VERTICAL 0x0000
1013 #define MDITILE_HORIZONTAL 0x0001
1014 #define MDITILE_SKIPDISABLED 0x0002
1016 #define MDIS_ALLCHILDSTYLES 0x0001
1021 } STYLESTRUCT
, *LPSTYLESTRUCT
;
1023 /* Offsets for GetWindowLong() and GetWindowWord() */
1024 #define GWL_USERDATA (-21)
1025 #define GWL_EXSTYLE (-20)
1026 #define GWL_STYLE (-16)
1027 #define GWW_ID (-12)
1028 #define GWL_ID GWW_ID
1029 #define GWW_HWNDPARENT (-8)
1030 #define GWL_HWNDPARENT GWW_HWNDPARENT
1031 #define GWW_HINSTANCE (-6)
1032 #define GWL_HINSTANCE GWW_HINSTANCE
1033 #define GWL_WNDPROC (-4)
1034 #define DWL_MSGRESULT 0
1035 #define DWL_DLGPROC 4
1038 /* GetWindow() constants */
1039 #define GW_HWNDFIRST 0
1040 #define GW_HWNDLAST 1
1041 #define GW_HWNDNEXT 2
1042 #define GW_HWNDPREV 3
1046 /* WM_GETMINMAXINFO struct */
1051 POINT ptMaxPosition
;
1052 POINT ptMinTrackSize
;
1053 POINT ptMaxTrackSize
;
1054 } MINMAXINFO
, *PMINMAXINFO
, *LPMINMAXINFO
;
1057 /* RedrawWindow() flags */
1058 #define RDW_INVALIDATE 0x0001
1059 #define RDW_INTERNALPAINT 0x0002
1060 #define RDW_ERASE 0x0004
1061 #define RDW_VALIDATE 0x0008
1062 #define RDW_NOINTERNALPAINT 0x0010
1063 #define RDW_NOERASE 0x0020
1064 #define RDW_NOCHILDREN 0x0040
1065 #define RDW_ALLCHILDREN 0x0080
1066 #define RDW_UPDATENOW 0x0100
1067 #define RDW_ERASENOW 0x0200
1068 #define RDW_FRAME 0x0400
1069 #define RDW_NOFRAME 0x0800
1072 #define DBGFILL_ALLOC 0xfd
1073 #define DBGFILL_FREE 0xfb
1074 #define DBGFILL_BUFFER 0xf9
1075 #define DBGFILL_STACK 0xf7
1077 /* WM_WINDOWPOSCHANGING/CHANGED struct */
1078 typedef struct tagWINDOWPOS
1081 HWND hwndInsertAfter
;
1087 } WINDOWPOS
, *PWINDOWPOS
, *LPWINDOWPOS
;
1090 /* WM_MOUSEACTIVATE return values */
1091 #define MA_ACTIVATE 1
1092 #define MA_ACTIVATEANDEAT 2
1093 #define MA_NOACTIVATE 3
1094 #define MA_NOACTIVATEANDEAT 4
1096 /* WM_ACTIVATE wParam values */
1097 #define WA_INACTIVE 0
1099 #define WA_CLICKACTIVE 2
1101 /* WM_GETICON/WM_SETICON params values */
1102 #define ICON_SMALL 0
1105 /* WM_NCCALCSIZE parameter structure */
1110 } NCCALCSIZE_PARAMS
, *LPNCCALCSIZE_PARAMS
;
1113 /* WM_NCCALCSIZE return flags */
1114 #define WVR_ALIGNTOP 0x0010
1115 #define WVR_ALIGNLEFT 0x0020
1116 #define WVR_ALIGNBOTTOM 0x0040
1117 #define WVR_ALIGNRIGHT 0x0080
1118 #define WVR_HREDRAW 0x0100
1119 #define WVR_VREDRAW 0x0200
1120 #define WVR_REDRAW (WVR_HREDRAW | WVR_VREDRAW)
1121 #define WVR_VALIDRECTS 0x0400
1123 /* WM_NCHITTEST return codes */
1124 #define HTERROR (-2)
1125 #define HTTRANSPARENT (-1)
1134 #define HTMINBUTTON 8
1135 #define HTMAXBUTTON 9
1139 #define HTTOPLEFT 13
1140 #define HTTOPRIGHT 14
1142 #define HTBOTTOMLEFT 16
1143 #define HTBOTTOMRIGHT 17
1145 #define HTGROWBOX HTSIZE
1146 #define HTREDUCE HTMINBUTTON
1147 #define HTZOOM HTMAXBUTTON
1151 #define HTSIZEFIRST HTLEFT
1152 #define HTSIZELAST HTBOTTOMRIGHT
1154 /* WM_SYSCOMMAND parameters */
1155 #ifdef SC_SIZE /* at least HP-UX: already defined in /usr/include/sys/signal.h */
1158 #define SC_SIZE 0xf000
1159 #define SC_MOVE 0xf010
1160 #define SC_MINIMIZE 0xf020
1161 #define SC_MAXIMIZE 0xf030
1162 #define SC_NEXTWINDOW 0xf040
1163 #define SC_PREVWINDOW 0xf050
1164 #define SC_CLOSE 0xf060
1165 #define SC_VSCROLL 0xf070
1166 #define SC_HSCROLL 0xf080
1167 #define SC_MOUSEMENU 0xf090
1168 #define SC_KEYMENU 0xf100
1169 #define SC_ARRANGE 0xf110
1170 #define SC_RESTORE 0xf120
1171 #define SC_TASKLIST 0xf130
1172 #define SC_SCREENSAVE 0xf140
1173 #define SC_HOTKEY 0xf150
1175 #define SC_DEFAULT 0xf160
1176 #define SC_MONITORPOWER 0xf170
1177 #define SC_CONTEXTHELP 0xf180
1178 #define SC_SEPARATOR 0xf00f
1180 /* obsolete names(SC_ICON and SC_ZOOM) */
1181 #define SC_ICON SC_MINIMIZE
1182 #define SC_ZOOM SC_MAXIMIZE
1185 #define CS_VREDRAW 0x0001
1186 #define CS_HREDRAW 0x0002
1187 #define CS_KEYCVTWINDOW 0x0004
1188 #define CS_DBLCLKS 0x0008
1189 #define CS_OWNDC 0x0020
1190 #define CS_CLASSDC 0x0040
1191 #define CS_PARENTDC 0x0080
1192 #define CS_NOKEYCVT 0x0100
1193 #define CS_NOCLOSE 0x0200
1194 #define CS_SAVEBITS 0x0800
1195 #define CS_BYTEALIGNCLIENT 0x1000
1196 #define CS_BYTEALIGNWINDOW 0x2000
1197 #define CS_GLOBALCLASS 0x4000
1198 #define CS_IME 0x00010000
1200 #define PRF_CHECKVISIBLE 0x00000001L
1201 #define PRF_NONCLIENT 0x00000002L
1202 #define PRF_CLIENT 0x00000004L
1203 #define PRF_ERASEBKGND 0x00000008L
1204 #define PRF_CHILDREN 0x00000010L
1205 #define PRF_OWNED 0x00000020L
1207 /* Offsets for GetClassLong() and GetClassWord() */
1208 #define GCL_MENUNAME (-8)
1209 #define GCW_HBRBACKGROUND (-10)
1210 #define GCL_HBRBACKGROUND GCW_HBRBACKGROUND
1211 #define GCW_HCURSOR (-12)
1212 #define GCL_HCURSOR GCW_HCURSOR
1213 #define GCW_HICON (-14)
1214 #define GCL_HICON GCW_HICON
1215 #define GCW_HMODULE (-16)
1216 #define GCL_HMODULE GCW_HMODULE
1217 #define GCW_CBWNDEXTRA (-18)
1218 #define GCL_CBWNDEXTRA GCW_CBWNDEXTRA
1219 #define GCW_CBCLSEXTRA (-20)
1220 #define GCL_CBCLSEXTRA GCW_CBCLSEXTRA
1221 #define GCL_WNDPROC (-24)
1222 #define GCW_STYLE (-26)
1223 #define GCL_STYLE GCW_STYLE
1224 #define GCW_ATOM (-32)
1225 #define GCW_HICONSM (-34)
1226 #define GCL_HICONSM GCW_HICONSM
1229 /***** Window hooks *****/
1233 #define WH_MSGFILTER (-1)
1234 #define WH_JOURNALRECORD 0
1235 #define WH_JOURNALPLAYBACK 1
1236 #define WH_KEYBOARD 2
1237 #define WH_GETMESSAGE 3
1238 #define WH_CALLWNDPROC 4
1240 #define WH_SYSMSGFILTER 6
1242 #define WH_HARDWARE 8
1245 #define WH_FOREGROUNDIDLE 11
1246 #define WH_CALLWNDPROCRET 12
1249 #define WH_MINHOOK WH_MIN
1250 #define WH_MAXHOOK WH_MAX
1251 #define WH_NB_HOOKS (WH_MAXHOOK-WH_MINHOOK+1)
1253 /* Hook action codes */
1255 #define HC_GETNEXT 1
1257 #define HC_NOREMOVE 3
1258 #define HC_NOREM HC_NOREMOVE
1259 #define HC_SYSMODALON 4
1260 #define HC_SYSMODALOFF 5
1262 /* CallMsgFilter() values */
1263 #define MSGF_DIALOGBOX 0
1264 #define MSGF_MESSAGEBOX 1
1268 #define MSGF_SCROLLBAR 5
1269 #define MSGF_NEXTWINDOW 6
1270 #define MSGF_MAINLOOP 8
1271 #define MSGF_USER 0x1000
1272 #define MSGF_DDEMGR 0x8001
1277 WNDPROC lpfnWndProc
;
1280 HINSTANCE hInstance
;
1283 HBRUSH hbrBackground
;
1284 LPCSTR lpszMenuName
;
1285 LPCSTR lpszClassName
;
1286 } WNDCLASSA
, *PWNDCLASSA
, *LPWNDCLASSA
;
1291 WNDPROC lpfnWndProc
;
1294 HINSTANCE hInstance
;
1297 HBRUSH hbrBackground
;
1298 LPCWSTR lpszMenuName
;
1299 LPCWSTR lpszClassName
;
1300 } WNDCLASSW
, *PWNDCLASSW
, *LPWNDCLASSW
;
1302 DECL_WINELIB_TYPE_AW(WNDCLASS
)
1303 DECL_WINELIB_TYPE_AW(PWNDCLASS
)
1304 DECL_WINELIB_TYPE_AW(LPWNDCLASS
)
1310 } COPYDATASTRUCT
, *PCOPYDATASTRUCT
;
1316 } MDINEXTMENU
, *PMDINEXTMENU
, *LPMDINEXTMENU
;
1322 CHAR szKeyphrase
[1];
1323 } MULTIKEYHELPA
, *PMULTIKEYHELPA
, *LPMULTIKEYHELPA
;
1329 WCHAR szKeyphrase
[1];
1330 } MULTIKEYHELPW
, *PMULTIKEYHELPW
, *LPMULTIKEYHELPW
;
1332 DECL_WINELIB_TYPE_AW(MULTIKEYHELP
)
1333 DECL_WINELIB_TYPE_AW(PMULTIKEYHELP
)
1334 DECL_WINELIB_TYPE_AW(LPMULTIKEYHELP
)
1344 } HELPWININFOA
, *PHELPWININFOA
, *LPHELPWININFOA
;
1353 WCHAR rgchMember
[2];
1354 } HELPWININFOW
, *PHELPWININFOW
, *LPHELPWININFOW
;
1356 DECL_WINELIB_TYPE_AW(HELPWININFO
)
1357 DECL_WINELIB_TYPE_AW(PHELPWININFO
)
1358 DECL_WINELIB_TYPE_AW(LPHELPWININFO
)
1360 #define HELP_CONTEXT 0x0001
1361 #define HELP_QUIT 0x0002
1362 #define HELP_INDEX 0x0003
1363 #define HELP_CONTENTS 0x0003
1364 #define HELP_HELPONHELP 0x0004
1365 #define HELP_SETINDEX 0x0005
1366 #define HELP_SETCONTENTS 0x0005
1367 #define HELP_CONTEXTPOPUP 0x0008
1368 #define HELP_FORCEFILE 0x0009
1369 #define HELP_KEY 0x0101
1370 #define HELP_COMMAND 0x0102
1371 #define HELP_PARTIALKEY 0x0105
1372 #define HELP_MULTIKEY 0x0201
1373 #define HELP_SETWINPOS 0x0203
1374 #define HELP_CONTEXTMENU 0x000a
1375 #define HELP_FINDER 0x000b
1376 #define HELP_WM_HELP 0x000c
1377 #define HELP_SETPOPUP_POS 0x000d
1379 #define HELP_TCARD 0x8000
1380 #define HELP_TCARD_DATA 0x0010
1381 #define HELP_TCARD_OTHER_CALLER 0x0011
1384 /* ChangeDisplaySettings return codes */
1386 #define DISP_CHANGE_SUCCESSFUL 0
1387 #define DISP_CHANGE_RESTART 1
1388 #define DISP_CHANGE_FAILED (-1)
1389 #define DISP_CHANGE_BADMODE (-2)
1390 #define DISP_CHANGE_NOTUPDATED (-3)
1391 #define DISP_CHANGE_BADFLAGS (-4)
1392 #define DISP_CHANGE_BADPARAM (-5)
1394 /* ChangeDisplaySettings.dwFlags */
1395 #define CDS_UPDATEREGISTRY 0x00000001
1396 #define CDS_TEST 0x00000002
1397 #define CDS_FULLSCREEN 0x00000004
1398 #define CDS_GLOBAL 0x00000008
1399 #define CDS_SET_PRIMARY 0x00000010
1400 #define CDS_RESET 0x40000000
1401 #define CDS_SETRECT 0x20000000
1402 #define CDS_NORESET 0x10000000
1408 WNDPROC lpfnWndProc
;
1411 HINSTANCE hInstance
;
1414 HBRUSH hbrBackground
;
1415 LPCSTR lpszMenuName
;
1416 LPCSTR lpszClassName
;
1418 } WNDCLASSEXA
, *PWNDCLASSEXA
, *LPWNDCLASSEXA
;
1424 WNDPROC lpfnWndProc
;
1427 HINSTANCE hInstance
;
1430 HBRUSH hbrBackground
;
1431 LPCWSTR lpszMenuName
;
1432 LPCWSTR lpszClassName
;
1434 } WNDCLASSEXW
, *PWNDCLASSEXW
, *LPWNDCLASSEXW
;
1436 DECL_WINELIB_TYPE_AW(WNDCLASSEX
)
1437 DECL_WINELIB_TYPE_AW(PWNDCLASSEX
)
1438 DECL_WINELIB_TYPE_AW(LPWNDCLASSEX
)
1440 typedef struct tagMSG
1448 } MSG
, *PMSG
, *LPMSG
;
1450 #define POINTSTOPOINT(pt, pts) \
1451 { (pt).x = (LONG)(SHORT)LOWORD(*(LONG*)&pts); \
1452 (pt).y = (LONG)(SHORT)HIWORD(*(LONG*)&pts); }
1454 #define POINTTOPOINTS(pt) (MAKELONG((short)((pt).x), (short)((pt).y)))
1457 /* Cursors / Icons */
1465 } ICONINFO
, *PICONINFO
;
1468 /* this is the 6 byte accel struct used in Win32 when presented to the user */
1478 /* Flags for TrackPopupMenu */
1479 #define TPM_LEFTBUTTON 0x0000
1480 #define TPM_RIGHTBUTTON 0x0002
1481 #define TPM_LEFTALIGN 0x0000
1482 #define TPM_CENTERALIGN 0x0004
1483 #define TPM_RIGHTALIGN 0x0008
1484 #define TPM_TOPALIGN 0x0000
1485 #define TPM_VCENTERALIGN 0x0010
1486 #define TPM_BOTTOMALIGN 0x0020
1487 #define TPM_HORIZONTAL 0x0000
1488 #define TPM_VERTICAL 0x0040
1489 #define TPM_NONOTIFY 0x0080
1490 #define TPM_RETURNCMD 0x0100
1496 } TPMPARAMS
, *LPTPMPARAMS
;
1498 /* FIXME: not sure this one is correct */
1506 HBITMAP hbmpChecked
;
1507 HBITMAP hbmpUnchecked
;
1512 } MENUITEMINFOA
, *LPMENUITEMINFOA
;
1521 HBITMAP hbmpChecked
;
1522 HBITMAP hbmpUnchecked
;
1527 } MENUITEMINFOW
, *LPMENUITEMINFOW
;
1529 DECL_WINELIB_TYPE_AW(MENUITEMINFO
)
1530 DECL_WINELIB_TYPE_AW(LPMENUITEMINFO
)
1531 typedef const MENUITEMINFOA
*LPCMENUITEMINFOA
;
1532 typedef const MENUITEMINFOW
*LPCMENUITEMINFOW
;
1533 DECL_WINELIB_TYPE_AW(LPCMENUITEMINFO
)
1541 DWORD dwContextHelpID
;
1543 } MENUINFO
, *LPMENUINFO
;
1545 typedef const MENUINFO
*LPCMENUINFO
;
1547 #define MIM_MAXHEIGHT 0x00000001
1548 #define MIM_BACKGROUND 0x00000002
1549 #define MIM_HELPID 0x00000004
1550 #define MIM_MENUDATA 0x00000008
1551 #define MIM_STYLE 0x00000010
1552 #define MIM_APPLYTOSUBMENUS 0x80000000
1557 } MENUITEMTEMPLATEHEADER
, *PMENUITEMTEMPLATEHEADER
;
1564 } MENUITEMTEMPLATE
, *PMENUITEMTEMPLATE
;
1567 typedef VOID MENUTEMPLATE
;
1568 typedef PVOID
*LPMENUTEMPLATE
;
1570 /* Field specifiers for MENUITEMINFO[AW] type. */
1571 #define MIIM_STATE 0x00000001
1572 #define MIIM_ID 0x00000002
1573 #define MIIM_SUBMENU 0x00000004
1574 #define MIIM_CHECKMARKS 0x00000008
1575 #define MIIM_TYPE 0x00000010
1576 #define MIIM_DATA 0x00000020
1577 #define MIIM_STRING 0x00000040
1578 #define MIIM_BITMAP 0x00000080
1579 #define MIIM_FTYPE 0x00000100
1581 #define HBMMENU_CALLBACK ((HBITMAP) -1)
1582 #define HBMMENU_SYSTEM ((HBITMAP) 1)
1583 #define HBMMENU_MBAR_RESTORE ((HBITMAP) 2)
1584 #define HBMMENU_MBAR_MINIMIZE ((HBITMAP) 3)
1585 #define HBMMENU_MBAR_CLOSE ((HBITMAP) 5)
1586 #define HBMMENU_MBAR_CLOSE_D ((HBITMAP) 6)
1587 #define HBMMENU_MBAR_MINIMIZE_D ((HBITMAP) 7)
1588 #define HBMMENU_POPUP_CLOSE ((HBITMAP) 8)
1589 #define HBMMENU_POPUP_RESTORE ((HBITMAP) 9)
1590 #define HBMMENU_POPUP_MAXIMIZE ((HBITMAP) 10)
1591 #define HBMMENU_POPUP_MINIMIZE ((HBITMAP) 11)
1593 /* WM_H/VSCROLL commands */
1595 #define SB_LINELEFT 0
1596 #define SB_LINEDOWN 1
1597 #define SB_LINERIGHT 1
1599 #define SB_PAGELEFT 2
1600 #define SB_PAGEDOWN 3
1601 #define SB_PAGERIGHT 3
1602 #define SB_THUMBPOSITION 4
1603 #define SB_THUMBTRACK 5
1608 #define SB_ENDSCROLL 8
1610 /* Scroll bar selection constants */
1616 /* Scrollbar styles */
1617 #define SBS_HORZ 0x0000L
1618 #define SBS_VERT 0x0001L
1619 #define SBS_TOPALIGN 0x0002L
1620 #define SBS_LEFTALIGN 0x0002L
1621 #define SBS_BOTTOMALIGN 0x0004L
1622 #define SBS_RIGHTALIGN 0x0004L
1623 #define SBS_SIZEBOXTOPLEFTALIGN 0x0002L
1624 #define SBS_SIZEBOXBOTTOMRIGHTALIGN 0x0004L
1625 #define SBS_SIZEBOX 0x0008L
1626 #define SBS_SIZEGRIP 0x0010L
1628 /* EnableScrollBar() flags */
1629 #define ESB_ENABLE_BOTH 0x0000
1630 #define ESB_DISABLE_BOTH 0x0003
1632 #define ESB_DISABLE_LEFT 0x0001
1633 #define ESB_DISABLE_RIGHT 0x0002
1635 #define ESB_DISABLE_UP 0x0001
1636 #define ESB_DISABLE_DOWN 0x0002
1638 #define ESB_DISABLE_LTUP ESB_DISABLE_LEFT
1639 #define ESB_DISABLE_RTDN ESB_DISABLE_RIGHT
1641 /* Win32 button control messages */
1642 #define BM_GETCHECK 0x00f0
1643 #define BM_SETCHECK 0x00f1
1644 #define BM_GETSTATE 0x00f2
1645 #define BM_SETSTATE 0x00f3
1646 #define BM_SETSTYLE 0x00f4
1647 #define BM_CLICK 0x00f5
1648 #define BM_GETIMAGE 0x00f6
1649 #define BM_SETIMAGE 0x00f7
1650 /* Winelib button control messages */
1652 /* Button notification codes */
1653 #define BN_CLICKED 0
1656 #define BN_UNHILITE 3
1657 #define BN_DISABLE 4
1658 #define BN_DOUBLECLICKED 5
1659 #define BN_DBLCLK BN_DOUBLECLICKED
1662 #define BST_UNCHECKED 0x0000
1663 #define BST_CHECKED 0x0001
1664 #define BST_INDETERMINATE 0x0002
1665 #define BST_PUSHED 0x0004
1666 #define BST_FOCUS 0x0008
1668 /* Static Control Styles */
1669 #define SS_LEFT 0x00000000L
1670 #define SS_CENTER 0x00000001L
1671 #define SS_RIGHT 0x00000002L
1672 #define SS_ICON 0x00000003L
1673 #define SS_BLACKRECT 0x00000004L
1674 #define SS_GRAYRECT 0x00000005L
1675 #define SS_WHITERECT 0x00000006L
1676 #define SS_BLACKFRAME 0x00000007L
1677 #define SS_GRAYFRAME 0x00000008L
1678 #define SS_WHITEFRAME 0x00000009L
1680 #define SS_SIMPLE 0x0000000BL
1681 #define SS_LEFTNOWORDWRAP 0x0000000CL
1683 #define SS_OWNERDRAW 0x0000000DL
1684 #define SS_BITMAP 0x0000000EL
1685 #define SS_ENHMETAFILE 0x0000000FL
1687 #define SS_ETCHEDHORZ 0x00000010L
1688 #define SS_ETCHEDVERT 0x00000011L
1689 #define SS_ETCHEDFRAME 0x00000012L
1690 #define SS_TYPEMASK 0x0000001FL
1692 #define SS_NOPREFIX 0x00000080L
1693 #define SS_NOTIFY 0x00000100L
1694 #define SS_CENTERIMAGE 0x00000200L
1695 #define SS_RIGHTJUST 0x00000400L
1696 #define SS_REALSIZEIMAGE 0x00000800L
1697 #define SS_SUNKEN 0x00001000L
1699 /* Static Control Messages */
1700 #define STM_SETICON 0x0170
1701 #define STM_GETICON 0x0171
1702 #define STM_SETIMAGE 0x0172
1703 #define STM_GETIMAGE 0x0173
1704 #define STM_MSGMAX 0x0174
1706 #define STN_CLICKED 0
1707 #define STN_DBLCLK 1
1708 #define STN_ENABLE 2
1709 #define STN_DISABLE 3
1711 /* Scrollbar messages */
1712 #define SBM_SETPOS 0x00e0
1713 #define SBM_GETPOS 0x00e1
1714 #define SBM_SETRANGE 0x00e2
1715 #define SBM_GETRANGE 0x00e3
1716 #define SBM_ENABLE_ARROWS 0x00e4
1717 #define SBM_SETRANGEREDRAW 0x00e6
1718 #define SBM_SETSCROLLINFO 0x00e9
1719 #define SBM_GETSCROLLINFO 0x00ea
1721 /* Scrollbar info */
1731 } SCROLLINFO
, *LPSCROLLINFO
;
1733 typedef const SCROLLINFO
*LPCSCROLLINFO
;
1735 /* GetScrollInfo() flags */
1736 #define SIF_RANGE 0x0001
1737 #define SIF_PAGE 0x0002
1738 #define SIF_POS 0x0004
1739 #define SIF_DISABLENOSCROLL 0x0008
1740 #define SIF_TRACKPOS 0x0010
1741 #define SIF_ALL (SIF_RANGE | SIF_PAGE | SIF_POS | SIF_TRACKPOS)
1743 /* Listbox styles */
1744 #define LBS_NOTIFY 0x0001
1745 #define LBS_SORT 0x0002
1746 #define LBS_NOREDRAW 0x0004
1747 #define LBS_MULTIPLESEL 0x0008
1748 #define LBS_OWNERDRAWFIXED 0x0010
1749 #define LBS_OWNERDRAWVARIABLE 0x0020
1750 #define LBS_HASSTRINGS 0x0040
1751 #define LBS_USETABSTOPS 0x0080
1752 #define LBS_NOINTEGRALHEIGHT 0x0100
1753 #define LBS_MULTICOLUMN 0x0200
1754 #define LBS_WANTKEYBOARDINPUT 0x0400
1755 #define LBS_EXTENDEDSEL 0x0800
1756 #define LBS_DISABLENOSCROLL 0x1000
1757 #define LBS_NODATA 0x2000
1758 #define LBS_NOSEL 0x4000
1759 #define LBS_STANDARD (LBS_NOTIFY | LBS_SORT | WS_VSCROLL | WS_BORDER)
1761 /* Listbox messages */
1762 #define LB_ADDSTRING 0x0180
1763 #define LB_INSERTSTRING 0x0181
1764 #define LB_DELETESTRING 0x0182
1765 #define LB_SELITEMRANGEEX 0x0183
1766 #define LB_RESETCONTENT 0x0184
1767 #define LB_SETSEL 0x0185
1768 #define LB_SETCURSEL 0x0186
1769 #define LB_GETSEL 0x0187
1770 #define LB_GETCURSEL 0x0188
1771 #define LB_GETTEXT 0x0189
1772 #define LB_GETTEXTLEN 0x018a
1773 #define LB_GETCOUNT 0x018b
1774 #define LB_SELECTSTRING 0x018c
1775 #define LB_DIR 0x018d
1776 #define LB_GETTOPINDEX 0x018e
1777 #define LB_FINDSTRING 0x018f
1778 #define LB_GETSELCOUNT 0x0190
1779 #define LB_GETSELITEMS 0x0191
1780 #define LB_SETTABSTOPS 0x0192
1781 #define LB_GETHORIZONTALEXTENT 0x0193
1782 #define LB_SETHORIZONTALEXTENT 0x0194
1783 #define LB_SETCOLUMNWIDTH 0x0195
1784 #define LB_ADDFILE 0x0196
1785 #define LB_SETTOPINDEX 0x0197
1786 #define LB_GETITEMRECT 0x0198
1787 #define LB_GETITEMDATA 0x0199
1788 #define LB_SETITEMDATA 0x019a
1789 #define LB_SELITEMRANGE 0x019b
1790 #define LB_SETANCHORINDEX 0x019c
1791 #define LB_GETANCHORINDEX 0x019d
1792 #define LB_SETCARETINDEX 0x019e
1793 #define LB_GETCARETINDEX 0x019f
1794 #define LB_SETITEMHEIGHT 0x01a0
1795 #define LB_GETITEMHEIGHT 0x01a1
1796 #define LB_FINDSTRINGEXACT 0x01a2
1797 #define LB_CARETON 0x01a3
1798 #define LB_CARETOFF 0x01a4
1799 #define LB_SETLOCALE 0x01a5
1800 #define LB_GETLOCALE 0x01a6
1801 #define LB_SETCOUNT 0x01a7
1802 #define LB_INITSTORAGE 0x01a8
1803 #define LB_ITEMFROMPOINT 0x01a9
1805 /* Listbox notification codes */
1806 #define LBN_ERRSPACE (-2)
1807 #define LBN_SELCHANGE 1
1808 #define LBN_DBLCLK 2
1809 #define LBN_SELCANCEL 3
1810 #define LBN_SETFOCUS 4
1811 #define LBN_KILLFOCUS 5
1813 /* Listbox message return values */
1816 #define LB_ERRSPACE (-2)
1818 #define LB_CTLCODE 0L
1820 /* Combo box styles */
1821 #define CBS_SIMPLE 0x0001L
1822 #define CBS_DROPDOWN 0x0002L
1823 #define CBS_DROPDOWNLIST 0x0003L
1824 #define CBS_OWNERDRAWFIXED 0x0010L
1825 #define CBS_OWNERDRAWVARIABLE 0x0020L
1826 #define CBS_AUTOHSCROLL 0x0040L
1827 #define CBS_OEMCONVERT 0x0080L
1828 #define CBS_SORT 0x0100L
1829 #define CBS_HASSTRINGS 0x0200L
1830 #define CBS_NOINTEGRALHEIGHT 0x0400L
1831 #define CBS_DISABLENOSCROLL 0x0800L
1833 #define CBS_UPPERCASE 0x2000L
1834 #define CBS_LOWERCASE 0x4000L
1837 /* Combo box messages */
1838 #define CB_GETEDITSEL 0x0140
1839 #define CB_LIMITTEXT 0x0141
1840 #define CB_SETEDITSEL 0x0142
1841 #define CB_ADDSTRING 0x0143
1842 #define CB_DELETESTRING 0x0144
1843 #define CB_DIR 0x0145
1844 #define CB_GETCOUNT 0x0146
1845 #define CB_GETCURSEL 0x0147
1846 #define CB_GETLBTEXT 0x0148
1847 #define CB_GETLBTEXTLEN 0x0149
1848 #define CB_INSERTSTRING 0x014a
1849 #define CB_RESETCONTENT 0x014b
1850 #define CB_FINDSTRING 0x014c
1851 #define CB_SELECTSTRING 0x014d
1852 #define CB_SETCURSEL 0x014e
1853 #define CB_SHOWDROPDOWN 0x014f
1854 #define CB_GETITEMDATA 0x0150
1855 #define CB_SETITEMDATA 0x0151
1856 #define CB_GETDROPPEDCONTROLRECT 0x0152
1857 #define CB_SETITEMHEIGHT 0x0153
1858 #define CB_GETITEMHEIGHT 0x0154
1859 #define CB_SETEXTENDEDUI 0x0155
1860 #define CB_GETEXTENDEDUI 0x0156
1861 #define CB_GETDROPPEDSTATE 0x0157
1862 #define CB_FINDSTRINGEXACT 0x0158
1863 #define CB_SETLOCALE 0x0159
1864 #define CB_GETLOCALE 0x015a
1865 #define CB_GETTOPINDEX 0x015b
1866 #define CB_SETTOPINDEX 0x015c
1867 #define CB_GETHORIZONTALEXTENT 0x015d
1868 #define CB_SETHORIZONTALEXTENT 0x015e
1869 #define CB_GETDROPPEDWIDTH 0x015f
1870 #define CB_SETDROPPEDWIDTH 0x0160
1871 #define CB_INITSTORAGE 0x0161
1873 /* Combo box notification codes */
1874 #define CBN_ERRSPACE (-1)
1875 #define CBN_SELCHANGE 1
1876 #define CBN_DBLCLK 2
1877 #define CBN_SETFOCUS 3
1878 #define CBN_KILLFOCUS 4
1879 #define CBN_EDITCHANGE 5
1880 #define CBN_EDITUPDATE 6
1881 #define CBN_DROPDOWN 7
1882 #define CBN_CLOSEUP 8
1883 #define CBN_SELENDOK 9
1884 #define CBN_SELENDCANCEL 10
1886 /* Combo box message return values */
1889 #define CB_ERRSPACE (-2)
1891 #define MB_OK 0x00000000
1892 #define MB_OKCANCEL 0x00000001
1893 #define MB_ABORTRETRYIGNORE 0x00000002
1894 #define MB_YESNOCANCEL 0x00000003
1895 #define MB_YESNO 0x00000004
1896 #define MB_RETRYCANCEL 0x00000005
1897 #define MB_TYPEMASK 0x0000000F
1899 #define MB_ICONHAND 0x00000010
1900 #define MB_ICONQUESTION 0x00000020
1901 #define MB_ICONEXCLAMATION 0x00000030
1902 #define MB_ICONASTERISK 0x00000040
1903 #define MB_USERICON 0x00000080
1904 #define MB_ICONMASK 0x000000F0
1906 #define MB_ICONINFORMATION MB_ICONASTERISK
1907 #define MB_ICONSTOP MB_ICONHAND
1908 #define MB_ICONWARNING MB_ICONEXCLAMATION
1909 #define MB_ICONERROR MB_ICONHAND
1911 #define MB_DEFBUTTON1 0x00000000
1912 #define MB_DEFBUTTON2 0x00000100
1913 #define MB_DEFBUTTON3 0x00000200
1914 #define MB_DEFBUTTON4 0x00000300
1915 #define MB_DEFMASK 0x00000F00
1917 #define MB_APPLMODAL 0x00000000
1918 #define MB_SYSTEMMODAL 0x00001000
1919 #define MB_TASKMODAL 0x00002000
1920 #define MB_MODEMASK 0x00003000
1922 #define MB_HELP 0x00004000
1923 #define MB_NOFOCUS 0x00008000
1924 #define MB_MISCMASK 0x0000C000
1926 #define MB_SETFOREGROUND 0x00010000
1927 #define MB_DEFAULT_DESKTOP_ONLY 0x00020000
1928 #define MB_SERVICE_NOTIFICATION 0x00040000
1929 #define MB_TOPMOST 0x00040000
1930 #define MB_RIGHT 0x00080000
1931 #define MB_RTLREADING 0x00100000
1933 #define HELPINFO_WINDOW 0x0001
1934 #define HELPINFO_MENUITEM 0x0002
1936 /* Structure pointed to by lParam of WM_HELP */
1939 UINT cbSize
; /* Size in bytes of this struct */
1940 INT iContextType
; /* Either HELPINFO_WINDOW or HELPINFO_MENUITEM */
1941 INT iCtrlId
; /* Control Id or a Menu item Id. */
1942 HANDLE hItemHandle
; /* hWnd of control or hMenu. */
1943 DWORD dwContextId
; /* Context Id associated with this item */
1944 POINT MousePos
; /* Mouse Position in screen co-ordinates */
1945 } HELPINFO
,*LPHELPINFO
;
1947 typedef void CALLBACK (*MSGBOXCALLBACK
)(LPHELPINFO lpHelpInfo
);
1953 HINSTANCE hInstance
;
1958 DWORD dwContextHelpId
;
1959 MSGBOXCALLBACK lpfnMsgBoxCallback
;
1961 } MSGBOXPARAMSA
, *PMSGBOXPARAMSA
, *LPMSGBOXPARAMSA
;
1967 HINSTANCE hInstance
;
1969 LPCWSTR lpszCaption
;
1972 DWORD dwContextHelpId
;
1973 MSGBOXCALLBACK lpfnMsgBoxCallback
;
1975 } MSGBOXPARAMSW
, *PMSGBOXPARAMSW
, *LPMSGBOXPARAMSW
;
1977 DECL_WINELIB_TYPE_AW(MSGBOXPARAMS
)
1978 DECL_WINELIB_TYPE_AW(PMSGBOXPARAMS
)
1979 DECL_WINELIB_TYPE_AW(LPMSGBOXPARAMS
)
1981 #define MONITOR_DEFAULTTONULL 0x00000000
1982 #define MONITOR_DEFAULTTOPRIMARY 0x00000001
1983 #define MONITOR_DEFAULTTONEAREST 0x00000002
1985 #define MONITORINFOF_PRIMARY 0x00000001
1987 typedef struct tagMONITORINFO
1993 } MONITORINFO
, *LPMONITORINFO
;
1995 typedef struct tagMONITORINFOEXA
1998 CHAR szDevice
[CCHDEVICENAME
];
1999 } MONITORINFOEXA
, *LPMONITORINFOEXA
;
2001 typedef struct tagMONITORINFOEXW
2004 WCHAR szDevice
[CCHDEVICENAME
];
2005 } MONITORINFOEXW
, *LPMONITORINFOEXW
;
2007 DECL_WINELIB_TYPE_AW(MONITORINFOEX
)
2008 DECL_WINELIB_TYPE_AW(LPMONITORINFOEX
)
2010 typedef BOOL
CALLBACK (*MONITORENUMPROC
)(HMONITOR
,HDC
,LPRECT
,LPARAM
);
2012 /* FIXME: use this instead of LPCVOID for CreateDialogIndirectParam
2013 and DialogBoxIndirectParam */
2014 typedef struct tagDLGTEMPLATE
2017 DWORD dwExtendedStyle
;
2025 typedef DLGTEMPLATE
*LPDLGTEMPLATEA
;
2026 typedef DLGTEMPLATE
*LPDLGTEMPLATEW
;
2027 DECL_WINELIB_TYPE_AW(LPDLGTEMPLATE
)
2028 typedef const DLGTEMPLATE
*LPCDLGTEMPLATEA
;
2029 typedef const DLGTEMPLATE
*LPCDLGTEMPLATEW
;
2030 DECL_WINELIB_TYPE_AW(LPCDLGTEMPLATE
)
2032 typedef struct tagDLGITEMTEMPLATE
2035 DWORD dwExtendedStyle
;
2043 typedef DLGITEMTEMPLATE
*PDLGITEMTEMPLATEA
;
2044 typedef DLGITEMTEMPLATE
*PDLGITEMTEMPLATEW
;
2045 DECL_WINELIB_TYPE_AW(PDLGITEMTEMPLATE
)
2046 typedef DLGITEMTEMPLATE
*LPDLGITEMTEMPLATEA
;
2047 typedef DLGITEMTEMPLATE
*LPDLGITEMTEMPLATEW
;
2048 DECL_WINELIB_TYPE_AW(LPDLGITEMTEMPLATE
)
2051 /* CBT hook values */
2052 #define HCBT_MOVESIZE 0
2053 #define HCBT_MINMAX 1
2055 #define HCBT_CREATEWND 3
2056 #define HCBT_DESTROYWND 4
2057 #define HCBT_ACTIVATE 5
2058 #define HCBT_CLICKSKIPPED 6
2059 #define HCBT_KEYSKIPPED 7
2060 #define HCBT_SYSCOMMAND 8
2061 #define HCBT_SETFOCUS 9
2063 /* CBT hook structures */
2067 CREATESTRUCTA
*lpcs
;
2068 HWND hwndInsertAfter
;
2069 } CBT_CREATEWNDA
, *LPCBT_CREATEWNDA
;
2073 CREATESTRUCTW
*lpcs
;
2074 HWND hwndInsertAfter
;
2075 } CBT_CREATEWNDW
, *LPCBT_CREATEWNDW
;
2077 DECL_WINELIB_TYPE_AW(CBT_CREATEWND
)
2078 DECL_WINELIB_TYPE_AW(LPCBT_CREATEWND
)
2084 } CBTACTIVATESTRUCT
, *LPCBTACTIVATESTRUCT
;
2087 /* modifiers for RegisterHotKey */
2088 #define MOD_ALT 0x0001
2089 #define MOD_CONTROL 0x0002
2090 #define MOD_SHIFT 0x0004
2091 #define MOD_WIN 0x0008
2093 /* ids for RegisterHotKey */
2094 #define IDHOT_SNAPWINDOW (-1) /* SHIFT-PRINTSCRN */
2095 #define IDHOT_SNAPDESKTOP (-2) /* PRINTSCRN */
2097 /* keybd_event flags */
2098 #define KEYEVENTF_EXTENDEDKEY 0x0001
2099 #define KEYEVENTF_KEYUP 0x0002
2100 #define KEYEVENTF_WINE_FORCEEXTENDED 0x8000
2102 /* mouse_event flags */
2103 #define MOUSEEVENTF_MOVE 0x0001
2104 #define MOUSEEVENTF_LEFTDOWN 0x0002
2105 #define MOUSEEVENTF_LEFTUP 0x0004
2106 #define MOUSEEVENTF_RIGHTDOWN 0x0008
2107 #define MOUSEEVENTF_RIGHTUP 0x0010
2108 #define MOUSEEVENTF_MIDDLEDOWN 0x0020
2109 #define MOUSEEVENTF_MIDDLEUP 0x0040
2110 #define MOUSEEVENTF_WHEEL 0x0800
2111 #define MOUSEEVENTF_ABSOLUTE 0x8000
2113 /* ExitWindows() flags */
2114 #define EW_RESTARTWINDOWS 0x0042
2115 #define EW_REBOOTSYSTEM 0x0043
2116 #define EW_EXITANDEXECAPP 0x0044
2118 /* ExitWindowsEx() flags */
2119 #define EWX_LOGOFF 0
2120 #define EWX_SHUTDOWN 1
2121 #define EWX_REBOOT 2
2123 #define EWX_POWEROFF 8
2125 /* SetLastErrorEx types */
2126 #define SLE_ERROR 0x00000001
2127 #define SLE_MINORERROR 0x00000002
2128 #define SLE_WARNING 0x00000003
2130 /* Predefined resources */
2131 #define IDI_APPLICATIONA MAKEINTRESOURCEA(32512)
2132 #define IDI_APPLICATIONW MAKEINTRESOURCEW(32512)
2133 #define IDI_APPLICATION WINELIB_NAME_AW(IDI_APPLICATION)
2134 #define IDI_HANDA MAKEINTRESOURCEA(32513)
2135 #define IDI_HANDW MAKEINTRESOURCEW(32513)
2136 #define IDI_HAND WINELIB_NAME_AW(IDI_HAND)
2137 #define IDI_QUESTIONA MAKEINTRESOURCEA(32514)
2138 #define IDI_QUESTIONW MAKEINTRESOURCEW(32514)
2139 #define IDI_QUESTION WINELIB_NAME_AW(IDI_QUESTION)
2140 #define IDI_EXCLAMATIONA MAKEINTRESOURCEA(32515)
2141 #define IDI_EXCLAMATIONW MAKEINTRESOURCEW(32515)
2142 #define IDI_EXCLAMATION WINELIB_NAME_AW(IDI_EXCLAMATION)
2143 #define IDI_ASTERISKA MAKEINTRESOURCEA(32516)
2144 #define IDI_ASTERISKW MAKEINTRESOURCEW(32516)
2145 #define IDI_ASTERISK WINELIB_NAME_AW(IDI_ASTERISK)
2146 #define IDI_WINLOGOA MAKEINTRESOURCEA(32517)
2147 #define IDI_WINLOGOW MAKEINTRESOURCEW(32517)
2148 #define IDI_WINLOGO WINELIB_NAME_AW(IDI_WINLOGO)
2150 #define IDI_WARNING IDI_EXCLAMATION
2151 #define IDI_ERROR IDI_HAND
2152 #define IDI_INFORMATION IDI_ASTERISK
2154 #define IDC_ARROWA MAKEINTRESOURCEA(32512)
2155 #define IDC_ARROWW MAKEINTRESOURCEW(32512)
2156 #define IDC_ARROW WINELIB_NAME_AW(IDC_ARROW)
2157 #define IDC_IBEAMA MAKEINTRESOURCEA(32513)
2158 #define IDC_IBEAMW MAKEINTRESOURCEW(32513)
2159 #define IDC_IBEAM WINELIB_NAME_AW(IDC_IBEAM)
2160 #define IDC_WAITA MAKEINTRESOURCEA(32514)
2161 #define IDC_WAITW MAKEINTRESOURCEW(32514)
2162 #define IDC_WAIT WINELIB_NAME_AW(IDC_WAIT)
2163 #define IDC_CROSSA MAKEINTRESOURCEA(32515)
2164 #define IDC_CROSSW MAKEINTRESOURCEW(32515)
2165 #define IDC_CROSS WINELIB_NAME_AW(IDC_CROSS)
2166 #define IDC_UPARROWA MAKEINTRESOURCEA(32516)
2167 #define IDC_UPARROWW MAKEINTRESOURCEW(32516)
2168 #define IDC_UPARROW WINELIB_NAME_AW(IDC_UPARROW)
2169 #define IDC_SIZEA MAKEINTRESOURCEA(32640)
2170 #define IDC_SIZEW MAKEINTRESOURCEW(32640)
2171 #define IDC_SIZE WINELIB_NAME_AW(IDC_SIZE)
2172 #define IDC_ICONA MAKEINTRESOURCEA(32641)
2173 #define IDC_ICONW MAKEINTRESOURCEW(32641)
2174 #define IDC_ICON WINELIB_NAME_AW(IDC_ICON)
2175 #define IDC_SIZENWSEA MAKEINTRESOURCEA(32642)
2176 #define IDC_SIZENWSEW MAKEINTRESOURCEW(32642)
2177 #define IDC_SIZENWSE WINELIB_NAME_AW(IDC_SIZENWSE)
2178 #define IDC_SIZENESWA MAKEINTRESOURCEA(32643)
2179 #define IDC_SIZENESWW MAKEINTRESOURCEW(32643)
2180 #define IDC_SIZENESW WINELIB_NAME_AW(IDC_SIZENESW)
2181 #define IDC_SIZEWEA MAKEINTRESOURCEA(32644)
2182 #define IDC_SIZEWEW MAKEINTRESOURCEW(32644)
2183 #define IDC_SIZEWE WINELIB_NAME_AW(IDC_SIZEWE)
2184 #define IDC_SIZENSA MAKEINTRESOURCEA(32645)
2185 #define IDC_SIZENSW MAKEINTRESOURCEW(32645)
2186 #define IDC_SIZENS WINELIB_NAME_AW(IDC_SIZENS)
2187 #define IDC_SIZEALLA MAKEINTRESOURCEA(32646)
2188 #define IDC_SIZEALLW MAKEINTRESOURCEW(32646)
2189 #define IDC_SIZEALL WINELIB_NAME_AW(IDC_SIZEALL)
2190 #define IDC_NOA MAKEINTRESOURCEA(32648)
2191 #define IDC_NOW MAKEINTRESOURCEW(32648)
2192 #define IDC_NO WINELIB_NAME_AW(IDC_NO)
2193 #define IDC_HANDA MAKEINTRESOURCEA(32649)
2194 #define IDC_HANDW MAKEINTRESOURCEW(32649)
2195 #define IDC_HAND WINELIB_NAME_AW(IDC_HAND)
2196 #define IDC_APPSTARTINGA MAKEINTRESOURCEA(32650)
2197 #define IDC_APPSTARTINGW MAKEINTRESOURCEW(32650)
2198 #define IDC_APPSTARTING WINELIB_NAME_AW(IDC_APPSTARTING)
2199 #define IDC_HELPA MAKEINTRESOURCEA(32651)
2200 #define IDC_HELPW MAKEINTRESOURCEW(32651)
2201 #define IDC_HELP WINELIB_NAME_AW(IDC_HELP)
2203 #define MNC_IGNORE 0
2205 #define MNC_EXECUTE 2
2206 #define MNC_SELECT 3
2208 /* SystemParametersInfo */
2209 /* defines below are for all win versions */
2210 #define SPI_GETBEEP 1
2211 #define SPI_SETBEEP 2
2212 #define SPI_GETMOUSE 3
2213 #define SPI_SETMOUSE 4
2214 #define SPI_GETBORDER 5
2215 #define SPI_SETBORDER 6
2216 #define SPI_GETKEYBOARDSPEED 10
2217 #define SPI_SETKEYBOARDSPEED 11
2218 #define SPI_LANGDRIVER 12
2219 #define SPI_ICONHORIZONTALSPACING 13
2220 #define SPI_GETSCREENSAVETIMEOUT 14
2221 #define SPI_SETSCREENSAVETIMEOUT 15
2222 #define SPI_GETSCREENSAVEACTIVE 16
2223 #define SPI_SETSCREENSAVEACTIVE 17
2224 #define SPI_GETGRIDGRANULARITY 18
2225 #define SPI_SETGRIDGRANULARITY 19
2226 #define SPI_SETDESKWALLPAPER 20
2227 #define SPI_SETDESKPATTERN 21
2228 #define SPI_GETKEYBOARDDELAY 22
2229 #define SPI_SETKEYBOARDDELAY 23
2230 #define SPI_ICONVERTICALSPACING 24
2231 #define SPI_GETICONTITLEWRAP 25
2232 #define SPI_SETICONTITLEWRAP 26
2233 #define SPI_GETMENUDROPALIGNMENT 27
2234 #define SPI_SETMENUDROPALIGNMENT 28
2235 #define SPI_SETDOUBLECLKWIDTH 29
2236 #define SPI_SETDOUBLECLKHEIGHT 30
2237 #define SPI_GETICONTITLELOGFONT 31
2238 #define SPI_SETDOUBLECLICKTIME 32
2239 #define SPI_SETMOUSEBUTTONSWAP 33
2240 #define SPI_SETICONTITLELOGFONT 34
2241 #define SPI_GETFASTTASKSWITCH 35
2242 #define SPI_SETFASTTASKSWITCH 36
2243 #define SPI_SETDRAGFULLWINDOWS 37
2244 #define SPI_GETDRAGFULLWINDOWS 38
2246 #define SPI_GETFILTERKEYS 50
2247 #define SPI_SETFILTERKEYS 51
2248 #define SPI_GETTOGGLEKEYS 52
2249 #define SPI_SETTOGGLEKEYS 53
2250 #define SPI_GETMOUSEKEYS 54
2251 #define SPI_SETMOUSEKEYS 55
2252 #define SPI_GETSHOWSOUNDS 56
2253 #define SPI_SETSHOWSOUNDS 57
2254 #define SPI_GETSTICKYKEYS 58
2255 #define SPI_SETSTICKYKEYS 59
2256 #define SPI_GETACCESSTIMEOUT 60
2257 #define SPI_SETACCESSTIMEOUT 61
2259 #define SPI_GETSOUNDSENTRY 64
2260 #define SPI_SETSOUNDSENTRY 65
2262 /* defines below are for all win versions WINVER >= 0x0400 */
2263 #define SPI_SETDRAGFULLWINDOWS 37
2264 #define SPI_GETDRAGFULLWINDOWS 38
2265 #define SPI_GETNONCLIENTMETRICS 41
2266 #define SPI_SETNONCLIENTMETRICS 42
2267 #define SPI_GETMINIMIZEDMETRICS 43
2268 #define SPI_SETMINIMIZEDMETRICS 44
2269 #define SPI_GETICONMETRICS 45
2270 #define SPI_SETICONMETRICS 46
2271 #define SPI_SETWORKAREA 47
2272 #define SPI_GETWORKAREA 48
2273 #define SPI_SETPENWINDOWS 49
2275 #define SPI_GETSERIALKEYS 62
2276 #define SPI_SETSERIALKEYS 63
2277 #define SPI_GETHIGHCONTRAST 66
2278 #define SPI_SETHIGHCONTRAST 67
2279 #define SPI_GETKEYBOARDPREF 68
2280 #define SPI_SETKEYBOARDPREF 69
2281 #define SPI_GETSCREENREADER 70
2282 #define SPI_SETSCREENREADER 71
2283 #define SPI_GETANIMATION 72
2284 #define SPI_SETANIMATION 73
2285 #define SPI_GETFONTSMOOTHING 74
2286 #define SPI_SETFONTSMOOTHING 75
2287 #define SPI_SETDRAGWIDTH 76
2288 #define SPI_SETDRAGHEIGHT 77
2289 #define SPI_SETHANDHELD 78
2290 #define SPI_GETLOWPOWERTIMEOUT 79
2291 #define SPI_GETPOWEROFFTIMEOUT 80
2292 #define SPI_SETLOWPOWERTIMEOUT 81
2293 #define SPI_SETPOWEROFFTIMEOUT 82
2294 #define SPI_GETLOWPOWERACTIVE 83
2295 #define SPI_GETPOWEROFFACTIVE 84
2296 #define SPI_SETLOWPOWERACTIVE 85
2297 #define SPI_SETPOWEROFFACTIVE 86
2298 #define SPI_SETCURSORS 87
2299 #define SPI_SETICONS 88
2300 #define SPI_GETDEFAULTINPUTLANG 89
2301 #define SPI_SETDEFAULTINPUTLANG 90
2302 #define SPI_SETLANGTOGGLE 91
2303 #define SPI_GETWINDOWSEXTENSION 92
2304 #define SPI_SETMOUSETRAILS 93
2305 #define SPI_GETMOUSETRAILS 94
2306 #define SPI_SETSCREENSAVERRUNNING 97
2307 #define SPI_SCREENSAVERRUNNING SPI_SETSCREENSAVERRUNNING
2309 /* defines below are for all win versions (_WIN32_WINNT >= 0x0400) ||
2310 * (_WIN32_WINDOWS > 0x0400) */
2311 #define SPI_GETMOUSEHOVERWIDTH 98
2312 #define SPI_SETMOUSEHOVERWIDTH 99
2313 #define SPI_GETMOUSEHOVERHEIGHT 100
2314 #define SPI_SETMOUSEHOVERHEIGHT 101
2315 #define SPI_GETMOUSEHOVERTIME 102
2316 #define SPI_SETMOUSEHOVERTIME 103
2317 #define SPI_GETWHEELSCROLLLINES 104
2318 #define SPI_SETWHEELSCROLLLINES 105
2319 #define SPI_GETMENUSHOWDELAY 106
2320 #define SPI_SETMENUSHOWDELAY 107
2322 #define SPI_GETSHOWIMEUI 110
2323 #define SPI_SETSHOWIMEUI 111
2325 /* defines below are for all win versions WINVER >= 0x0500 */
2326 #define SPI_GETMOUSESPEED 112
2327 #define SPI_SETMOUSESPEED 113
2328 #define SPI_GETSCREENSAVERRUNNING 114
2329 #define SPI_GETDESKWALLPAPER 115
2331 #define SPI_GETACTIVEWINDOWTRACKING 0x1000
2332 #define SPI_SETACTIVEWINDOWTRACKING 0x1001
2333 #define SPI_GETMENUANIMATION 0x1002
2334 #define SPI_SETMENUANIMATION 0x1003
2335 #define SPI_GETCOMBOBOXANIMATION 0x1004
2336 #define SPI_SETCOMBOBOXANIMATION 0x1005
2337 #define SPI_GETLISTBOXSMOOTHSCROLLING 0x1006
2338 #define SPI_SETLISTBOXSMOOTHSCROLLING 0x1007
2339 #define SPI_GETGRADIENTCAPTIONS 0x1008
2340 #define SPI_SETGRADIENTCAPTIONS 0x1009
2341 #define SPI_GETMENUUNDERLINES 0x100A
2342 #define SPI_SETMENUUNDERLINES 0x100B
2343 #define SPI_GETACTIVEWNDTRKZORDER 0x100C
2344 #define SPI_SETACTIVEWNDTRKZORDER 0x100D
2345 #define SPI_GETHOTTRACKING 0x100E
2346 #define SPI_SETHOTTRACKING 0x100F
2347 #define SPI_GETFOREGROUNDLOCKTIMEOUT 0x2000
2348 #define SPI_SETFOREGROUNDLOCKTIMEOUT 0x2001
2349 #define SPI_GETACTIVEWNDTRKTIMEOUT 0x2002
2350 #define SPI_SETACTIVEWNDTRKTIMEOUT 0x2003
2351 #define SPI_GETFOREGROUNDFLASHCOUNT 0x2004
2352 #define SPI_SETFOREGROUNDFLASHCOUNT 0x2005
2354 /* SystemParametersInfo flags */
2356 #define SPIF_UPDATEINIFILE 1
2357 #define SPIF_SENDWININICHANGE 2
2358 #define SPIF_SENDCHANGE SPIF_SENDWININICHANGE
2367 LOGFONTA lfCaptionFont
;
2368 INT iSmCaptionWidth
;
2369 INT iSmCaptionHeight
;
2370 LOGFONTA lfSmCaptionFont
;
2373 LOGFONTA lfMenuFont
;
2374 LOGFONTA lfStatusFont
;
2375 LOGFONTA lfMessageFont
;
2376 } NONCLIENTMETRICSA
, *PNONCLIENTMETRICSA
, *LPNONCLIENTMETRICSA
;
2385 LOGFONTW lfCaptionFont
;
2386 INT iSmCaptionWidth
;
2387 INT iSmCaptionHeight
;
2388 LOGFONTW lfSmCaptionFont
;
2391 LOGFONTW lfMenuFont
;
2392 LOGFONTW lfStatusFont
;
2393 LOGFONTW lfMessageFont
;
2394 } NONCLIENTMETRICSW
, *PNONCLIENTMETRICSW
, *LPNONCLIENTMETRICSW
;
2396 DECL_WINELIB_TYPE_AW(NONCLIENTMETRICS
)
2397 DECL_WINELIB_TYPE_AW(PNONCLIENTMETRICS
)
2398 DECL_WINELIB_TYPE_AW(LPNONCLIENTMETRICS
)
2400 #define ARW_BOTTOMLEFT 0x0000L
2401 #define ARW_BOTTOMRIGHT 0x0001L
2402 #define ARW_TOPLEFT 0x0002L
2403 #define ARW_TOPRIGHT 0x0003L
2404 #define ARW_STARTMASK 0x0003L
2405 #define ARW_STARTRIGHT 0x0001L
2406 #define ARW_STARTTOP 0x0002L
2408 #define ARW_LEFT 0x0000L
2409 #define ARW_RIGHT 0x0000L
2410 #define ARW_UP 0x0004L
2411 #define ARW_DOWN 0x0004L
2412 #define ARW_HIDE 0x0008L
2414 typedef struct tagMINIMIZEDMETRICS
{
2420 } MINIMIZEDMETRICS
, *PMINIMIZEDMETRICS
, *LPMINIMIZEDMETRICS
;
2422 typedef struct tagICONMETRICSA
{
2428 } ICONMETRICSA
, *PICONMETRICSA
, *LPICONMETRICSA
;
2430 typedef struct tagICONMETRICSW
{
2436 } ICONMETRICSW
, *PICONMETRICSW
, *LPICONMETRICSW
;
2438 DECL_WINELIB_TYPE_AW(ICONMETRICS
)
2439 DECL_WINELIB_TYPE_AW(PICONMETRICS
)
2440 DECL_WINELIB_TYPE_AW(LPICONMETRICS
)
2443 #define WS_OVERLAPPED 0x00000000L
2444 #define WS_POPUP 0x80000000L
2445 #define WS_CHILD 0x40000000L
2446 #define WS_MINIMIZE 0x20000000L
2447 #define WS_VISIBLE 0x10000000L
2448 #define WS_DISABLED 0x08000000L
2449 #define WS_CLIPSIBLINGS 0x04000000L
2450 #define WS_CLIPCHILDREN 0x02000000L
2451 #define WS_MAXIMIZE 0x01000000L
2452 #define WS_CAPTION 0x00C00000L
2453 #define WS_BORDER 0x00800000L
2454 #define WS_DLGFRAME 0x00400000L
2455 #define WS_VSCROLL 0x00200000L
2456 #define WS_HSCROLL 0x00100000L
2457 #define WS_SYSMENU 0x00080000L
2458 #define WS_THICKFRAME 0x00040000L
2459 #define WS_GROUP 0x00020000L
2460 #define WS_TABSTOP 0x00010000L
2461 #define WS_MINIMIZEBOX 0x00020000L
2462 #define WS_MAXIMIZEBOX 0x00010000L
2463 #define WS_TILED WS_OVERLAPPED
2464 #define WS_ICONIC WS_MINIMIZE
2465 #define WS_SIZEBOX WS_THICKFRAME
2466 #define WS_OVERLAPPEDWINDOW (WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME| WS_MINIMIZEBOX | WS_MAXIMIZEBOX)
2467 #define WS_POPUPWINDOW (WS_POPUP | WS_BORDER | WS_SYSMENU)
2468 #define WS_CHILDWINDOW (WS_CHILD)
2469 #define WS_TILEDWINDOW (WS_OVERLAPPEDWINDOW)
2471 /* Window extended styles */
2472 #define WS_EX_DLGMODALFRAME 0x00000001L
2473 #define WS_EX_DRAGDETECT 0x00000002L
2474 #define WS_EX_NOPARENTNOTIFY 0x00000004L
2475 #define WS_EX_TOPMOST 0x00000008L
2476 #define WS_EX_ACCEPTFILES 0x00000010L
2477 #define WS_EX_TRANSPARENT 0x00000020L
2479 /* New Win95/WinNT4 styles */
2480 #define WS_EX_MDICHILD 0x00000040L
2481 #define WS_EX_TOOLWINDOW 0x00000080L
2482 #define WS_EX_WINDOWEDGE 0x00000100L
2483 #define WS_EX_CLIENTEDGE 0x00000200L
2484 #define WS_EX_CONTEXTHELP 0x00000400L
2485 #define WS_EX_RIGHT 0x00001000L
2486 #define WS_EX_LEFT 0x00000000L
2487 #define WS_EX_RTLREADING 0x00002000L
2488 #define WS_EX_LTRREADING 0x00000000L
2489 #define WS_EX_LEFTSCROLLBAR 0x00004000L
2490 #define WS_EX_RIGHTSCROLLBAR 0x00000000L
2491 #define WS_EX_CONTROLPARENT 0x00010000L
2492 #define WS_EX_STATICEDGE 0x00020000L
2493 #define WS_EX_APPWINDOW 0x00040000L
2495 #define WS_EX_OVERLAPPEDWINDOW (WS_EX_WINDOWEDGE|WS_EX_CLIENTEDGE)
2496 #define WS_EX_PALETTEWINDOW (WS_EX_WINDOWEDGE|WS_EX_TOOLWINDOW|WS_EX_TOPMOST)
2498 /* New Win2000 styles */
2499 #define WS_EX_LAYERED 0x00080000L
2501 /* WINE internal... */
2502 #define WS_EX_TRAYWINDOW 0x80000000L
2503 #define WS_EX_MANAGED 0x40000000L /* Window managed by the window system */
2505 /* Window scrolling */
2506 #define SW_SCROLLCHILDREN 0x0001
2507 #define SW_INVALIDATE 0x0002
2508 #define SW_ERASE 0x0004
2510 /* CreateWindow() coordinates */
2511 #define CW_USEDEFAULT ((INT)0x80000000)
2513 /* ChildWindowFromPointEx Flags */
2514 #define CWP_ALL 0x0000
2515 #define CWP_SKIPINVISIBLE 0x0001
2516 #define CWP_SKIPDISABLED 0x0002
2517 #define CWP_SKIPTRANSPARENT 0x0004
2519 /* PeekMessage() options */
2520 #define PM_NOREMOVE 0x0000
2521 #define PM_REMOVE 0x0001
2522 #define PM_NOYIELD 0x0002
2524 /* WM_SHOWWINDOW wParam codes */
2525 #define SW_PARENTCLOSING 1
2526 #define SW_OTHERMAXIMIZED 2
2527 #define SW_PARENTOPENING 3
2528 #define SW_OTHERRESTORED 4
2530 /* ShowWindow() codes */
2532 #define SW_SHOWNORMAL 1
2534 #define SW_SHOWMINIMIZED 2
2535 #define SW_SHOWMAXIMIZED 3
2536 #define SW_MAXIMIZE 3
2537 #define SW_SHOWNOACTIVATE 4
2539 #define SW_MINIMIZE 6
2540 #define SW_SHOWMINNOACTIVE 7
2542 #define SW_RESTORE 9
2543 #define SW_SHOWDEFAULT 10
2545 #define SW_NORMALNA 0xCC /* undoc. flag in MinMaximize */
2547 /* WM_SIZE message wParam values */
2548 #define SIZE_RESTORED 0
2549 #define SIZE_MINIMIZED 1
2550 #define SIZE_MAXIMIZED 2
2551 #define SIZE_MAXSHOW 3
2552 #define SIZE_MAXHIDE 4
2553 #define SIZENORMAL SIZE_RESTORED
2554 #define SIZEICONIC SIZE_MINIMIZED
2555 #define SIZEFULLSCREEN SIZE_MAXIMIZED
2556 #define SIZEZOOMSHOW SIZE_MAXSHOW
2557 #define SIZEZOOMHIDE SIZE_MAXHIDE
2559 /* SetWindowPos() and WINDOWPOS flags */
2560 #define SWP_NOSIZE 0x0001
2561 #define SWP_NOMOVE 0x0002
2562 #define SWP_NOZORDER 0x0004
2563 #define SWP_NOREDRAW 0x0008
2564 #define SWP_NOACTIVATE 0x0010
2565 #define SWP_FRAMECHANGED 0x0020 /* The frame changed: send WM_NCCALCSIZE */
2566 #define SWP_SHOWWINDOW 0x0040
2567 #define SWP_HIDEWINDOW 0x0080
2568 #define SWP_NOCOPYBITS 0x0100
2569 #define SWP_NOOWNERZORDER 0x0200 /* Don't do owner Z ordering */
2571 #define SWP_DRAWFRAME SWP_FRAMECHANGED
2572 #define SWP_NOREPOSITION SWP_NOOWNERZORDER
2574 #define SWP_NOSENDCHANGING 0x0400
2575 #define SWP_DEFERERASE 0x2000
2576 #define SWP_ASYNCWINDOWPOS 0x4000
2578 #define HWND_DESKTOP ((HWND)0)
2579 #define HWND_BROADCAST ((HWND)0xffff)
2581 /* SetWindowPos() hwndInsertAfter field values */
2582 #define HWND_TOP ((HWND)0)
2583 #define HWND_BOTTOM ((HWND)1)
2584 #define HWND_TOPMOST ((HWND)-1)
2585 #define HWND_NOTOPMOST ((HWND)-2)
2586 #define HWND_MESSAGE ((HWND)-3)
2588 #define MF_INSERT 0x0000
2589 #define MF_CHANGE 0x0080
2590 #define MF_APPEND 0x0100
2591 #define MF_DELETE 0x0200
2592 #define MF_REMOVE 0x1000
2593 #define MF_END 0x0080
2595 #define MF_ENABLED 0x0000
2596 #define MF_GRAYED 0x0001
2597 #define MF_DISABLED 0x0002
2598 #define MF_STRING 0x0000
2599 #define MF_BITMAP 0x0004
2600 #define MF_UNCHECKED 0x0000
2601 #define MF_CHECKED 0x0008
2602 #define MF_POPUP 0x0010
2603 #define MF_MENUBARBREAK 0x0020
2604 #define MF_MENUBREAK 0x0040
2605 #define MF_UNHILITE 0x0000
2606 #define MF_HILITE 0x0080
2607 #define MF_OWNERDRAW 0x0100
2608 #define MF_USECHECKBITMAPS 0x0200
2609 #define MF_BYCOMMAND 0x0000
2610 #define MF_BYPOSITION 0x0400
2611 #define MF_SEPARATOR 0x0800
2612 #define MF_DEFAULT 0x1000
2613 #define MF_SYSMENU 0x2000
2614 #define MF_HELP 0x4000
2615 #define MF_RIGHTJUSTIFY 0x4000
2616 #define MF_MOUSESELECT 0x8000
2618 /* Flags for extended menu item types. */
2619 #define MFT_STRING MF_STRING
2620 #define MFT_BITMAP MF_BITMAP
2621 #define MFT_MENUBARBREAK MF_MENUBARBREAK
2622 #define MFT_MENUBREAK MF_MENUBREAK
2623 #define MFT_OWNERDRAW MF_OWNERDRAW
2624 #define MFT_RADIOCHECK 0x00000200L
2625 #define MFT_SEPARATOR MF_SEPARATOR
2626 #define MFT_RIGHTORDER 0x00002000L
2627 #define MFT_RIGHTJUSTIFY MF_RIGHTJUSTIFY
2629 /* Flags for extended menu item states. */
2630 #define MFS_GRAYED 0x00000003L
2631 #define MFS_DISABLED MFS_GRAYED
2632 #define MFS_CHECKED MF_CHECKED
2633 #define MFS_HILITE MF_HILITE
2634 #define MFS_ENABLED MF_ENABLED
2635 #define MFS_UNCHECKED MF_UNCHECKED
2636 #define MFS_UNHILITE MF_UNHILITE
2637 #define MFS_DEFAULT MF_DEFAULT
2638 #define MFS_MASK 0x0000108BL
2639 #define MFS_HOTTRACKDRAWN 0x10000000L
2640 #define MFS_CACHEDBMP 0x20000000L
2641 #define MFS_BOTTOMGAPDROP 0x40000000L
2642 #define MFS_TOPGAPDROP 0x80000000L
2643 #define MFS_GAPDROP 0xC0000000L
2645 /* for GetMenuDefaultItem */
2646 #define GMDI_USEDISABLED 0x0001L
2647 #define GMDI_GOINTOPOPUPS 0x0002L
2653 #define DT_VCENTER 4
2655 #define DT_WORDBREAK 16
2656 #define DT_SINGLELINE 32
2657 #define DT_EXPANDTABS 64
2658 #define DT_TABSTOP 128
2659 #define DT_NOCLIP 256
2660 #define DT_EXTERNALLEADING 512
2661 #define DT_CALCRECT 1024
2662 #define DT_NOPREFIX 2048
2663 #define DT_INTERNAL 4096
2665 /* DrawCaption()/DrawCaptionTemp() flags */
2666 #define DC_ACTIVE 0x0001
2667 #define DC_SMALLCAP 0x0002
2668 #define DC_ICON 0x0004
2669 #define DC_TEXT 0x0008
2670 #define DC_INBUTTON 0x0010
2672 /* DrawEdge() flags */
2673 #define BDR_RAISEDOUTER 0x0001
2674 #define BDR_SUNKENOUTER 0x0002
2675 #define BDR_RAISEDINNER 0x0004
2676 #define BDR_SUNKENINNER 0x0008
2678 #define BDR_OUTER 0x0003
2679 #define BDR_INNER 0x000c
2680 #define BDR_RAISED 0x0005
2681 #define BDR_SUNKEN 0x000a
2683 #define EDGE_RAISED (BDR_RAISEDOUTER | BDR_RAISEDINNER)
2684 #define EDGE_SUNKEN (BDR_SUNKENOUTER | BDR_SUNKENINNER)
2685 #define EDGE_ETCHED (BDR_SUNKENOUTER | BDR_RAISEDINNER)
2686 #define EDGE_BUMP (BDR_RAISEDOUTER | BDR_SUNKENINNER)
2689 #define BF_LEFT 0x0001
2690 #define BF_TOP 0x0002
2691 #define BF_RIGHT 0x0004
2692 #define BF_BOTTOM 0x0008
2693 #define BF_DIAGONAL 0x0010
2694 #define BF_MIDDLE 0x0800 /* Fill in the middle */
2695 #define BF_SOFT 0x1000 /* For softer buttons */
2696 #define BF_ADJUST 0x2000 /* Calculate the space left over */
2697 #define BF_FLAT 0x4000 /* For flat rather than 3D borders */
2698 #define BF_MONO 0x8000 /* For monochrome borders */
2699 #define BF_TOPLEFT (BF_TOP | BF_LEFT)
2700 #define BF_TOPRIGHT (BF_TOP | BF_RIGHT)
2701 #define BF_BOTTOMLEFT (BF_BOTTOM | BF_LEFT)
2702 #define BF_BOTTOMRIGHT (BF_BOTTOM | BF_RIGHT)
2703 #define BF_RECT (BF_LEFT | BF_TOP | BF_RIGHT | BF_BOTTOM)
2704 #define BF_DIAGONAL_ENDTOPRIGHT (BF_DIAGONAL | BF_TOP | BF_RIGHT)
2705 #define BF_DIAGONAL_ENDTOPLEFT (BF_DIAGONAL | BF_TOP | BF_LEFT)
2706 #define BF_DIAGONAL_ENDBOTTOMLEFT (BF_DIAGONAL | BF_BOTTOM | BF_LEFT)
2707 #define BF_DIAGONAL_ENDBOTTOMRIGHT (BF_DIAGONAL | BF_BOTTOM | BF_RIGHT)
2709 /* DrawFrameControl() uType's */
2711 #define DFC_CAPTION 1
2713 #define DFC_SCROLL 3
2714 #define DFC_BUTTON 4
2718 #define DFCS_CAPTIONCLOSE 0x0000
2719 #define DFCS_CAPTIONMIN 0x0001
2720 #define DFCS_CAPTIONMAX 0x0002
2721 #define DFCS_CAPTIONRESTORE 0x0003
2722 #define DFCS_CAPTIONHELP 0x0004 /* Windows 95 only */
2724 #define DFCS_MENUARROW 0x0000
2725 #define DFCS_MENUCHECK 0x0001
2726 #define DFCS_MENUBULLET 0x0002
2727 #define DFCS_MENUARROWRIGHT 0x0004
2729 #define DFCS_SCROLLUP 0x0000
2730 #define DFCS_SCROLLDOWN 0x0001
2731 #define DFCS_SCROLLLEFT 0x0002
2732 #define DFCS_SCROLLRIGHT 0x0003
2733 #define DFCS_SCROLLCOMBOBOX 0x0005
2734 #define DFCS_SCROLLSIZEGRIP 0x0008
2735 #define DFCS_SCROLLSIZEGRIPRIGHT 0x0010
2737 #define DFCS_BUTTONCHECK 0x0000
2738 #define DFCS_BUTTONRADIOIMAGE 0x0001
2739 #define DFCS_BUTTONRADIOMASK 0x0002 /* to draw nonsquare button */
2740 #define DFCS_BUTTONRADIO 0x0004
2741 #define DFCS_BUTTON3STATE 0x0008
2742 #define DFCS_BUTTONPUSH 0x0010
2744 /* additional state of the control */
2746 #define DFCS_INACTIVE 0x0100
2747 #define DFCS_PUSHED 0x0200
2748 #define DFCS_CHECKED 0x0400
2749 #define DFCS_ADJUSTRECT 0x2000 /* exclude surrounding edge */
2750 #define DFCS_FLAT 0x4000
2751 #define DFCS_MONO 0x8000
2754 #define DST_COMPLEX 0x0000
2755 #define DST_TEXT 0x0001
2756 #define DST_PREFIXTEXT 0x0002
2757 #define DST_ICON 0x0003
2758 #define DST_BITMAP 0x0004
2761 #define DSS_NORMAL 0x0000
2762 #define DSS_UNION 0x0010 /* Gray string appearance */
2763 #define DSS_DISABLED 0x0020
2764 #define DSS_DEFAULT 0x0040 /* Make it bold */
2765 #define DSS_MONO 0x0080
2766 #define DSS_RIGHT 0x8000
2777 RECT rcItem WINE_PACKED
;
2778 DWORD itemData WINE_PACKED
;
2779 } DRAWITEMSTRUCT
, *PDRAWITEMSTRUCT
, *LPDRAWITEMSTRUCT
;
2790 } MEASUREITEMSTRUCT
, *PMEASUREITEMSTRUCT
, *LPMEASUREITEMSTRUCT
;
2800 } DELETEITEMSTRUCT
, *PDELETEITEMSTRUCT
, *LPDELETEITEMSTRUCT
;
2813 } COMPAREITEMSTRUCT
, *PCOMPAREITEMSTRUCT
, *LPCOMPAREITEMSTRUCT
;
2816 /* WM_KEYUP/DOWN/CHAR HIWORD(lParam) flags */
2817 #define KF_EXTENDED 0x0100
2818 #define KF_DLGMODE 0x0800
2819 #define KF_MENUMODE 0x1000
2820 #define KF_ALTDOWN 0x2000
2821 #define KF_REPEAT 0x4000
2822 #define KF_UP 0x8000
2824 /* Virtual key codes */
2825 #define VK_LBUTTON 0x01
2826 #define VK_RBUTTON 0x02
2827 #define VK_CANCEL 0x03
2828 #define VK_MBUTTON 0x04
2829 /* 0x05-0x07 Undefined */
2830 #define VK_BACK 0x08
2832 /* 0x0A-0x0B Undefined */
2833 #define VK_CLEAR 0x0C
2834 #define VK_RETURN 0x0D
2835 /* 0x0E-0x0F Undefined */
2836 #define VK_SHIFT 0x10
2837 #define VK_CONTROL 0x11
2838 #define VK_MENU 0x12
2839 #define VK_PAUSE 0x13
2840 #define VK_CAPITAL 0x14
2841 /* 0x15-0x19 Reserved for Kanji systems */
2842 /* 0x1A Undefined */
2843 #define VK_ESCAPE 0x1B
2844 /* 0x1C-0x1F Reserved for Kanji systems */
2845 #define VK_SPACE 0x20
2846 #define VK_PRIOR 0x21
2847 #define VK_NEXT 0x22
2849 #define VK_HOME 0x24
2850 #define VK_LEFT 0x25
2852 #define VK_RIGHT 0x27
2853 #define VK_DOWN 0x28
2854 #define VK_SELECT 0x29
2855 #define VK_PRINT 0x2A /* OEM specific in Windows 3.1 SDK */
2856 #define VK_EXECUTE 0x2B
2857 #define VK_SNAPSHOT 0x2C
2858 #define VK_INSERT 0x2D
2859 #define VK_DELETE 0x2E
2860 #define VK_HELP 0x2F
2871 /* 0x3A-0x40 Undefined */
2899 #define VK_LWIN 0x5B
2900 #define VK_RWIN 0x5C
2901 #define VK_APPS 0x5D
2902 /* 0x5E-0x5F Unassigned */
2903 #define VK_NUMPAD0 0x60
2904 #define VK_NUMPAD1 0x61
2905 #define VK_NUMPAD2 0x62
2906 #define VK_NUMPAD3 0x63
2907 #define VK_NUMPAD4 0x64
2908 #define VK_NUMPAD5 0x65
2909 #define VK_NUMPAD6 0x66
2910 #define VK_NUMPAD7 0x67
2911 #define VK_NUMPAD8 0x68
2912 #define VK_NUMPAD9 0x69
2913 #define VK_MULTIPLY 0x6A
2915 #define VK_SEPARATOR 0x6C
2916 #define VK_SUBTRACT 0x6D
2917 #define VK_DECIMAL 0x6E
2918 #define VK_DIVIDE 0x6F
2943 /* 0x88-0x8F Unassigned */
2944 #define VK_NUMLOCK 0x90
2945 #define VK_SCROLL 0x91
2946 /* 0x92-0x9F Unassigned */
2948 * differencing between right and left shift/control/alt key.
2949 * Used only by GetAsyncKeyState() and GetKeyState().
2951 #define VK_LSHIFT 0xA0
2952 #define VK_RSHIFT 0xA1
2953 #define VK_LCONTROL 0xA2
2954 #define VK_RCONTROL 0xA3
2955 #define VK_LMENU 0xA4
2956 #define VK_RMENU 0xA5
2957 /* 0xA6-0xB9 Unassigned */
2958 #define VK_OEM_1 0xBA
2959 #define VK_OEM_PLUS 0xBB
2960 #define VK_OEM_COMMA 0xBC
2961 #define VK_OEM_MINUS 0xBD
2962 #define VK_OEM_PERIOD 0xBE
2963 #define VK_OEM_2 0xBF
2964 #define VK_OEM_3 0xC0
2965 /* 0xC1-0xDA Unassigned */
2966 #define VK_OEM_4 0xDB
2967 #define VK_OEM_5 0xDC
2968 #define VK_OEM_6 0xDD
2969 #define VK_OEM_7 0xDE
2970 #define VK_OEM_8 0xDF
2971 /* 0xE0 OEM specific */
2972 #define VK_OEM_AX 0xE1 /* "AX" key on Japanese AX keyboard */
2973 #define VK_OEM_102 0xE2 /* "<>" or "\|" on RT 102-key keyboard */
2974 #define VK_ICO_HELP 0xE3 /* Help key on ICO */
2975 #define VK_ICO_00 0xE4 /* 00 key on ICO */
2976 #define VK_PROCESSKEY 0xE5
2978 /* 0xE6 OEM specific */
2979 /* 0xE7-0xE8 Unassigned */
2980 /* 0xE9-0xF5 OEM specific */
2982 #define VK_ATTN 0xF6
2983 #define VK_CRSEL 0xF7
2984 #define VK_EXSEL 0xF8
2985 #define VK_EREOF 0xF9
2986 #define VK_PLAY 0xFA
2987 #define VK_ZOOM 0xFB
2988 #define VK_NONAME 0xFC
2990 #define VK_OEM_CLEAR 0xFE
2992 /* Key status flags for mouse events */
2993 #define MK_LBUTTON 0x0001
2994 #define MK_RBUTTON 0x0002
2995 #define MK_SHIFT 0x0004
2996 #define MK_CONTROL 0x0008
2997 #define MK_MBUTTON 0x0010
2999 /* Queue status flags */
3000 #define QS_KEY 0x0001
3001 #define QS_MOUSEMOVE 0x0002
3002 #define QS_MOUSEBUTTON 0x0004
3003 #define QS_MOUSE (QS_MOUSEMOVE | QS_MOUSEBUTTON)
3004 #define QS_POSTMESSAGE 0x0008
3005 #define QS_TIMER 0x0010
3006 #define QS_PAINT 0x0020
3007 #define QS_SENDMESSAGE 0x0040
3008 #define QS_HOTKEY 0x0080
3009 #define QS_INPUT (QS_MOUSE | QS_KEY)
3010 #define QS_ALLEVENTS (QS_INPUT | QS_POSTMESSAGE | QS_TIMER | QS_PAINT | QS_HOTKEY)
3011 #define QS_ALLINPUT (QS_ALLEVENTS | QS_SENDMESSAGE)
3013 #define DDL_READWRITE 0x0000
3014 #define DDL_READONLY 0x0001
3015 #define DDL_HIDDEN 0x0002
3016 #define DDL_SYSTEM 0x0004
3017 #define DDL_DIRECTORY 0x0010
3018 #define DDL_ARCHIVE 0x0020
3020 #define DDL_POSTMSGS 0x2000
3021 #define DDL_DRIVES 0x4000
3022 #define DDL_EXCLUSIVE 0x8000
3024 /* Shell hook values */
3025 #define HSHELL_WINDOWCREATED 1
3026 #define HSHELL_WINDOWDESTROYED 2
3027 #define HSHELL_ACTIVATESHELLWINDOW 3
3029 /* Predefined Clipboard Formats */
3032 #define CF_METAFILEPICT 3
3036 #define CF_OEMTEXT 7
3038 #define CF_PALETTE 9
3039 #define CF_PENDATA 10
3042 #define CF_UNICODETEXT 13
3043 #define CF_ENHMETAFILE 14
3045 #define CF_LOCALE 16
3049 #define CF_OWNERDISPLAY 0x0080
3050 #define CF_DSPTEXT 0x0081
3051 #define CF_DSPBITMAP 0x0082
3052 #define CF_DSPMETAFILEPICT 0x0083
3053 #define CF_DSPENHMETAFILE 0x008E
3055 /* "Private" formats don't get GlobalFree()'d */
3056 #define CF_PRIVATEFIRST 0x0200
3057 #define CF_PRIVATELAST 0x02FF
3059 /* "GDIOBJ" formats do get DeleteObject()'d */
3060 #define CF_GDIOBJFIRST 0x0300
3061 #define CF_GDIOBJLAST 0x03FF
3064 /* types of LoadImage */
3065 #define IMAGE_BITMAP 0
3066 #define IMAGE_ICON 1
3067 #define IMAGE_CURSOR 2
3068 #define IMAGE_ENHMETAFILE 3
3070 /* loadflags to LoadImage */
3071 #define LR_DEFAULTCOLOR 0x0000
3072 #define LR_MONOCHROME 0x0001
3073 #define LR_COLOR 0x0002
3074 #define LR_COPYRETURNORG 0x0004
3075 #define LR_COPYDELETEORG 0x0008
3076 #define LR_LOADFROMFILE 0x0010
3077 #define LR_LOADTRANSPARENT 0x0020
3078 #define LR_DEFAULTSIZE 0x0040
3079 #define LR_VGA_COLOR 0x0080
3080 #define LR_LOADMAP3DCOLORS 0x1000
3081 #define LR_CREATEDIBSECTION 0x2000
3082 #define LR_COPYFROMRESOURCE 0x4000
3083 #define LR_SHARED 0x8000
3085 /* Flags for DrawIconEx. */
3088 #define DI_NORMAL (DI_MASK | DI_IMAGE)
3090 #define DI_DEFAULTSIZE 8
3092 /* WM_NOTIFYFORMAT commands and return values */
3094 #define NFR_UNICODE 2
3096 #define NF_REQUERY 4
3098 /* RegisterDeviceNotification stuff */
3099 typedef PVOID HDEVNOTIFY
;
3100 typedef HDEVNOTIFY
*PHDEVNOTIFY
;
3102 #define DEVICE_NOTIFY_WINDOW_HANDLE 0x00000000
3105 #include "poppack.h"
3106 #define EnumTaskWindows(handle,proc,lparam) \
3107 EnumThreadWindows(handle,proc,lparam)
3108 #define OemToAnsiA OemToCharA
3109 #define OemToAnsiW OemToCharW
3110 #define OemToAnsi WINELIB_NAME_AW(OemToAnsi)
3111 #define OemToAnsiBuffA OemToCharBuffA
3112 #define OemToAnsiBuffW OemToCharBuffW
3113 #define OemToAnsiBuff WINELIB_NAME_AW(OemToAnsiBuff)
3114 #define AnsiToOemA CharToOemA
3115 #define AnsiToOemW CharToOemW
3116 #define AnsiToOem WINELIB_NAME_AW(AnsiToOem)
3117 #define AnsiToOemBuffA CharToOemBuffA
3118 #define AnsiToOemBuffW CharToOemBuffW
3119 #define AnsiToOemBuff WINELIB_NAME_AW(AnsiToOemBuff)
3121 HKL WINAPI
ActivateKeyboardLayout(HKL
,UINT
);
3122 LONG WINAPI
BroadcastSystemMessage(DWORD
,LPDWORD
,UINT
,WPARAM
,LPARAM
);
3123 WORD WINAPI
CascadeWindows(HWND
, UINT
, const LPRECT
, UINT
, const HWND
*);
3124 INT WINAPI
CopyAcceleratorTableA(HACCEL
,LPACCEL
,INT
);
3125 INT WINAPI
CopyAcceleratorTableW(HACCEL
,LPACCEL
,INT
);
3126 #define CopyAcceleratorTable WINELIB_NAME_AW(CopyAcceleratorTable)
3127 HACCEL WINAPI
CreateAcceleratorTableA(LPACCEL
,INT
);
3128 HACCEL WINAPI
CreateAcceleratorTableW(LPACCEL
,INT
);
3129 #define CreateAcceleratorTable WINELIB_NAME_AW(CreateAcceleratorTable)
3130 HICON WINAPI
CreateIconIndirect(PICONINFO
);
3131 BOOL WINAPI
DestroyAcceleratorTable(HACCEL
);
3132 BOOL WINAPI
EnumDesktopsA(HWINSTA
,DESKTOPENUMPROCA
,LPARAM
);
3133 BOOL WINAPI
EnumDesktopsW(HWINSTA
,DESKTOPENUMPROCW
,LPARAM
);
3134 #define EnumDesktops WINELIB_NAME_AW(EnumDesktops)
3135 BOOL WINAPI
EnumDisplayMonitors(HDC
,LPRECT
,MONITORENUMPROC
,LPARAM
);
3136 BOOL WINAPI
EnumDisplayDevicesA(LPVOID
,DWORD
,LPDISPLAY_DEVICEA
,DWORD
);
3137 BOOL WINAPI
EnumDisplayDevicesW(LPVOID
,DWORD
,LPDISPLAY_DEVICEW
,DWORD
);
3138 #define EnumDisplayDevices WINELIB_NAME_AW(EnumDisplayDevices)
3139 BOOL WINAPI
EnumDisplaySettingsA(LPCSTR
,DWORD
,LPDEVMODEA
);
3140 BOOL WINAPI
EnumDisplaySettingsW(LPCWSTR
,DWORD
,LPDEVMODEW
);
3141 #define EnumDisplaySettings WINELIB_NAME_AW(EnumDisplaySettings)
3142 INT WINAPI
EnumPropsExA(HWND
,PROPENUMPROCEXA
,LPARAM
);
3143 INT WINAPI
EnumPropsExW(HWND
,PROPENUMPROCEXW
,LPARAM
);
3144 #define EnumPropsEx WINELIB_NAME_AW(EnumPropsEx)
3145 BOOL WINAPI
EnumThreadWindows(DWORD
,WNDENUMPROC
,LPARAM
);
3146 BOOL WINAPI
ExitWindowsEx(UINT
,DWORD
);
3147 BOOL WINAPI
GetIconInfo(HICON
,PICONINFO
);
3148 HKL WINAPI
GetKeyboardLayout(DWORD
);
3149 INT WINAPI
GetKeyboardLayoutList(INT
,HKL
*);
3150 DWORD WINAPI
GetMenuContextHelpId(HMENU
);
3151 UINT WINAPI
GetMenuDefaultItem(HMENU
,UINT
,UINT
);
3152 BOOL WINAPI
GetMenuInfo(HMENU
,LPMENUINFO
);
3153 BOOL WINAPI
GetMenuItemInfoA(HMENU
,UINT
,BOOL
,MENUITEMINFOA
*);
3154 BOOL WINAPI
GetMenuItemInfoW(HMENU
,UINT
,BOOL
,MENUITEMINFOW
*);
3155 #define GetMenuItemInfo WINELIB_NAME_AW(GetMenuItemInfo)
3156 BOOL WINAPI
GetMonitorInfoA(HMONITOR
,LPMONITORINFO
);
3157 BOOL WINAPI
GetMonitorInfoW(HMONITOR
,LPMONITORINFO
);
3158 #define GetMonitorInfo WINELIB_NAME_AW(GetMonitorInfo)
3159 DWORD WINAPI
GetWindowContextHelpId(HWND
);
3160 DWORD WINAPI
GetWindowThreadProcessId(HWND
,LPDWORD
);
3161 BOOL WINAPI
IsWindowUnicode(HWND
);
3162 HKL WINAPI
LoadKeyboardLayoutA(LPCSTR
,UINT
);
3163 HKL WINAPI
LoadKeyboardLayoutW(LPCWSTR
,UINT
);
3164 #define LoadKeyboardLayout WINELIB_NAME_AW(LoadKeyboardLayout)
3165 INT WINAPI
MessageBoxExA(HWND
,LPCSTR
,LPCSTR
,UINT
,WORD
);
3166 INT WINAPI
MessageBoxExW(HWND
,LPCWSTR
,LPCWSTR
,UINT
,WORD
);
3167 #define MessageBoxEx WINELIB_NAME_AW(MessageBoxEx)
3168 HMONITOR WINAPI
MonitorFromPoint(POINT
,DWORD
);
3169 HMONITOR WINAPI
MonitorFromRect(LPRECT
,DWORD
);
3170 HMONITOR WINAPI
MonitorFromWindow(HWND
,DWORD
);
3171 DWORD WINAPI
MsgWaitForMultipleObjects(DWORD
,HANDLE
*,BOOL
,DWORD
,DWORD
);
3172 BOOL WINAPI
PaintDesktop(HDC
);
3173 BOOL WINAPI
PostThreadMessageA(DWORD
, UINT
, WPARAM
, LPARAM
);
3174 BOOL WINAPI
PostThreadMessageW(DWORD
, UINT
, WPARAM
, LPARAM
);
3175 #define PostThreadMessage WINELIB_NAME_AW(PostThreadMessage)
3176 BOOL WINAPI
RegisterHotKey(HWND
,INT
,UINT
,UINT
);
3177 HDEVNOTIFY WINAPI
RegisterDeviceNotificationA(HANDLE
,LPVOID
,DWORD
);
3178 HDEVNOTIFY WINAPI
RegisterDeviceNotificationW(HANDLE
,LPVOID
,DWORD
);
3179 #define RegisterDeviceNotification WINELIB_NAME_AW(RegisterDeviceNotification)
3180 BOOL WINAPI
SendMessageCallbackA(HWND
,UINT
,WPARAM
,LPARAM
,FARPROC
,DWORD
);
3181 BOOL WINAPI
SendMessageCallbackW(HWND
,UINT
,WPARAM
,LPARAM
,FARPROC
,DWORD
);
3182 #define SendMessageCallback WINELIB_NAME_AW(SendMessageCallback)
3183 BOOL WINAPI
SendNotifyMessageA(HWND
,UINT
,WPARAM
,LPARAM
);
3184 BOOL WINAPI
SendNotifyMessageW(HWND
,UINT
,WPARAM
,LPARAM
);
3185 #define SendNotifyMessage WINELIB_NAME_AW(SendNotifyMessage)
3186 VOID WINAPI
SetDebugErrorLevel(DWORD
);
3187 VOID WINAPI
SetLastErrorEx(DWORD
,DWORD
);
3188 BOOL WINAPI
SetMenuDefaultItem(HMENU
,UINT
,UINT
);
3189 BOOL WINAPI
SetMenuInfo(HMENU
,LPCMENUINFO
);
3190 BOOL WINAPI
SetMenuItemInfoA(HMENU
,UINT
,BOOL
,const MENUITEMINFOA
*);
3191 BOOL WINAPI
SetMenuItemInfoW(HMENU
,UINT
,BOOL
,const MENUITEMINFOW
*);
3192 #define SetMenuItemInfo WINELIB_NAME_AW(SetMenuItemInfo)
3193 BOOL WINAPI
SetWindowContextHelpId(HWND
,DWORD
);
3194 WORD WINAPI
TileWindows (HWND
, UINT
, const LPRECT
,
3195 UINT
, const HWND
*);
3196 INT WINAPI
ToUnicode(UINT
,UINT
,PBYTE
,LPWSTR
,int,UINT
);
3197 BOOL WINAPI
TrackPopupMenuEx(HMENU
,UINT
,INT
,INT
,HWND
,
3199 BOOL WINAPI
UnregisterDeviceNotification(HDEVNOTIFY
);
3200 BOOL WINAPI
UnregisterHotKey(HWND
,INT
);
3201 DWORD WINAPI
WaitForInputIdle(HANDLE
,DWORD
);
3202 VOID WINAPI
keybd_event(BYTE
,BYTE
,DWORD
,DWORD
);
3203 VOID WINAPI
mouse_event(DWORD
,DWORD
,DWORD
,DWORD
,DWORD
);
3205 /* Declarations for functions that are the same in Win16 and Win32 */
3206 VOID WINAPI
EndMenu(void);
3207 DWORD WINAPI
GetDialogBaseUnits(void);
3208 BOOL WINAPI
GetKeyboardState(LPBYTE
);
3209 DWORD WINAPI
GetMenuCheckMarkDimensions(void);
3210 LONG WINAPI
GetMessageExtraInfo(void);
3211 DWORD WINAPI
GetMessagePos(void);
3212 LONG WINAPI
GetMessageTime(void);
3213 DWORD WINAPI
OemKeyScan(WORD
);
3214 BOOL WINAPI
ReleaseCapture(void);
3215 BOOL WINAPI
SetKeyboardState(LPBYTE
);
3216 VOID WINAPI
WaitMessage(void);
3218 /* Declarations for functions that change between Win16 and Win32 */
3220 BOOL WINAPI
AdjustWindowRect(LPRECT
,DWORD
,BOOL
);
3221 BOOL WINAPI
AdjustWindowRectEx(LPRECT
,DWORD
,BOOL
,DWORD
);
3222 #define AnsiLowerA CharLowerA
3223 #define AnsiLowerW CharLowerW
3224 #define AnsiLower WINELIB_NAME_AW(AnsiLower)
3225 #define AnsiLowerBuffA CharLowerBuffA
3226 #define AnsiLowerBuffW CharLowerBuffW
3227 #define AnsiLowerBuff WINELIB_NAME_AW(AnsiLowerBuff)
3228 #define AnsiNextA CharNextA
3229 #define AnsiNextW CharNextW
3230 #define AnsiNext WINELIB_NAME_AW(AnsiNext)
3231 #define AnsiPrevA CharPrevA
3232 #define AnsiPrevW CharPrevW
3233 #define AnsiPrev WINELIB_NAME_AW(AnsiPrev)
3234 #define AnsiUpperA CharUpperA
3235 #define AnsiUpperW CharUpperW
3236 #define AnsiUpper WINELIB_NAME_AW(AnsiUpper)
3237 #define AnsiUpperBuffA CharUpperBuffA
3238 #define AnsiUpperBuffW CharUpperBuffW
3239 #define AnsiUpperBuff WINELIB_NAME_AW(AnsiUpperBuff)
3240 BOOL WINAPI
AnyPopup(void);
3241 BOOL WINAPI
AppendMenuA(HMENU
,UINT
,UINT
,LPCSTR
);
3242 BOOL WINAPI
AppendMenuW(HMENU
,UINT
,UINT
,LPCWSTR
);
3243 #define AppendMenu WINELIB_NAME_AW(AppendMenu)
3244 UINT WINAPI
ArrangeIconicWindows(HWND
);
3245 HDWP WINAPI
BeginDeferWindowPos(INT
);
3246 HDC WINAPI
BeginPaint(HWND
,LPPAINTSTRUCT
);
3247 BOOL WINAPI
BringWindowToTop(HWND
);
3248 void WINAPI
CalcChildScroll(HWND
, INT
);
3249 BOOL WINAPI
CallMsgFilterA(LPMSG
,INT
);
3250 BOOL WINAPI
CallMsgFilterW(LPMSG
,INT
);
3251 #define CallMsgFilter WINELIB_NAME_AW(CallMsgFilter)
3252 LRESULT WINAPI
CallNextHookEx(HHOOK
,INT
,WPARAM
,LPARAM
);
3253 LRESULT WINAPI
CallWindowProcA(WNDPROC
,HWND
,UINT
,WPARAM
,LPARAM
);
3254 LRESULT WINAPI
CallWindowProcW(WNDPROC
,HWND
,UINT
,WPARAM
,LPARAM
);
3255 #define CallWindowProc WINELIB_NAME_AW(CallWindowProc)
3256 BOOL WINAPI
ChangeClipboardChain(HWND
,HWND
);
3257 LONG WINAPI
ChangeDisplaySettingsA(LPDEVMODEA
,DWORD
);
3258 LONG WINAPI
ChangeDisplaySettingsW(LPDEVMODEW
,DWORD
);
3259 #define ChangeDisplaySettings WINELIB_NAME_AW(ChangeDisplaySettings)
3260 LONG WINAPI
ChangeDisplaySettingsExA(LPCSTR
,LPDEVMODEA
,HWND
,DWORD
,LPARAM
);
3261 LONG WINAPI
ChangeDisplaySettingsExW(LPCWSTR
,LPDEVMODEW
,HWND
,DWORD
,LPARAM
);
3262 #define ChangeDisplaySettingsEx WINELIB_NAME_AW(ChangeDisplaySettingsEx)
3263 BOOL WINAPI
ChangeMenuA(HMENU
,UINT
,LPCSTR
,UINT
,UINT
);
3264 BOOL WINAPI
ChangeMenuW(HMENU
,UINT
,LPCWSTR
,UINT
,UINT
);
3265 #define ChangeMenu WINELIB_NAME_AW(ChangeMenu)
3266 LPSTR WINAPI
CharLowerA(LPSTR
);
3267 LPWSTR WINAPI
CharLowerW(LPWSTR
);
3268 #define CharLower WINELIB_NAME_AW(CharLower)
3269 DWORD WINAPI
CharLowerBuffA(LPSTR
,DWORD
);
3270 DWORD WINAPI
CharLowerBuffW(LPWSTR
,DWORD
);
3271 #define CharLowerBuff WINELIB_NAME_AW(CharLowerBuff)
3272 LPSTR WINAPI
CharNextA(LPCSTR
);
3273 LPWSTR WINAPI
CharNextW(LPCWSTR
);
3274 #define CharNext WINELIB_NAME_AW(CharNext)
3275 LPSTR WINAPI
CharNextExA(WORD
,LPCSTR
,DWORD
);
3276 /* no CharNextExW (doesn't make sense) */
3277 LPSTR WINAPI
CharPrevA(LPCSTR
,LPCSTR
);
3278 LPWSTR WINAPI
CharPrevW(LPCWSTR
,LPCWSTR
);
3279 #define CharPrev WINELIB_NAME_AW(CharPrev)
3280 LPSTR WINAPI
CharPrevExA(WORD
,LPCSTR
,LPCSTR
,DWORD
);
3281 /* no CharPrevExW (doesn't make sense) */
3282 LPSTR WINAPI
CharUpperA(LPSTR
);
3283 LPWSTR WINAPI
CharUpperW(LPWSTR
);
3284 #define CharUpper WINELIB_NAME_AW(CharUpper)
3285 DWORD WINAPI
CharUpperBuffA(LPSTR
,DWORD
);
3286 DWORD WINAPI
CharUpperBuffW(LPWSTR
,DWORD
);
3287 #define CharUpperBuff WINELIB_NAME_AW(CharUpperBuff)
3288 BOOL WINAPI
CharToOemA(LPCSTR
,LPSTR
);
3289 BOOL WINAPI
CharToOemW(LPCWSTR
,LPSTR
);
3290 #define CharToOem WINELIB_NAME_AW(CharToOem)
3291 BOOL WINAPI
CharToOemBuffA(LPCSTR
,LPSTR
,DWORD
);
3292 BOOL WINAPI
CharToOemBuffW(LPCWSTR
,LPSTR
,DWORD
);
3293 #define CharToOemBuff WINELIB_NAME_AW(CharToOemBuff)
3294 BOOL WINAPI
CheckDlgButton(HWND
,INT
,UINT
);
3295 DWORD WINAPI
CheckMenuItem(HMENU
,UINT
,UINT
);
3296 BOOL WINAPI
CheckMenuRadioItem(HMENU
,UINT
,UINT
,UINT
,UINT
);
3297 BOOL WINAPI
CheckRadioButton(HWND
,UINT
,UINT
,UINT
);
3298 HWND WINAPI
ChildWindowFromPoint(HWND
,POINT
);
3299 HWND WINAPI
ChildWindowFromPointEx(HWND
,POINT
,UINT
);
3300 BOOL WINAPI
ClearCommBreak(HANDLE
);
3301 BOOL WINAPI
ClientToScreen(HWND
,LPPOINT
);
3302 BOOL WINAPI
ClipCursor(const RECT
*);
3303 BOOL WINAPI
CloseClipboard(void);
3304 BOOL WINAPI
CloseDesktop(HDESK
);
3305 BOOL WINAPI
CloseWindow(HWND
);
3306 BOOL WINAPI
CloseWindowStation(HWINSTA
);
3307 #define CopyCursor(cur) ((HCURSOR)CopyIcon((HICON)(cur)))
3308 HICON WINAPI
CopyIcon(HICON
);
3309 HICON WINAPI
CopyImage(HANDLE
,UINT
,INT
,INT
,UINT
);
3310 BOOL WINAPI
CopyRect(RECT
*,const RECT
*);
3311 INT WINAPI
CountClipboardFormats(void);
3312 BOOL WINAPI
CreateCaret(HWND
,HBITMAP
,INT
,INT
);
3313 HCURSOR WINAPI
CreateCursor(HINSTANCE
,INT
,INT
,INT
,INT
,LPCVOID
,LPCVOID
);
3314 #define CreateDialogA(inst,ptr,hwnd,dlg) \
3315 CreateDialogParamA(inst,ptr,hwnd,dlg,0)
3316 #define CreateDialogW(inst,ptr,hwnd,dlg) \
3317 CreateDialogParamW(inst,ptr,hwnd,dlg,0)
3318 #define CreateDialog WINELIB_NAME_AW(CreateDialog)
3319 #define CreateDialogIndirectA(inst,ptr,hwnd,dlg) \
3320 CreateDialogIndirectParamA(inst,ptr,hwnd,dlg,0)
3321 #define CreateDialogIndirectW(inst,ptr,hwnd,dlg) \
3322 CreateDialogIndirectParamW(inst,ptr,hwnd,dlg,0)
3323 #define CreateDialogIndirect WINELIB_NAME_AW(CreateDialogIndirect)
3324 HWND WINAPI
CreateDialogIndirectParamA(HINSTANCE
,LPCVOID
,HWND
,
3326 HWND WINAPI
CreateDialogIndirectParamW(HINSTANCE
,LPCVOID
,HWND
,
3328 #define CreateDialogIndirectParam WINELIB_NAME_AW(CreateDialogIndirectParam)
3329 HWND WINAPI
CreateDialogParamA(HINSTANCE
,LPCSTR
,HWND
,DLGPROC
,LPARAM
);
3330 HWND WINAPI
CreateDialogParamW(HINSTANCE
,LPCWSTR
,HWND
,DLGPROC
,LPARAM
);
3331 #define CreateDialogParam WINELIB_NAME_AW(CreateDialogParam)
3332 HICON WINAPI
CreateIcon(HINSTANCE
,INT
,INT
,BYTE
,BYTE
,LPCVOID
,LPCVOID
);
3333 HICON WINAPI
CreateIconFromResource(LPBYTE
,UINT
,BOOL
,DWORD
);
3334 HICON WINAPI
CreateIconFromResourceEx(LPBYTE
,UINT
,BOOL
,DWORD
,INT
,INT
,UINT
);
3335 HMENU WINAPI
CreateMenu(void);
3336 HMENU WINAPI
CreatePopupMenu(void);
3337 #define CreateWindowA(className,titleName,style,x,y,width,height,\
3338 parent,menu,instance,param) \
3339 CreateWindowExA(0,className,titleName,style,x,y,width,height,\
3340 parent,menu,instance,param)
3341 #define CreateWindowW(className,titleName,style,x,y,width,height,\
3342 parent,menu,instance,param) \
3343 CreateWindowExW(0,className,titleName,style,x,y,width,height,\
3344 parent,menu,instance,param)
3345 #define CreateWindow WINELIB_NAME_AW(CreateWindow)
3346 HWND WINAPI
CreateWindowExA(DWORD
,LPCSTR
,LPCSTR
,DWORD
,INT
,INT
,
3347 INT
,INT
,HWND
,HMENU
,HINSTANCE
,LPVOID
);
3348 HWND WINAPI
CreateWindowExW(DWORD
,LPCWSTR
,LPCWSTR
,DWORD
,INT
,INT
,
3349 INT
,INT
,HWND
,HMENU
,HINSTANCE
,LPVOID
);
3350 #define CreateWindowEx WINELIB_NAME_AW(CreateWindowEx)
3351 HWINSTA WINAPI
CreateWindowStationA(LPSTR
,DWORD
,DWORD
,LPSECURITY_ATTRIBUTES
);
3352 HWINSTA WINAPI
CreateWindowStationW(LPWSTR
,DWORD
,DWORD
,LPSECURITY_ATTRIBUTES
);
3353 #define CreateWindowStation WINELIB_NAME_AW(CreateWindowStation)
3354 HWND WINAPI
CreateMDIWindowA(LPCSTR
,LPCSTR
,DWORD
,INT
,INT
,
3355 INT
,INT
,HWND
,HINSTANCE
,LPARAM
);
3356 HWND WINAPI
CreateMDIWindowW(LPCWSTR
,LPCWSTR
,DWORD
,INT
,INT
,
3357 INT
,INT
,HWND
,HINSTANCE
,LPARAM
);
3358 #define CreateMDIWindow WINELIB_NAME_AW(CreateMDIWindow)
3359 LRESULT WINAPI
DefDlgProcA(HWND
,UINT
,WPARAM
,LPARAM
);
3360 LRESULT WINAPI
DefDlgProcW(HWND
,UINT
,WPARAM
,LPARAM
);
3361 #define DefDlgProc WINELIB_NAME_AW(DefDlgProc)
3362 HDWP WINAPI
DeferWindowPos(HDWP
,HWND
,HWND
,INT
,INT
,INT
,INT
,UINT
);
3363 LRESULT WINAPI
DefFrameProcA(HWND
,HWND
,UINT
,WPARAM
,LPARAM
);
3364 LRESULT WINAPI
DefFrameProcW(HWND
,HWND
,UINT
,WPARAM
,LPARAM
);
3365 #define DefFrameProc WINELIB_NAME_AW(DefFrameProc)
3366 #define DefHookProc(code,wparam,lparam,phhook) \
3367 CallNextHookEx(*(phhook),code,wparam,lparam)
3368 LRESULT WINAPI
DefMDIChildProcA(HWND
,UINT
,WPARAM
,LPARAM
);
3369 LRESULT WINAPI
DefMDIChildProcW(HWND
,UINT
,WPARAM
,LPARAM
);
3370 #define DefMDIChildProc WINELIB_NAME_AW(DefMDIChildProc)
3371 LRESULT WINAPI
DefWindowProcA(HWND
,UINT
,WPARAM
,LPARAM
);
3372 LRESULT WINAPI
DefWindowProcW(HWND
,UINT
,WPARAM
,LPARAM
);
3373 #define DefWindowProc WINELIB_NAME_AW(DefWindowProc)
3374 BOOL WINAPI
DeleteMenu(HMENU
,UINT
,UINT
);
3375 BOOL WINAPI
DestroyCaret(void);
3376 BOOL WINAPI
DestroyCursor(HCURSOR
);
3377 BOOL WINAPI
DestroyIcon(HICON
);
3378 BOOL WINAPI
DestroyMenu(HMENU
);
3379 BOOL WINAPI
DestroyWindow(HWND
);
3380 #define DialogBoxA(inst,template,owner,func) \
3381 DialogBoxParamA(inst,template,owner,func,0)
3382 #define DialogBoxW(inst,template,owner,func) \
3383 DialogBoxParamW(inst,template,owner,func,0)
3384 #define DialogBox WINELIB_NAME_AW(DialogBox)
3385 #define DialogBoxIndirectA(inst,template,owner,func) \
3386 DialogBoxIndirectParamA(inst,template,owner,func,0)
3387 #define DialogBoxIndirectW(inst,template,owner,func) \
3388 DialogBoxIndirectParamW(inst,template,owner,func,0)
3389 #define DialogBoxIndirect WINELIB_NAME_AW(DialogBoxIndirect)
3390 INT WINAPI
DialogBoxIndirectParamA(HINSTANCE
,LPCVOID
,HWND
,DLGPROC
,LPARAM
);
3391 INT WINAPI
DialogBoxIndirectParamW(HINSTANCE
,LPCVOID
,HWND
,DLGPROC
,LPARAM
);
3392 #define DialogBoxIndirectParam WINELIB_NAME_AW(DialogBoxIndirectParam)
3393 INT WINAPI
DialogBoxParamA(HINSTANCE
,LPCSTR
,HWND
,DLGPROC
,LPARAM
);
3394 INT WINAPI
DialogBoxParamW(HINSTANCE
,LPCWSTR
,HWND
,DLGPROC
,LPARAM
);
3395 #define DialogBoxParam WINELIB_NAME_AW(DialogBoxParam)
3396 LONG WINAPI
DispatchMessageA(const MSG
*);
3397 LONG WINAPI
DispatchMessageW(const MSG
*);
3398 #define DispatchMessage WINELIB_NAME_AW(DispatchMessage)
3399 INT WINAPI
DlgDirListA(HWND
,LPSTR
,INT
,INT
,UINT
);
3400 INT WINAPI
DlgDirListW(HWND
,LPWSTR
,INT
,INT
,UINT
);
3401 #define DlgDirList WINELIB_NAME_AW(DlgDirList)
3402 INT WINAPI
DlgDirListComboBoxA(HWND
,LPSTR
,INT
,INT
,UINT
);
3403 INT WINAPI
DlgDirListComboBoxW(HWND
,LPWSTR
,INT
,INT
,UINT
);
3404 #define DlgDirListComboBox WINELIB_NAME_AW(DlgDirListComboBox)
3405 BOOL WINAPI
DlgDirSelectComboBoxExA(HWND
,LPSTR
,INT
,INT
);
3406 BOOL WINAPI
DlgDirSelectComboBoxExW(HWND
,LPWSTR
,INT
,INT
);
3407 #define DlgDirSelectComboBoxEx WINELIB_NAME_AW(DlgDirSelectComboBoxEx)
3408 BOOL WINAPI
DlgDirSelectExA(HWND
,LPSTR
,INT
,INT
);
3409 BOOL WINAPI
DlgDirSelectExW(HWND
,LPWSTR
,INT
,INT
);
3410 #define DlgDirSelectEx WINELIB_NAME_AW(DlgDirSelectEx)
3411 BOOL WINAPI
DragDetect(HWND
,POINT
);
3412 DWORD WINAPI
DragObject(HWND
,HWND
,UINT
,DWORD
,HCURSOR
);
3413 BOOL WINAPI
DrawAnimatedRects(HWND
,int,const RECT
*,const RECT
*);
3414 BOOL WINAPI
DrawCaption(HWND
,HDC
,const RECT
*,UINT
);
3415 BOOL WINAPI
DrawCaptionTempA(HWND
,HDC
,const RECT
*,HFONT
,HICON
,LPCSTR
,UINT
);
3416 BOOL WINAPI
DrawCaptionTempW(HWND
,HDC
,const RECT
*,HFONT
,HICON
,LPCWSTR
,UINT
);
3417 #define DrawCaptionTemp WINELIB_NAME_AW(DrawCaptionTemp)
3418 BOOL WINAPI
DrawEdge(HDC
,LPRECT
,UINT
,UINT
);
3419 BOOL WINAPI
DrawFocusRect(HDC
,const RECT
*);
3420 BOOL WINAPI
DrawFrameControl(HDC
,LPRECT
,UINT
,UINT
);
3421 BOOL WINAPI
DrawIcon(HDC
,INT
,INT
,HICON
);
3422 BOOL WINAPI
DrawIconEx(HDC
,INT
,INT
,HICON
,INT
,INT
,
3424 BOOL WINAPI
DrawMenuBar(HWND
);
3425 BOOL WINAPI
DrawStateA(HDC
,HBRUSH
,DRAWSTATEPROC
,LPARAM
,WPARAM
,INT
,INT
,INT
,INT
,UINT
);
3426 BOOL WINAPI
DrawStateW(HDC
,HBRUSH
,DRAWSTATEPROC
,LPARAM
,WPARAM
,INT
,INT
,INT
,INT
,UINT
);
3427 #define DrawState WINELIB_NAME_AW(DrawState)
3428 INT WINAPI
DrawTextA(HDC
,LPCSTR
,INT
,LPRECT
,UINT
);
3429 INT WINAPI
DrawTextW(HDC
,LPCWSTR
,INT
,LPRECT
,UINT
);
3430 #define DrawText WINELIB_NAME_AW(DrawText)
3431 BOOL WINAPI
EmptyClipboard(void);
3432 UINT WINAPI
EnableMenuItem(HMENU
,UINT
,UINT
);
3433 BOOL WINAPI
EnableScrollBar(HWND
,INT
,UINT
);
3434 BOOL WINAPI
EnableWindow(HWND
,BOOL
);
3435 BOOL WINAPI
EndDeferWindowPos(HDWP
);
3436 BOOL WINAPI
EndDialog(HWND
,INT
);
3437 BOOL WINAPI
EndPaint(HWND
,const PAINTSTRUCT
*);
3438 BOOL WINAPI
EnumChildWindows(HWND
,WNDENUMPROC
,LPARAM
);
3439 UINT WINAPI
EnumClipboardFormats(UINT
);
3440 INT WINAPI
EnumPropsA(HWND
,PROPENUMPROCA
);
3441 INT WINAPI
EnumPropsW(HWND
,PROPENUMPROCW
);
3442 #define EnumProps WINELIB_NAME_AW(EnumProps)
3443 BOOL WINAPI
EnumWindows(WNDENUMPROC
,LPARAM
);
3444 BOOL WINAPI
EnumWindowStationsA(WINSTAENUMPROCA
,LPARAM
);
3445 BOOL WINAPI
EnumWindowStationsW(WINSTAENUMPROCW
,LPARAM
);
3446 #define EnumWindowStations WINELIB_NAME_AW(EnumWindowStations)
3447 BOOL WINAPI
EqualRect(const RECT
*,const RECT
*);
3448 BOOL WINAPI
EscapeCommFunction(HANDLE
,UINT
);
3449 INT WINAPI
ExcludeUpdateRgn(HDC
,HWND
);
3450 #define ExitWindows(a,b) ExitWindowsEx(EWX_LOGOFF,0xffffffff)
3451 INT WINAPI
FillRect(HDC
,const RECT
*,HBRUSH
);
3452 HWND WINAPI
FindWindowA(LPCSTR
,LPCSTR
);
3453 HWND WINAPI
FindWindowW(LPCWSTR
,LPCWSTR
);
3454 #define FindWindow WINELIB_NAME_AW(FindWindow)
3455 HWND WINAPI
FindWindowExA(HWND
,HWND
,LPCSTR
,LPCSTR
);
3456 HWND WINAPI
FindWindowExW(HWND
,HWND
,LPCWSTR
,LPCWSTR
);
3457 #define FindWindowEx WINELIB_NAME_AW(FindWindowEx)
3458 BOOL WINAPI
FlashWindow(HWND
,BOOL
);
3459 INT WINAPI
FrameRect(HDC
,const RECT
*,HBRUSH
);
3460 HWND WINAPI
GetActiveWindow(void);
3461 DWORD WINAPI
GetAppCompatFlags(HTASK
);
3462 WORD WINAPI
GetAsyncKeyState(INT
);
3463 HWND WINAPI
GetCapture(void);
3464 UINT WINAPI
GetCaretBlinkTime(void);
3465 BOOL WINAPI
GetCaretPos(LPPOINT
);
3466 BOOL WINAPI
GetClassInfoA(HINSTANCE
,LPCSTR
,WNDCLASSA
*);
3467 BOOL WINAPI
GetClassInfoW(HINSTANCE
,LPCWSTR
,WNDCLASSW
*);
3468 #define GetClassInfo WINELIB_NAME_AW(GetClassInfo)
3469 BOOL WINAPI
GetClassInfoExA(HINSTANCE
,LPCSTR
,WNDCLASSEXA
*);
3470 BOOL WINAPI
GetClassInfoExW(HINSTANCE
,LPCWSTR
,WNDCLASSEXW
*);
3471 #define GetClassInfoEx WINELIB_NAME_AW(GetClassInfoEx)
3472 LONG WINAPI
GetClassLongA(HWND
,INT
);
3473 LONG WINAPI
GetClassLongW(HWND
,INT
);
3474 #define GetClassLong WINELIB_NAME_AW(GetClassLong)
3475 INT WINAPI
GetClassNameA(HWND
,LPSTR
,INT
);
3476 INT WINAPI
GetClassNameW(HWND
,LPWSTR
,INT
);
3477 #define GetClassName WINELIB_NAME_AW(GetClassName)
3478 WORD WINAPI
GetClassWord(HWND
,INT
);
3479 BOOL WINAPI
GetClientRect(HWND
,LPRECT
);
3480 HANDLE WINAPI
GetClipboardData(UINT
);
3481 INT WINAPI
GetClipboardFormatNameA(UINT
,LPSTR
,INT
);
3482 INT WINAPI
GetClipboardFormatNameW(UINT
,LPWSTR
,INT
);
3483 #define GetClipboardFormatName WINELIB_NAME_AW(GetClipboardFormatName)
3484 HWND WINAPI
GetClipboardOwner(void);
3485 HWND WINAPI
GetClipboardViewer(void);
3486 BOOL WINAPI
GetClipCursor(LPRECT
);
3487 HCURSOR WINAPI
GetCursor(void);
3488 BOOL WINAPI
GetCursorPos(LPPOINT
);
3489 HDC WINAPI
GetDC(HWND
);
3490 HDC WINAPI
GetDCEx(HWND
,HRGN
,DWORD
);
3491 HWND WINAPI
GetDesktopWindow(void);
3492 INT WINAPI
GetDlgCtrlID(HWND
);
3493 HWND WINAPI
GetDlgItem(HWND
,INT
);
3494 UINT WINAPI
GetDlgItemInt(HWND
,INT
,BOOL
*,BOOL
);
3495 INT WINAPI
GetDlgItemTextA(HWND
,INT
,LPSTR
,UINT
);
3496 INT WINAPI
GetDlgItemTextW(HWND
,INT
,LPWSTR
,UINT
);
3497 #define GetDlgItemText WINELIB_NAME_AW(GetDlgItemText)
3498 UINT WINAPI
GetDoubleClickTime(void);
3499 HWND WINAPI
GetFocus(void);
3500 HWND WINAPI
GetForegroundWindow(void);
3501 BOOL WINAPI
GetInputState(void);
3502 UINT WINAPI
GetInternalWindowPos(HWND
,LPRECT
,LPPOINT
);
3503 UINT WINAPI
GetKBCodePage(void);
3504 INT WINAPI
GetKeyboardType(INT
);
3505 INT WINAPI
GetKeyNameTextA(LONG
,LPSTR
,INT
);
3506 INT WINAPI
GetKeyNameTextW(LONG
,LPWSTR
,INT
);
3507 #define GetKeyNameText WINELIB_NAME_AW(GetKeyNameText)
3508 INT WINAPI
GetKeyboardLayoutNameA(LPSTR
);
3509 INT WINAPI
GetKeyboardLayoutNameW(LPWSTR
);
3510 #define GetKeyboardLayoutName WINELIB_NAME_AW(GetKeyboardLayoutName)
3511 SHORT WINAPI
GetKeyState(INT
);
3512 HWND WINAPI
GetLastActivePopup(HWND
);
3513 HMENU WINAPI
GetMenu(HWND
);
3514 INT WINAPI
GetMenuItemCount(HMENU
);
3515 UINT WINAPI
GetMenuItemID(HMENU
,INT
);
3516 BOOL WINAPI
GetMenuItemRect(HWND
,HMENU
,UINT
,LPRECT
);
3517 UINT WINAPI
GetMenuState(HMENU
,UINT
,UINT
);
3518 INT WINAPI
GetMenuStringA(HMENU
,UINT
,LPSTR
,INT
,UINT
);
3519 INT WINAPI
GetMenuStringW(HMENU
,UINT
,LPWSTR
,INT
,UINT
);
3520 #define GetMenuString WINELIB_NAME_AW(GetMenuString)
3521 BOOL WINAPI
GetMessageA(LPMSG
,HWND
,UINT
,UINT
);
3522 BOOL WINAPI
GetMessageW(LPMSG
,HWND
,UINT
,UINT
);
3523 #define GetMessage WINELIB_NAME_AW(GetMessage)
3524 HWND WINAPI
GetNextDlgGroupItem(HWND
,HWND
,BOOL
);
3525 HWND WINAPI
GetNextDlgTabItem(HWND
,HWND
,BOOL
);
3526 #define GetNextWindow GetWindow
3527 HWND WINAPI
GetOpenClipboardWindow(void);
3528 HWND WINAPI
GetParent(HWND
);
3529 INT WINAPI
GetPriorityClipboardFormat(UINT
*,INT
);
3530 BOOL WINAPI
GetProcessDefaultLayout(DWORD
*);
3531 HANDLE WINAPI
GetPropA(HWND
,LPCSTR
);
3532 HANDLE WINAPI
GetPropW(HWND
,LPCWSTR
);
3533 #define GetProp WINELIB_NAME_AW(GetProp)
3534 DWORD WINAPI
GetQueueStatus(UINT
);
3535 BOOL WINAPI
GetScrollInfo(HWND
,INT
,LPSCROLLINFO
);
3536 INT WINAPI
GetScrollPos(HWND
,INT
);
3537 BOOL WINAPI
GetScrollRange(HWND
,INT
,LPINT
,LPINT
);
3538 HWND WINAPI
GetShellWindow(void);
3539 HMENU WINAPI
GetSubMenu(HMENU
,INT
);
3540 COLORREF WINAPI
GetSysColor(INT
);
3541 HBRUSH WINAPI
GetSysColorBrush(INT
);
3542 #define GetSysModalWindow() ((HWND)0)
3543 HMENU WINAPI
GetSystemMenu(HWND
,BOOL
);
3544 INT WINAPI
GetSystemMetrics(INT
);
3545 DWORD WINAPI
GetTabbedTextExtentA(HDC
,LPCSTR
,INT
,INT
,const INT
*);
3546 DWORD WINAPI
GetTabbedTextExtentW(HDC
,LPCWSTR
,INT
,INT
,const INT
*);
3547 #define GetTabbedTextExtent WINELIB_NAME_AW(GetTabbedTextExtent)
3548 HWND WINAPI
GetTopWindow(HWND
);
3549 BOOL WINAPI
GetUpdateRect(HWND
,LPRECT
,BOOL
);
3550 INT WINAPI
GetUpdateRgn(HWND
,HRGN
,BOOL
);
3551 BOOL WINAPI
GetUserObjectInformationA(HANDLE
,INT
,LPVOID
,DWORD
,LPDWORD
);
3552 BOOL WINAPI
GetUserObjectInformationW(HANDLE
,INT
,LPVOID
,DWORD
,LPDWORD
);
3553 #define GetUserObjectInformation WINELIB_NAME_AW(GetUserObjectInformation)
3554 HWND WINAPI
GetWindow(HWND
,WORD
);
3555 HDC WINAPI
GetWindowDC(HWND
);
3556 LONG WINAPI
GetWindowLongA(HWND
,INT
);
3557 LONG WINAPI
GetWindowLongW(HWND
,INT
);
3558 #define GetWindowLong WINELIB_NAME_AW(GetWindowLong)
3559 BOOL WINAPI
GetWindowPlacement(HWND
,LPWINDOWPLACEMENT
);
3560 BOOL WINAPI
GetWindowRect(HWND
,LPRECT
);
3561 INT WINAPI
GetWindowRgn(HWND
,HRGN
);
3562 HWINSTA WINAPI
GetProcessWindowStation(void);
3563 #define GetWindowTask(hwnd) ((HTASK)GetWindowThreadProcessId(hwnd,NULL))
3564 INT WINAPI
GetWindowTextA(HWND
,LPSTR
,INT
);
3565 INT WINAPI
GetWindowTextW(HWND
,LPWSTR
,INT
);
3566 #define GetWindowText WINELIB_NAME_AW(GetWindowText)
3567 INT WINAPI
GetWindowTextLengthA(HWND
);
3568 INT WINAPI
GetWindowTextLengthW(HWND
);
3569 #define GetWindowTextLength WINELIB_NAME_AW(GetWindowTextLength)
3570 WORD WINAPI
GetWindowWord(HWND
,INT
);
3571 BOOL WINAPI
GrayStringA(HDC
,HBRUSH
,GRAYSTRINGPROC
,LPARAM
,
3572 INT
,INT
,INT
,INT
,INT
);
3573 BOOL WINAPI
GrayStringW(HDC
,HBRUSH
,GRAYSTRINGPROC
,LPARAM
,
3574 INT
,INT
,INT
,INT
,INT
);
3575 #define GrayString WINELIB_NAME_AW(GrayString)
3576 BOOL WINAPI
HideCaret(HWND
);
3577 BOOL WINAPI
HiliteMenuItem(HWND
,HMENU
,UINT
,UINT
);
3578 BOOL WINAPI
InflateRect(LPRECT
,INT
,INT
);
3579 BOOL WINAPI
InSendMessage(void);
3580 BOOL WINAPI
InsertMenuA(HMENU
,UINT
,UINT
,UINT
,LPCSTR
);
3581 BOOL WINAPI
InsertMenuW(HMENU
,UINT
,UINT
,UINT
,LPCWSTR
);
3582 #define InsertMenu WINELIB_NAME_AW(InsertMenu)
3583 BOOL WINAPI
InsertMenuItemA(HMENU
,UINT
,BOOL
,const MENUITEMINFOA
*);
3584 BOOL WINAPI
InsertMenuItemW(HMENU
,UINT
,BOOL
,const MENUITEMINFOW
*);
3585 #define InsertMenuItem WINELIB_NAME_AW(InsertMenuItem)
3586 BOOL WINAPI
IntersectRect(LPRECT
,const RECT
*,const RECT
*);
3587 BOOL WINAPI
InvalidateRect(HWND
,const RECT
*,BOOL
);
3588 BOOL WINAPI
InvalidateRgn(HWND
,HRGN
,BOOL
);
3589 BOOL WINAPI
InvertRect(HDC
,const RECT
*);
3590 BOOL WINAPI
IsCharAlphaA(CHAR
);
3591 BOOL WINAPI
IsCharAlphaW(WCHAR
);
3592 #define IsCharAlpha WINELIB_NAME_AW(IsCharAlpha)
3593 BOOL WINAPI
IsCharAlphaNumericA(CHAR
);
3594 BOOL WINAPI
IsCharAlphaNumericW(WCHAR
);
3595 #define IsCharAlphaNumeric WINELIB_NAME_AW(IsCharAlphaNumeric)
3596 BOOL WINAPI
IsCharLowerA(CHAR
);
3597 BOOL WINAPI
IsCharLowerW(WCHAR
);
3598 #define IsCharLower WINELIB_NAME_AW(IsCharLower)
3599 BOOL WINAPI
IsCharUpperA(CHAR
);
3600 BOOL WINAPI
IsCharUpperW(WCHAR
);
3601 #define IsCharUpper WINELIB_NAME_AW(IsCharUpper)
3602 BOOL WINAPI
IsChild(HWND
,HWND
);
3603 BOOL WINAPI
IsClipboardFormatAvailable(UINT
);
3604 BOOL WINAPI
IsDialogMessageA(HWND
,LPMSG
);
3605 BOOL WINAPI
IsDialogMessageW(HWND
,LPMSG
);
3606 #define IsDialogMessage WINELIB_NAME_AW(IsDialogMessage)
3607 UINT WINAPI
IsDlgButtonChecked(HWND
,UINT
);
3608 BOOL WINAPI
IsIconic(HWND
);
3609 BOOL WINAPI
IsMenu(HMENU
);
3610 BOOL WINAPI
IsRectEmpty(const RECT
*);
3611 BOOL WINAPI
IsWindow(HWND
);
3612 BOOL WINAPI
IsWindowEnabled(HWND
);
3613 BOOL WINAPI
IsWindowVisible(HWND
);
3614 BOOL WINAPI
IsZoomed(HWND
);
3615 BOOL WINAPI
KillSystemTimer(HWND
,UINT
);
3616 BOOL WINAPI
KillTimer(HWND
,UINT
);
3617 HACCEL WINAPI
LoadAcceleratorsA(HINSTANCE
,LPCSTR
);
3618 HACCEL WINAPI
LoadAcceleratorsW(HINSTANCE
,LPCWSTR
);
3619 #define LoadAccelerators WINELIB_NAME_AW(LoadAccelerators)
3620 HBITMAP WINAPI
LoadBitmapA(HINSTANCE
,LPCSTR
);
3621 HBITMAP WINAPI
LoadBitmapW(HINSTANCE
,LPCWSTR
);
3622 #define LoadBitmap WINELIB_NAME_AW(LoadBitmap)
3623 HCURSOR WINAPI
LoadCursorA(HINSTANCE
,LPCSTR
);
3624 HCURSOR WINAPI
LoadCursorW(HINSTANCE
,LPCWSTR
);
3625 #define LoadCursor WINELIB_NAME_AW(LoadCursor)
3626 HCURSOR WINAPI
LoadCursorFromFileA(LPCSTR
);
3627 HCURSOR WINAPI
LoadCursorFromFileW(LPCWSTR
);
3628 #define LoadCursorFromFile WINELIB_NAME_AW(LoadCursorFromFile)
3629 HICON WINAPI
LoadIconA(HINSTANCE
,LPCSTR
);
3630 HICON WINAPI
LoadIconW(HINSTANCE
,LPCWSTR
);
3631 #define LoadIcon WINELIB_NAME_AW(LoadIcon)
3632 HANDLE WINAPI
LoadImageA(HINSTANCE
,LPCSTR
,UINT
,INT
,INT
,UINT
);
3633 HANDLE WINAPI
LoadImageW(HINSTANCE
,LPCWSTR
,UINT
,INT
,INT
,UINT
);
3634 #define LoadImage WINELIB_NAME_AW(LoadImage)
3635 HMENU WINAPI
LoadMenuA(HINSTANCE
,LPCSTR
);
3636 HMENU WINAPI
LoadMenuW(HINSTANCE
,LPCWSTR
);
3637 #define LoadMenu WINELIB_NAME_AW(LoadMenu)
3638 HMENU WINAPI
LoadMenuIndirectA(LPCVOID
);
3639 HMENU WINAPI
LoadMenuIndirectW(LPCVOID
);
3640 #define LoadMenuIndirect WINELIB_NAME_AW(LoadMenuIndirect)
3641 INT WINAPI
LoadStringA(HINSTANCE
,UINT
,LPSTR
,INT
);
3642 INT WINAPI
LoadStringW(HINSTANCE
,UINT
,LPWSTR
,INT
);
3643 #define LoadString WINELIB_NAME_AW(LoadString)
3644 BOOL WINAPI
LockWindowUpdate(HWND
);
3645 INT WINAPI
LookupIconIdFromDirectory(LPBYTE
,BOOL
);
3646 INT WINAPI
LookupIconIdFromDirectoryEx(LPBYTE
,BOOL
,INT
,INT
,UINT
);
3647 UINT WINAPI
MapVirtualKeyA(UINT
,UINT
);
3648 UINT WINAPI
MapVirtualKeyW(UINT
,UINT
);
3649 #define MapVirtualKey WINELIB_NAME_AW(MapVirtualKey)
3650 UINT WINAPI
MapVirtualKeyExA(UINT
,UINT
,HKL
);
3651 UINT WINAPI
MapVirtualKeyExW(UINT
,UINT
,HKL
);
3652 #define MapVirtualKeyEx WINELIB_NAME_AW(MapVirtualKeyEx)
3653 BOOL WINAPI
MapDialogRect(HWND
,LPRECT
);
3654 INT WINAPI
MapWindowPoints(HWND
,HWND
,LPPOINT
,UINT
);
3655 BOOL WINAPI
MessageBeep(UINT
);
3656 INT WINAPI
MessageBoxA(HWND
,LPCSTR
,LPCSTR
,UINT
);
3657 INT WINAPI
MessageBoxW(HWND
,LPCWSTR
,LPCWSTR
,UINT
);
3658 #define MessageBox WINELIB_NAME_AW(MessageBox)
3659 INT WINAPI
MessageBoxIndirectA(LPMSGBOXPARAMSA
);
3660 INT WINAPI
MessageBoxIndirectW(LPMSGBOXPARAMSW
);
3661 #define MessageBoxIndirect WINELIB_NAME_AW(MessageBoxIndirect)
3662 BOOL WINAPI
ModifyMenuA(HMENU
,UINT
,UINT
,UINT
,LPCSTR
);
3663 BOOL WINAPI
ModifyMenuW(HMENU
,UINT
,UINT
,UINT
,LPCWSTR
);
3664 #define ModifyMenu WINELIB_NAME_AW(ModifyMenu)
3665 BOOL WINAPI
MoveWindow(HWND
,INT
,INT
,INT
,INT
,BOOL
);
3666 BOOL WINAPI
OemToCharA(LPCSTR
,LPSTR
);
3667 BOOL WINAPI
OemToCharW(LPCSTR
,LPWSTR
);
3668 #define OemToChar WINELIB_NAME_AW(OemToChar)
3669 BOOL WINAPI
OemToCharBuffA(LPCSTR
,LPSTR
,DWORD
);
3670 BOOL WINAPI
OemToCharBuffW(LPCSTR
,LPWSTR
,DWORD
);
3671 #define OemToCharBuff WINELIB_NAME_AW(OemToCharBuff)
3672 BOOL WINAPI
OffsetRect(LPRECT
,INT
,INT
);
3673 BOOL WINAPI
OpenClipboard(HWND
);
3674 BOOL WINAPI
OpenIcon(HWND
);
3675 HWINSTA WINAPI
OpenWindowStationA(LPSTR
,BOOL
,ACCESS_MASK
);
3676 HWINSTA WINAPI
OpenWindowStationW(LPWSTR
,BOOL
,ACCESS_MASK
);
3677 #define OpenWindowStation WINELIB_NAME_AW(OpenWindowStation)
3678 BOOL WINAPI
PeekMessageA(LPMSG
,HWND
,UINT
,UINT
,UINT
);
3679 BOOL WINAPI
PeekMessageW(LPMSG
,HWND
,UINT
,UINT
,UINT
);
3680 #define PeekMessage WINELIB_NAME_AW(PeekMessage)
3681 #define PostAppMessageA(thread,msg,wparam,lparam) \
3682 PostThreadMessageA((DWORD)(thread),msg,wparam,lparam)
3683 #define PostAppMessageW(thread,msg,wparam,lparam) \
3684 PostThreadMessageW((DWORD)(thread),msg,wparam,lparam)
3685 #define PostAppMessage WINELIB_NAME_AW(PostAppMessage)
3686 BOOL WINAPI
PostMessageA(HWND
,UINT
,WPARAM
,LPARAM
);
3687 BOOL WINAPI
PostMessageW(HWND
,UINT
,WPARAM
,LPARAM
);
3688 #define PostMessage WINELIB_NAME_AW(PostMessage)
3689 void WINAPI
PostQuitMessage(INT
);
3690 BOOL WINAPI
PtInRect(const RECT
*,POINT
);
3691 BOOL WINAPI
RedrawWindow(HWND
,const RECT
*,HRGN
,UINT
);
3692 ATOM WINAPI
RegisterClassA(const WNDCLASSA
*);
3693 ATOM WINAPI
RegisterClassW(const WNDCLASSW
*);
3694 #define RegisterClass WINELIB_NAME_AW(RegisterClass)
3695 ATOM WINAPI
RegisterClassExA(const WNDCLASSEXA
*);
3696 ATOM WINAPI
RegisterClassExW(const WNDCLASSEXW
*);
3697 #define RegisterClassEx WINELIB_NAME_AW(RegisterClassEx)
3698 UINT WINAPI
RegisterClipboardFormatA(LPCSTR
);
3699 UINT WINAPI
RegisterClipboardFormatW(LPCWSTR
);
3700 #define RegisterClipboardFormat WINELIB_NAME_AW(RegisterClipboardFormat)
3701 WORD WINAPI
RegisterWindowMessageA(LPCSTR
);
3702 WORD WINAPI
RegisterWindowMessageW(LPCWSTR
);
3703 #define RegisterWindowMessage WINELIB_NAME_AW(RegisterWindowMessage)
3704 INT WINAPI
ReleaseDC(HWND
,HDC
);
3705 BOOL WINAPI
RemoveMenu(HMENU
,UINT
,UINT
);
3706 HANDLE WINAPI
RemovePropA(HWND
,LPCSTR
);
3707 HANDLE WINAPI
RemovePropW(HWND
,LPCWSTR
);
3708 #define RemoveProp WINELIB_NAME_AW(RemoveProp)
3709 BOOL WINAPI
ReplyMessage(LRESULT
);
3710 BOOL WINAPI
ScreenToClient(HWND
,LPPOINT
);
3711 VOID WINAPI
ScrollChildren(HWND
,UINT
,WPARAM
,LPARAM
);
3712 BOOL WINAPI
ScrollDC(HDC
,INT
,INT
,const RECT
*,const RECT
*,
3714 BOOL WINAPI
ScrollWindow(HWND
,INT
,INT
,const RECT
*,const RECT
*);
3715 INT WINAPI
ScrollWindowEx(HWND
,INT
,INT
,const RECT
*,
3716 const RECT
*,HRGN
,LPRECT
,UINT
);
3717 LRESULT WINAPI
SendDlgItemMessageA(HWND
,INT
,UINT
,WPARAM
,LPARAM
);
3718 LRESULT WINAPI
SendDlgItemMessageW(HWND
,INT
,UINT
,WPARAM
,LPARAM
);
3719 #define SendDlgItemMessage WINELIB_NAME_AW(SendDlgItemMessage)
3720 LRESULT WINAPI
SendMessageA(HWND
,UINT
,WPARAM
,LPARAM
);
3721 LRESULT WINAPI
SendMessageW(HWND
,UINT
,WPARAM
,LPARAM
);
3722 #define SendMessage WINELIB_NAME_AW(SendMessage)
3723 LRESULT WINAPI
SendMessageTimeoutA(HWND
,UINT
,WPARAM
,LPARAM
,UINT
,
3725 LRESULT WINAPI
SendMessageTimeoutW(HWND
,UINT
,WPARAM
,LPARAM
,UINT
,
3727 #define SendMessageTimeout WINELIB_NAME_AW(SendMessageTimeout)
3728 HWND WINAPI
SetActiveWindow(HWND
);
3729 HWND WINAPI
SetCapture(HWND
);
3730 BOOL WINAPI
SetCaretBlinkTime(UINT
);
3731 BOOL WINAPI
SetCaretPos(INT
,INT
);
3732 LONG WINAPI
SetClassLongA(HWND
,INT
,LONG
);
3733 LONG WINAPI
SetClassLongW(HWND
,INT
,LONG
);
3734 #define SetClassLong WINELIB_NAME_AW(SetClassLong)
3735 WORD WINAPI
SetClassWord(HWND
,INT
,WORD
);
3736 HANDLE WINAPI
SetClipboardData(UINT
,HANDLE
);
3737 HWND WINAPI
SetClipboardViewer(HWND
);
3738 BOOL WINAPI
SetCommBreak(HANDLE
);
3739 HCURSOR WINAPI
SetCursor(HCURSOR
);
3740 BOOL WINAPI
SetCursorPos(INT
,INT
);
3741 BOOL WINAPI
SetDeskWallPaper(LPCSTR
);
3742 BOOL WINAPI
SetDlgItemInt(HWND
,INT
,UINT
,BOOL
);
3743 BOOL WINAPI
SetDlgItemTextA(HWND
,INT
,LPCSTR
);
3744 BOOL WINAPI
SetDlgItemTextW(HWND
,INT
,LPCWSTR
);
3745 #define SetDlgItemText WINELIB_NAME_AW(SetDlgItemText)
3746 BOOL WINAPI
SetDoubleClickTime(UINT
);
3747 HWND WINAPI
SetFocus(HWND
);
3748 BOOL WINAPI
SetForegroundWindow(HWND
);
3749 void WINAPI
SetInternalWindowPos(HWND
,UINT
,LPRECT
,LPPOINT
);
3750 BOOL WINAPI
SetMenu(HWND
,HMENU
);
3751 BOOL WINAPI
SetMenuContextHelpId(HMENU
,DWORD
);
3752 BOOL WINAPI
SetMenuItemBitmaps(HMENU
,UINT
,UINT
,HBITMAP
,HBITMAP
);
3753 BOOL WINAPI
SetMessageQueue(INT
);
3754 BOOL WINAPI
SetProcessDefaultLayout(DWORD
);
3755 BOOL WINAPI
SetProcessWindowStation(HWINSTA
);
3756 HWND WINAPI
SetParent(HWND
,HWND
);
3757 BOOL WINAPI
SetPropA(HWND
,LPCSTR
,HANDLE
);
3758 BOOL WINAPI
SetPropW(HWND
,LPCWSTR
,HANDLE
);
3759 #define SetProp WINELIB_NAME_AW(SetProp)
3760 BOOL WINAPI
SetRect(LPRECT
,INT
,INT
,INT
,INT
);
3761 BOOL WINAPI
SetRectEmpty(LPRECT
);
3762 INT WINAPI
SetScrollInfo(HWND
,INT
,const SCROLLINFO
*,BOOL
);
3763 INT WINAPI
SetScrollPos(HWND
,INT
,INT
,BOOL
);
3764 BOOL WINAPI
SetScrollRange(HWND
,INT
,INT
,INT
,BOOL
);
3765 BOOL WINAPI
SetSysColors(INT
,const INT
*,const COLORREF
*);
3766 #define SetSysModalWindow(hwnd) ((HWND)0)
3767 BOOL WINAPI
SetSystemCursor(HCURSOR
,DWORD
);
3768 BOOL WINAPI
SetSystemMenu(HWND
,HMENU
);
3769 UINT WINAPI
SetSystemTimer(HWND
,UINT
,UINT
,TIMERPROC
);
3770 UINT WINAPI
SetTimer(HWND
,UINT
,UINT
,TIMERPROC
);
3771 BOOL WINAPI
SetUserObjectSecurity(HANDLE
,PSECURITY_INFORMATION
,PSECURITY_DESCRIPTOR
);
3772 LONG WINAPI
SetWindowLongA(HWND
,INT
,LONG
);
3773 LONG WINAPI
SetWindowLongW(HWND
,INT
,LONG
);
3774 #define SetWindowLong WINELIB_NAME_AW(SetWindowLong)
3775 BOOL WINAPI
SetWindowPlacement(HWND
,const WINDOWPLACEMENT
*);
3776 HHOOK WINAPI
SetWindowsHookA(INT
,HOOKPROC
);
3777 HHOOK WINAPI
SetWindowsHookW(INT
,HOOKPROC
);
3778 #define SetWindowsHook WINELIB_NAME_AW(SetWindowsHook)
3779 HHOOK WINAPI
SetWindowsHookExA(INT
,HOOKPROC
,HINSTANCE
,DWORD
);
3780 HHOOK WINAPI
SetWindowsHookExW(INT
,HOOKPROC
,HINSTANCE
,DWORD
);
3781 #define SetWindowsHookEx WINELIB_NAME_AW(SetWindowsHookEx)
3782 BOOL WINAPI
SetWindowPos(HWND
,HWND
,INT
,INT
,INT
,INT
,UINT
);
3783 INT WINAPI
SetWindowRgn(HWND
,HRGN
,BOOL
);
3784 BOOL WINAPI
SetWindowTextA(HWND
,LPCSTR
);
3785 BOOL WINAPI
SetWindowTextW(HWND
,LPCWSTR
);
3786 #define SetWindowText WINELIB_NAME_AW(SetWindowText)
3787 WORD WINAPI
SetWindowWord(HWND
,INT
,WORD
);
3788 BOOL WINAPI
ShowCaret(HWND
);
3789 INT WINAPI
ShowCursor(BOOL
);
3790 BOOL WINAPI
ShowScrollBar(HWND
,INT
,BOOL
);
3791 BOOL WINAPI
ShowOwnedPopups(HWND
,BOOL
);
3792 BOOL WINAPI
ShowWindow(HWND
,INT
);
3793 BOOL WINAPI
SubtractRect(LPRECT
,const RECT
*,const RECT
*);
3794 BOOL WINAPI
SwapMouseButton(BOOL
);
3795 VOID WINAPI
SwitchToThisWindow(HWND
,BOOL
);
3796 BOOL WINAPI
SystemParametersInfoA(UINT
,UINT
,LPVOID
,UINT
);
3797 BOOL WINAPI
SystemParametersInfoW(UINT
,UINT
,LPVOID
,UINT
);
3798 #define SystemParametersInfo WINELIB_NAME_AW(SystemParametersInfo)
3799 LONG WINAPI
TabbedTextOutA(HDC
,INT
,INT
,LPCSTR
,INT
,INT
,const INT
*,INT
);
3800 LONG WINAPI
TabbedTextOutW(HDC
,INT
,INT
,LPCWSTR
,INT
,INT
,const INT
*,INT
);
3801 #define TabbedTextOut WINELIB_NAME_AW(TabbedTextOut)
3802 INT WINAPI
ToAscii(UINT
,UINT
,LPBYTE
,LPWORD
,UINT
);
3803 INT WINAPI
ToAsciiEx(UINT
,UINT
,LPBYTE
,LPWORD
,UINT
,HKL
);
3804 BOOL WINAPI
TrackPopupMenu(HMENU
,UINT
,INT
,INT
,INT
,HWND
,const RECT
*);
3805 INT WINAPI
TranslateAccelerator(HWND
,HACCEL
,LPMSG
);
3806 BOOL WINAPI
TranslateMDISysAccel(HWND
,LPMSG
);
3807 BOOL WINAPI
TranslateMessage(const MSG
*);
3808 BOOL WINAPI
UnhookWindowsHook(INT
,HOOKPROC
);
3809 BOOL WINAPI
UnhookWindowsHookEx(HHOOK
);
3810 BOOL WINAPI
UnionRect(LPRECT
,const RECT
*,const RECT
*);
3811 BOOL WINAPI
UnregisterClassA(LPCSTR
,HINSTANCE
);
3812 BOOL WINAPI
UnregisterClassW(LPCWSTR
,HINSTANCE
);
3813 #define UnregisterClass WINELIB_NAME_AW(UnregisterClass)
3814 VOID WINAPI
UpdateWindow(HWND
);
3815 UINT WINAPI
UserRealizePalette(HDC
);
3816 VOID WINAPI
ValidateRect(HWND
,const RECT
*);
3817 VOID WINAPI
ValidateRgn(HWND
,HRGN
);
3818 WORD WINAPI
VkKeyScanA(CHAR
);
3819 WORD WINAPI
VkKeyScanW(WCHAR
);
3820 #define VkKeyScan WINELIB_NAME_AW(VkKeyScan)
3821 WORD WINAPI
VkKeyScanExA(CHAR
, HKL
);
3822 WORD WINAPI
VkKeyScanExW(WCHAR
, HKL
);
3823 #define VkKeyScanEx WINELIB_NAME_AW(VkKeyScanEx)
3824 HWND WINAPI
WindowFromDC(HDC
);
3825 HWND WINAPI
WindowFromPoint(POINT
);
3826 BOOL WINAPI
WinHelpA(HWND
,LPCSTR
,UINT
,DWORD
);
3827 BOOL WINAPI
WinHelpW(HWND
,LPCWSTR
,UINT
,DWORD
);
3828 #define WinHelp WINELIB_NAME_AW(WinHelp)
3829 INT WINAPIV
wsprintfA(LPSTR
,LPCSTR
,...);
3830 INT WINAPIV
wsprintfW(LPWSTR
,LPCWSTR
,...);
3831 #define wsprintf WINELIB_NAME_AW(wsprintf)
3832 INT WINAPI
wvsprintfA(LPSTR
,LPCSTR
,va_list);
3833 INT WINAPI
wvsprintfW(LPWSTR
,LPCWSTR
,va_list);
3834 #define wvsprintf WINELIB_NAME_AW(wvsprintf)
3836 /* Undocumented functions */
3838 /* NOTE: This is SYSTEM.3, not USER.182, which is also named KillSystemTimer */
3839 WORD WINAPI
SYSTEM_KillSystemTimer( WORD
);
3841 HRESULT WINAPI
PrivateExtractIconsA(LPCSTR
,INT
,DWORD
,DWORD
,HICON
*,DWORD
,UINT
,DWORD
);
3842 HRESULT WINAPI
PrivateExtractIconsW(LPCWSTR
,INT
,DWORD
,DWORD
,HICON
*,DWORD
,UINT
,DWORD
);
3844 /* Extra functions that don't exist in the Windows API */
3846 HPEN WINAPI
GetSysColorPen(INT
);
3847 INT WINAPI
wvsnprintfA(LPSTR
,UINT
,LPCSTR
,va_list);
3848 INT WINAPI
wvsnprintfW(LPWSTR
,UINT
,LPCWSTR
,va_list);
3849 #define wvsnprintf WINELIB_NAME_AW(wvsnprintf)
3851 #define WC_DIALOG (LPSTR)((DWORD)((WORD)( 0x8002)))
3857 #endif /* _WINUSER_ */