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