1 /* Initial draft attempt of windows.h, by Peter MacDonald, pmacdona@sanjuan.uvic.ca */
3 #ifndef __WINE_WINDOWS_H
4 #define __WINE_WINDOWS_H
17 /* The SIZE structure */
31 DECL_WINELIB_TYPE(SIZE
);
32 DECL_WINELIB_TYPE(LPSIZE
);
34 #define CONV_SIZE16TO32(s16,s32) \
35 ((s32)->cx = (INT32)(s16)->cx, (s32)->cy = (INT32)(s16)->cy)
36 #define CONV_SIZE32TO16(s32,s16) \
37 ((s16)->cx = (INT16)(s32)->cx, (s16)->cy = (INT16)(s32)->cy)
39 /* The POINT structure */
45 } POINT16
, *LPPOINT16
;
51 } POINT32
, *LPPOINT32
;
53 DECL_WINELIB_TYPE(POINT
);
54 DECL_WINELIB_TYPE(LPPOINT
);
56 #define CONV_POINT16TO32(p16,p32) \
57 ((p32)->x = (INT32)(p16)->x, (p32)->y = (INT32)(p16)->y)
58 #define CONV_POINT32TO16(p32,p16) \
59 ((p16)->x = (INT16)(p32)->x, (p16)->y = (INT16)(p32)->y)
61 #define MAKEPOINT16(l) (*((POINT16 *)&(l)))
63 #define MAKEPOINT(l) MAKEPOINT16(l)
66 /* The RECT structure */
84 DECL_WINELIB_TYPE(RECT
);
85 DECL_WINELIB_TYPE(LPRECT
);
87 #define CONV_RECT16TO32(r16,r32) \
88 ((r32)->left = (INT32)(r16)->left, (r32)->top = (INT32)(r16)->top, \
89 (r32)->right = (INT32)(r16)->right, (r32)->bottom = (INT32)(r16)->bottom)
90 #define CONV_RECT32TO16(r32,r16) \
91 ((r16)->left = (INT16)(r32)->left, (r16)->top = (INT16)(r32)->top, \
92 (r16)->right = (INT16)(r32)->right, (r16)->bottom = (INT16)(r32)->bottom)
99 } KERNINGPAIR16
, *LPKERNINGPAIR16
;
106 } KERNINGPAIR32
, *LPKERNINGPAIR32
;
108 DECL_WINELIB_TYPE(KERNINGPAIR
);
109 DECL_WINELIB_TYPE(LPKERNINGPAIR
);
118 BYTE rgbReserved
[16];
119 } PAINTSTRUCT16
, *LPPAINTSTRUCT16
;
128 BYTE rgbReserved
[32];
129 } PAINTSTRUCT32
, *LPPAINTSTRUCT32
;
131 DECL_WINELIB_TYPE(PAINTSTRUCT
);
132 DECL_WINELIB_TYPE(LPPAINTSTRUCT
);
139 LPVOID lpCreateParams
;
140 HINSTANCE16 hInstance
;
147 LONG style WINE_PACKED
;
148 SEGPTR lpszName WINE_PACKED
;
149 SEGPTR lpszClass WINE_PACKED
;
150 DWORD dwExStyle WINE_PACKED
;
151 } CREATESTRUCT16
, *LPCREATESTRUCT16
;
155 LPVOID lpCreateParams
;
156 HINSTANCE32 hInstance
;
167 } CREATESTRUCT32A
, *LPCREATESTRUCT32A
;
171 LPVOID lpCreateParams
;
172 HINSTANCE32 hInstance
;
183 } CREATESTRUCT32W
, *LPCREATESTRUCT32W
;
185 DECL_WINELIB_TYPE_AW(CREATESTRUCT
);
186 DECL_WINELIB_TYPE_AW(LPCREATESTRUCT
);
192 } CLIENTCREATESTRUCT16
, *LPCLIENTCREATESTRUCT16
;
198 } CLIENTCREATESTRUCT32
, *LPCLIENTCREATESTRUCT32
;
200 DECL_WINELIB_TYPE(CLIENTCREATESTRUCT
);
201 DECL_WINELIB_TYPE(LPCLIENTCREATESTRUCT
);
212 DWORD style WINE_PACKED
;
213 LPARAM lParam WINE_PACKED
;
214 } MDICREATESTRUCT16
, *LPMDICREATESTRUCT16
;
227 } MDICREATESTRUCT32A
, *LPMDICREATESTRUCT32A
;
240 } MDICREATESTRUCT32W
, *LPMDICREATESTRUCT32W
;
242 DECL_WINELIB_TYPE_AW(MDICREATESTRUCT
);
243 DECL_WINELIB_TYPE_AW(LPMDICREATESTRUCT
);
245 #define MDITILE_VERTICAL 0
246 #define MDITILE_HORIZONTAL 1
247 #define MDIS_ALLCHILDSTYLES 0x0001
249 /* Offsets for GetWindowLong() and GetWindowWord() */
250 #define GWL_USERDATA (-21)
251 #define GWL_EXSTYLE (-20)
252 #define GWL_STYLE (-16)
254 #define GWL_ID GWW_ID
255 #define GWW_HWNDPARENT (-8)
256 #define GWL_HWNDPARENT GWW_HWNDPARENT
257 #define GWW_HINSTANCE (-6)
258 #define GWL_HINSTANCE GWW_HINSTANCE
259 #define GWL_WNDPROC (-4)
260 #define DWL_MSGRESULT 0
261 #define DWL_DLGPROC 4
264 /* GetWindow() constants */
265 #define GW_HWNDFIRST 0
266 #define GW_HWNDLAST 1
267 #define GW_HWNDNEXT 2
268 #define GW_HWNDPREV 3
272 /* WM_GETMINMAXINFO struct */
277 POINT16 ptMaxPosition
;
278 POINT16 ptMinTrackSize
;
279 POINT16 ptMaxTrackSize
;
286 POINT32 ptMaxPosition
;
287 POINT32 ptMinTrackSize
;
288 POINT32 ptMaxTrackSize
;
291 DECL_WINELIB_TYPE(MINMAXINFO
);
293 /* RedrawWindow() flags */
294 #define RDW_INVALIDATE 0x0001
295 #define RDW_INTERNALPAINT 0x0002
296 #define RDW_ERASE 0x0004
297 #define RDW_VALIDATE 0x0008
298 #define RDW_NOINTERNALPAINT 0x0010
299 #define RDW_NOERASE 0x0020
300 #define RDW_NOCHILDREN 0x0040
301 #define RDW_ALLCHILDREN 0x0080
302 #define RDW_UPDATENOW 0x0100
303 #define RDW_ERASENOW 0x0200
304 #define RDW_FRAME 0x0400
305 #define RDW_NOFRAME 0x0800
307 /* WM_WINDOWPOSCHANGING/CHANGED struct */
311 HWND16 hwndInsertAfter
;
322 HWND32 hwndInsertAfter
;
330 DECL_WINELIB_TYPE(WINDOWPOS
);
332 /* SetWindowPlacement() struct */
338 POINT16 ptMinPosition WINE_PACKED
;
339 POINT16 ptMaxPosition WINE_PACKED
;
340 RECT16 rcNormalPosition WINE_PACKED
;
341 } WINDOWPLACEMENT16
, *LPWINDOWPLACEMENT16
;
348 POINT32 ptMinPosition WINE_PACKED
;
349 POINT32 ptMaxPosition WINE_PACKED
;
350 RECT32 rcNormalPosition WINE_PACKED
;
351 } WINDOWPLACEMENT32
, *LPWINDOWPLACEMENT32
;
353 DECL_WINELIB_TYPE(WINDOWPLACEMENT
);
354 DECL_WINELIB_TYPE(LPWINDOWPLACEMENT
);
356 /* WINDOWPLACEMENT flags */
357 #define WPF_SETMINPOSITION 0x0001
358 #define WPF_RESTORETOMAXIMIZED 0x0002
360 /* WM_MOUSEACTIVATE return values */
361 #define MA_ACTIVATE 1
362 #define MA_ACTIVATEANDEAT 2
363 #define MA_NOACTIVATE 3
364 #define MA_NOACTIVATEANDEAT 4
366 /* WM_ACTIVATE wParam values */
367 #define WA_INACTIVE 0
369 #define WA_CLICKACTIVE 2
371 /* WM_NCCALCSIZE parameter structure */
376 } NCCALCSIZE_PARAMS16
, *LPNCCALCSIZE_PARAMS16
;
382 } NCCALCSIZE_PARAMS32
, *LPNCCALCSIZE_PARAMS32
;
384 DECL_WINELIB_TYPE(NCCALCSIZE_PARAMS
);
385 DECL_WINELIB_TYPE(LPNCCALCSIZE_PARAMS
);
387 /* WM_NCCALCSIZE return flags */
388 #define WVR_ALIGNTOP 0x0010
389 #define WVR_ALIGNLEFT 0x0020
390 #define WVR_ALIGNBOTTOM 0x0040
391 #define WVR_ALIGNRIGHT 0x0080
392 #define WVR_HREDRAW 0x0100
393 #define WVR_VREDRAW 0x0200
394 #define WVR_REDRAW (WVR_HREDRAW | WVR_VREDRAW)
395 #define WVR_VALIDRECTS 0x0400
397 /* WM_NCHITTEST return codes */
399 #define HTTRANSPARENT (-1)
408 #define HTMINBUTTON 8
409 #define HTMAXBUTTON 9
414 #define HTTOPRIGHT 14
416 #define HTBOTTOMLEFT 16
417 #define HTBOTTOMRIGHT 17
419 #define HTGROWBOX HTSIZE
420 #define HTREDUCE HTMINBUTTON
421 #define HTZOOM HTMAXBUTTON
423 /* WM_SYSCOMMAND parameters */
424 #define SC_SIZE 0xf000
425 #define SC_MOVE 0xf010
426 #define SC_MINIMIZE 0xf020
427 #define SC_MAXIMIZE 0xf030
428 #define SC_NEXTWINDOW 0xf040
429 #define SC_PREVWINDOW 0xf050
430 #define SC_CLOSE 0xf060
431 #define SC_VSCROLL 0xf070
432 #define SC_HSCROLL 0xf080
433 #define SC_MOUSEMENU 0xf090
434 #define SC_KEYMENU 0xf100
435 #define SC_ARRANGE 0xf110
436 #define SC_RESTORE 0xf120
437 #define SC_TASKLIST 0xf130
438 #define SC_SCREENSAVE 0xf140
439 #define SC_HOTKEY 0xf150
441 /***** Window hooks *****/
444 #define WH_MSGFILTER (-1)
445 #define WH_JOURNALRECORD 0
446 #define WH_JOURNALPLAYBACK 1
447 #define WH_KEYBOARD 2
448 #define WH_GETMESSAGE 3
449 #define WH_CALLWNDPROC 4
451 #define WH_SYSMSGFILTER 6
453 #define WH_HARDWARE 8
457 #define WH_FIRST_HOOK WH_MSGFILTER
458 #define WH_LAST_HOOK WH_SHELL
459 #define WH_NB_HOOKS (WH_LAST_HOOK-WH_FIRST_HOOK+1)
461 /* Hook action codes */
465 #define HC_NOREMOVE 3
466 #define HC_NOREM HC_NOREMOVE
467 #define HC_SYSMODALON 4
468 #define HC_SYSMODALOFF 5
470 /* CallMsgFilter() values */
471 #define MSGF_DIALOGBOX 0
472 #define MSGF_MESSAGEBOX 1
476 #define MSGF_SCROLLBAR 5
477 #define MSGF_NEXTWINDOW 6
478 #define MSGF_MAINLOOP 8
479 #define MSGF_USER 4096
481 /* Journalling hook structure */
488 DWORD time WINE_PACKED
;
489 } EVENTMSG16
, *LPEVENTMSG16
;
498 } EVENTMSG32
, *LPEVENTMSG32
;
500 DECL_WINELIB_TYPE(EVENTMSG
);
501 DECL_WINELIB_TYPE(LPEVENTMSG
);
503 /* Mouse hook structure */
511 } MOUSEHOOKSTRUCT16
, *LPMOUSEHOOKSTRUCT16
;
519 } MOUSEHOOKSTRUCT32
, *LPMOUSEHOOKSTRUCT32
;
521 DECL_WINELIB_TYPE(MOUSEHOOKSTRUCT
);
522 DECL_WINELIB_TYPE(LPMOUSEHOOKSTRUCT
);
524 /* Hardware hook structure */
531 LPARAM lParam WINE_PACKED
;
532 } HARDWAREHOOKSTRUCT16
, *LPHARDWAREHOOKSTRUCT16
;
540 } HARDWAREHOOKSTRUCT32
, *LPHARDWAREHOOKSTRUCT32
;
542 DECL_WINELIB_TYPE(HARDWAREHOOKSTRUCT
);
543 DECL_WINELIB_TYPE(LPHARDWAREHOOKSTRUCT
);
545 /* CBT hook values */
546 #define HCBT_MOVESIZE 0
547 #define HCBT_MINMAX 1
549 #define HCBT_CREATEWND 3
550 #define HCBT_DESTROYWND 4
551 #define HCBT_ACTIVATE 5
552 #define HCBT_CLICKSKIPPED 6
553 #define HCBT_KEYSKIPPED 7
554 #define HCBT_SYSCOMMAND 8
555 #define HCBT_SETFOCUS 9
557 /* CBT hook structures */
561 CREATESTRUCT16
*lpcs
;
562 HWND16 hwndInsertAfter
;
563 } CBT_CREATEWND16
, *LPCBT_CREATEWND16
;
567 CREATESTRUCT32A
*lpcs
;
568 HWND32 hwndInsertAfter
;
569 } CBT_CREATEWND32A
, *LPCBT_CREATEWND32A
;
573 CREATESTRUCT32W
*lpcs
;
574 HWND32 hwndInsertAfter
;
575 } CBT_CREATEWND32W
, *LPCBT_CREATEWND32W
;
577 DECL_WINELIB_TYPE_AW(CBT_CREATEWND
);
578 DECL_WINELIB_TYPE_AW(LPCBT_CREATEWND
);
584 } CBTACTIVATESTRUCT16
;
590 } CBTACTIVATESTRUCT32
;
592 DECL_WINELIB_TYPE(CBTACTIVATESTRUCT
);
594 /* Shell hook values */
595 #define HSHELL_WINDOWCREATED 1
596 #define HSHELL_WINDOWDESTROYED 2
597 #define HSHELL_ACTIVATESHELLWINDOW 3
599 /* Debug hook structure */
603 HMODULE16 hModuleHook
;
604 LPARAM reserved WINE_PACKED
;
605 LPARAM lParam WINE_PACKED
;
608 } DEBUGHOOKINFO16
, *LPDEBUGHOOKINFO16
;
613 DWORD idThreadInstaller
;
617 } DEBUGHOOKINFO32
, *LPDEBUGHOOKINFO32
;
619 DECL_WINELIB_TYPE(DEBUGHOOKINFO
);
620 DECL_WINELIB_TYPE(LPDEBUGHOOKINFO
);
622 /***** Dialogs *****/
624 /* cbWndExtra bytes for dialog class */
625 #define DLGWINDOWEXTRA 30
628 #define DS_ABSALIGN 0x001
629 #define DS_SYSMODAL 0x002
630 #define DS_LOCALEDIT 0x020
631 #define DS_SETFONT 0x040
632 #define DS_MODALFRAME 0x080
633 #define DS_NOIDLEMSG 0x100
635 /* Dialog messages */
636 #define DM_GETDEFID (WM_USER+0)
637 #define DM_SETDEFID (WM_USER+1)
639 #define DC_HASDEFID 0x534b
641 /* WM_GETDLGCODE values */
642 #define DLGC_WANTARROWS 0x0001
643 #define DLGC_WANTTAB 0x0002
644 #define DLGC_WANTALLKEYS 0x0004
645 #define DLGC_WANTMESSAGE 0x0004
646 #define DLGC_HASSETSEL 0x0008
647 #define DLGC_DEFPUSHBUTTON 0x0010
648 #define DLGC_UNDEFPUSHBUTTON 0x0020
649 #define DLGC_RADIOBUTTON 0x0040
650 #define DLGC_WANTCHARS 0x0080
651 #define DLGC_STATIC 0x0100
652 #define DLGC_BUTTON 0x2000
654 /* Standard dialog button IDs */
669 LPARAM lParam WINE_PACKED
;
670 DWORD time WINE_PACKED
;
671 POINT16 pt WINE_PACKED
;
684 DECL_WINELIB_TYPE(MSG
);
685 DECL_WINELIB_TYPE(LPMSG
);
687 /* Raster operations */
690 #define R2_NOTMERGEPEN 2
691 #define R2_MASKNOTPEN 3
692 #define R2_NOTCOPYPEN 4
693 #define R2_MASKPENNOT 5
696 #define R2_NOTMASKPEN 8
698 #define R2_NOTXORPEN 10
700 #define R2_MERGENOTPEN 12
701 #define R2_COPYPEN 13
702 #define R2_MERGEPENNOT 14
703 #define R2_MERGEPEN 15
706 #define SRCCOPY 0xcc0020
707 #define SRCPAINT 0xee0086
708 #define SRCAND 0x8800c6
709 #define SRCINVERT 0x660046
710 #define SRCERASE 0x440328
711 #define NOTSRCCOPY 0x330008
712 #define NOTSRCERASE 0x1100a6
713 #define MERGECOPY 0xc000ca
714 #define MERGEPAINT 0xbb0226
715 #define PATCOPY 0xf00021
716 #define PATPAINT 0xfb0a09
717 #define PATINVERT 0x5a0049
718 #define DSTINVERT 0x550009
719 #define BLACKNESS 0x000042
720 #define WHITENESS 0xff0062
722 /* StretchBlt() modes */
723 #define BLACKONWHITE 1
724 #define WHITEONBLACK 2
725 #define COLORONCOLOR 3
727 #define STRETCH_ANDSCANS BLACKONWHITE
728 #define STRETCH_ORSCANS WHITEONBLACK
729 #define STRETCH_DELETESCANS COLORONCOLOR
734 typedef DWORD COLORREF
;
736 #define RGB(r,g,b) ((COLORREF)((r) | ((g) << 8) | ((b) << 16)))
737 #define PALETTERGB(r,g,b) (0x02000000 | RGB(r,g,b))
738 #define PALETTEINDEX(i) ((COLORREF)(0x01000000 | (WORD)(i)))
740 #define GetRValue(rgb) ((rgb) & 0xff)
741 #define GetGValue(rgb) (((rgb) >> 8) & 0xff)
742 #define GetBValue(rgb) (((rgb) >> 16) & 0xff)
744 #define COLOR_SCROLLBAR 0
745 #define COLOR_BACKGROUND 1
746 #define COLOR_ACTIVECAPTION 2
747 #define COLOR_INACTIVECAPTION 3
749 #define COLOR_WINDOW 5
750 #define COLOR_WINDOWFRAME 6
751 #define COLOR_MENUTEXT 7
752 #define COLOR_WINDOWTEXT 8
753 #define COLOR_CAPTIONTEXT 9
754 #define COLOR_ACTIVEBORDER 10
755 #define COLOR_INACTIVEBORDER 11
756 #define COLOR_APPWORKSPACE 12
757 #define COLOR_HIGHLIGHT 13
758 #define COLOR_HIGHLIGHTTEXT 14
759 #define COLOR_BTNFACE 15
760 #define COLOR_BTNSHADOW 16
761 #define COLOR_GRAYTEXT 17
762 #define COLOR_BTNTEXT 18
763 #define COLOR_INACTIVECAPTIONTEXT 19
764 #define COLOR_BTNHIGHLIGHT 20
766 /* WM_CTLCOLOR values */
767 #define CTLCOLOR_MSGBOX 0
768 #define CTLCOLOR_EDIT 1
769 #define CTLCOLOR_LISTBOX 2
770 #define CTLCOLOR_BTN 3
771 #define CTLCOLOR_DLG 4
772 #define CTLCOLOR_SCROLLBAR 5
773 #define CTLCOLOR_STATIC 6
785 SEGPTR bmBits WINE_PACKED
;
786 } BITMAP16
, *LPBITMAP16
;
796 LPVOID bmBits WINE_PACKED
;
797 } BITMAP32
, *LPBITMAP32
;
799 DECL_WINELIB_TYPE(BITMAP
);
800 DECL_WINELIB_TYPE(LPBITMAP
);
807 COLORREF lbColor WINE_PACKED
;
809 } LOGBRUSH16
, *LPLOGBRUSH16
;
816 } LOGBRUSH32
, *LPLOGBRUSH32
;
818 DECL_WINELIB_TYPE(LOGBRUSH
);
819 DECL_WINELIB_TYPE(LPLOGBRUSH
);
828 #define BS_DIBPATTERN 5
831 #define HS_HORIZONTAL 0
832 #define HS_VERTICAL 1
833 #define HS_FDIAGONAL 2
834 #define HS_BDIAGONAL 3
836 #define HS_DIAGCROSS 5
840 #define LF_FACESIZE 32
841 #define LF_FULLFACESIZE 64
855 BYTE lfClipPrecision
;
857 BYTE lfPitchAndFamily
;
858 CHAR lfFaceName
[LF_FACESIZE
] WINE_PACKED
;
859 } LOGFONT16
, *LPLOGFONT16
;
873 BYTE lfClipPrecision
;
875 BYTE lfPitchAndFamily
;
876 CHAR lfFaceName
[LF_FACESIZE
];
877 } LOGFONT32A
, *LPLOGFONT32A
;
891 BYTE lfClipPrecision
;
893 BYTE lfPitchAndFamily
;
894 WCHAR lfFaceName
[LF_FACESIZE
];
895 } LOGFONT32W
, *LPLOGFONT32W
;
897 DECL_WINELIB_TYPE_AW(LOGFONT
);
898 DECL_WINELIB_TYPE_AW(LPLOGFONT
);
902 LOGFONT16 elfLogFont
;
903 BYTE elfFullName
[LF_FULLFACESIZE
] WINE_PACKED
;
904 BYTE elfStyle
[LF_FACESIZE
] WINE_PACKED
;
905 } ENUMLOGFONT16
, *LPENUMLOGFONT16
;
909 LOGFONT32A elfLogFont
;
910 BYTE elfFullName
[LF_FULLFACESIZE
] WINE_PACKED
;
911 BYTE elfStyle
[LF_FACESIZE
] WINE_PACKED
;
912 } ENUMLOGFONT32A
, *LPENUMLOGFONT32A
;
916 LOGFONT32W elfLogFont
;
917 WCHAR elfFullName
[LF_FULLFACESIZE
] WINE_PACKED
;
918 WCHAR elfStyle
[LF_FACESIZE
] WINE_PACKED
;
919 } ENUMLOGFONT32W
, *LPENUMLOGFONT32W
;
921 DECL_WINELIB_TYPE_AW(ENUMLOGFONT
);
922 DECL_WINELIB_TYPE_AW(LPENUMLOGFONT
);
924 /* lfWeight values */
925 #define FW_DONTCARE 0
927 #define FW_EXTRALIGHT 200
928 #define FW_ULTRALIGHT 200
930 #define FW_NORMAL 400
931 #define FW_REGULAR 400
932 #define FW_MEDIUM 500
933 #define FW_SEMIBOLD 600
934 #define FW_DEMIBOLD 600
936 #define FW_EXTRABOLD 800
937 #define FW_ULTRABOLD 800
941 /* lfCharSet values */
942 #define ANSI_CHARSET 0
943 #define DEFAULT_CHARSET 1
944 #define SYMBOL_CHARSET 2
945 #define SHIFTJIS_CHARSET 128
946 #define OEM_CHARSET 255
948 /* lfOutPrecision values */
949 #define OUT_DEFAULT_PRECIS 0
950 #define OUT_STRING_PRECIS 1
951 #define OUT_CHARACTER_PRECIS 2
952 #define OUT_STROKE_PRECIS 3
953 #define OUT_TT_PRECIS 4
954 #define OUT_DEVICE_PRECIS 5
955 #define OUT_RASTER_PRECIS 6
956 #define OUT_TT_ONLY_PRECIS 7
958 /* lfClipPrecision values */
959 #define CLIP_DEFAULT_PRECIS 0x00
960 #define CLIP_CHARACTER_PRECIS 0x01
961 #define CLIP_STROKE_PRECIS 0x02
962 #define CLIP_MASK 0x0F
963 #define CLIP_LH_ANGLES 0x10
964 #define CLIP_TT_ALWAYS 0x20
965 #define CLIP_EMBEDDED 0x80
967 /* lfQuality values */
968 #define DEFAULT_QUALITY 0
969 #define DRAFT_QUALITY 1
970 #define PROOF_QUALITY 2
972 /* lfPitchAndFamily pitch values */
973 #define DEFAULT_PITCH 0x00
974 #define FIXED_PITCH 0x01
975 #define VARIABLE_PITCH 0x02
976 #define FF_DONTCARE 0x00
977 #define FF_ROMAN 0x10
978 #define FF_SWISS 0x20
979 #define FF_MODERN 0x30
980 #define FF_SCRIPT 0x40
981 #define FF_DECORATIVE 0x50
988 INT16 tmInternalLeading
;
989 INT16 tmExternalLeading
;
990 INT16 tmAveCharWidth
;
991 INT16 tmMaxCharWidth
;
1000 BYTE tmPitchAndFamily
;
1002 INT16 tmOverhang WINE_PACKED
;
1003 INT16 tmDigitizedAspectX WINE_PACKED
;
1004 INT16 tmDigitizedAspectY WINE_PACKED
;
1005 } TEXTMETRIC16
, *LPTEXTMETRIC16
;
1012 INT32 tmInternalLeading
;
1013 INT32 tmExternalLeading
;
1014 INT32 tmAveCharWidth
;
1015 INT32 tmMaxCharWidth
;
1018 INT32 tmDigitizedAspectX
;
1019 INT32 tmDigitizedAspectY
;
1027 BYTE tmPitchAndFamily
;
1029 } TEXTMETRIC32A
, *LPTEXTMETRIC32A
;
1036 INT32 tmInternalLeading
;
1037 INT32 tmExternalLeading
;
1038 INT32 tmAveCharWidth
;
1039 INT32 tmMaxCharWidth
;
1042 INT32 tmDigitizedAspectX
;
1043 INT32 tmDigitizedAspectY
;
1046 WCHAR tmDefaultChar
;
1051 BYTE tmPitchAndFamily
;
1053 } TEXTMETRIC32W
, *LPTEXTMETRIC32W
;
1055 DECL_WINELIB_TYPE_AW(TEXTMETRIC
);
1056 DECL_WINELIB_TYPE_AW(LPTEXTMETRIC
);
1058 /* tmPitchAndFamily values */
1059 #define TMPF_FIXED_PITCH 1
1060 #define TMPF_VECTOR 2
1061 #define TMPF_TRUETYPE 4
1062 #define TMPF_DEVICE 8
1064 /* Text alignment */
1065 #define TA_NOUPDATECP 0x00
1066 #define TA_UPDATECP 0x01
1067 #define TA_LEFT 0x00
1068 #define TA_RIGHT 0x02
1069 #define TA_CENTER 0x06
1071 #define TA_BOTTOM 0x08
1072 #define TA_BASELINE 0x18
1074 /* ExtTextOut() parameters */
1075 #define ETO_GRAYED 0x01
1076 #define ETO_OPAQUE 0x02
1077 #define ETO_CLIPPED 0x04
1079 /* for GetCharABCWidths() */
1094 DECL_WINELIB_TYPE(ABC
);
1095 DECL_WINELIB_TYPE(LPABC
);
1097 /* Rasterizer status */
1103 } RASTERIZER_STATUS
, *LPRASTERIZER_STATUS
;
1105 #define TT_AVAILABLE 0x0001
1106 #define TT_ENABLED 0x0002
1108 /* Get/SetSystemPaletteUse() values */
1109 #define SYSPAL_STATIC 1
1110 #define SYSPAL_NOSTATIC 2
1112 typedef struct tagPALETTEENTRY
1114 BYTE peRed
, peGreen
, peBlue
, peFlags
;
1115 } PALETTEENTRY
, *LPPALETTEENTRY
;
1121 PALETTEENTRY palPalEntry
[1] WINE_PACKED
;
1122 } LOGPALETTE
, *LPLOGPALETTE
;
1129 POINT16 lopnWidth WINE_PACKED
;
1130 COLORREF lopnColor WINE_PACKED
;
1131 } LOGPEN16
, *LPLOGPEN16
;
1136 POINT32 lopnWidth WINE_PACKED
;
1137 COLORREF lopnColor WINE_PACKED
;
1138 } LOGPEN32
, *LPLOGPEN32
;
1140 DECL_WINELIB_TYPE(LOGPEN
);
1141 DECL_WINELIB_TYPE(LPLOGPEN
);
1146 #define PS_DASHDOT 3
1147 #define PS_DASHDOTDOT 4
1149 #define PS_INSIDEFRAME 6
1154 #define NULLREGION 1
1155 #define SIMPLEREGION 2
1156 #define COMPLEXREGION 3
1164 /* Device contexts */
1167 #define DCX_WINDOW 0x00000001
1168 #define DCX_CACHE 0x00000002
1169 #define DCX_CLIPCHILDREN 0x00000008
1170 #define DCX_CLIPSIBLINGS 0x00000010
1171 #define DCX_PARENTCLIP 0x00000020
1172 #define DCX_EXCLUDERGN 0x00000040
1173 #define DCX_INTERSECTRGN 0x00000080
1174 #define DCX_LOCKWINDOWUPDATE 0x00000400
1175 #define DCX_USESTYLE 0x00010000
1181 /* Background modes */
1182 #ifdef TRANSPARENT /*Apparently some broken svr4 includes define TRANSPARENT*/
1185 #define TRANSPARENT 1
1190 #define MM_LOMETRIC 2
1191 #define MM_HIMETRIC 3
1192 #define MM_LOENGLISH 4
1193 #define MM_HIENGLISH 5
1195 #define MM_ISOTROPIC 7
1196 #define MM_ANISOTROPIC 8
1198 /* Coordinate modes */
1202 /* Flood fill modes */
1203 #define FLOODFILLBORDER 0
1204 #define FLOODFILLSURFACE 1
1206 /* Device parameters for GetDeviceCaps() */
1207 #define DRIVERVERSION 0
1208 #define TECHNOLOGY 2
1213 #define BITSPIXEL 12
1215 #define NUMBRUSHES 16
1217 #define NUMMARKERS 20
1219 #define NUMCOLORS 24
1220 #define PDEVICESIZE 26
1221 #define CURVECAPS 28
1223 #define POLYGONALCAPS 32
1226 #define RASTERCAPS 38
1230 #define LOGPIXELSX 88
1231 #define LOGPIXELSY 90
1232 #define SIZEPALETTE 104
1233 #define NUMRESERVED 106
1234 #define COLORRES 108
1237 #define DT_PLOTTER 0
1238 #define DT_RASDISPLAY 1
1239 #define DT_RASPRINTER 2
1240 #define DT_RASCAMERA 3
1241 #define DT_CHARSTREAM 4
1242 #define DT_METAFILE 5
1243 #define DT_DISPFILE 6
1246 #define CC_NONE 0x0000
1247 #define CC_CIRCLES 0x0001
1248 #define CC_PIE 0x0002
1249 #define CC_CHORD 0x0004
1250 #define CC_ELLIPSES 0x0008
1251 #define CC_WIDE 0x0010
1252 #define CC_STYLED 0x0020
1253 #define CC_WIDESTYLED 0x0040
1254 #define CC_INTERIORS 0x0080
1255 #define CC_ROUNDRECT 0x0100
1258 #define LC_NONE 0x0000
1259 #define LC_POLYLINE 0x0002
1260 #define LC_MARKER 0x0004
1261 #define LC_POLYMARKER 0x0008
1262 #define LC_WIDE 0x0010
1263 #define LC_STYLED 0x0020
1264 #define LC_WIDESTYLED 0x0040
1265 #define LC_INTERIORS 0x0080
1268 #define PC_NONE 0x0000
1269 #define PC_POLYGON 0x0001
1270 #define PC_RECTANGLE 0x0002
1271 #define PC_WINDPOLYGON 0x0004
1272 #define PC_SCANLINE 0x0008
1273 #define PC_WIDE 0x0010
1274 #define PC_STYLED 0x0020
1275 #define PC_WIDESTYLED 0x0040
1276 #define PC_INTERIORS 0x0080
1279 #define TC_OP_CHARACTER 0x0001
1280 #define TC_OP_STROKE 0x0002
1281 #define TC_CP_STROKE 0x0004
1282 #define TC_CR_90 0x0008
1283 #define TC_CR_ANY 0x0010
1284 #define TC_SF_X_YINDEP 0x0020
1285 #define TC_SA_DOUBLE 0x0040
1286 #define TC_SA_INTEGER 0x0080
1287 #define TC_SA_CONTIN 0x0100
1288 #define TC_EA_DOUBLE 0x0200
1289 #define TC_IA_ABLE 0x0400
1290 #define TC_UA_ABLE 0x0800
1291 #define TC_SO_ABLE 0x1000
1292 #define TC_RA_ABLE 0x2000
1293 #define TC_VA_ABLE 0x4000
1294 #define TC_RESERVED 0x8000
1297 #define CP_NONE 0x0000
1298 #define CP_RECTANGLE 0x0001
1299 #define CP_REGION 0x0002
1302 #define RC_NONE 0x0000
1303 #define RC_BITBLT 0x0001
1304 #define RC_BANDING 0x0002
1305 #define RC_SCALING 0x0004
1306 #define RC_BITMAP64 0x0008
1307 #define RC_GDI20_OUTPUT 0x0010
1308 #define RC_GDI20_STATE 0x0020
1309 #define RC_SAVEBITMAP 0x0040
1310 #define RC_DI_BITMAP 0x0080
1311 #define RC_PALETTE 0x0100
1312 #define RC_DIBTODEV 0x0200
1313 #define RC_BIGFONT 0x0400
1314 #define RC_STRETCHBLT 0x0800
1315 #define RC_FLOODFILL 0x1000
1316 #define RC_STRETCHDIB 0x2000
1317 #define RC_OP_DX_OUTPUT 0x4000
1318 #define RC_DEVBITS 0x8000
1320 /* GetSystemMetrics() codes */
1321 #define SM_CXSCREEN 0
1322 #define SM_CYSCREEN 1
1323 #define SM_CXVSCROLL 2
1324 #define SM_CYHSCROLL 3
1325 #define SM_CYCAPTION 4
1326 #define SM_CXBORDER 5
1327 #define SM_CYBORDER 6
1328 #define SM_CXDLGFRAME 7
1329 #define SM_CYDLGFRAME 8
1330 #define SM_CYVTHUMB 9
1331 #define SM_CXHTHUMB 10
1332 #define SM_CXICON 11
1333 #define SM_CYICON 12
1334 #define SM_CXCURSOR 13
1335 #define SM_CYCURSOR 14
1336 #define SM_CYMENU 15
1337 #define SM_CXFULLSCREEN 16
1338 #define SM_CYFULLSCREEN 17
1339 #define SM_CYKANJIWINDOW 18
1340 #define SM_MOUSEPRESENT 19
1341 #define SM_CYVSCROLL 20
1342 #define SM_CXHSCROLL 21
1344 #define SM_SWAPBUTTON 23
1345 #define SM_RESERVED1 24
1346 #define SM_RESERVED2 25
1347 #define SM_RESERVED3 26
1348 #define SM_RESERVED4 27
1351 #define SM_CXSIZE 30
1352 #define SM_CYSIZE 31
1353 #define SM_CXFRAME 32
1354 #define SM_CYFRAME 33
1355 #define SM_CXMINTRACK 34
1356 #define SM_CYMINTRACK 35
1357 #define SM_CXDOUBLECLK 36
1358 #define SM_CYDOUBLECLK 37
1359 #define SM_CXICONSPACING 38
1360 #define SM_CYICONSPACING 39
1361 #define SM_MENUDROPALIGNMENT 40
1362 #define SM_PENWINDOWS 41
1363 #define SM_DBCSENABLED 42
1365 #define SM_CMETRICS 43
1367 /* Device-independent bitmaps */
1369 typedef struct { BYTE rgbBlue
, rgbGreen
, rgbRed
, rgbReserved
; } RGBQUAD
;
1370 typedef struct { BYTE rgbtBlue
, rgbtGreen
, rgbtRed
; } RGBTRIPLE
;
1375 DWORD bfSize WINE_PACKED
;
1376 UINT16 bfReserved1 WINE_PACKED
;
1377 UINT16 bfReserved2 WINE_PACKED
;
1378 DWORD bfOffBits WINE_PACKED
;
1388 DWORD biCompression
;
1390 DWORD biXPelsPerMeter
;
1391 DWORD biYPelsPerMeter
;
1393 DWORD biClrImportant
;
1394 } BITMAPINFOHEADER
, *LPBITMAPINFOHEADER
;
1402 BITMAPINFOHEADER bmiHeader
;
1403 RGBQUAD bmiColors
[1];
1405 typedef BITMAPINFO
*LPBITMAPINFO
;
1406 typedef BITMAPINFO
*NPBITMAPINFO
;
1407 typedef BITMAPINFO
*PBITMAPINFO
;
1420 BITMAPCOREHEADER bmciHeader
;
1421 RGBTRIPLE bmciColors
[1];
1422 } BITMAPCOREINFO
, *LPBITMAPCOREINFO
;
1424 #define DIB_RGB_COLORS 0
1425 #define DIB_PAL_COLORS 1
1429 /* Cursors / Icons */
1444 BYTE i
; /* much more .... */
1446 typedef KANJISTRUCT
*LPKANJISTRUCT
;
1447 typedef KANJISTRUCT
*NPKANJISTRUCT
;
1448 typedef KANJISTRUCT
*PKANJISTRUCT
;
1456 BYTE szPathName
[128];
1458 typedef OFSTRUCT
*LPOFSTRUCT
;
1460 #define OF_READ 0x0000
1461 #define OF_WRITE 0x0001
1462 #define OF_READWRITE 0x0002
1463 #define OF_SHARE_COMPAT 0x0000
1464 #define OF_SHARE_EXCLUSIVE 0x0010
1465 #define OF_SHARE_DENY_WRITE 0x0020
1466 #define OF_SHARE_DENY_READ 0x0030
1467 #define OF_SHARE_DENY_NONE 0x0040
1468 #define OF_PARSE 0x0100
1469 #define OF_DELETE 0x0200
1470 #define OF_VERIFY 0x0400 /* Used with OF_REOPEN */
1471 #define OF_SEARCH 0x0400 /* Used without OF_REOPEN */
1472 #define OF_CANCEL 0x0800
1473 #define OF_CREATE 0x1000
1474 #define OF_PROMPT 0x2000
1475 #define OF_EXIST 0x4000
1476 #define OF_REOPEN 0x8000
1478 /* GetTempFileName() Flags */
1479 #define TF_FORCEDRIVE 0x80
1481 #define DRIVE_CANNOTDETERMINE 0
1482 #define DRIVE_DOESNOTEXIST 1
1483 #define DRIVE_REMOVABLE 2
1484 #define DRIVE_FIXED 3
1485 #define DRIVE_REMOTE 4
1487 #define HFILE_ERROR -1
1489 #define DDL_READWRITE 0x0000
1490 #define DDL_READONLY 0x0001
1491 #define DDL_HIDDEN 0x0002
1492 #define DDL_SYSTEM 0x0004
1493 #define DDL_DIRECTORY 0x0010
1494 #define DDL_ARCHIVE 0x0020
1496 #define DDL_POSTMSGS 0x2000
1497 #define DDL_DRIVES 0x4000
1498 #define DDL_EXCLUSIVE 0x8000
1500 /* The security attributes structure
1505 LPVOID lpSecurityDescriptor
;
1506 BOOL32 bInheritHandle
;
1507 } SECURITY_ATTRIBUTES
, *LPSECURITY_ATTRIBUTES
;
1511 INT32 dwLowDateTime
;
1512 INT32 dwHighDateTime
;
1517 #define CBR_110 0xFF10
1518 #define CBR_300 0xFF11
1519 #define CBR_600 0xFF12
1520 #define CBR_1200 0xFF13
1521 #define CBR_2400 0xFF14
1522 #define CBR_4800 0xFF15
1523 #define CBR_9600 0xFF16
1524 #define CBR_14400 0xFF17
1525 #define CBR_19200 0xFF18
1526 #define CBR_38400 0xFF1B
1527 #define CBR_56000 0xFF1F
1528 #define CBR_128000 0xFF23
1529 #define CBR_256000 0xFF27
1533 #define EVENPARITY 2
1534 #define MARKPARITY 3
1535 #define SPACEPARITY 4
1536 #define ONESTOPBIT 0
1537 #define ONE5STOPBITS 1
1538 #define TWOSTOPBITS 2
1541 #define INFINITE 0xFFFFFFFF
1543 #define INFINITE 0xFFFF
1546 #define CE_RXOVER 0x0001
1547 #define CE_OVERRUN 0x0002
1548 #define CE_RXPARITY 0x0004
1549 #define CE_FRAME 0x0008
1550 #define CE_BREAK 0x0010
1551 #define CE_CTSTO 0x0020
1552 #define CE_DSRTO 0x0040
1553 #define CE_RLSDTO 0x0080
1554 #define CE_TXFULL 0x0100
1555 #define CE_PTO 0x0200
1556 #define CE_IOE 0x0400
1557 #define CE_DNS 0x0800
1558 #define CE_OOP 0x1000
1559 #define CE_MODE 0x8000
1564 #define IE_MEMORY -4
1565 #define IE_DEFAULT -5
1566 #define IE_HARDWARE -10
1567 #define IE_BYTESIZE -11
1568 #define IE_BAUDRATE -12
1570 #define EV_RXCHAR 0x0001
1571 #define EV_RXFLAG 0x0002
1572 #define EV_TXEMPTY 0x0004
1573 #define EV_CTS 0x0008
1574 #define EV_DSR 0x0010
1575 #define EV_RLSD 0x0020
1576 #define EV_BREAK 0x0040
1577 #define EV_ERR 0x0080
1578 #define EV_RING 0x0100
1579 #define EV_PERR 0x0200
1580 #define EV_CTSS 0x0400
1581 #define EV_DSRS 0x0800
1582 #define EV_RLSDS 0x1000
1583 #define EV_RINGTE 0x2000
1584 #define EV_RingTe EV_RINGTE
1595 #define GETBASEIRQ 10
1597 #define CN_RECEIVE 0x0001
1598 #define CN_TRANSMIT 0x0002
1599 #define CN_EVENT 0x0004
1601 typedef struct tagDCB
1604 UINT16 BaudRate WINE_PACKED
;
1613 UINT16 fRtsDisable
:1;
1615 UINT16 fOutxCtsFlow
:1;
1616 UINT16 fOutxDsrFlow
:1;
1618 UINT16 fDtrDisable
:1;
1636 UINT16 TxDelay WINE_PACKED
;
1639 typedef struct tagCOMSTAT
1642 UINT16 cbInQue WINE_PACKED
;
1643 UINT16 cbOutQue WINE_PACKED
;
1646 #define CSTF_CTSHOLD 0x01
1647 #define CSTF_DSRHOLD 0x02
1648 #define CSTF_RLSDHOLD 0x04
1649 #define CSTF_XOFFHOLD 0x08
1650 #define CSTF_XOFFSENT 0x10
1651 #define CSTF_EOF 0x20
1652 #define CSTF_TXIM 0x40
1654 /* SystemParametersInfo */
1656 #define SPI_GETBEEP 1
1657 #define SPI_SETBEEP 2
1658 #define SPI_GETMOUSE 3
1659 #define SPI_SETMOUSE 4
1660 #define SPI_GETBORDER 5
1661 #define SPI_SETBORDER 6
1662 #define SPI_GETKEYBOARDSPEED 10
1663 #define SPI_SETKEYBOARDSPEED 11
1664 #define SPI_LANGDRIVER 12
1665 #define SPI_ICONHORIZONTALSPACING 13
1666 #define SPI_GETSCREENSAVETIMEOUT 14
1667 #define SPI_SETSCREENSAVETIMEOUT 15
1668 #define SPI_GETSCREENSAVEACTIVE 16
1669 #define SPI_SETSCREENSAVEACTIVE 17
1670 #define SPI_GETGRIDGRANULARITY 18
1671 #define SPI_SETGRIDGRANULARITY 19
1672 #define SPI_SETDESKWALLPAPER 20
1673 #define SPI_SETDESKPATTERN 21
1674 #define SPI_GETKEYBOARDDELAY 22
1675 #define SPI_SETKEYBOARDDELAY 23
1676 #define SPI_ICONVERTICALSPACING 24
1677 #define SPI_GETICONTITLEWRAP 25
1678 #define SPI_SETICONTITLEWRAP 26
1679 #define SPI_GETMENUDROPALIGNMENT 27
1680 #define SPI_SETMENUDROPALIGNMENT 28
1681 #define SPI_SETDOUBLECLKWIDTH 29
1682 #define SPI_SETDOUBLECLKHEIGHT 30
1683 #define SPI_GETICONTITLELOGFONT 31
1684 #define SPI_SETDOUBLECLICKTIME 32
1685 #define SPI_SETMOUSEBUTTONSWAP 33
1686 #define SPI_SETICONTITLELOGFONT 34
1687 #define SPI_GETFASTTASKSWITCH 35
1688 #define SPI_SETFASTTASKSWITCH 36
1690 /* SystemParametersInfo flags */
1692 #define SPIF_UPDATEINIFILE 1
1693 #define SPIF_SENDWININICHANGE 2
1695 /* GetFreeSystemResources() parameters */
1697 #define GFSR_SYSTEMRESOURCES 0x0000
1698 #define GFSR_GDIRESOURCES 0x0001
1699 #define GFSR_USERRESOURCES 0x0002
1703 #define WF_PMODE 0x0001
1704 #define WF_CPU286 0x0002
1705 #define WF_CPU386 0x0004
1706 #define WF_CPU486 0x0008
1707 #define WF_STANDARD 0x0010
1708 #define WF_WIN286 0x0010
1709 #define WF_ENHANCED 0x0020
1710 #define WF_WIN386 0x0020
1711 #define WF_CPU086 0x0040
1712 #define WF_CPU186 0x0080
1713 #define WF_LARGEFRAME 0x0100
1714 #define WF_SMALLFRAME 0x0200
1715 #define WF_80x87 0x0400
1716 #define WF_PAGING 0x0800
1717 #define WF_WLO 0x8000
1719 #define MAKEINTRESOURCE(i) (SEGPTR)((DWORD)((WORD)(i)))
1721 /* Predefined resource types */
1722 #define RT_CURSOR MAKEINTRESOURCE(1)
1723 #define RT_BITMAP MAKEINTRESOURCE(2)
1724 #define RT_ICON MAKEINTRESOURCE(3)
1725 #define RT_MENU MAKEINTRESOURCE(4)
1726 #define RT_DIALOG MAKEINTRESOURCE(5)
1727 #define RT_STRING MAKEINTRESOURCE(6)
1728 #define RT_FONTDIR MAKEINTRESOURCE(7)
1729 #define RT_FONT MAKEINTRESOURCE(8)
1730 #define RT_ACCELERATOR MAKEINTRESOURCE(9)
1731 #define RT_RCDATA MAKEINTRESOURCE(10)
1732 #define RT_GROUP_CURSOR MAKEINTRESOURCE(12)
1733 #define RT_GROUP_ICON MAKEINTRESOURCE(14)
1735 /* Predefined resources */
1736 #define IDI_APPLICATION MAKEINTRESOURCE(32512)
1737 #define IDI_HAND MAKEINTRESOURCE(32513)
1738 #define IDI_QUESTION MAKEINTRESOURCE(32514)
1739 #define IDI_EXCLAMATION MAKEINTRESOURCE(32515)
1740 #define IDI_ASTERISK MAKEINTRESOURCE(32516)
1742 #define IDC_BUMMER MAKEINTRESOURCE(100)
1743 #define IDC_ARROW MAKEINTRESOURCE(32512)
1744 #define IDC_IBEAM MAKEINTRESOURCE(32513)
1745 #define IDC_WAIT MAKEINTRESOURCE(32514)
1746 #define IDC_CROSS MAKEINTRESOURCE(32515)
1747 #define IDC_UPARROW MAKEINTRESOURCE(32516)
1748 #define IDC_SIZE MAKEINTRESOURCE(32640)
1749 #define IDC_ICON MAKEINTRESOURCE(32641)
1750 #define IDC_SIZENWSE MAKEINTRESOURCE(32642)
1751 #define IDC_SIZENESW MAKEINTRESOURCE(32643)
1752 #define IDC_SIZEWE MAKEINTRESOURCE(32644)
1753 #define IDC_SIZENS MAKEINTRESOURCE(32645)
1755 /* OEM Resource Ordinal Numbers */
1756 #define OBM_CLOSE 32754
1757 #define OBM_UPARROW 32753
1758 #define OBM_DNARROW 32752
1759 #define OBM_RGARROW 32751
1760 #define OBM_LFARROW 32750
1761 #define OBM_REDUCE 32749
1762 #define OBM_ZOOM 32748
1763 #define OBM_RESTORE 32747
1764 #define OBM_REDUCED 32746
1765 #define OBM_ZOOMD 32745
1766 #define OBM_RESTORED 32744
1767 #define OBM_UPARROWD 32743
1768 #define OBM_DNARROWD 32742
1769 #define OBM_RGARROWD 32741
1770 #define OBM_LFARROWD 32740
1771 #define OBM_MNARROW 32739
1772 #define OBM_COMBO 32738
1773 #define OBM_UPARROWI 32737
1774 #define OBM_DNARROWI 32736
1775 #define OBM_RGARROWI 32735
1776 #define OBM_LFARROWI 32734
1778 #define OBM_FOLDER 32733
1779 #define OBM_FOLDER2 32732
1780 #define OBM_FLOPPY 32731
1781 #define OBM_HDISK 32730
1782 #define OBM_CDROM 32729
1783 #define OBM_TRTYPE 32728
1785 #define OBM_OLD_CLOSE 32767
1786 #define OBM_SIZE 32766
1787 #define OBM_OLD_UPARROW 32765
1788 #define OBM_OLD_DNARROW 32764
1789 #define OBM_OLD_RGARROW 32763
1790 #define OBM_OLD_LFARROW 32762
1791 #define OBM_BTSIZE 32761
1792 #define OBM_CHECK 32760
1793 #define OBM_CHECKBOXES 32759
1794 #define OBM_BTNCORNERS 32758
1795 #define OBM_OLD_REDUCE 32757
1796 #define OBM_OLD_ZOOM 32756
1797 #define OBM_OLD_RESTORE 32755
1799 #define OCR_BUMMER 100
1800 #define OCR_DRAGOBJECT 101
1802 #define OCR_NORMAL 32512
1803 #define OCR_IBEAM 32513
1804 #define OCR_WAIT 32514
1805 #define OCR_CROSS 32515
1806 #define OCR_UP 32516
1807 #define OCR_SIZE 32640
1808 #define OCR_ICON 32641
1809 #define OCR_SIZENWSE 32642
1810 #define OCR_SIZENESW 32643
1811 #define OCR_SIZEWE 32644
1812 #define OCR_SIZENS 32645
1813 #define OCR_SIZEALL 32646
1814 #define OCR_ICOCUR 32647
1816 #define OIC_SAMPLE 32512
1817 #define OIC_HAND 32513
1818 #define OIC_QUES 32514
1819 #define OIC_BANG 32515
1820 #define OIC_NOTE 32516
1821 #define OIC_PORTRAIT 32517
1822 #define OIC_LANDSCAPE 32518
1823 #define OIC_WINEICON 32519
1825 /* Stock GDI objects for GetStockObject() */
1827 #define WHITE_BRUSH 0
1828 #define LTGRAY_BRUSH 1
1829 #define GRAY_BRUSH 2
1830 #define DKGRAY_BRUSH 3
1831 #define BLACK_BRUSH 4
1832 #define NULL_BRUSH 5
1833 #define HOLLOW_BRUSH 5
1837 #define OEM_FIXED_FONT 10
1838 #define ANSI_FIXED_FONT 11
1839 #define ANSI_VAR_FONT 12
1840 #define SYSTEM_FONT 13
1841 #define DEVICE_DEFAULT_FONT 14
1842 #define DEFAULT_PALETTE 15
1843 #define SYSTEM_FIXED_FONT 16
1845 /* DragObject stuff */
1854 POINT16 pt WINE_PACKED
;
1856 } DRAGINFO
, *LPDRAGINFO
;
1858 #define DRAGOBJ_PROGRAM 0x0001
1859 #define DRAGOBJ_DATA 0x0002
1860 #define DRAGOBJ_DIRECTORY 0x0004
1861 #define DRAGOBJ_MULTIPLE 0x0008
1862 #define DRAGOBJ_EXTERNAL 0x8000
1864 #define DRAG_PRINT 0x544E5250
1865 #define DRAG_FILE 0x454C4946
1869 #define WM_NULL 0x0000
1870 #define WM_CREATE 0x0001
1871 #define WM_DESTROY 0x0002
1872 #define WM_MOVE 0x0003
1873 #define WM_SIZEWAIT 0x0004
1874 #define WM_SIZE 0x0005
1875 #define WM_ACTIVATE 0x0006
1876 #define WM_SETFOCUS 0x0007
1877 #define WM_KILLFOCUS 0x0008
1878 #define WM_SETVISIBLE 0x0009
1879 #define WM_ENABLE 0x000a
1880 #define WM_SETREDRAW 0x000b
1881 #define WM_SETTEXT 0x000c
1882 #define WM_GETTEXT 0x000d
1883 #define WM_GETTEXTLENGTH 0x000e
1884 #define WM_PAINT 0x000f
1885 #define WM_CLOSE 0x0010
1886 #define WM_QUERYENDSESSION 0x0011
1887 #define WM_QUIT 0x0012
1888 #define WM_QUERYOPEN 0x0013
1889 #define WM_ERASEBKGND 0x0014
1890 #define WM_SYSCOLORCHANGE 0x0015
1891 #define WM_ENDSESSION 0x0016
1892 #define WM_SYSTEMERROR 0x0017
1893 #define WM_SHOWWINDOW 0x0018
1894 #define WM_CTLCOLOR 0x0019
1895 #define WM_WININICHANGE 0x001a
1896 #define WM_DEVMODECHANGE 0x001b
1897 #define WM_ACTIVATEAPP 0x001c
1898 #define WM_FONTCHANGE 0x001d
1899 #define WM_TIMECHANGE 0x001e
1900 #define WM_CANCELMODE 0x001f
1901 #define WM_SETCURSOR 0x0020
1902 #define WM_MOUSEACTIVATE 0x0021
1903 #define WM_CHILDACTIVATE 0x0022
1904 #define WM_QUEUESYNC 0x0023
1905 #define WM_GETMINMAXINFO 0x0024
1907 #define WM_PAINTICON 0x0026
1908 #define WM_ICONERASEBKGND 0x0027
1909 #define WM_NEXTDLGCTL 0x0028
1910 #define WM_ALTTABACTIVE 0x0029
1911 #define WM_SPOOLERSTATUS 0x002a
1912 #define WM_DRAWITEM 0x002b
1913 #define WM_MEASUREITEM 0x002c
1914 #define WM_DELETEITEM 0x002d
1915 #define WM_VKEYTOITEM 0x002e
1916 #define WM_CHARTOITEM 0x002f
1917 #define WM_SETFONT 0x0030
1918 #define WM_GETFONT 0x0031
1919 #define WM_SETHOTKEY 0x0032
1920 #define WM_GETHOTKEY 0x0033
1921 #define WM_FILESYSCHANGE 0x0034
1922 #define WM_ISACTIVEICON 0x0035
1923 #define WM_QUERYPARKICON 0x0036
1924 #define WM_QUERYDRAGICON 0x0037
1925 #define WM_QUERYSAVESTATE 0x0038
1926 #define WM_COMPAREITEM 0x0039
1927 #define WM_TESTING 0x003a
1929 #define WM_OTHERWINDOWCREATED 0x003c
1930 #define WM_OTHERWINDOWDESTROYED 0x003d
1931 #define WM_ACTIVATESHELLWINDOW 0x003e
1933 #define WM_COMPACTING 0x0041
1935 #define WM_COMMNOTIFY 0x0044
1936 #define WM_WINDOWPOSCHANGING 0x0046
1937 #define WM_WINDOWPOSCHANGED 0x0047
1938 #define WM_POWER 0x0048
1940 #define WM_NCCREATE 0x0081
1941 #define WM_NCDESTROY 0x0082
1942 #define WM_NCCALCSIZE 0x0083
1943 #define WM_NCHITTEST 0x0084
1944 #define WM_NCPAINT 0x0085
1945 #define WM_NCACTIVATE 0x0086
1947 #define WM_GETDLGCODE 0x0087
1948 #define WM_SYNCPAINT 0x0088
1949 #define WM_SYNCTASK 0x0089
1951 /* Non-client mouse messages */
1952 #define WM_NCMOUSEMOVE 0x00a0
1953 #define WM_NCLBUTTONDOWN 0x00a1
1954 #define WM_NCLBUTTONUP 0x00a2
1955 #define WM_NCLBUTTONDBLCLK 0x00a3
1956 #define WM_NCRBUTTONDOWN 0x00a4
1957 #define WM_NCRBUTTONUP 0x00a5
1958 #define WM_NCRBUTTONDBLCLK 0x00a6
1959 #define WM_NCMBUTTONDOWN 0x00a7
1960 #define WM_NCMBUTTONUP 0x00a8
1961 #define WM_NCMBUTTONDBLCLK 0x00a9
1963 /* Keyboard messages */
1964 #define WM_KEYDOWN 0x0100
1965 #define WM_KEYUP 0x0101
1966 #define WM_CHAR 0x0102
1967 #define WM_DEADCHAR 0x0103
1968 #define WM_SYSKEYDOWN 0x0104
1969 #define WM_SYSKEYUP 0x0105
1970 #define WM_SYSCHAR 0x0106
1971 #define WM_SYSDEADCHAR 0x0107
1972 #define WM_KEYFIRST WM_KEYDOWN
1973 #define WM_KEYLAST 0x0108
1975 #define WM_INITDIALOG 0x0110
1976 #define WM_COMMAND 0x0111
1977 #define WM_SYSCOMMAND 0x0112
1978 #define WM_TIMER 0x0113
1979 #define WM_SYSTIMER 0x0118
1981 /* scroll messages */
1982 #define WM_HSCROLL 0x0114
1983 #define WM_VSCROLL 0x0115
1986 #define WM_INITMENU 0x0116
1987 #define WM_INITMENUPOPUP 0x0117
1989 #define WM_MENUSELECT 0x011F
1990 #define WM_MENUCHAR 0x0120
1991 #define WM_ENTERIDLE 0x0121
1993 #define WM_LBTRACKPOINT 0x0131
1995 /* Win32 CTLCOLOR messages */
1996 #define WM_CTLCOLORMSGBOX 0x0132
1997 #define WM_CTLCOLOREDIT 0x0133
1998 #define WM_CTLCOLORLISTBOX 0x0134
1999 #define WM_CTLCOLORBTN 0x0135
2000 #define WM_CTLCOLORDLG 0x0136
2001 #define WM_CTLCOLORSCROLLBAR 0x0137
2002 #define WM_CTLCOLORSTATIC 0x0138
2004 /* Mouse messages */
2005 #define WM_MOUSEMOVE 0x0200
2006 #define WM_LBUTTONDOWN 0x0201
2007 #define WM_LBUTTONUP 0x0202
2008 #define WM_LBUTTONDBLCLK 0x0203
2009 #define WM_RBUTTONDOWN 0x0204
2010 #define WM_RBUTTONUP 0x0205
2011 #define WM_RBUTTONDBLCLK 0x0206
2012 #define WM_MBUTTONDOWN 0x0207
2013 #define WM_MBUTTONUP 0x0208
2014 #define WM_MBUTTONDBLCLK 0x0209
2015 #define WM_MOUSEFIRST WM_MOUSEMOVE
2016 #define WM_MOUSELAST WM_MBUTTONDBLCLK
2018 #define WM_PARENTNOTIFY 0x0210
2019 #define WM_ENTERMENULOOP 0x0211
2020 #define WM_EXITMENULOOP 0x0212
2021 #define WM_NEXTMENU 0x0213
2023 #define WM_MDICREATE 0x0220
2024 #define WM_MDIDESTROY 0x0221
2025 #define WM_MDIACTIVATE 0x0222
2026 #define WM_MDIRESTORE 0x0223
2027 #define WM_MDINEXT 0x0224
2028 #define WM_MDIMAXIMIZE 0x0225
2029 #define WM_MDITILE 0x0226
2030 #define WM_MDICASCADE 0x0227
2031 #define WM_MDIICONARRANGE 0x0228
2032 #define WM_MDIGETACTIVE 0x0229
2033 #define WM_DROPOBJECT 0x022A
2034 #define WM_QUERYDROPOBJECT 0x022B
2035 #define WM_BEGINDRAG 0x022C
2036 #define WM_DRAGLOOP 0x022D
2037 #define WM_DRAGSELECT 0x022E
2038 #define WM_DRAGMOVE 0x022F
2039 #define WM_MDISETMENU 0x0230
2041 #define WM_ENTERSIZEMOVE 0x0231
2042 #define WM_EXITSIZEMOVE 0x0232
2043 #define WM_DROPFILES 0x0233
2045 #define WM_CUT 0x0300
2046 #define WM_COPY 0x0301
2047 #define WM_PASTE 0x0302
2048 #define WM_CLEAR 0x0303
2049 #define WM_UNDO 0x0304
2050 #define WM_RENDERFORMAT 0x0305
2051 #define WM_RENDERALLFORMATS 0x0306
2052 #define WM_DESTROYCLIPBOARD 0x0307
2053 #define WM_DRAWCLIPBOARD 0x0308
2054 #define WM_PAINTCLIPBOARD 0x0309
2055 #define WM_VSCROLLCLIPBOARD 0x030A
2056 #define WM_SIZECLIPBOARD 0x030B
2057 #define WM_ASKCBFORMATNAME 0x030C
2058 #define WM_CHANGECBCHAIN 0x030D
2059 #define WM_HSCROLLCLIPBOARD 0x030E
2060 #define WM_QUERYNEWPALETTE 0x030F
2061 #define WM_PALETTEISCHANGING 0x0310
2062 #define WM_PALETTECHANGED 0x0311
2064 #define WM_COALESCE_FIRST 0x0390
2065 #define WM_COALESCE_LAST 0x039F
2068 #define WM_NULL 0x0000
2069 #define WM_USER 0x0400
2070 #define WM_CPL_LAUNCH (WM_USER + 1000)
2071 #define WM_CPL_LAUNCHED (WM_USER + 1001)
2073 /* Key status flags for mouse events */
2074 #define MK_LBUTTON 0x0001
2075 #define MK_RBUTTON 0x0002
2076 #define MK_SHIFT 0x0004
2077 #define MK_CONTROL 0x0008
2078 #define MK_MBUTTON 0x0010
2080 /* Mouse_Event flags */
2081 #define ME_MOVE 0x01
2082 #define ME_LDOWN 0x02
2084 #define ME_RDOWN 0x08
2087 /* Queue status flags */
2088 #define QS_KEY 0x0001
2089 #define QS_MOUSEMOVE 0x0002
2090 #define QS_MOUSEBUTTON 0x0004
2091 #define QS_MOUSE (QS_MOUSEMOVE | QS_MOUSEBUTTON)
2092 #define QS_POSTMESSAGE 0x0008
2093 #define QS_TIMER 0x0010
2094 #define QS_PAINT 0x0020
2095 #define QS_SENDMESSAGE 0x0040
2096 #define QS_ALLINPUT 0x007f
2098 /* PeekMessage() options */
2099 #define PM_NOREMOVE 0x0000
2100 #define PM_REMOVE 0x0001
2101 #define PM_NOYIELD 0x0002
2103 #define WM_SHOWWINDOW 0x0018
2105 /* WM_SHOWWINDOW wParam codes */
2106 #define SW_PARENTCLOSING 1
2107 #define SW_OTHERMAXIMIZED 2
2108 #define SW_PARENTOPENING 3
2109 #define SW_OTHERRESTORED 4
2111 /* ShowWindow() codes */
2113 #define SW_SHOWNORMAL 1
2115 #define SW_SHOWMINIMIZED 2
2116 #define SW_SHOWMAXIMIZED 3
2117 #define SW_MAXIMIZE 3
2118 #define SW_SHOWNOACTIVATE 4
2120 #define SW_MINIMIZE 6
2121 #define SW_SHOWMINNOACTIVE 7
2123 #define SW_RESTORE 9
2124 #define SW_SHOWDEFAULT 10
2126 #define SW_NORMALNA 0xCC /* undoc. flag in MinMaximize */
2128 /* WM_SIZE message wParam values */
2129 #define SIZE_RESTORED 0
2130 #define SIZE_MINIMIZED 1
2131 #define SIZE_MAXIMIZED 2
2132 #define SIZE_MAXSHOW 3
2133 #define SIZE_MAXHIDE 4
2134 #define SIZENORMAL SIZE_RESTORED
2135 #define SIZEICONIC SIZE_MINIMIZED
2136 #define SIZEFULLSCREEN SIZE_MAXIMIZED
2137 #define SIZEZOOMSHOW SIZE_MAXSHOW
2138 #define SIZEZOOMHIDE SIZE_MAXHIDE
2140 /* SetWindowPos() and WINDOWPOS flags */
2141 #define SWP_NOSIZE 0x0001
2142 #define SWP_NOMOVE 0x0002
2143 #define SWP_NOZORDER 0x0004
2144 #define SWP_NOREDRAW 0x0008
2145 #define SWP_NOACTIVATE 0x0010
2146 #define SWP_FRAMECHANGED 0x0020 /* The frame changed: send WM_NCCALCSIZE */
2147 #define SWP_SHOWWINDOW 0x0040
2148 #define SWP_HIDEWINDOW 0x0080
2149 #define SWP_NOCOPYBITS 0x0100
2150 #define SWP_NOOWNERZORDER 0x0200 /* Don't do owner Z ordering */
2152 #define SWP_DRAWFRAME SWP_FRAMECHANGED
2153 #define SWP_NOREPOSITION SWP_NOOWNERZORDER
2155 #define SWP_NOSENDCHANGING 0x0400
2156 #define SWP_DEFERERASE 0x2000
2158 /* SetWindowPos() hwndInsertAfter field values */
2159 #define HWND_TOP ((HWND)0)
2160 #define HWND_BOTTOM ((HWND)1)
2161 #define HWND_TOPMOST ((HWND)-1)
2162 #define HWND_NOTOPMOST ((HWND)-2)
2164 /* Flags for TrackPopupMenu */
2165 #define TPM_LEFTBUTTON 0x0000
2166 #define TPM_RIGHTBUTTON 0x0002
2167 #define TPM_LEFTALIGN 0x0000
2168 #define TPM_CENTERALIGN 0x0004
2169 #define TPM_RIGHTALIGN 0x0008
2171 #define MF_INSERT 0x0000
2172 #define MF_CHANGE 0x0080
2173 #define MF_APPEND 0x0100
2174 #define MF_DELETE 0x0200
2175 #define MF_REMOVE 0x1000
2176 #define MF_END 0x0080
2178 #define MF_ENABLED 0x0000
2179 #define MF_GRAYED 0x0001
2180 #define MF_DISABLED 0x0002
2181 #define MF_STRING 0x0000
2182 #define MF_BITMAP 0x0004
2183 #define MF_UNCHECKED 0x0000
2184 #define MF_CHECKED 0x0008
2185 #define MF_POPUP 0x0010
2186 #define MF_MENUBARBREAK 0x0020
2187 #define MF_MENUBREAK 0x0040
2188 #define MF_UNHILITE 0x0000
2189 #define MF_HILITE 0x0080
2190 #define MF_OWNERDRAW 0x0100
2191 #define MF_USECHECKBITMAPS 0x0200
2192 #define MF_BYCOMMAND 0x0000
2193 #define MF_BYPOSITION 0x0400
2194 #define MF_SEPARATOR 0x0800
2195 #define MF_SYSMENU 0x2000
2196 #define MF_HELP 0x4000
2197 #define MF_MOUSESELECT 0x8000
2199 #ifndef NOWINOFFSETS
2200 #define GCW_HBRBACKGROUND (-10)
2203 #define MB_OK 0x0000
2204 #define MB_OKCANCEL 0x0001
2205 #define MB_ABORTRETRYIGNORE 0x0002
2206 #define MB_YESNOCANCEL 0x0003
2207 #define MB_YESNO 0x0004
2208 #define MB_RETRYCANCEL 0x0005
2209 #define MB_TYPEMASK 0x000F
2211 #define MB_ICONHAND 0x0010
2212 #define MB_ICONQUESTION 0x0020
2213 #define MB_ICONEXCLAMATION 0x0030
2214 #define MB_ICONASTERISK 0x0040
2215 #define MB_ICONMASK 0x00F0
2217 #define MB_ICONINFORMATION MB_ICONASTERISK
2218 #define MB_ICONSTOP MB_ICONHAND
2220 #define MB_DEFBUTTON1 0x0000
2221 #define MB_DEFBUTTON2 0x0100
2222 #define MB_DEFBUTTON3 0x0200
2223 #define MB_DEFMASK 0x0F00
2225 #define MB_APPLMODAL 0x0000
2226 #define MB_SYSTEMMODAL 0x1000
2227 #define MB_TASKMODAL 0x2000
2229 #define MB_NOFOCUS 0x8000
2236 #define DT_VCENTER 4
2238 #define DT_WORDBREAK 16
2239 #define DT_SINGLELINE 32
2240 #define DT_EXPANDTABS 64
2241 #define DT_TABSTOP 128
2242 #define DT_NOCLIP 256
2243 #define DT_EXTERNALLEADING 512
2244 #define DT_CALCRECT 1024
2245 #define DT_NOPREFIX 2048
2246 #define DT_INTERNAL 4096
2249 #define WS_OVERLAPPED 0x00000000L
2250 #define WS_POPUP 0x80000000L
2251 #define WS_CHILD 0x40000000L
2252 #define WS_MINIMIZE 0x20000000L
2253 #define WS_VISIBLE 0x10000000L
2254 #define WS_DISABLED 0x08000000L
2255 #define WS_CLIPSIBLINGS 0x04000000L
2256 #define WS_CLIPCHILDREN 0x02000000L
2257 #define WS_MAXIMIZE 0x01000000L
2258 #define WS_CAPTION 0x00C00000L
2259 #define WS_BORDER 0x00800000L
2260 #define WS_DLGFRAME 0x00400000L
2261 #define WS_VSCROLL 0x00200000L
2262 #define WS_HSCROLL 0x00100000L
2263 #define WS_SYSMENU 0x00080000L
2264 #define WS_THICKFRAME 0x00040000L
2265 #define WS_GROUP 0x00020000L
2266 #define WS_TABSTOP 0x00010000L
2267 #define WS_MINIMIZEBOX 0x00020000L
2268 #define WS_MAXIMIZEBOX 0x00010000L
2269 #define WS_TILED WS_OVERLAPPED
2270 #define WS_ICONIC WS_MINIMIZE
2271 #define WS_SIZEBOX WS_THICKFRAME
2272 #define WS_OVERLAPPEDWINDOW (WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME| WS_MINIMIZEBOX | WS_MAXIMIZEBOX)
2273 #define WS_POPUPWINDOW (WS_POPUP | WS_BORDER | WS_SYSMENU)
2274 #define WS_CHILDWINDOW (WS_CHILD)
2275 #define WS_TILEDWINDOW (WS_OVERLAPPEDWINDOW)
2277 /* Window extended styles */
2278 #define WS_EX_DLGMODALFRAME 0x00000001L
2279 #define WS_EX_DRAGDETECT 0x00000002L
2280 #define WS_EX_NOPARENTNOTIFY 0x00000004L
2281 #define WS_EX_TOPMOST 0x00000008L
2282 #define WS_EX_ACCEPTFILES 0x00000010L
2283 #define WS_EX_TRANSPARENT 0x00000020L
2285 /* Window scrolling */
2286 #define SW_SCROLLCHILDREN 0x0001
2287 #define SW_INVALIDATE 0x0002
2288 #define SW_ERASE 0x0003
2290 /* CreateWindow() coordinates */
2291 #define CW_USEDEFAULT16 ((INT16)0x8000)
2292 #define CW_USEDEFAULT32 ((INT32)0x80000000)
2293 #define CW_USEDEFAULT WINELIB_NAME(CW_USEDEFAULT)
2295 /* Button control styles */
2296 #define BS_PUSHBUTTON 0x00000000L
2297 #define BS_DEFPUSHBUTTON 0x00000001L
2298 #define BS_CHECKBOX 0x00000002L
2299 #define BS_AUTOCHECKBOX 0x00000003L
2300 #define BS_RADIOBUTTON 0x00000004L
2301 #define BS_3STATE 0x00000005L
2302 #define BS_AUTO3STATE 0x00000006L
2303 #define BS_GROUPBOX 0x00000007L
2304 #define BS_USERBUTTON 0x00000008L
2305 #define BS_AUTORADIOBUTTON 0x00000009L
2306 #define BS_OWNERDRAW 0x0000000BL
2307 #define BS_LEFTTEXT 0x00000020L
2309 /* Win16 button control messages */
2310 #define BM_GETCHECK16 (WM_USER+0)
2311 #define BM_SETCHECK16 (WM_USER+1)
2312 #define BM_GETSTATE16 (WM_USER+2)
2313 #define BM_SETSTATE16 (WM_USER+3)
2314 #define BM_SETSTYLE16 (WM_USER+4)
2315 #define BM_CLICK16 WM_NULL /* Does not exist in Win16 */
2316 #define BM_GETIMAGE16 WM_NULL /* Does not exist in Win16 */
2317 #define BM_SETIMAGE16 WM_NULL /* Does not exist in Win16 */
2318 /* Win32 button control messages */
2319 #define BM_GETCHECK32 0x00f0
2320 #define BM_SETCHECK32 0x00f1
2321 #define BM_GETSTATE32 0x00f2
2322 #define BM_SETSTATE32 0x00f3
2323 #define BM_SETSTYLE32 0x00f4
2324 #define BM_CLICK32 0x00f5
2325 #define BM_GETIMAGE32 0x00f6
2326 #define BM_SETIMAGE32 0x00f7
2327 /* Winelib button control messages */
2328 #define BM_GETCHECK WINELIB_NAME(BM_GETCHECK)
2329 #define BM_SETCHECK WINELIB_NAME(BM_SETCHECK)
2330 #define BM_GETSTATE WINELIB_NAME(BM_GETSTATE)
2331 #define BM_SETSTATE WINELIB_NAME(BM_SETSTATE)
2332 #define BM_SETSTYLE WINELIB_NAME(BM_SETSTYLE)
2333 #define BM_CLICK WINELIB_NAME(BM_CLICK)
2334 #define BM_GETIMAGE WINELIB_NAME(BM_GETIMAGE)
2335 #define BM_SETIMAGE WINELIB_NAME(BM_SETIMAGE)
2337 /* Button notification codes */
2338 #define BN_CLICKED 0
2341 #define BN_UNHILITE 3
2342 #define BN_DISABLE 4
2343 #define BN_DOUBLECLICKED 5
2345 /* Static Control Styles */
2346 #define SS_LEFT 0x00000000L
2347 #define SS_CENTER 0x00000001L
2348 #define SS_RIGHT 0x00000002L
2349 #define SS_ICON 0x00000003L
2350 #define SS_BLACKRECT 0x00000004L
2351 #define SS_GRAYRECT 0x00000005L
2352 #define SS_WHITERECT 0x00000006L
2353 #define SS_BLACKFRAME 0x00000007L
2354 #define SS_GRAYFRAME 0x00000008L
2355 #define SS_WHITEFRAME 0x00000009L
2356 #define SS_SIMPLE 0x0000000BL
2357 #define SS_LEFTNOWORDWRAP 0x0000000CL
2358 #define SS_NOPREFIX 0x00000080L
2360 /* Static Control Mesages */
2361 #define STM_SETICON (WM_USER+0)
2362 #define STM_GETICON (WM_USER+1)
2364 /* WM_H/VSCROLL commands */
2366 #define SB_LINELEFT 0
2367 #define SB_LINEDOWN 1
2368 #define SB_LINERIGHT 1
2370 #define SB_PAGELEFT 2
2371 #define SB_PAGEDOWN 3
2372 #define SB_PAGERIGHT 3
2373 #define SB_THUMBPOSITION 4
2374 #define SB_THUMBTRACK 5
2379 #define SB_ENDSCROLL 8
2381 /* Scroll bar selection constants */
2387 /* Scrollbar styles */
2388 #define SBS_HORZ 0x0000L
2389 #define SBS_VERT 0x0001L
2390 #define SBS_TOPALIGN 0x0002L
2391 #define SBS_LEFTALIGN 0x0002L
2392 #define SBS_BOTTOMALIGN 0x0004L
2393 #define SBS_RIGHTALIGN 0x0004L
2394 #define SBS_SIZEBOXTOPLEFTALIGN 0x0002L
2395 #define SBS_SIZEBOXBOTTOMRIGHTALIGN 0x0004L
2396 #define SBS_SIZEBOX 0x0008L
2398 /* EnableScrollBar() flags */
2399 #define ESB_ENABLE_BOTH 0x0000
2400 #define ESB_DISABLE_BOTH 0x0003
2402 #define ESB_DISABLE_LEFT 0x0001
2403 #define ESB_DISABLE_RIGHT 0x0002
2405 #define ESB_DISABLE_UP 0x0001
2406 #define ESB_DISABLE_DOWN 0x0002
2408 #define ESB_DISABLE_LTUP ESB_DISABLE_LEFT
2409 #define ESB_DISABLE_RTDN ESB_DISABLE_RIGHT
2411 /* Listbox styles */
2412 #define LBS_NOTIFY 0x0001L
2413 #define LBS_SORT 0x0002L
2414 #define LBS_NOREDRAW 0x0004L
2415 #define LBS_MULTIPLESEL 0x0008L
2416 #define LBS_OWNERDRAWFIXED 0x0010L
2417 #define LBS_OWNERDRAWVARIABLE 0x0020L
2418 #define LBS_HASSTRINGS 0x0040L
2419 #define LBS_USETABSTOPS 0x0080L
2420 #define LBS_NOINTEGRALHEIGHT 0x0100L
2421 #define LBS_MULTICOLUMN 0x0200L
2422 #define LBS_WANTKEYBOARDINPUT 0x0400L
2423 #define LBS_EXTENDEDSEL 0x0800L
2424 #define LBS_DISABLENOSCROLL 0x1000L
2425 #define LBS_STANDARD (LBS_NOTIFY | LBS_SORT | WS_VSCROLL | WS_BORDER)
2427 /* Listbox messages */
2428 #define LB_ADDSTRING (WM_USER+1)
2429 #define LB_INSERTSTRING (WM_USER+2)
2430 #define LB_DELETESTRING (WM_USER+3)
2431 #define LB_RESETCONTENT (WM_USER+5)
2432 #define LB_SETSEL (WM_USER+6)
2433 #define LB_SETCURSEL (WM_USER+7)
2434 #define LB_GETSEL (WM_USER+8)
2435 #define LB_GETCURSEL (WM_USER+9)
2436 #define LB_GETTEXT (WM_USER+10)
2437 #define LB_GETTEXTLEN (WM_USER+11)
2438 #define LB_GETCOUNT (WM_USER+12)
2439 #define LB_SELECTSTRING (WM_USER+13)
2440 #define LB_DIR (WM_USER+14)
2441 #define LB_GETTOPINDEX (WM_USER+15)
2442 #define LB_FINDSTRING (WM_USER+16)
2443 #define LB_GETSELCOUNT (WM_USER+17)
2444 #define LB_GETSELITEMS (WM_USER+18)
2445 #define LB_SETTABSTOPS (WM_USER+19)
2446 #define LB_GETHORIZONTALEXTENT (WM_USER+20)
2447 #define LB_SETHORIZONTALEXTENT (WM_USER+21)
2448 #define LB_SETCOLUMNWIDTH (WM_USER+22)
2449 #define LB_SETTOPINDEX (WM_USER+24)
2450 #define LB_GETITEMRECT (WM_USER+25)
2451 #define LB_GETITEMDATA (WM_USER+26)
2452 #define LB_SETITEMDATA (WM_USER+27)
2453 #define LB_SELITEMRANGE (WM_USER+28)
2454 #define LB_SETANCHORINDEX (WM_USER+29) /* undoc. - for LBS_EXTENDEDSEL */
2455 #define LB_GETANCHORINDEX (WM_USER+30) /* - * - */
2456 #define LB_SETCARETINDEX (WM_USER+31)
2457 #define LB_GETCARETINDEX (WM_USER+32)
2458 #define LB_SETITEMHEIGHT (WM_USER+33)
2459 #define LB_GETITEMHEIGHT (WM_USER+34)
2460 #define LB_FINDSTRINGEXACT (WM_USER+35)
2462 /* Listbox notification codes */
2463 #define LBN_ERRSPACE (-2)
2464 #define LBN_SELCHANGE 1
2465 #define LBN_DBLCLK 2
2466 #define LBN_SELCANCEL 3
2467 #define LBN_SETFOCUS 4
2468 #define LBN_KILLFOCUS 5
2470 /* Listbox message return values */
2473 #define LB_ERRSPACE (-2)
2475 #define LB_CTLCODE 0L
2477 /* Combo box styles */
2478 #define CBS_SIMPLE 0x0001L
2479 #define CBS_DROPDOWN 0x0002L
2480 #define CBS_DROPDOWNLIST 0x0003L
2481 #define CBS_OWNERDRAWFIXED 0x0010L
2482 #define CBS_OWNERDRAWVARIABLE 0x0020L
2483 #define CBS_AUTOHSCROLL 0x0040L
2484 #define CBS_OEMCONVERT 0x0080L
2485 #define CBS_SORT 0x0100L
2486 #define CBS_HASSTRINGS 0x0200L
2487 #define CBS_NOINTEGRALHEIGHT 0x0400L
2488 #define CBS_DISABLENOSCROLL 0x0800L
2490 /* Combo box messages */
2491 #define CB_GETEDITSEL (WM_USER+0)
2492 #define CB_LIMITTEXT (WM_USER+1)
2493 #define CB_SETEDITSEL (WM_USER+2)
2494 #define CB_ADDSTRING (WM_USER+3)
2495 #define CB_DELETESTRING (WM_USER+4)
2496 #define CB_DIR (WM_USER+5)
2497 #define CB_GETCOUNT (WM_USER+6)
2498 #define CB_GETCURSEL (WM_USER+7)
2499 #define CB_GETLBTEXT (WM_USER+8)
2500 #define CB_GETLBTEXTLEN (WM_USER+9)
2501 #define CB_INSERTSTRING (WM_USER+10)
2502 #define CB_RESETCONTENT (WM_USER+11)
2503 #define CB_FINDSTRING (WM_USER+12)
2504 #define CB_SELECTSTRING (WM_USER+13)
2505 #define CB_SETCURSEL (WM_USER+14)
2506 #define CB_SHOWDROPDOWN (WM_USER+15)
2507 #define CB_GETITEMDATA (WM_USER+16)
2508 #define CB_SETITEMDATA (WM_USER+17)
2509 #define CB_GETDROPPEDCONTROLRECT (WM_USER+18)
2510 #define CB_SETITEMHEIGHT (WM_USER+19)
2511 #define CB_GETITEMHEIGHT (WM_USER+20)
2512 #define CB_SETEXTENDEDUI (WM_USER+21)
2513 #define CB_GETEXTENDEDUI (WM_USER+22)
2514 #define CB_GETDROPPEDSTATE (WM_USER+23)
2515 #define CB_FINDSTRINGEXACT (WM_USER+24)
2517 /* Combo box notification codes */
2518 #define CBN_ERRSPACE (-1)
2519 #define CBN_SELCHANGE 1
2520 #define CBN_DBLCLK 2
2521 #define CBN_SETFOCUS 3
2522 #define CBN_KILLFOCUS 4
2523 #define CBN_EDITCHANGE 5
2524 #define CBN_EDITUPDATE 6
2525 #define CBN_DROPDOWN 7
2526 #define CBN_CLOSEUP 8
2527 #define CBN_SELENDOK 9
2528 #define CBN_SELENDCANCEL 10
2530 /* Combo box message return values */
2533 #define CB_ERRSPACE (-2)
2536 /* Owner draw control types */
2538 #define ODT_LISTBOX 2
2539 #define ODT_COMBOBOX 3
2540 #define ODT_BUTTON 4
2542 /* Owner draw actions */
2543 #define ODA_DRAWENTIRE 0x0001
2544 #define ODA_SELECT 0x0002
2545 #define ODA_FOCUS 0x0004
2547 /* Owner draw state */
2548 #define ODS_SELECTED 0x0001
2549 #define ODS_GRAYED 0x0002
2550 #define ODS_DISABLED 0x0004
2551 #define ODS_CHECKED 0x0008
2552 #define ODS_FOCUS 0x0010
2554 /* Edit control styles */
2555 #define ES_LEFT 0x00000000L
2556 #define ES_CENTER 0x00000001L
2557 #define ES_RIGHT 0x00000002L
2558 #define ES_MULTILINE 0x00000004L
2559 #define ES_UPPERCASE 0x00000008L
2560 #define ES_LOWERCASE 0x00000010L
2561 #define ES_PASSWORD 0x00000020L
2562 #define ES_AUTOVSCROLL 0x00000040L
2563 #define ES_AUTOHSCROLL 0x00000080L
2564 #define ES_NOHIDESEL 0x00000100L
2565 #define ES_OEMCONVERT 0x00000400L
2566 #define ES_READONLY 0x00000800L
2567 #define ES_WANTRETURN 0x00001000L
2569 /* Edit control messages */
2570 #define EM_GETSEL (WM_USER+0)
2571 #define EM_SETSEL (WM_USER+1)
2572 #define EM_GETRECT (WM_USER+2)
2573 #define EM_SETRECT (WM_USER+3)
2574 #define EM_SETRECTNP (WM_USER+4)
2575 #define EM_LINESCROLL (WM_USER+6)
2576 #define EM_GETMODIFY (WM_USER+8)
2577 #define EM_SETMODIFY (WM_USER+9)
2578 #define EM_GETLINECOUNT (WM_USER+10)
2579 #define EM_LINEINDEX (WM_USER+11)
2580 #define EM_SETHANDLE (WM_USER+12)
2581 #define EM_GETHANDLE (WM_USER+13)
2582 #define EM_LINELENGTH (WM_USER+17)
2583 #define EM_REPLACESEL (WM_USER+18)
2584 #define EM_GETLINE (WM_USER+20)
2585 #define EM_LIMITTEXT (WM_USER+21)
2586 #define EM_CANUNDO (WM_USER+22)
2587 #define EM_UNDO (WM_USER+23)
2588 #define EM_FMTLINES (WM_USER+24)
2589 #define EM_LINEFROMCHAR (WM_USER+25)
2590 #define EM_SETTABSTOPS (WM_USER+27)
2591 #define EM_SETPASSWORDCHAR (WM_USER+28)
2592 #define EM_EMPTYUNDOBUFFER (WM_USER+29)
2593 #define EM_GETFIRSTVISIBLELINE (WM_USER+30)
2594 #define EM_SETREADONLY (WM_USER+31)
2595 #define EM_SETWORDBREAKPROC (WM_USER+32)
2596 #define EM_GETWORDBREAKPROC (WM_USER+33)
2597 #define EM_GETPASSWORDCHAR (WM_USER+34)
2598 /* Edit control undocumented messages */
2599 #define EM_SCROLL (WM_USER+5)
2600 #define EM_GETTHUMB (WM_USER+14)
2602 /* EDITWORDBREAKPROC code values */
2605 #define WB_ISDELIMITER 2
2607 /* Edit control notification codes */
2608 #define EN_SETFOCUS 0x0100
2609 #define EN_KILLFOCUS 0x0200
2610 #define EN_CHANGE 0x0300
2611 #define EN_UPDATE 0x0400
2612 #define EN_ERRSPACE 0x0500
2613 #define EN_MAXTEXT 0x0501
2614 #define EN_HSCROLL 0x0601
2615 #define EN_VSCROLL 0x0602
2627 RECT16 rcItem WINE_PACKED
;
2628 DWORD itemData WINE_PACKED
;
2629 } DRAWITEMSTRUCT16
, *PDRAWITEMSTRUCT16
, *LPDRAWITEMSTRUCT16
;
2640 RECT32 rcItem WINE_PACKED
;
2641 DWORD itemData WINE_PACKED
;
2642 } DRAWITEMSTRUCT32
, *PDRAWITEMSTRUCT32
, *LPDRAWITEMSTRUCT32
;
2644 DECL_WINELIB_TYPE(DRAWITEMSTRUCT
);
2645 DECL_WINELIB_TYPE(PDRAWITEMSTRUCT
);
2646 DECL_WINELIB_TYPE(LPDRAWITEMSTRUCT
);
2655 DWORD itemData WINE_PACKED
;
2656 } MEASUREITEMSTRUCT16
, *PMEASUREITEMSTRUCT16
, *LPMEASUREITEMSTRUCT16
;
2666 } MEASUREITEMSTRUCT32
, *PMEASUREITEMSTRUCT32
, *LPMEASUREITEMSTRUCT32
;
2668 DECL_WINELIB_TYPE(MEASUREITEMSTRUCT
);
2669 DECL_WINELIB_TYPE(PMEASUREITEMSTRUCT
);
2670 DECL_WINELIB_TYPE(LPMEASUREITEMSTRUCT
);
2679 } DELETEITEMSTRUCT16
, *LPDELETEITEMSTRUCT16
;
2688 } DELETEITEMSTRUCT32
, *LPDELETEITEMSTRUCT32
;
2690 DECL_WINELIB_TYPE(DELETEITEMSTRUCT
);
2691 DECL_WINELIB_TYPE(LPDELETEITEMSTRUCT
);
2701 DWORD itemData2 WINE_PACKED
;
2702 } COMPAREITEMSTRUCT16
, *LPCOMPAREITEMSTRUCT16
;
2714 } COMPAREITEMSTRUCT32
, *LPCOMPAREITEMSTRUCT32
;
2716 DECL_WINELIB_TYPE(COMPAREITEMSTRUCT
);
2717 DECL_WINELIB_TYPE(LPCOMPAREITEMSTRUCT
);
2719 /* WM_KEYUP/DOWN/CHAR HIWORD(lParam) flags */
2720 #define KF_EXTENDED 0x0100
2721 #define KF_DLGMODE 0x0800
2722 #define KF_MENUMODE 0x1000
2723 #define KF_ALTDOWN 0x2000
2724 #define KF_REPEAT 0x4000
2725 #define KF_UP 0x8000
2727 /* Virtual key codes */
2728 #define VK_LBUTTON 0x01
2729 #define VK_RBUTTON 0x02
2730 #define VK_CANCEL 0x03
2731 #define VK_MBUTTON 0x04
2732 #define VK_BACK 0x08
2734 #define VK_CLEAR 0x0C
2735 #define VK_RETURN 0x0D
2736 #define VK_SHIFT 0x10
2737 #define VK_CONTROL 0x11
2738 #define VK_MENU 0x12
2739 #define VK_PAUSE 0x13
2740 #define VK_CAPITAL 0x14
2741 #define VK_ESCAPE 0x1B
2742 #define VK_SPACE 0x20
2743 #define VK_PRIOR 0x21
2744 #define VK_NEXT 0x22
2746 #define VK_HOME 0x24
2747 #define VK_LEFT 0x25
2749 #define VK_RIGHT 0x27
2750 #define VK_DOWN 0x28
2751 #define VK_SELECT 0x29
2752 #define VK_PRINT 0x2A
2753 #define VK_EXECUTE 0x2B
2754 #define VK_SNAPSHOT 0x2C
2755 #define VK_INSERT 0x2D
2756 #define VK_DELETE 0x2E
2757 #define VK_HELP 0x2F
2758 #define VK_NUMPAD0 0x60
2759 #define VK_NUMPAD1 0x61
2760 #define VK_NUMPAD2 0x62
2761 #define VK_NUMPAD3 0x63
2762 #define VK_NUMPAD4 0x64
2763 #define VK_NUMPAD5 0x65
2764 #define VK_NUMPAD6 0x66
2765 #define VK_NUMPAD7 0x67
2766 #define VK_NUMPAD8 0x68
2767 #define VK_NUMPAD9 0x69
2768 #define VK_MULTIPLY 0x6A
2770 #define VK_SEPARATOR 0x6C
2771 #define VK_SUBTRACT 0x6D
2772 #define VK_DECIMAL 0x6E
2773 #define VK_DIVIDE 0x6F
2798 #define VK_NUMLOCK 0x90
2799 #define VK_SCROLL 0x91
2802 #define LMEM_FIXED 0
2803 #define LMEM_MOVEABLE 0x0002
2804 #define LMEM_NOCOMPACT 0x0010
2805 #define LMEM_NODISCARD 0x0020
2806 #define LMEM_ZEROINIT 0x0040
2807 #define LMEM_MODIFY 0x0080
2808 #define LMEM_DISCARDABLE 0x0F00
2809 #define LMEM_DISCARDED 0x4000
2810 #define LMEM_LOCKCOUNT 0x00FF
2812 #define GMEM_FIXED 0x0000
2813 #define GMEM_MOVEABLE 0x0002
2814 #define GMEM_NOCOMPACT 0x0010
2815 #define GMEM_NODISCARD 0x0020
2816 #define GMEM_ZEROINIT 0x0040
2817 #define GMEM_MODIFY 0x0080
2818 #define GMEM_DISCARDABLE 0x0100
2819 #define GMEM_NOT_BANKED 0x1000
2820 #define GMEM_SHARE 0x2000
2821 #define GMEM_DDESHARE 0x2000
2822 #define GMEM_NOTIFY 0x4000
2823 #define GMEM_LOWER GMEM_NOT_BANKED
2824 #define GMEM_DISCARDED 0x4000
2825 #define GMEM_LOCKCOUNT 0x00ff
2826 #define GMEM_INVALID_HANDLE 0x8000
2828 #define GHND (GMEM_MOVEABLE | GMEM_ZEROINIT)
2829 #define GPTR (GMEM_FIXED | GMEM_ZEROINIT)
2832 /* Predefined Clipboard Formats */
2835 #define CF_METAFILEPICT 3
2839 #define CF_OEMTEXT 7
2841 #define CF_PALETTE 9
2842 #define CF_PENDATA 10
2846 #define CF_OWNERDISPLAY 0x0080
2847 #define CF_DSPTEXT 0x0081
2848 #define CF_DSPBITMAP 0x0082
2849 #define CF_DSPMETAFILEPICT 0x0083
2851 /* "Private" formats don't get GlobalFree()'d */
2852 #define CF_PRIVATEFIRST 0x0200
2853 #define CF_PRIVATELAST 0x02FF
2855 /* "GDIOBJ" formats do get DeleteObject()'d */
2856 #define CF_GDIOBJFIRST 0x0300
2857 #define CF_GDIOBJLAST 0x03FF
2859 /* Clipboard command messages */
2860 #define WM_CUT 0x0300
2861 #define WM_COPY 0x0301
2862 #define WM_PASTE 0x0302
2863 #define WM_CLEAR 0x0303
2864 #define WM_UNDO 0x0304
2866 /* Clipboard owner messages */
2867 #define WM_RENDERFORMAT 0x0305
2868 #define WM_RENDERALLFORMATS 0x0306
2869 #define WM_DESTROYCLIPBOARD 0x0307
2871 /* Clipboard viewer messages */
2872 #define WM_DRAWCLIPBOARD 0x0308
2873 #define WM_PAINTCLIPBOARD 0x0309
2874 #define WM_SIZECLIPBOARD 0x030B
2875 #define WM_VSCROLLCLIPBOARD 0x030A
2876 #define WM_HSCROLLCLIPBOARD 0x030E
2877 #define WM_ASKCBFORMATNAME 0x030C
2878 #define WM_CHANGECBCHAIN 0x030D
2880 /* Metafile header structure */
2886 DWORD mtSize WINE_PACKED
;
2888 DWORD mtMaxRecord WINE_PACKED
;
2889 WORD mtNoParameters
;
2892 /* Metafile typical record structure */
2899 typedef METARECORD
*PMETARECORD
;
2900 typedef METARECORD
*LPMETARECORD
;
2902 /* Handle table structure */
2905 HANDLE16 objectHandle
[1];
2907 typedef HANDLETABLE
*PHANDLETABLE
;
2908 typedef HANDLETABLE
*LPHANDLETABLE
;
2910 /* Clipboard metafile picture structure */
2917 } METAFILEPICT
, *LPMETAFILEPICT
;
2919 /* Metafile functions */
2920 #define META_SETBKCOLOR 0x0201
2921 #define META_SETBKMODE 0x0102
2922 #define META_SETMAPMODE 0x0103
2923 #define META_SETROP2 0x0104
2924 #define META_SETRELABS 0x0105
2925 #define META_SETPOLYFILLMODE 0x0106
2926 #define META_SETSTRETCHBLTMODE 0x0107
2927 #define META_SETTEXTCHAREXTRA 0x0108
2928 #define META_SETTEXTCOLOR 0x0209
2929 #define META_SETTEXTJUSTIFICATION 0x020A
2930 #define META_SETWINDOWORG 0x020B
2931 #define META_SETWINDOWEXT 0x020C
2932 #define META_SETVIEWPORTORG 0x020D
2933 #define META_SETVIEWPORTEXT 0x020E
2934 #define META_OFFSETWINDOWORG 0x020F
2935 #define META_SCALEWINDOWEXT 0x0410
2936 #define META_OFFSETVIEWPORTORG 0x0211
2937 #define META_SCALEVIEWPORTEXT 0x0412
2938 #define META_LINETO 0x0213
2939 #define META_MOVETO 0x0214
2940 #define META_EXCLUDECLIPRECT 0x0415
2941 #define META_INTERSECTCLIPRECT 0x0416
2942 #define META_ARC 0x0817
2943 #define META_ELLIPSE 0x0418
2944 #define META_FLOODFILL 0x0419
2945 #define META_PIE 0x081A
2946 #define META_RECTANGLE 0x041B
2947 #define META_ROUNDRECT 0x061C
2948 #define META_PATBLT 0x061D
2949 #define META_SAVEDC 0x001E
2950 #define META_SETPIXEL 0x041F
2951 #define META_OFFSETCLIPRGN 0x0220
2952 #define META_TEXTOUT 0x0521
2953 #define META_BITBLT 0x0922
2954 #define META_STRETCHBLT 0x0B23
2955 #define META_POLYGON 0x0324
2956 #define META_POLYLINE 0x0325
2957 #define META_ESCAPE 0x0626
2958 #define META_RESTOREDC 0x0127
2959 #define META_FILLREGION 0x0228
2960 #define META_FRAMEREGION 0x0429
2961 #define META_INVERTREGION 0x012A
2962 #define META_PAINTREGION 0x012B
2963 #define META_SELECTCLIPREGION 0x012C
2964 #define META_SELECTOBJECT 0x012D
2965 #define META_SETTEXTALIGN 0x012E
2966 #define META_DRAWTEXT 0x062F
2967 #define META_CHORD 0x0830
2968 #define META_SETMAPPERFLAGS 0x0231
2969 #define META_EXTTEXTOUT 0x0A32
2970 #define META_SETDIBTODEV 0x0D33
2971 #define META_SELECTPALETTE 0x0234
2972 #define META_REALIZEPALETTE 0x0035
2973 #define META_ANIMATEPALETTE 0x0436
2974 #define META_SETPALENTRIES 0x0037
2975 #define META_POLYPOLYGON 0x0538
2976 #define META_RESIZEPALETTE 0x0139
2977 #define META_DIBBITBLT 0x0940
2978 #define META_DIBSTRETCHBLT 0x0B41
2979 #define META_DIBCREATEPATTERNBRUSH 0x0142
2980 #define META_STRETCHDIB 0x0F43
2981 #define META_EXTFLOODFILL 0x0548
2982 #define META_RESETDC 0x014C
2983 #define META_STARTDOC 0x014D
2984 #define META_STARTPAGE 0x004F
2985 #define META_ENDPAGE 0x0050
2986 #define META_ABORTDOC 0x0052
2987 #define META_ENDDOC 0x005E
2988 #define META_DELETEOBJECT 0x01F0
2989 #define META_CREATEPALETTE 0x00F7
2990 #define META_CREATEBRUSH 0x00F8
2991 #define META_CREATEPATTERNBRUSH 0x01F9
2992 #define META_CREATEPENINDIRECT 0x02FA
2993 #define META_CREATEFONTINDIRECT 0x02FB
2994 #define META_CREATEBRUSHINDIRECT 0x02FC
2995 #define META_CREATEBITMAPINDIRECT 0x02FD
2996 #define META_CREATEBITMAP 0x06FE
2997 #define META_CREATEREGION 0x06FF
2999 /* Debugging support (DEBUG SYSTEM ONLY) */
3003 DWORD dwOptions WINE_PACKED
;
3004 DWORD dwFilter WINE_PACKED
;
3005 CHAR achAllocModule
[8] WINE_PACKED
;
3006 DWORD dwAllocBreak WINE_PACKED
;
3007 DWORD dwAllocCount WINE_PACKED
;
3008 } WINDEBUGINFO
, *LPWINDEBUGINFO
;
3010 /* WINDEBUGINFO flags values */
3011 #define WDI_OPTIONS 0x0001
3012 #define WDI_FILTER 0x0002
3013 #define WDI_ALLOCBREAK 0x0004
3015 /* dwOptions values */
3016 #define DBO_CHECKHEAP 0x0001
3017 #define DBO_BUFFERFILL 0x0004
3018 #define DBO_DISABLEGPTRAPPING 0x0010
3019 #define DBO_CHECKFREE 0x0020
3021 #define DBO_SILENT 0x8000
3023 #define DBO_TRACEBREAK 0x2000
3024 #define DBO_WARNINGBREAK 0x1000
3025 #define DBO_NOERRORBREAK 0x0800
3026 #define DBO_NOFATALBREAK 0x0400
3027 #define DBO_INT3BREAK 0x0100
3029 /* DebugOutput flags values */
3030 #define DBF_TRACE 0x0000
3031 #define DBF_WARNING 0x4000
3032 #define DBF_ERROR 0x8000
3033 #define DBF_FATAL 0xc000
3035 /* dwFilter values */
3036 #define DBF_KERNEL 0x1000
3037 #define DBF_KRN_MEMMAN 0x0001
3038 #define DBF_KRN_LOADMODULE 0x0002
3039 #define DBF_KRN_SEGMENTLOAD 0x0004
3040 #define DBF_USER 0x0800
3041 #define DBF_GDI 0x0400
3042 #define DBF_MMSYSTEM 0x0040
3043 #define DBF_PENWIN 0x0020
3044 #define DBF_APPLICATION 0x0008
3045 #define DBF_DRIVER 0x0010
3047 /* Win32-specific structures */
3058 } SYSTEMTIME
, *LPSYSTEMTIME
;
3060 /* WinHelp internal structure */
3068 } WINHELP
,*LPWINHELP
;
3074 BYTE szKeyPhrase
[1];
3075 } MULTIKEYHELP
, *LPMULTIKEYHELP
;
3085 } HELPWININFO
, *LPHELPWININFO
;
3087 #define HELP_CONTEXT 0x0001
3088 #define HELP_QUIT 0x0002
3089 #define HELP_INDEX 0x0003
3090 #define HELP_CONTENTS 0x0003
3091 #define HELP_HELPONHELP 0x0004
3092 #define HELP_SETINDEX 0x0005
3093 #define HELP_SETCONTENTS 0x0005
3094 #define HELP_CONTEXTPOPUP 0x0008
3095 #define HELP_FORCEFILE 0x0009
3096 #define HELP_KEY 0x0101
3097 #define HELP_COMMAND 0x0102
3098 #define HELP_PARTIALKEY 0x0105
3099 #define HELP_MULTIKEY 0x0201
3100 #define HELP_SETWINPOS 0x0203
3103 CHAR dmDeviceName
[32];
3105 WORD dmDriverVersion
;
3109 short dmOrientation
;
3111 short dmPaperLength
;
3115 short dmDefaultSource
;
3116 short dmPrintQuality
;
3119 short dmYResolution
;
3122 CHAR dmFormName
[32];
3123 WORD dmUnusedPadding
;
3127 DWORD dmDisplayFlags
;
3128 DWORD dmDisplayFrequency
;
3131 typedef struct _SYSTEM_POWER_STATUS
3133 BOOL16 ACLineStatus
;
3135 BYTE BatteryLifePercent
;
3137 DWORD BatteryLifeTime
;
3138 DWORD BatteryFullLifeTime
;
3139 } SYSTEM_POWER_STATUS
, *LPSYSTEM_POWER_STATUS
;
3146 /* Declarations for functions that exist only in Win16 */
3148 VOID
FillWindow(HWND16
,HWND16
,HDC16
,HBRUSH16
);
3149 DWORD
GetBitmapDimension(HBITMAP16
);
3150 DWORD
OffsetViewportOrg(HDC16
,INT16
,INT16
);
3151 DWORD
OffsetWindowOrg(HDC16
,INT16
,INT16
);
3152 VOID
PaintRect(HWND16
,HWND16
,HDC16
,HBRUSH16
,const RECT16
*);
3153 DWORD
ScaleViewportExt(HDC16
,INT16
,INT16
,INT16
,INT16
);
3154 DWORD
ScaleWindowExt(HDC16
,INT16
,INT16
,INT16
,INT16
);
3155 DWORD
SetBitmapDimension(HBITMAP16
,INT16
,INT16
);
3156 DWORD
SetViewportExt(HDC16
,INT16
,INT16
);
3157 DWORD
SetViewportOrg(HDC16
,INT16
,INT16
);
3158 DWORD
SetWindowExt(HDC16
,INT16
,INT16
);
3159 DWORD
SetWindowOrg(HDC16
,INT16
,INT16
);
3160 VOID
hmemcpy(LPVOID
,LPCVOID
,LONG
);
3162 /* Declarations for functions that exist only in Win32 */
3164 DWORD
GetLogicalDrives(void);
3166 /* Declarations for functions that are the same in Win16 and Win32 */
3168 HBITMAP16
CreateBitmap(INT32
,INT32
,UINT32
,UINT32
,LPCVOID
);
3169 HBITMAP16
CreateCompatibleBitmap(HDC32
,INT32
,INT32
);
3170 HBITMAP16
CreateDiscardableBitmap(HDC32
,INT32
,INT32
);
3171 BOOL16
EndDialog(HWND32
,INT32
);
3172 INT16
ExcludeUpdateRgn(HDC32
,HWND32
);
3173 LONG
GetBitmapBits(HBITMAP32
,LONG
,LPVOID
);
3174 WORD
GetClassWord(HWND32
,INT32
);
3175 INT16
GetUpdateRgn(HWND32
,HRGN32
,BOOL32
);
3176 WORD
GetWindowWord(HWND32
,INT32
);
3177 INT16
OffsetRgn(HRGN32
,INT32
,INT32
);
3178 DWORD
RegCloseKey(HKEY
);
3179 DWORD
RegFlushKey(HKEY
);
3180 LONG
SetBitmapBits(HBITMAP32
,LONG
,LPCVOID
);
3181 WORD
SetClassWord(HWND32
,INT32
,WORD
);
3182 WORD
SetWindowWord(HWND32
,INT32
,WORD
);
3184 /* Declarations for functions that change between Win16 and Win32 */
3186 BOOL16
AdjustWindowRect16(LPRECT16
,DWORD
,BOOL16
);
3187 BOOL32
AdjustWindowRect32(LPRECT32
,DWORD
,BOOL32
);
3188 #define AdjustWindowRect WINELIB_NAME(AdjustWindowRect)
3189 BOOL16
AdjustWindowRectEx16(LPRECT16
,DWORD
,BOOL16
,DWORD
);
3190 BOOL32
AdjustWindowRectEx32(LPRECT32
,DWORD
,BOOL32
,DWORD
);
3191 #define AdjustWindowRectEx WINELIB_NAME(AdjustWindowRectEx)
3192 BOOL16
AppendMenu16(HMENU16
,UINT16
,UINT16
,SEGPTR
);
3193 BOOL32
AppendMenu32A(HMENU32
,UINT32
,UINT32
,LPCSTR
);
3194 BOOL32
AppendMenu32W(HMENU32
,UINT32
,UINT32
,LPCWSTR
);
3195 #define AppendMenu WINELIB_NAME_AW(AppendMenu)
3196 HDC16
BeginPaint16(HWND16
,LPPAINTSTRUCT16
);
3197 HDC32
BeginPaint32(HWND32
,LPPAINTSTRUCT32
);
3198 #define BeginPaint WINELIB_NAME(BeginPaint)
3199 LRESULT
CallWindowProc16(WNDPROC16
,HWND16
,UINT16
,WPARAM16
,LPARAM
);
3200 LRESULT
CallWindowProc32A(WNDPROC32
,HWND32
,UINT32
,WPARAM32
,LPARAM
);
3201 LRESULT
CallWindowProc32W(WNDPROC32
,HWND32
,UINT32
,WPARAM32
,LPARAM
);
3202 #define CallWindowProc WINELIB_NAME_AW(CallWindowProc)
3203 BOOL16
ChangeMenu16(HMENU16
,UINT16
,SEGPTR
,UINT16
,UINT16
);
3204 BOOL32
ChangeMenu32A(HMENU32
,UINT32
,LPCSTR
,UINT32
,UINT32
);
3205 BOOL32
ChangeMenu32W(HMENU32
,UINT32
,LPCWSTR
,UINT32
,UINT32
);
3206 #define ChangeMenu WINELIB_NAME_AW(ChangeMenu)
3207 HWND16
ChildWindowFromPoint16(HWND16
,POINT16
);
3208 HWND32
ChildWindowFromPoint32(HWND32
,POINT32
);
3209 #define ChildWindowFromPoint WINELIB_NAME(ChildWindowFromPoint)
3210 BOOL16
ClientToScreen16(HWND16
,LPPOINT16
);
3211 BOOL32
ClientToScreen32(HWND32
,LPPOINT32
);
3212 #define ClientToScreen WINELIB_NAME(ClientToScreen)
3213 BOOL16
ClipCursor16(const RECT16
*);
3214 BOOL32
ClipCursor32(const RECT32
*);
3215 #define ClipCursor WINELIB_NAME(ClipCursor)
3216 BOOL16
CopyRect16(RECT16
*,const RECT16
*);
3217 BOOL32
CopyRect32(RECT32
*,const RECT32
*);
3218 #define CopyRect WINELIB_NAME(CopyRect)
3219 HBITMAP16
CreateBitmapIndirect16(const BITMAP16
*);
3220 HBITMAP32
CreateBitmapIndirect32(const BITMAP32
*);
3221 #define CreateBitmapIndirect WINELIB_NAME(CreateBitmapIndirect)
3222 HWND16
CreateDialog16(HINSTANCE16
,SEGPTR
,HWND16
,DLGPROC16
);
3223 #define CreateDialog32A(inst,ptr,hwnd,dlg) \
3224 CreateDialogParam32A(inst,ptr,hwnd,dlg,0)
3225 #define CreateDialog32W(inst,ptr,hwnd,dlg) \
3226 CreateDialogParam32W(inst,ptr,hwnd,dlg,0)
3227 #define CreateDialog WINELIB_NAME_AW(CreateDialog)
3228 HWND16
CreateDialogIndirect16(HINSTANCE16
,LPCVOID
,HWND16
,DLGPROC16
);
3229 #define CreateDialogIndirect32A(inst,ptr,hwnd,dlg) \
3230 CreateDialogIndirectParam32A(inst,ptr,hwnd,dlg,0)
3231 #define CreateDialogIndirect32W(inst,ptr,hwnd,dlg) \
3232 CreateDialogIndirectParam32W(inst,ptr,hwnd,dlg,0)
3233 #define CreateDialogIndirect WINELIB_NAME_AW(CreateDialogIndirect)
3234 HWND16
CreateDialogIndirectParam16(HINSTANCE16
,LPCVOID
,HWND16
,DLGPROC16
,LPARAM
);
3235 HWND32
CreateDialogIndirectParam32A(HINSTANCE32
,LPCVOID
,HWND32
,DLGPROC32
,LPARAM
);
3236 HWND32
CreateDialogIndirectParam32W(HINSTANCE32
,LPCVOID
,HWND32
,DLGPROC32
,LPARAM
);
3237 #define CreateDialogIndirectParam WINELIB_NAME_AW(CreateDialogIndirectParam)
3238 HWND16
CreateDialogParam16(HINSTANCE16
,SEGPTR
,HWND16
,DLGPROC16
,LPARAM
);
3239 HWND32
CreateDialogParam32A(HINSTANCE32
,LPCSTR
,HWND32
,DLGPROC32
,LPARAM
);
3240 HWND32
CreateDialogParam32W(HINSTANCE32
,LPCWSTR
,HWND32
,DLGPROC32
,LPARAM
);
3241 #define CreateDialogParam WINELIB_NAME_AW(CreateDialogParam)
3242 HRGN16
CreateEllipticRgnIndirect16(const RECT16
*);
3243 HRGN32
CreateEllipticRgnIndirect32(const RECT32
*);
3244 #define CreateEllipticRgnIndirect WINELIB_NAME(CreateEllipticRgnIndirect)
3245 HRGN16
CreatePolyPolygonRgn16(const POINT16
*,const INT16
*,INT16
,INT16
);
3246 HRGN32
CreatePolyPolygonRgn32(const POINT32
*,const INT32
*,INT32
,INT32
);
3247 #define CreatePolyPolygonRgn WINELIB_NAME(CreatePolyPolygonRgn)
3248 HRGN16
CreatePolygonRgn16(const POINT16
*,INT16
,INT16
);
3249 HRGN32
CreatePolygonRgn32(const POINT32
*,INT32
,INT32
);
3250 #define CreatePolygonRgn WINELIB_NAME(CreatePolygonRgn)
3251 HRGN16
CreateRectRgnIndirect16(const RECT16
*);
3252 HRGN32
CreateRectRgnIndirect32(const RECT32
*);
3253 #define CreateRectRgnIndirect WINELIB_NAME(CreateRectRgnIndirect)
3254 HWND16
CreateWindow16(LPCSTR
,LPCSTR
,DWORD
,INT16
,INT16
,INT16
,INT16
,HWND16
,HMENU16
,HINSTANCE16
,LPVOID
);
3255 #define CreateWindow32A(className,titleName,style,x,y,width,height,\
3256 parent,menu,instance,param) \
3257 CreateWindowEx32A(0,className,titleName,style,x,y,width,height,\
3258 parent,menu,instance,param)
3259 #define CreateWindow32W(className,titleName,style,x,y,width,height,\
3260 parent,menu,instance,param) \
3261 CreateWindowEx32W(0,className,titleName,style,x,y,width,height,\
3262 parent,menu,instance,param)
3263 #define CreateWindow WINELIB_NAME_AW(CreateWindow)
3264 HWND16
CreateWindowEx16(DWORD
,LPCSTR
,LPCSTR
,DWORD
,INT16
,INT16
,INT16
,INT16
,HWND16
,HMENU16
,HINSTANCE16
,LPVOID
);
3265 HWND32
CreateWindowEx32A(DWORD
,LPCSTR
,LPCSTR
,DWORD
,INT32
,INT32
,INT32
,INT32
,HWND32
,HMENU32
,HINSTANCE32
,LPVOID
);
3266 HWND32
CreateWindowEx32W(DWORD
,LPCWSTR
,LPCWSTR
,DWORD
,INT32
,INT32
,INT32
,INT32
,HWND32
,HMENU32
,HINSTANCE32
,LPVOID
);
3267 #define CreateWindowEx WINELIB_NAME_AW(CreateWindowEx)
3268 LRESULT
DefDlgProc16(HWND16
,UINT16
,WPARAM16
,LPARAM
);
3269 LRESULT
DefDlgProc32A(HWND32
,UINT32
,WPARAM32
,LPARAM
);
3270 LRESULT
DefDlgProc32W(HWND32
,UINT32
,WPARAM32
,LPARAM
);
3271 #define DefDlgProc WINELIB_NAME_AW(DefDlgProc)
3272 LRESULT
DefFrameProc16(HWND16
,HWND16
,UINT16
,WPARAM16
,LPARAM
);
3273 LRESULT
DefFrameProc32A(HWND32
,HWND32
,UINT32
,WPARAM32
,LPARAM
);
3274 LRESULT
DefFrameProc32W(HWND32
,HWND32
,UINT32
,WPARAM32
,LPARAM
);
3275 #define DefFrameProc WINELIB_NAME_AW(DefFrameProc)
3276 LRESULT
DefMDIChildProc16(HWND16
,UINT16
,WPARAM16
,LPARAM
);
3277 LRESULT
DefMDIChildProc32A(HWND32
,UINT32
,WPARAM32
,LPARAM
);
3278 LRESULT
DefMDIChildProc32W(HWND32
,UINT32
,WPARAM32
,LPARAM
);
3279 #define DefMDIChildProc WINELIB_NAME_AW(DefMDIChildProc)
3280 LRESULT
DefWindowProc16(HWND16
,UINT16
,WPARAM16
,LPARAM
);
3281 LRESULT
DefWindowProc32A(HWND32
,UINT32
,WPARAM32
,LPARAM
);
3282 LRESULT
DefWindowProc32W(HWND32
,UINT32
,WPARAM32
,LPARAM
);
3283 #define DefWindowProc WINELIB_NAME_AW(DefWindowProc)
3284 INT16
DialogBox16(HINSTANCE16
,SEGPTR
,HWND16
,DLGPROC16
);
3285 #define DialogBox32A(inst,template,owner,func) \
3286 DialogBoxParam32A(inst,template,owner,func,0)
3287 #define DialogBox32W(inst,template,owner,func) \
3288 DialogBoxParam32W(inst,template,owner,func,0)
3289 #define DialogBox WINELIB_NAME_AW(DialogBox)
3290 INT16
DialogBoxIndirect16(HINSTANCE16
,HANDLE16
,HWND16
,DLGPROC16
);
3291 #define DialogBoxIndirect32A(inst,template,owner,func) \
3292 DialogBoxIndirectParam32A(inst,template,owner,func,0)
3293 #define DialogBoxIndirect32W(inst,template,owner,func) \
3294 DialogBoxIndirectParam32W(inst,template,owner,func,0)
3295 #define DialogBoxIndirect WINELIB_NAME_AW(DialogBoxIndirect)
3296 INT16
DialogBoxIndirectParam16(HINSTANCE16
,HANDLE16
,HWND16
,DLGPROC16
,LPARAM
);
3297 INT32
DialogBoxIndirectParam32A(HINSTANCE32
,LPCVOID
,HWND32
,DLGPROC32
,LPARAM
);
3298 INT32
DialogBoxIndirectParam32W(HINSTANCE32
,LPCVOID
,HWND32
,DLGPROC32
,LPARAM
);
3299 #define DialogBoxIndirectParam WINELIB_NAME_AW(DialogBoxIndirectParam)
3300 INT16
DialogBoxParam16(HINSTANCE16
,SEGPTR
,HWND16
,DLGPROC16
,LPARAM
);
3301 INT32
DialogBoxParam32A(HINSTANCE32
,LPCSTR
,HWND32
,DLGPROC32
,LPARAM
);
3302 INT32
DialogBoxParam32W(HINSTANCE32
,LPCWSTR
,HWND32
,DLGPROC32
,LPARAM
);
3303 #define DialogBoxParam WINELIB_NAME_AW(DialogBoxParam)
3304 INT16
DlgDirListComboBox16(HWND16
,LPCSTR
,INT16
,INT16
,UINT16
);
3305 INT32
DlgDirListComboBox32A(HWND32
,LPCSTR
,INT32
,INT32
,UINT32
);
3306 INT32
DlgDirListComboBox32W(HWND32
,LPCWSTR
,INT32
,INT32
,UINT32
);
3307 #define DlgDirListComboBox WINELIB_NAME_AW(DlgDirListComboBox)
3308 BOOL16
DPtoLP16(HDC16
,LPPOINT16
,INT16
);
3309 BOOL32
DPtoLP32(HDC32
,LPPOINT32
,INT32
);
3310 #define DPtoLP WINELIB_NAME(DPtoLP)
3311 void DrawFocusRect16(HDC16
,const RECT16
*);
3312 void DrawFocusRect32(HDC32
,const RECT32
*);
3313 #define DrawFocusRect WINELIB_NAME(DrawFocusRect)
3314 INT16
DrawText16(HDC16
,LPCSTR
,INT16
,LPRECT16
,UINT16
);
3315 INT32
DrawText32A(HDC32
,LPCSTR
,INT32
,LPRECT32
,UINT32
);
3316 INT32
DrawText32W(HDC32
,LPCWSTR
,INT32
,LPRECT32
,UINT32
);
3317 #define DrawText WINELIB_NAME_AW(DrawText)
3318 BOOL16
EndPaint16(HWND16
,const PAINTSTRUCT16
*);
3319 BOOL32
EndPaint32(HWND32
,const PAINTSTRUCT32
*);
3320 #define EndPaint WINELIB_NAME(EndPaint)
3321 BOOL16
EqualRect16(const RECT16
*,const RECT16
*);
3322 BOOL32
EqualRect32(const RECT32
*,const RECT32
*);
3323 #define EqualRect WINELIB_NAME(EqualRect)
3324 BOOL16
ExtTextOut16(HDC16
,INT16
,INT16
,UINT16
,const RECT16
*,LPCSTR
,UINT16
,const INT16
*);
3325 BOOL32
ExtTextOut32A(HDC32
,INT32
,INT32
,UINT32
,const RECT32
*,LPCSTR
,UINT32
,const INT32
*);
3326 BOOL32
ExtTextOut32W(HDC32
,INT32
,INT32
,UINT32
,const RECT32
*,LPCWSTR
,UINT32
,const INT32
*);
3327 #define ExtTextOut WINELIB_NAME_AW(ExtTextOut)
3328 INT16
FillRect16(HDC16
,const RECT16
*,HBRUSH16
);
3329 INT32
FillRect32(HDC32
,const RECT32
*,HBRUSH32
);
3330 #define FillRect WINELIB_NAME(FillRect)
3331 HWND16
FindWindow16(SEGPTR
,LPCSTR
);
3332 HWND32
FindWindow32A(LPCSTR
,LPCSTR
);
3333 HWND32
FindWindow32W(LPCWSTR
,LPCWSTR
);
3334 #define FindWindow WINELIB_NAME_AW(FindWindow)
3335 HWND16
FindWindowEx16(HWND16
,HWND16
,SEGPTR
,LPCSTR
);
3336 HWND32
FindWindowEx32A(HWND32
,HWND32
,LPCSTR
,LPCSTR
);
3337 HWND32
FindWindowEx32W(HWND32
,HWND32
,LPCWSTR
,LPCWSTR
);
3338 #define FindWindowEx WINELIB_NAME_AW(FindWindowEx)
3339 INT16
FrameRect16(HDC16
,const RECT16
*,HBRUSH16
);
3340 INT32
FrameRect32(HDC32
,const RECT32
*,HBRUSH32
);
3341 #define FrameRect WINELIB_NAME(FrameRect)
3342 BOOL16
GetBitmapDimensionEx16(HBITMAP16
,LPSIZE16
);
3343 BOOL32
GetBitmapDimensionEx32(HBITMAP32
,LPSIZE32
);
3344 #define GetBitmapDimensionEx WINELIB_NAME(GetBitmapDimensionEx)
3345 BOOL16
GetBrushOrgEx16(HDC16
,LPPOINT16
);
3346 BOOL32
GetBrushOrgEx32(HDC32
,LPPOINT32
);
3347 #define GetBrushOrgEx WINELIB_NAME(GetBrushOrgEx)
3348 void GetCaretPos16(LPPOINT16
);
3349 void GetCaretPos32(LPPOINT32
);
3350 #define GetCaretPos WINELIB_NAME(GetCaretPos)
3351 BOOL16
GetClassInfo16(HINSTANCE16
,SEGPTR
,WNDCLASS16
*);
3352 BOOL32
GetClassInfo32A(HINSTANCE32
,LPCSTR
,WNDCLASS32A
*);
3353 BOOL32
GetClassInfo32W(HINSTANCE32
,LPCWSTR
,WNDCLASS32W
*);
3354 #define GetClassInfo WINELIB_NAME_AW(GetClassInfo)
3355 BOOL16
GetClassInfoEx16(HINSTANCE16
,SEGPTR
,WNDCLASSEX16
*);
3356 BOOL32
GetClassInfoEx32A(HINSTANCE32
,LPCSTR
,WNDCLASSEX32A
*);
3357 BOOL32
GetClassInfoEx32W(HINSTANCE32
,LPCWSTR
,WNDCLASSEX32W
*);
3358 #define GetClassInfoEx WINELIB_NAME_AW(GetClassInfoEx)
3359 LONG
GetClassLong16(HWND16
,INT16
);
3360 LONG
GetClassLong32A(HWND32
,INT32
);
3361 LONG
GetClassLong32W(HWND32
,INT32
);
3362 #define GetClassLong WINELIB_NAME_AW(GetClassLong)
3363 INT16
GetClassName16(HWND16
,LPSTR
,INT16
);
3364 INT32
GetClassName32A(HWND32
,LPSTR
,INT32
);
3365 INT32
GetClassName32W(HWND32
,LPWSTR
,INT32
);
3366 #define GetClassName WINELIB_NAME_AW(GetClassName)
3367 void GetClientRect16(HWND16
,LPRECT16
);
3368 void GetClientRect32(HWND32
,LPRECT32
);
3369 #define GetClientRect WINELIB_NAME(GetClientRect)
3370 INT16
GetClipBox16(HDC16
,LPRECT16
);
3371 INT32
GetClipBox32(HDC32
,LPRECT32
);
3372 #define GetClipBox WINELIB_NAME(GetClipBox)
3373 void GetClipCursor16(LPRECT16
);
3374 void GetClipCursor32(LPRECT32
);
3375 #define GetClipCursor WINELIB_NAME(GetClipCursor)
3376 BOOL16
GetCurrentPositionEx16(HDC16
,LPPOINT16
);
3377 BOOL32
GetCurrentPositionEx32(HDC32
,LPPOINT32
);
3378 #define GetCurrentPositionEx WINELIB_NAME(GetCurrentPositionEx)
3379 void GetCursorPos16(LPPOINT16
);
3380 void GetCursorPos32(LPPOINT32
);
3381 #define GetCursorPos WINELIB_NAME(GetCursorPos)
3382 INT16
GetDlgItemText16(HWND16
,INT16
,SEGPTR
,UINT16
);
3383 INT32
GetDlgItemText32A(HWND32
,INT32
,LPSTR
,UINT32
);
3384 INT32
GetDlgItemText32W(HWND32
,INT32
,LPWSTR
,UINT32
);
3385 #define GetDlgItemText WINELIB_NAME_AW(GetDlgItemText)
3386 UINT16
GetInternalWindowPos16(HWND16
,LPRECT16
,LPPOINT16
);
3387 UINT32
GetInternalWindowPos32(HWND32
,LPRECT32
,LPPOINT32
);
3388 #define GetInternalWindowPos WINELIB_NAME(GetInternalWindowPos)
3389 UINT32
GetLogicalDriveStrings32A(UINT32
,LPSTR
);
3390 UINT32
GetLogicalDriveStrings32W(UINT32
,LPWSTR
);
3391 #define GetLogicalDriveStrings WINELIB_NAME(GetLogicalDriveStrings)
3392 INT16
GetObject16(HANDLE16
,INT16
,LPVOID
);
3393 INT32
GetObject32A(HANDLE32
,INT32
,LPVOID
);
3394 INT32
GetObject32W(HANDLE32
,INT32
,LPVOID
);
3395 #define GetObject WINELIB_NAME_AW(GetObject)
3396 INT16
GetRgnBox16(HRGN16
,LPRECT16
);
3397 INT32
GetRgnBox32(HRGN32
,LPRECT32
);
3398 #define GetRgnBox WINELIB_NAME(GetRgnBox)
3399 BOOL16
GetTextExtentPoint16(HDC16
,LPCSTR
,INT16
,LPSIZE16
);
3400 BOOL32
GetTextExtentPoint32A(HDC32
,LPCSTR
,INT32
,LPSIZE32
);
3401 BOOL32
GetTextExtentPoint32W(HDC32
,LPCWSTR
,INT32
,LPSIZE32
);
3402 #define GetTextExtentPoint WINELIB_NAME_AW(GetTextExtentPoint)
3403 BOOL16
GetUpdateRect16(HWND16
,LPRECT16
,BOOL16
);
3404 BOOL32
GetUpdateRect32(HWND32
,LPRECT32
,BOOL32
);
3405 #define GetUpdateRect WINELIB_NAME(GetUpdateRect)
3406 BOOL16
GetViewportExtEx16(HDC16
,LPPOINT16
);
3407 BOOL32
GetViewportExtEx32(HDC32
,LPPOINT32
);
3408 #define GetViewportExtEx WINELIB_NAME(GetViewportExtEx)
3409 BOOL16
GetViewportOrgEx16(HDC16
,LPPOINT16
);
3410 BOOL32
GetViewportOrgEx32(HDC32
,LPPOINT32
);
3411 #define GetViewportOrgEx WINELIB_NAME(GetViewportOrgEx)
3412 BOOL16
GetWindowExtEx16(HDC16
,LPPOINT16
);
3413 BOOL32
GetWindowExtEx32(HDC32
,LPPOINT32
);
3414 #define GetWindowExtEx WINELIB_NAME(GetWindowExtEx)
3415 LONG
GetWindowLong16(HWND16
,INT16
);
3416 LONG
GetWindowLong32A(HWND32
,INT32
);
3417 LONG
GetWindowLong32W(HWND32
,INT32
);
3418 #define GetWindowLong WINELIB_NAME_AW(GetWindowLong)
3419 BOOL16
GetWindowOrgEx16(HDC16
,LPPOINT16
);
3420 BOOL32
GetWindowOrgEx32(HDC32
,LPPOINT32
);
3421 #define GetWindowOrgEx WINELIB_NAME(GetWindowOrgEx)
3422 BOOL16
GetWindowPlacement16(HWND16
,LPWINDOWPLACEMENT16
);
3423 BOOL32
GetWindowPlacement32(HWND32
,LPWINDOWPLACEMENT32
);
3424 #define GetWindowPlacement WINELIB_NAME(GetWindowPlacement)
3425 void GetWindowRect16(HWND16
,LPRECT16
);
3426 void GetWindowRect32(HWND32
,LPRECT32
);
3427 #define GetWindowRect WINELIB_NAME(GetWindowRect)
3428 INT16
GetWindowText16(HWND16
,SEGPTR
,INT16
);
3429 INT32
GetWindowText32A(HWND32
,LPSTR
,INT32
);
3430 INT32
GetWindowText32W(HWND32
,LPWSTR
,INT32
);
3431 #define GetWindowText WINELIB_NAME_AW(GetWindowText)
3432 ATOM
GlobalAddAtom16(SEGPTR
);
3433 ATOM
GlobalAddAtom32A(LPCSTR
);
3434 ATOM
GlobalAddAtom32W(LPCWSTR
);
3435 #define GlobalAddAtom WINELIB_NAME_AW(GlobalAddAtom)
3436 HGLOBAL16
GlobalAlloc16(UINT16
,DWORD
);
3437 HGLOBAL32
GlobalAlloc32(UINT32
,DWORD
);
3438 #define GlobalAlloc WINELIB_NAME(GlobalAlloc)
3439 DWORD
GlobalCompact16(DWORD
);
3440 DWORD
GlobalCompact32(DWORD
);
3441 #define GlobalCompact WINELIB_NAME(GlobalCompact)
3442 UINT16
GlobalFlags16(HGLOBAL16
);
3443 UINT32
GlobalFlags32(HGLOBAL32
);
3444 #define GlobalFlags WINELIB_NAME(GlobalFlags)
3445 ATOM
GlobalFindAtom16(SEGPTR
);
3446 ATOM
GlobalFindAtom32A(LPCSTR
);
3447 ATOM
GlobalFindAtom32W(LPCWSTR
);
3448 #define GlobalFindAtom WINELIB_NAME_AW(GlobalFindAtom)
3449 HGLOBAL16
GlobalFree16(HGLOBAL16
);
3450 HGLOBAL32
GlobalFree32(HGLOBAL32
);
3451 #define GlobalFree WINELIB_NAME(GlobalFree)
3452 UINT16
GlobalGetAtomName16(ATOM
,LPSTR
,INT16
);
3453 UINT32
GlobalGetAtomName32A(ATOM
,LPSTR
,INT32
);
3454 UINT32
GlobalGetAtomName32W(ATOM
,LPWSTR
,INT32
);
3455 #define GlobalGetAtomName WINELIB_NAME_AW(GlobalGetAtomName)
3456 DWORD
GlobalHandle16(WORD
);
3457 HGLOBAL32
GlobalHandle32(LPCVOID
);
3458 #define GlobalHandle WINELIB_NAME(GlobalHandle)
3459 LPVOID
GlobalLock16(HGLOBAL16
);
3460 LPVOID
GlobalLock32(HGLOBAL32
);
3461 #define GlobalLock WINELIB_NAME(GlobalLock)
3462 HGLOBAL16
GlobalReAlloc16(HGLOBAL16
,DWORD
,UINT16
);
3463 HGLOBAL32
GlobalReAlloc32(HGLOBAL32
,DWORD
,UINT32
);
3464 #define GlobalReAlloc WINELIB_NAME(GlobalReAlloc)
3465 DWORD
GlobalSize16(HGLOBAL16
);
3466 DWORD
GlobalSize32(HGLOBAL32
);
3467 #define GlobalSize WINELIB_NAME(GlobalSize)
3468 BOOL16
GlobalUnlock16(HGLOBAL16
);
3469 BOOL32
GlobalUnlock32(HGLOBAL32
);
3470 #define GlobalUnlock WINELIB_NAME(GlobalUnlock)
3471 void InflateRect16(LPRECT16
,INT16
,INT16
);
3472 void InflateRect32(LPRECT32
,INT32
,INT32
);
3473 #define InflateRect WINELIB_NAME(InflateRect)
3474 BOOL16
InsertMenu16(HMENU16
,UINT16
,UINT16
,UINT16
,SEGPTR
);
3475 BOOL32
InsertMenu32A(HMENU32
,UINT32
,UINT32
,UINT32
,LPCSTR
);
3476 BOOL32
InsertMenu32W(HMENU32
,UINT32
,UINT32
,UINT32
,LPCWSTR
);
3477 #define InsertMenu WINELIB_NAME_AW(InsertMenu)
3478 BOOL16
IntersectRect16(LPRECT16
,const RECT16
*,const RECT16
*);
3479 BOOL32
IntersectRect32(LPRECT32
,const RECT32
*,const RECT32
*);
3480 #define IntersectRect WINELIB_NAME(IntersectRect)
3481 void InvalidateRect16(HWND16
,const RECT16
*,BOOL16
);
3482 void InvalidateRect32(HWND32
,const RECT32
*,BOOL32
);
3483 #define InvalidateRect WINELIB_NAME(InvalidateRect)
3484 void InvertRect16(HDC16
,const RECT16
*);
3485 void InvertRect32(HDC32
,const RECT32
*);
3486 #define InvertRect WINELIB_NAME(InvertRect)
3487 BOOL16
IsRectEmpty16(const RECT16
*);
3488 BOOL32
IsRectEmpty32(const RECT32
*);
3489 #define IsRectEmpty WINELIB_NAME(IsRectEmpty)
3490 HMENU16
LoadMenuIndirect16(LPCVOID
);
3491 HMENU32
LoadMenuIndirect32A(LPCVOID
);
3492 HMENU32
LoadMenuIndirect32W(LPCVOID
);
3493 #define LoadMenuIndirect WINELIB_NAME_AW(LoadMenuIndirect)
3494 HLOCAL16
LocalAlloc16(UINT16
,WORD
);
3495 HLOCAL32
LocalAlloc32(UINT32
,DWORD
);
3496 #define LocalAlloc WINELIB_NAME(LocalAlloc)
3497 UINT16
LocalCompact16(UINT16
);
3498 UINT32
LocalCompact32(UINT32
);
3499 #define LocalCompact WINELIB_NAME(LocalCompact)
3500 UINT16
LocalFlags16(HLOCAL16
);
3501 UINT32
LocalFlags32(HLOCAL32
);
3502 #define LocalFlags WINELIB_NAME(LocalFlags)
3503 HLOCAL16
LocalFree16(HLOCAL16
);
3504 HLOCAL32
LocalFree32(HLOCAL32
);
3505 #define LocalFree WINELIB_NAME(LocalFree)
3506 HLOCAL16
LocalHandle16(WORD
);
3507 HLOCAL32
LocalHandle32(LPCVOID
);
3508 #define LocalHandle WINELIB_NAME(LocalHandle)
3509 SEGPTR
LocalLock16(HLOCAL16
);
3510 LPVOID
LocalLock32(HLOCAL32
);
3511 #define LocalLock WINELIB_NAME(LocalLock)
3512 HLOCAL16
LocalReAlloc16(HLOCAL16
,WORD
,UINT16
);
3513 HLOCAL32
LocalReAlloc32(HLOCAL32
,DWORD
,UINT32
);
3514 #define LocalReAlloc WINELIB_NAME(LocalReAlloc)
3515 UINT16
LocalShrink16(HGLOBAL16
,UINT16
);
3516 UINT32
LocalShrink32(HGLOBAL32
,UINT32
);
3517 #define LocalShrink WINELIB_NAME(LocalShrink)
3518 UINT16
LocalSize16(HLOCAL16
);
3519 UINT32
LocalSize32(HLOCAL32
);
3520 #define LocalSize WINELIB_NAME(LocalSize)
3521 BOOL16
LocalUnlock16(HLOCAL16
);
3522 BOOL32
LocalUnlock32(HLOCAL32
);
3523 #define LocalUnlock WINELIB_NAME(LocalUnlock)
3524 BOOL16
LPtoDP16(HDC16
,LPPOINT16
,INT16
);
3525 BOOL32
LPtoDP32(HDC32
,LPPOINT32
,INT32
);
3526 #define LPtoDP WINELIB_NAME(LPtoDP)
3527 void MapDialogRect16(HWND16
,LPRECT16
);
3528 void MapDialogRect32(HWND32
,LPRECT32
);
3529 #define MapDialogRect WINELIB_NAME(MapDialogRect)
3530 void MapWindowPoints16(HWND16
,HWND16
,LPPOINT16
,UINT16
);
3531 void MapWindowPoints32(HWND32
,HWND32
,LPPOINT32
,UINT32
);
3532 #define MapWindowPoints WINELIB_NAME(MapWindowPoints)
3533 BOOL16
ModifyMenu16(HMENU16
,UINT16
,UINT16
,UINT16
,SEGPTR
);
3534 BOOL32
ModifyMenu32A(HMENU32
,UINT32
,UINT32
,UINT32
,LPCSTR
);
3535 BOOL32
ModifyMenu32W(HMENU32
,UINT32
,UINT32
,UINT32
,LPCWSTR
);
3536 #define ModifyMenu WINELIB_NAME_AW(ModifyMenu)
3537 BOOL16
MoveToEx16(HDC16
,INT16
,INT16
,LPPOINT16
);
3538 BOOL32
MoveToEx32(HDC32
,INT32
,INT32
,LPPOINT32
);
3539 #define MoveToEx WINELIB_NAME(MoveToEx)
3540 INT16
MulDiv16(INT16
,INT16
,INT16
);
3541 INT32
MulDiv32(INT32
,INT32
,INT32
);
3542 #define MulDiv WINELIB_NAME(MulDiv)
3543 void OffsetRect16(LPRECT16
,INT16
,INT16
);
3544 void OffsetRect32(LPRECT32
,INT32
,INT32
);
3545 #define OffsetRect WINELIB_NAME(OffsetRect)
3546 BOOL16
OffsetViewportOrgEx16(HDC16
,INT16
,INT16
,LPPOINT16
);
3547 BOOL32
OffsetViewportOrgEx32(HDC32
,INT32
,INT32
,LPPOINT32
);
3548 #define OffsetViewportOrgEx WINELIB_NAME(OffsetViewportOrgEx)
3549 BOOL16
OffsetWindowOrgEx16(HDC16
,INT16
,INT16
,LPPOINT16
);
3550 BOOL32
OffsetWindowOrgEx32(HDC32
,INT32
,INT32
,LPPOINT32
);
3551 #define OffsetWindowOrgEx WINELIB_NAME(OffsetWindowOrgEx)
3552 BOOL16
PeekMessage16(LPMSG16
,HWND16
,UINT16
,UINT16
,UINT16
);
3553 BOOL32
PeekMessage32A(LPMSG32
,HWND32
,UINT32
,UINT32
,UINT32
);
3554 BOOL32
PeekMessage32W(LPMSG32
,HWND32
,UINT32
,UINT32
,UINT32
);
3555 #define PeekMessage WINELIB_NAME_AW(PeekMessage)
3556 BOOL16
PolyPolygon16(HDC16
,LPPOINT16
,LPINT16
,UINT16
);
3557 BOOL32
PolyPolygon32(HDC32
,LPPOINT32
,LPINT32
,UINT32
);
3558 #define PolyPolygon WINELIB_NAME(PolyPolygon)
3559 BOOL16
Polygon16(HDC16
,LPPOINT16
,INT16
);
3560 BOOL32
Polygon32(HDC32
,LPPOINT32
,INT32
);
3561 #define Polygon WINELIB_NAME(Polygon)
3562 BOOL16
Polyline16(HDC16
,LPPOINT16
,INT16
);
3563 BOOL32
Polyline32(HDC32
,LPPOINT32
,INT32
);
3564 #define Polyline WINELIB_NAME(Polyline)
3565 BOOL16
PtInRect16(const RECT16
*,POINT16
);
3566 BOOL32
PtInRect32(const RECT32
*,POINT32
);
3567 #define PtInRect WINELIB_NAME(PtInRect)
3568 BOOL16
RectInRegion16(HRGN16
,const RECT16
*);
3569 BOOL32
RectInRegion32(HRGN32
,const RECT32
*);
3570 #define RectInRegion WINELIB_NAME(RectInRegion)
3571 BOOL16
RectVisible16(HDC16
,LPRECT16
);
3572 BOOL32
RectVisible32(HDC32
,LPRECT32
);
3573 #define RectVisible WINELIB_NAME(RectVisible)
3574 BOOL16
RedrawWindow16(HWND16
,const RECT16
*,HRGN16
,UINT16
);
3575 BOOL32
RedrawWindow32(HWND32
,const RECT32
*,HRGN32
,UINT32
);
3576 #define RedrawWindow WINELIB_NAME(RedrawWindow)
3577 DWORD
RegCreateKey16(HKEY
,LPCSTR
,LPHKEY
);
3578 DWORD
RegCreateKey32A(HKEY
,LPCSTR
,LPHKEY
);
3579 DWORD
RegCreateKey32W(HKEY
,LPCWSTR
,LPHKEY
);
3580 #define RegCreateKey WINELIB_NAME_AW(RegCreateKey)
3581 DWORD
RegCreateKeyEx32A(HKEY
,LPCSTR
,DWORD
,LPSTR
,DWORD
,REGSAM
,
3582 LPSECURITY_ATTRIBUTES
,LPHKEY
,LPDWORD
);
3583 DWORD
RegCreateKeyEx32W(HKEY
,LPCWSTR
,DWORD
,LPWSTR
,DWORD
,REGSAM
,
3584 LPSECURITY_ATTRIBUTES
,LPHKEY
,LPDWORD
);
3585 /* there is no RegCreateKeyEx16 */
3586 #define RegCreateKeyEx WINELIB_NAME_AW(RegCreateKeyEx)
3587 DWORD
RegDeleteKey16(HKEY
,LPCSTR
);
3588 DWORD
RegDeleteKey32A(HKEY
,LPCSTR
);
3589 DWORD
RegDeleteKey32W(HKEY
,LPWSTR
);
3590 #define RegDeleteKey WINELIB_NAME_AW(RegDeleteKey)
3591 DWORD
RegDeleteValue16(HKEY
,LPSTR
);
3592 DWORD
RegDeleteValue32A(HKEY
,LPSTR
);
3593 DWORD
RegDeleteValue32W(HKEY
,LPWSTR
);
3594 #define RegDeleteValue WINELIB_NAME_AW(RegDeleteValue)
3595 DWORD
RegEnumKey16(HKEY
,DWORD
,LPSTR
,DWORD
);
3596 DWORD
RegEnumKey32A(HKEY
,DWORD
,LPSTR
,DWORD
);
3597 DWORD
RegEnumKey32W(HKEY
,DWORD
,LPWSTR
,DWORD
);
3598 #define RegEnumKey WINELIB_NAME_AW(RegEnumKey)
3599 DWORD
RegEnumKeyEx32A(HKEY
,DWORD
,LPSTR
,LPDWORD
,LPDWORD
,LPSTR
,LPDWORD
,FILETIME
*);
3600 DWORD
RegEnumKeyEx32W(HKEY
,DWORD
,LPWSTR
,LPDWORD
,LPDWORD
,LPWSTR
,LPDWORD
,FILETIME
*);
3601 /* there is no RegEnumKeyEx16 */
3602 #define RegEnumKeyEx WINELIB_NAME_AW(RegEnumKeyEx)
3603 DWORD
RegEnumValue16(HKEY
,DWORD
,LPSTR
,LPDWORD
,LPDWORD
,LPDWORD
,LPBYTE
,LPDWORD
);
3604 DWORD
RegEnumValue32A(HKEY
,DWORD
,LPSTR
,LPDWORD
,LPDWORD
,LPDWORD
,LPBYTE
,LPDWORD
);
3605 DWORD
RegEnumValue32W(HKEY
,DWORD
,LPWSTR
,LPDWORD
,LPDWORD
,LPDWORD
,LPBYTE
,LPDWORD
);
3606 #define RegEnumValue WINELIB_NAME_AW(RegEnumValue)
3607 ATOM
RegisterClass16(const WNDCLASS16
*);
3608 ATOM
RegisterClass32A(const WNDCLASS32A
*);
3609 ATOM
RegisterClass32W(const WNDCLASS32W
*);
3610 #define RegisterClass WINELIB_NAME_AW(RegisterClass)
3611 ATOM
RegisterClassEx16(const WNDCLASSEX16
*);
3612 ATOM
RegisterClassEx32A(const WNDCLASSEX32A
*);
3613 ATOM
RegisterClassEx32W(const WNDCLASSEX32W
*);
3614 #define RegisterClassEx WINELIB_NAME_AW(RegisterClassEx)
3615 WORD
RegisterWindowMessage16(SEGPTR
);
3616 WORD
RegisterWindowMessage32A(LPCSTR
);
3617 WORD
RegisterWindowMessage32W(LPCWSTR
);
3618 #define RegisterWindowMessage WINELIB_NAME_AW(RegisterWindowMessage)
3619 DWORD
RegOpenKey16(HKEY
,LPCSTR
,LPHKEY
);
3620 DWORD
RegOpenKey32A(HKEY
,LPCSTR
,LPHKEY
);
3621 DWORD
RegOpenKey32W(HKEY
,LPCWSTR
,LPHKEY
);
3622 #define RegOpenKey WINELIB_NAME_AW(RegOpenKey)
3623 DWORD
RegOpenKeyEx32W(HKEY
,LPCWSTR
,DWORD
,REGSAM
,LPHKEY
);
3624 DWORD
RegOpenKeyEx32A(HKEY
,LPCSTR
,DWORD
,REGSAM
,LPHKEY
);
3625 /* there is no RegOpenKeyEx16 */
3626 #define RegOpenKeyEx WINELIB_NAME_AW(RegOpenKeyEx)
3627 DWORD
RegQueryInfoKey32W(HKEY
,LPWSTR
,LPDWORD
,LPDWORD
,LPDWORD
,LPDWORD
,
3628 LPDWORD
,LPDWORD
,LPDWORD
,LPDWORD
,LPDWORD
,FILETIME
*);
3629 DWORD
RegQueryInfoKey32A(HKEY
,LPSTR
,LPDWORD
,LPDWORD
,LPDWORD
,LPDWORD
,
3630 LPDWORD
,LPDWORD
,LPDWORD
,LPDWORD
,LPDWORD
,FILETIME
*);
3631 /* there is no RegQueryInfoKey16 */
3632 #define RegQueryInfoKey WINELIB_NAME_AW(RegQueryInfoKey)
3633 DWORD
RegQueryValue16(HKEY
,LPSTR
,LPSTR
,LPDWORD
);
3634 DWORD
RegQueryValue32A(HKEY
,LPSTR
,LPSTR
,LPDWORD
);
3635 DWORD
RegQueryValue32W(HKEY
,LPWSTR
,LPWSTR
,LPDWORD
);
3636 #define RegQueryValue WINELIB_NAME_AW(RegQueryValue)
3637 DWORD
RegQueryValueEx16(HKEY
,LPSTR
,LPDWORD
,LPDWORD
,LPBYTE
,LPDWORD
);
3638 DWORD
RegQueryValueEx32A(HKEY
,LPSTR
,LPDWORD
,LPDWORD
,LPBYTE
,LPDWORD
);
3639 DWORD
RegQueryValueEx32W(HKEY
,LPWSTR
,LPDWORD
,LPDWORD
,LPBYTE
,LPDWORD
);
3640 #define RegQueryValueEx WINELIB_NAME_AW(RegQueryValueEx)
3641 DWORD
RegSetValue16(HKEY
,LPCSTR
,DWORD
,LPCSTR
,DWORD
);
3642 DWORD
RegSetValue32A(HKEY
,LPCSTR
,DWORD
,LPCSTR
,DWORD
);
3643 DWORD
RegSetValue32W(HKEY
,LPCWSTR
,DWORD
,LPCWSTR
,DWORD
);
3644 #define RegSetValue WINELIB_NAME_AW(RegSetValue)
3645 DWORD
RegSetValueEx16(HKEY
,LPSTR
,DWORD
,DWORD
,LPBYTE
,DWORD
);
3646 DWORD
RegSetValueEx32A(HKEY
,LPSTR
,DWORD
,DWORD
,LPBYTE
,DWORD
);
3647 DWORD
RegSetValueEx32W(HKEY
,LPWSTR
,DWORD
,DWORD
,LPBYTE
,DWORD
);
3648 #define RegSetValueEx WINELIB_NAME_AW(RegSetValueEx)
3649 BOOL16
ScaleViewportExtEx16(HDC16
,INT16
,INT16
,INT16
,INT16
,LPSIZE16
);
3650 BOOL32
ScaleViewportExtEx32(HDC32
,INT32
,INT32
,INT32
,INT32
,LPSIZE32
);
3651 #define ScaleViewportExtEx WINELIB_NAME(ScaleViewportExtEx)
3652 BOOL16
ScaleWindowExtEx16(HDC16
,INT16
,INT16
,INT16
,INT16
,LPSIZE16
);
3653 BOOL32
ScaleWindowExtEx32(HDC32
,INT32
,INT32
,INT32
,INT32
,LPSIZE32
);
3654 #define ScaleWindowExtEx WINELIB_NAME(ScaleWindowExtEx)
3655 void ScreenToClient16(HWND16
,LPPOINT16
);
3656 void ScreenToClient32(HWND32
,LPPOINT32
);
3657 #define ScreenToClient WINELIB_NAME(ScreenToClient)
3658 LRESULT
SendDlgItemMessage16(HWND16
,INT16
,UINT16
,WPARAM16
,LPARAM
);
3659 LRESULT
SendDlgItemMessage32A(HWND32
,INT32
,UINT32
,WPARAM32
,LPARAM
);
3660 LRESULT
SendDlgItemMessage32W(HWND32
,INT32
,UINT32
,WPARAM32
,LPARAM
);
3661 #define SendDlgItemMessage WINELIB_NAME_AW(SendDlgItemMessage)
3662 LRESULT
SendMessage16(HWND16
,UINT16
,WPARAM16
,LPARAM
);
3663 LRESULT
SendMessage32A(HWND32
,UINT32
,WPARAM32
,LPARAM
);
3664 LRESULT
SendMessage32W(HWND32
,UINT32
,WPARAM32
,LPARAM
);
3665 #define SendMessage WINELIB_NAME_AW(SendMessage)
3666 BOOL16
SetBitmapDimensionEx16(HBITMAP16
,INT16
,INT16
,LPSIZE16
);
3667 BOOL32
SetBitmapDimensionEx32(HBITMAP32
,INT32
,INT32
,LPSIZE32
);
3668 #define SetBitmapDimensionEx WINELIB_NAME(SetBitmapDimensionEx)
3669 LONG
SetClassLong16(HWND16
,INT16
,LONG
);
3670 LONG
SetClassLong32A(HWND32
,INT32
,LONG
);
3671 LONG
SetClassLong32W(HWND32
,INT32
,LONG
);
3672 #define SetClassLong WINELIB_NAME_AW(SetClassLong)
3673 void SetDlgItemInt16(HWND16
,INT16
,UINT16
,BOOL16
);
3674 void SetDlgItemInt32(HWND32
,INT32
,UINT32
,BOOL32
);
3675 #define SetDlgItemInt WINELIB_NAME(SetDlgItemInt)
3676 void SetDlgItemText16(HWND16
,INT16
,SEGPTR
);
3677 void SetDlgItemText32A(HWND32
,INT32
,LPCSTR
);
3678 void SetDlgItemText32W(HWND32
,INT32
,LPCWSTR
);
3679 #define SetDlgItemText WINELIB_NAME_AW(SetDlgItemText)
3680 void SetInternalWindowPos16(HWND16
,UINT16
,LPRECT16
,LPPOINT16
);
3681 void SetInternalWindowPos32(HWND32
,UINT32
,LPRECT32
,LPPOINT32
);
3682 #define SetInternalWindowPos WINELIB_NAME(SetInternalWindowPos)
3683 void SetRect16(LPRECT16
,INT16
,INT16
,INT16
,INT16
);
3684 void SetRect32(LPRECT32
,INT32
,INT32
,INT32
,INT32
);
3685 #define SetRect WINELIB_NAME(SetRect)
3686 void SetRectEmpty16(LPRECT16
);
3687 void SetRectEmpty32(LPRECT32
);
3688 #define SetRectEmpty WINELIB_NAME(SetRectEmpty)
3689 BOOL16
SetViewportExtEx16(HDC16
,INT16
,INT16
,LPSIZE16
);
3690 BOOL32
SetViewportExtEx32(HDC32
,INT32
,INT32
,LPSIZE32
);
3691 #define SetViewportExtEx WINELIB_NAME(SetViewportExtEx)
3692 BOOL16
SetViewportOrgEx16(HDC16
,INT16
,INT16
,LPPOINT16
);
3693 BOOL32
SetViewportOrgEx32(HDC32
,INT32
,INT32
,LPPOINT32
);
3694 #define SetViewportOrgEx WINELIB_NAME(SetViewportOrgEx)
3695 BOOL16
SetWindowExtEx16(HDC16
,INT16
,INT16
,LPSIZE16
);
3696 BOOL32
SetWindowExtEx32(HDC32
,INT32
,INT32
,LPSIZE32
);
3697 #define SetWindowExtEx WINELIB_NAME(SetWindowExtEx)
3698 LONG
SetWindowLong16(HWND16
,INT16
,LONG
);
3699 LONG
SetWindowLong32A(HWND32
,INT32
,LONG
);
3700 LONG
SetWindowLong32W(HWND32
,INT32
,LONG
);
3701 #define SetWindowLong WINELIB_NAME_AW(SetWindowLong)
3702 BOOL16
SetWindowOrgEx16(HDC16
,INT16
,INT16
,LPPOINT16
);
3703 BOOL32
SetWindowOrgEx32(HDC32
,INT32
,INT32
,LPPOINT32
);
3704 #define SetWindowOrgEx WINELIB_NAME(SetWindowOrgEx)
3705 BOOL16
SetWindowPlacement16(HWND16
,const WINDOWPLACEMENT16
*);
3706 BOOL32
SetWindowPlacement32(HWND32
,const WINDOWPLACEMENT32
*);
3707 #define SetWindowPlacement WINELIB_NAME(SetWindowPlacement)
3708 void SetWindowText16(HWND16
,SEGPTR
);
3709 void SetWindowText32A(HWND32
,LPCSTR
);
3710 void SetWindowText32W(HWND32
,LPCWSTR
);
3711 #define SetWindowText WINELIB_NAME_AW(SetWindowText)
3712 BOOL16
SubtractRect16(LPRECT16
,const RECT16
*,const RECT16
*);
3713 BOOL32
SubtractRect32(LPRECT32
,const RECT32
*,const RECT32
*);
3714 #define SubtractRect WINELIB_NAME(SubtractRect)
3715 BOOL16
TextOut16(HDC16
,INT16
,INT16
,LPCSTR
,INT16
);
3716 BOOL32
TextOut32A(HDC32
,INT32
,INT32
,LPCSTR
,INT32
);
3717 BOOL32
TextOut32W(HDC32
,INT32
,INT32
,LPCWSTR
,INT32
);
3718 #define TextOut WINELIB_NAME_AW(TextOut)
3719 BOOL16
TrackPopupMenu16(HMENU16
,UINT16
,INT16
,INT16
,INT16
,HWND16
,const RECT16
*);
3720 BOOL32
TrackPopupMenu32(HMENU32
,UINT32
,INT32
,INT32
,INT32
,HWND32
,const RECT32
*);
3721 #define TrackPopupMenu WINELIB_NAME(TrackPopupMenu)
3722 BOOL16
UnionRect16(LPRECT16
,const RECT16
*,const RECT16
*);
3723 BOOL32
UnionRect32(LPRECT32
,const RECT32
*,const RECT32
*);
3724 #define UnionRect WINELIB_NAME(UnionRect)
3725 BOOL16
UnregisterClass16(SEGPTR
,HINSTANCE16
);
3726 BOOL32
UnregisterClass32A(LPCSTR
,HINSTANCE32
);
3727 BOOL32
UnregisterClass32W(LPCWSTR
,HINSTANCE32
);
3728 #define UnregisterClass WINELIB_NAME_AW(UnregisterClass)
3729 void ValidateRect16(HWND16
,const RECT16
*);
3730 void ValidateRect32(HWND32
,const RECT32
*);
3731 #define ValidateRect WINELIB_NAME(ValidateRect)
3732 HWND16
WindowFromPoint16(POINT16
);
3733 HWND32
WindowFromPoint32(POINT32
);
3734 #define WindowFromPoint WINELIB_NAME(WindowFromPoint)
3735 SEGPTR
lstrcat16(SEGPTR
,SEGPTR
);
3736 LPSTR
lstrcat32A(LPSTR
,LPCSTR
);
3737 LPWSTR
lstrcat32W(LPWSTR
,LPCWSTR
);
3738 #define lstrcat WINELIB_NAME_AW(lstrcat)
3739 SEGPTR
lstrcatn16(SEGPTR
,SEGPTR
,INT16
);
3740 LPSTR
lstrcatn32A(LPSTR
,LPCSTR
,INT32
);
3741 LPWSTR
lstrcatn32W(LPWSTR
,LPCWSTR
,INT32
);
3742 #define lstrcatn WINELIB_NAME_AW(lstrcatn)
3743 INT16
lstrcmp16(LPCSTR
,LPCSTR
);
3744 INT32
lstrcmp32A(LPCSTR
,LPCSTR
);
3745 INT32
lstrcmp32W(LPCWSTR
,LPCWSTR
);
3746 #define lstrcmp WINELIB_NAME_AW(lstrcmp)
3747 INT16
lstrcmpi16(LPCSTR
,LPCSTR
);
3748 INT32
lstrcmpi32A(LPCSTR
,LPCSTR
);
3749 INT32
lstrcmpi32W(LPCWSTR
,LPCWSTR
);
3750 #define lstrcmpi WINELIB_NAME_AW(lstrcmpi)
3751 SEGPTR
lstrcpy16(SEGPTR
,SEGPTR
);
3752 LPSTR
lstrcpy32A(LPSTR
,LPCSTR
);
3753 LPWSTR
lstrcpy32W(LPWSTR
,LPCWSTR
);
3754 #define lstrcpy WINELIB_NAME_AW(lstrcpy)
3755 SEGPTR
lstrcpyn16(SEGPTR
,SEGPTR
,INT16
);
3756 LPSTR
lstrcpyn32A(LPSTR
,LPCSTR
,INT32
);
3757 LPWSTR
lstrcpyn32W(LPWSTR
,LPCWSTR
,INT32
);
3758 #define lstrcpyn WINELIB_NAME_AW(lstrcpyn)
3759 INT16
lstrlen16(LPCSTR
);
3760 INT32
lstrlen32A(LPCSTR
);
3761 INT32
lstrlen32W(LPCWSTR
);
3762 #define lstrlen WINELIB_NAME_AW(lstrlen)
3763 INT16
lstrncmp16(LPCSTR
,LPCSTR
,INT16
);
3764 INT32
lstrncmp32A(LPCSTR
,LPCSTR
,INT32
);
3765 INT32
lstrncmp32W(LPCWSTR
,LPCWSTR
,INT32
);
3766 #define lstrncmp WINELIB_NAME_AW(lstrncmp)
3767 INT16
lstrncmpi16(LPCSTR
,LPCSTR
,INT16
);
3768 INT32
lstrncmpi32A(LPCSTR
,LPCSTR
,INT32
);
3769 INT32
lstrncmpi32W(LPCWSTR
,LPCWSTR
,INT32
);
3770 #define lstrncmpi WINELIB_NAME_AW(lstrncmpi)
3771 INT16
wsnprintf16(LPSTR
,UINT16
,LPCSTR
,...);
3772 INT32
wsnprintf32A(LPSTR
,UINT32
,LPCSTR
,...);
3773 INT32
wsnprintf32W(LPWSTR
,UINT32
,LPCWSTR
,...);
3774 #define wsnprintf WINELIB_NAME_AW(wsnprintf)
3775 INT16
wsprintf16(LPSTR
,LPCSTR
,...);
3776 INT32
wsprintf32A(LPSTR
,LPCSTR
,...);
3777 INT32
wsprintf32W(LPWSTR
,LPCWSTR
,...);
3778 #define wsprintf WINELIB_NAME_AW(wsprintf)
3779 INT16
wvsnprintf16(LPSTR
,UINT16
,LPCSTR
,LPCVOID
);
3780 INT32
wvsnprintf32A(LPSTR
,UINT32
,LPCSTR
,LPCVOID
);
3781 INT32
wvsnprintf32W(LPWSTR
,UINT32
,LPCWSTR
,LPCVOID
);
3782 #define wvsnprintf WINELIB_NAME_AW(wvsnprintf)
3783 INT16
wvsprintf16(LPSTR
,LPCSTR
,LPCVOID
);
3784 INT32
wvsprintf32A(LPSTR
,LPCSTR
,LPCVOID
);
3785 INT32
wvsprintf32W(LPWSTR
,LPCWSTR
,LPCVOID
);
3786 #define wvsprintf WINELIB_NAME_AW(wvsprintf)
3788 /* Library data types defined as a transition aid for the emulator. */
3789 /* These should _not_ be used in the emulator and will be removed someday. */
3791 #ifndef NO_TRANSITION_TYPES
3795 typedef UINT16 UINT
;
3796 typedef BOOL16 BOOL
;
3797 typedef WPARAM16 WPARAM
;
3798 typedef HANDLE16 HANDLE
;
3799 typedef HANDLE16 HBITMAP
;
3800 typedef HANDLE16 HBRUSH
;
3801 typedef HANDLE16 HCURSOR
;
3802 typedef HANDLE16 HDC
;
3803 typedef HANDLE16 HDRVR
;
3804 typedef HANDLE16 HFONT
;
3805 typedef HANDLE16 HGLOBAL
;
3806 typedef HANDLE16 HICON
;
3807 typedef HANDLE16 HINSTANCE
;
3808 typedef HANDLE16 HMENU
;
3809 typedef HANDLE16 HMETAFILE
;
3810 typedef HANDLE16 HMIDI
;
3811 typedef HANDLE16 HMIDIIN
;
3812 typedef HANDLE16 HMIDIOUT
;
3813 typedef HANDLE16 HMMIO
;
3814 typedef HANDLE16 HMODULE
;
3815 typedef HANDLE16 HQUEUE
;
3816 typedef HANDLE16 HRGN
;
3817 typedef HANDLE16 HRSRC
;
3818 typedef HANDLE16 HTASK
;
3819 typedef HANDLE16 HWAVE
;
3820 typedef HANDLE16 HWAVEIN
;
3821 typedef HANDLE16 HWAVEOUT
;
3822 typedef HANDLE16 HWND
;
3823 typedef FARPROC16 FARPROC
;
3824 #endif /* WINELIB */
3826 /* Callback function pointers types. */
3829 typedef LONG (*DRIVERPROC
)(DWORD
, HDRVR
, UINT
, LPARAM
, LPARAM
);
3830 typedef int (*EDITWORDBREAKPROC
)(LPSTR lpch
, int ichCurrent
, int cch
,int code
);
3831 /*typedef int (*FONTENUMPROC)(const LOGFONT*,const TEXTMETRIC*,DWORD,LPARAM);*/
3832 typedef int (*FONTENUMPROC
)(const void*,const void*,DWORD
,LPARAM
);
3833 typedef int (*GOBJENUMPROC
)(LPVOID
,LPARAM
);
3834 /*typedef int (*MFENUMPROC)(HDC,HANDLETABLE*,METARECORD*,int,LPARAM);*/
3835 typedef int (*MFENUMPROC
)(HDC
,void*,void*,int,LPARAM
);
3836 typedef BOOL (*PROPENUMPROC
)(HWND
,LPCTSTR
,HANDLE
);
3837 typedef LRESULT (*WNDENUMPROC
)(HWND
,LPARAM
);
3839 typedef SEGPTR DRIVERPROC
;
3840 typedef SEGPTR EDITWORDBREAKPROC
;
3841 typedef SEGPTR FONTENUMPROC
;
3842 typedef SEGPTR GOBJENUMPROC
;
3843 typedef SEGPTR MFENUMPROC
;
3844 typedef SEGPTR PROPENUMPROC
;
3845 typedef SEGPTR WNDENUMPROC
;
3847 typedef FARPROC HOOKPROC
;
3849 #endif /* NO_TRANSITION_TYPES */
3852 INT
AccessResource(HINSTANCE
,HRSRC
);
3853 ATOM
AddAtom(SEGPTR
);
3854 INT
AddFontResource(LPCSTR
);
3855 WORD
AllocCStoDSAlias(WORD
);
3856 WORD
AllocDStoCSAlias(WORD
);
3857 HGLOBAL
AllocResource(HINSTANCE
,HRSRC
,DWORD
);
3858 WORD
AllocSelector(WORD
);
3859 WORD
AllocSelectorArray(WORD
);
3860 BOOL
AnimatePalette(HPALETTE16
,UINT
,UINT
,LPPALETTEENTRY
);
3861 LPSTR
AnsiLower(LPSTR
);
3862 UINT
AnsiLowerBuff(LPSTR
,UINT
);
3863 SEGPTR
AnsiNext(SEGPTR
);
3864 SEGPTR
AnsiPrev(SEGPTR
,SEGPTR
);
3865 INT
AnsiToOem(LPSTR
,LPSTR
);
3866 void AnsiToOemBuff(LPCSTR
,LPSTR
,UINT
);
3867 LPSTR
AnsiUpper(LPSTR
);
3868 UINT
AnsiUpperBuff(LPSTR
,UINT
);
3869 BOOL
AnyPopup(void);
3870 BOOL
Arc(HDC
,INT
,INT
,INT
,INT
,INT
,INT
,INT
,INT
);
3871 UINT
ArrangeIconicWindows(HWND
);
3872 HDWP16
BeginDeferWindowPos(INT
);
3873 BOOL
BitBlt(HDC
,INT
,INT
,INT
,INT
,HDC
,INT
,INT
,DWORD
);
3874 BOOL
BringWindowToTop(HWND
);
3875 BOOL
BuildCommDCB(LPCSTR
,DCB
*);
3876 void CalcChildScroll(HWND
,WORD
);
3877 BOOL
CallMsgFilter(SEGPTR
,INT
);
3878 LRESULT
CallNextHookEx(HHOOK
,INT
,WPARAM
,LPARAM
);
3879 INT
Catch(LPCATCHBUF
);
3880 BOOL
ChangeClipboardChain(HWND
,HWND
);
3881 WORD
ChangeSelector(WORD
,WORD
);
3882 BOOL
CheckDlgButton(HWND
,INT
,UINT
);
3883 INT
CheckMenuItem(HMENU
,UINT
,UINT
);
3884 BOOL
CheckRadioButton(HWND
,UINT
,UINT
,UINT
);
3885 BOOL
Chord(HDC
,INT
,INT
,INT
,INT
,INT
,INT
,INT
,INT
);
3886 int ClearCommBreak(int);
3887 BOOL
CloseClipboard(void);
3889 HMETAFILE
CloseMetaFile(HDC
);
3890 void CloseSound(void);
3891 BOOL
CloseWindow(HWND
);
3892 INT16
CombineRgn(HRGN32
,HRGN32
,HRGN32
,INT32
);
3893 int ConvertRequest(HWND
,LPKANJISTRUCT
);
3895 HCURSOR
CopyCursor(HCURSOR
); /* Win32 */
3896 HICON
CopyIcon(HICON
); /* Win32 */
3898 HCURSOR
CopyCursor(HINSTANCE
,HCURSOR
); /* Win16 */
3899 HICON
CopyIcon(HINSTANCE
,HICON
); /* Win16 */
3901 HMETAFILE
CopyMetaFile(HMETAFILE
,LPCSTR
);
3902 INT
CountClipboardFormats(void);
3903 INT
CountVoiceNotes(INT
);
3904 HBRUSH
CreateBrushIndirect(const LOGBRUSH16
*);
3905 BOOL
CreateCaret(HWND
,HBITMAP
,INT
,INT
);
3906 HDC
CreateCompatibleDC(HDC
);
3907 HCURSOR
CreateCursor(HANDLE
,INT
,INT
,INT
,INT
,const BYTE
*,const BYTE
*);
3908 HANDLE
CreateCursorIconIndirect(HANDLE
,CURSORICONINFO
*,const BYTE
*,const BYTE
*);
3909 HDC
CreateDC(LPCSTR
,LPCSTR
,LPCSTR
,const DEVMODE
*);
3910 HBRUSH
CreateDIBPatternBrush(HGLOBAL
,UINT
);
3911 HBITMAP
CreateDIBitmap(HDC
,BITMAPINFOHEADER
*,DWORD
,LPVOID
,BITMAPINFO
*,UINT
);
3912 HRGN
CreateEllipticRgn(INT32
,INT32
,INT32
,INT32
);
3913 HFONT
CreateFont(INT
,INT
,INT
,INT
,INT
,BYTE
,BYTE
,BYTE
,BYTE
,BYTE
,BYTE
,BYTE
,BYTE
,LPCSTR
);
3914 HFONT
CreateFontIndirect(const LOGFONT16
*);
3915 HBRUSH
CreateHatchBrush(INT
,COLORREF
);
3916 HDC
CreateIC(LPCSTR
,LPCSTR
,LPCSTR
,const DEVMODE
*);
3917 HICON
CreateIcon(HINSTANCE
,INT
,INT
,BYTE
,BYTE
,const BYTE
*,const BYTE
*);
3918 HMENU
CreateMenu(void);
3919 HDC
CreateMetaFile(LPCSTR
);
3920 HPALETTE16
CreatePalette(const LOGPALETTE
*);
3921 HBRUSH
CreatePatternBrush(HBITMAP
);
3922 HPEN16
CreatePen(INT
,INT
,COLORREF
);
3923 HPEN16
CreatePenIndirect(const LOGPEN16
*);
3924 HMENU
CreatePopupMenu(void);
3925 HRGN
CreateRectRgn(INT32
,INT32
,INT32
,INT32
);
3926 HRGN
CreateRoundRectRgn(INT32
,INT32
,INT32
,INT32
,INT32
,INT32
);
3927 HBRUSH
CreateSolidBrush(COLORREF
);
3928 void DebugBreak(void);
3929 DWORD
DefHookProc(short,WORD
,DWORD
,HHOOK
*);
3930 HDWP16
DeferWindowPos(HDWP16
,HWND
,HWND
,INT
,INT
,INT
,INT
,UINT
);
3931 ATOM
DeleteAtom(ATOM
);
3933 BOOL
DeleteMenu(HMENU
,UINT
,UINT
);
3934 BOOL
DeleteMetaFile(HMETAFILE
);
3935 BOOL
DeleteObject(HGDIOBJ16
);
3936 BOOL
DestroyCaret(void);
3937 BOOL
DestroyCursor(HCURSOR
);
3938 BOOL
DestroyIcon(HICON
);
3939 BOOL
DestroyMenu(HMENU
);
3940 BOOL
DestroyWindow(HWND
);
3941 HANDLE
DirectResAlloc(HANDLE
,WORD
,WORD
);
3942 void DirectedYield(HTASK
);
3943 LONG
DispatchMessage(const MSG16
*);
3944 INT
DlgDirList(HWND
,SEGPTR
,INT
,INT
,UINT
);
3945 BOOL
DlgDirSelect(HWND
,LPSTR
,INT
);
3946 BOOL
DlgDirSelectComboBox(HWND
,LPSTR
,INT
);
3947 BOOL16
DragDetect(HWND16
,POINT16
);
3948 DWORD
DragObject(HWND
, HWND
, WORD
, HANDLE
, WORD
, HCURSOR
);
3949 BOOL
DrawIcon(HDC
,INT
,INT
,HICON
);
3950 void DrawMenuBar(HWND
);
3951 DWORD
DumpIcon(SEGPTR
,WORD
*,SEGPTR
*,SEGPTR
*);
3952 BOOL
Ellipse(HDC
,INT
,INT
,INT
,INT
);
3953 BOOL
EmptyClipboard(void);
3954 BOOL
EnableHardwareInput(BOOL
);
3955 BOOL
EnableMenuItem(HMENU
,UINT
,UINT
);
3956 BOOL
EnableScrollBar(HWND
,UINT
,UINT
);
3957 BOOL
EnableWindow(HWND
,BOOL
);
3958 BOOL
EndDeferWindowPos(HDWP16
);
3959 BOOL
EnumChildWindows(HWND
,WNDENUMPROC
,LPARAM
);
3960 UINT
EnumClipboardFormats(UINT
);
3961 INT
EnumFontFamilies(HDC
,LPCSTR
,FONTENUMPROC
,LPARAM
);
3962 INT
EnumFonts(HDC
,LPCSTR
,FONTENUMPROC
,LPARAM
);
3963 BOOL
EnumMetaFile(HDC
,HMETAFILE
,MFENUMPROC
,LPARAM
);
3964 INT
EnumObjects(HDC
,INT
,GOBJENUMPROC
,LPARAM
);
3965 INT
EnumProps(HWND
,PROPENUMPROC
);
3966 BOOL
EnumTaskWindows(HTASK
,WNDENUMPROC
,LPARAM
);
3967 BOOL
EnumWindows(WNDENUMPROC
,LPARAM
);
3968 BOOL
EqualRgn(HRGN32
,HRGN32
);
3969 INT
Escape(HDC
,INT
,INT
,LPCSTR
,LPVOID
);
3970 LONG
EscapeCommFunction(int,int);
3971 int ExcludeClipRect(HDC
,short,short,short,short);
3972 int ExcludeVisRect(HDC
,short,short,short,short);
3973 BOOL
ExitWindows(DWORD
,WORD
);
3974 BOOL
ExtFloodFill(HDC
,INT
,INT
,COLORREF
,WORD
);
3975 HICON
ExtractIcon(HINSTANCE
,LPCSTR
,WORD
);
3976 WORD
FarGetOwner(HANDLE
);
3977 void FarSetOwner(HANDLE
,HANDLE
);
3978 void FatalAppExit(UINT
,LPCSTR
);
3979 void FatalExit(int);
3980 BOOL
FillRgn(HDC
,HRGN
,HBRUSH
);
3981 ATOM
FindAtom(SEGPTR
);
3982 HINSTANCE
FindExecutable(LPCSTR
,LPCSTR
,LPSTR
);
3983 HRSRC
FindResource(HINSTANCE
,SEGPTR
,SEGPTR
);
3984 BOOL
FlashWindow(HWND
,BOOL
);
3985 BOOL
FloodFill(HDC
,INT
,INT
,COLORREF
);
3986 int FlushComm(int,int);
3987 BOOL
FrameRgn(HDC
,HRGN
,HBRUSH
,int,int);
3988 void FreeLibrary(HANDLE
);
3989 BOOL
FreeModule(HANDLE
);
3990 void FreeProcInstance(FARPROC
);
3991 BOOL
FreeResource(HGLOBAL
);
3992 WORD
FreeSelector(WORD
);
3993 UINT
GDIRealizePalette(HDC
);
3994 HPALETTE16
GDISelectPalette(HDC
,HPALETTE16
);
3995 HWND
GetActiveWindow(void);
3996 DWORD
GetAspectRatioFilter(HDC
);
3997 int GetAsyncKeyState(int);
3998 HANDLE
GetAtomHandle(ATOM
);
3999 WORD
GetAtomName(ATOM
,LPSTR
,short);
4000 COLORREF
GetBkColor(HDC
);
4001 WORD
GetBkMode(HDC
);
4002 DWORD
GetBrushOrg(HDC
);
4003 HWND
GetCapture(void);
4004 WORD
GetCaretBlinkTime(void);
4005 BOOL
GetCharABCWidths(HDC
,UINT
,UINT
,LPABC16
);
4006 BOOL
GetCharWidth(HDC
,WORD
,WORD
,LPINT16
);
4007 HRGN
GetClipRgn(HDC
);
4008 HANDLE
GetClipboardData(WORD
);
4009 int GetClipboardFormatName(WORD
,LPSTR
,short);
4010 HWND
GetClipboardOwner(void);
4011 HWND
GetClipboardViewer(void);
4012 HANDLE
GetCodeHandle(FARPROC
);
4013 void GetCodeInfo(FARPROC
,LPVOID
);
4014 int GetCommError(int,COMSTAT
*);
4015 UINT
GetCommEventMask(int,int);
4016 int GetCommState(int,DCB
*);
4017 HBRUSH
GetControlBrush(HWND
,HDC
,WORD
);
4018 UINT32
GetCurrentDirectory(UINT32
,LPSTR
);
4019 HANDLE
GetCurrentPDB(void);
4020 DWORD
GetCurrentPosition(HDC
);
4021 HANDLE
GetCurrentTask(void);
4022 DWORD
GetCurrentTime(void);
4023 HCURSOR
GetCursor(void);
4025 HDC
GetDCEx(HWND
,HRGN
,DWORD
);
4026 DWORD
GetDCHook(HDC
,FARPROC16
*);
4027 DWORD
GetDCOrg(HDC
);
4028 HDC
GetDCState(HDC
);
4029 int GetDIBits(HDC
,HANDLE
,WORD
,WORD
,LPSTR
,LPBITMAPINFO
,WORD
);
4030 SEGPTR
GetDOSEnvironment(void);
4031 HWND
GetDesktopHwnd(void);
4032 HWND
GetDesktopWindow(void);
4033 int GetDeviceCaps(HDC
,WORD
);
4034 DWORD
GetDialogBaseUnits(void);
4035 int GetDlgCtrlID(HWND
);
4036 HWND
GetDlgItem(HWND
,WORD
);
4037 WORD
GetDlgItemInt(HWND
,WORD
,BOOL
*,BOOL
);
4038 WORD
GetDoubleClickTime(void);
4039 WORD
GetDriveType(INT
);
4040 int GetEnvironment(LPSTR
,LPSTR
,WORD
);
4041 HMODULE
GetExePtr(HANDLE
);
4042 HWND
GetFocus(void);
4043 DWORD
GetFreeSpace(UINT16
);
4044 DWORD
GetHeapSpaces(HMODULE
);
4045 BOOL
GetInputState(void);
4046 int GetInstanceData(HANDLE
,WORD
,int);
4047 int GetKBCodePage(void);
4048 int GetKerningPairs(HDC
,int,LPKERNINGPAIR16
);
4049 int GetKeyNameText(LONG
,LPSTR
,int);
4050 INT
GetKeyState(INT
);
4051 void GetKeyboardState(BYTE
*);
4052 int GetKeyboardType(int);
4053 HWND
GetLastActivePopup(HWND
);
4054 VOID
GetLocalTime(LPSYSTEMTIME
); /* Win32 */
4055 WORD
GetMapMode(HDC
);
4056 HMENU
GetMenu(HWND
);
4057 DWORD
GetMenuCheckMarkDimensions(void);
4058 INT
GetMenuItemCount(HMENU
);
4059 UINT
GetMenuItemID(HMENU
,int);
4060 UINT
GetMenuState(HMENU
,UINT
,UINT
);
4061 int GetMenuString(HMENU
,UINT
,LPSTR
,short,UINT
);
4062 BOOL
GetMessage(SEGPTR
,HWND
,UINT
,UINT
);
4063 LONG
GetMessageExtraInfo(void);
4064 DWORD
GetMessagePos(void);
4065 LONG
GetMessageTime(void);
4066 HANDLE
GetMetaFile(LPSTR
);
4067 HANDLE
GetMetaFileBits(HANDLE
);
4068 int GetModuleFileName(HANDLE
,LPSTR
,short);
4069 HANDLE
GetModuleHandle(LPCSTR
);
4070 int GetModuleUsage(HANDLE
);
4071 FARPROC
GetMouseEventProc(void);
4072 DWORD
GetNearestColor(HDC
,DWORD
);
4073 WORD
GetNearestPaletteIndex(HPALETTE16
,DWORD
);
4074 HWND
GetNextDlgGroupItem(HWND
,HWND
,BOOL
);
4075 HWND
GetNextDlgTabItem(HWND
,HWND
,BOOL
);
4076 HWND
GetNextWindow(HWND
,WORD
);
4077 WORD
GetNumTasks(void);
4078 HWND
GetOpenClipboardWindow(void);
4079 WORD
GetPaletteEntries(HPALETTE16
,WORD
,WORD
,LPPALETTEENTRY
);
4080 HWND
GetParent(HWND
);
4081 DWORD
GetPixel(HDC
,short,short);
4082 WORD
GetPolyFillMode(HDC
);
4083 int GetPriorityClipboardFormat(WORD
*,short);
4084 UINT
GetPrivateProfileInt(LPCSTR
,LPCSTR
,INT
,LPCSTR
);
4085 INT
GetPrivateProfileString(LPCSTR
,LPCSTR
,LPCSTR
,LPSTR
,INT
,LPCSTR
);
4086 FARPROC
GetProcAddress(HANDLE
,SEGPTR
);
4087 UINT
GetProfileInt(LPCSTR
,LPCSTR
,INT
);
4088 INT
GetProfileString(LPCSTR
,LPCSTR
,LPCSTR
,LPSTR
,INT
);
4089 HANDLE
GetProp(HWND
,SEGPTR
);
4090 DWORD
GetQueueStatus(UINT
);
4091 BOOL
GetRasterizerCaps(LPRASTERIZER_STATUS
,UINT
);
4093 WORD
GetRelAbs(HDC
);
4094 int GetScrollPos(HWND
,int);
4095 void GetScrollRange(HWND
,int,LPINT16
,LPINT16
);
4096 DWORD
GetSelectorBase(WORD
);
4097 DWORD
GetSelectorLimit(WORD
);
4098 HANDLE
GetStockObject(int);
4099 WORD
GetStretchBltMode(HDC
);
4100 HMENU
GetSubMenu(HMENU
,short);
4101 COLORREF
GetSysColor(short);
4102 HWND
GetSysModalWindow(void);
4103 UINT
GetSystemDirectory(LPSTR
,UINT
);
4104 HMENU
GetSystemMenu(HWND
,BOOL
);
4105 int GetSystemMetrics(WORD
);
4106 WORD
GetSystemPaletteEntries(HDC
,WORD
,WORD
,LPPALETTEENTRY
);
4107 WORD
GetSystemPaletteUse(HDC
);
4108 BOOL
GetSystemPowerStatus(LPSYSTEM_POWER_STATUS
);
4109 VOID
GetSystemTime(LPSYSTEMTIME
); /* Win32 */
4110 DWORD
GetTabbedTextExtent(HDC
,LPSTR
,int,int,LPINT16
);
4111 HINSTANCE
GetTaskDS(void);
4112 HQUEUE
GetTaskQueue(HTASK
);
4113 BYTE
GetTempDrive(BYTE
);
4114 INT
GetTempFileName(BYTE
,LPCSTR
,UINT
,LPSTR
);
4115 WORD
GetTextAlign(HDC
);
4116 short GetTextCharacterExtra(HDC
);
4117 COLORREF
GetTextColor(HDC
);
4118 DWORD
GetTextExtent(HDC
,LPCSTR
,short);
4119 INT
GetTextFace(HDC
,INT
,LPSTR
);
4120 BOOL
GetTextMetrics(HDC
,LPTEXTMETRIC16
);
4121 LPINT16
GetThresholdEvent(void);
4122 int GetThresholdStatus(void);
4123 DWORD
GetTickCount(void);
4124 HWND
GetTopWindow(HWND
);
4125 LONG
GetVersion(void);
4126 DWORD
GetViewportExt(HDC
);
4127 DWORD
GetViewportOrg(HDC
);
4128 BOOL
GetWinDebugInfo(LPWINDEBUGINFO
,UINT
);
4129 LONG
GetWinFlags(void);
4130 HWND
GetWindow(HWND
,WORD
);
4131 HDC
GetWindowDC(HWND
);
4132 DWORD
GetWindowExt(HDC
);
4133 DWORD
GetWindowOrg(HDC
);
4134 HANDLE
GetWindowTask(HWND
);
4135 int GetWindowTextLength(HWND
);
4136 UINT
GetWindowsDirectory(LPSTR
,UINT
);
4137 DWORD
GlobalDOSAlloc(DWORD
);
4138 WORD
GlobalDOSFree(WORD
);
4139 ATOM
GlobalDeleteAtom(ATOM
);
4140 void GlobalFix(HGLOBAL16
);
4141 void GlobalFreeAll(HGLOBAL16
);
4142 HGLOBAL16
GlobalLRUNewest(HGLOBAL16
);
4143 HGLOBAL16
GlobalLRUOldest(HGLOBAL16
);
4144 void GlobalNotify(FARPROC
);
4145 WORD
GlobalPageLock(HGLOBAL16
);
4146 WORD
GlobalPageUnlock(HGLOBAL16
);
4147 BOOL
GlobalUnWire(HGLOBAL16
);
4148 void GlobalUnfix(HGLOBAL16
);
4149 SEGPTR
GlobalWire(HGLOBAL16
);
4150 BOOL
GrayString(HDC
,HBRUSH
,FARPROC
,LPARAM
,INT
,INT
,INT
,INT
,INT
);
4151 void HideCaret(HWND
);
4152 BOOL
HiliteMenuItem(HWND
,HMENU
,UINT
,UINT
);
4153 BOOL
InSendMessage(void);
4154 WORD
InitAtomTable(WORD
);
4155 HRGN
InquireVisRgn(HDC
);
4156 int IntersectClipRect(HDC
,short,short,short,short);
4157 int IntersectVisRect(HDC
,short,short,short,short);
4158 void InvalidateRgn(HWND32
,HRGN32
,BOOL32
);
4159 BOOL
InvertRgn(HDC
,HRGN
);
4160 BOOL
IsBadCodePtr(SEGPTR
);
4161 BOOL
IsBadHugeReadPtr(SEGPTR
,DWORD
);
4162 BOOL
IsBadHugeWritePtr(SEGPTR
,DWORD
);
4163 BOOL
IsBadReadPtr(SEGPTR
,WORD
);
4164 BOOL
IsBadStringPtr(SEGPTR
,WORD
);
4165 BOOL
IsBadWritePtr(SEGPTR
,WORD
);
4166 BOOL
IsCharAlpha(char);
4167 BOOL
IsCharAlphaNumeric(char);
4168 BOOL
IsCharLower(char);
4169 BOOL
IsCharUpper(char);
4170 BOOL
IsChild(HWND
,HWND
);
4171 BOOL
IsClipboardFormatAvailable(WORD
);
4172 BOOL
IsDialogMessage(HWND
,LPMSG16
);
4173 WORD
IsDlgButtonChecked(HWND
,WORD
);
4174 BOOL
IsGDIObject(HANDLE
);
4175 BOOL
IsIconic(HWND
);
4178 HTASK
IsTaskLocked(void);
4179 BOOL
IsWindow(HWND
);
4180 BOOL
IsWindowEnabled(HWND
);
4181 BOOL
IsWindowUnicode(HWND
);
4182 BOOL
IsWindowVisible(HWND
);
4183 BOOL
IsZoomed(HWND
);
4184 BOOL
KillSystemTimer(HWND
,WORD
);
4185 BOOL
KillTimer(HWND
,WORD
);
4186 void LimitEmsPages(DWORD
);
4187 void LineDDA(short,short,short,short,FARPROC
,long);
4188 BOOL
LineTo(HDC
,short,short);
4189 HANDLE
LoadAccelerators(HANDLE
,SEGPTR
);
4190 HBITMAP
LoadBitmap(HANDLE
,SEGPTR
);
4191 HCURSOR
LoadCursor(HANDLE
,SEGPTR
);
4192 HICON
LoadIcon(HANDLE
,SEGPTR
);
4193 HANDLE
LoadLibrary(LPCSTR
);
4194 HMENU
LoadMenu(HANDLE
,SEGPTR
);
4195 HANDLE
LoadModule(LPCSTR
,LPVOID
);
4196 HGLOBAL
LoadResource(HINSTANCE
,HRSRC
);
4197 int LoadString(HANDLE
,WORD
,LPSTR
,int);
4198 BOOL
LocalInit(HANDLE
,WORD
,WORD
);
4199 FARPROC
LocalNotify(FARPROC
);
4200 LPVOID
LockResource(HGLOBAL
);
4201 HGLOBAL
LockSegment(HGLOBAL
);
4202 HMENU
LookupMenuHandle(HMENU
,INT
);
4203 FARPROC
MakeProcInstance(FARPROC
,HANDLE
);
4204 WORD
MapVirtualKey(WORD
,WORD
);
4205 void MessageBeep(WORD
);
4206 int MessageBox(HWND
,LPCSTR
,LPCSTR
,WORD
);
4207 DWORD
MoveTo(HDC
,short,short);
4208 BOOL
MoveWindow(HWND
,short,short,short,short,BOOL
);
4209 DWORD
OemKeyScan(WORD
);
4210 BOOL
OemToAnsi(LPSTR
,LPSTR
);
4211 void OemToAnsiBuff(LPSTR
,LPSTR
,INT
);
4212 int OffsetClipRgn(HDC
,short,short);
4213 BOOL
OpenClipboard(HWND
);
4214 int OpenComm(LPCSTR
,UINT
,UINT
);
4215 HFILE
OpenFile(LPCSTR
,OFSTRUCT
*,UINT
);
4216 BOOL
OpenIcon(HWND
);
4217 int OpenSound(void);
4218 void OutputDebugString(LPCSTR
);
4219 BOOL
PaintRgn(HDC
,HRGN
);
4220 BOOL
PatBlt(HDC
,short,short,short,short,DWORD
);
4221 BOOL
Pie(HDC
,INT
,INT
,INT
,INT
,INT
,INT
,INT
,INT
);
4222 BOOL
PlayMetaFile(HDC
,HANDLE
);
4223 void PlayMetaFileRecord(HDC
,LPHANDLETABLE
,LPMETARECORD
,WORD
);
4224 BOOL
PostAppMessage(HANDLE
,WORD
,WORD
,LONG
);
4225 void PostEvent(HTASK
);
4226 BOOL
PostMessage(HWND
,WORD
,WORD
,LONG
);
4227 void PostQuitMessage(INT
);
4228 WORD
PrestoChangoSelector(WORD
,WORD
);
4229 void ProfClear(void);
4230 void ProfFinish(void);
4231 void ProfFlush(void);
4232 int ProfInsChk(void);
4233 void ProfSampRate(int,int);
4234 void ProfSetup(int,int);
4235 void ProfStart(void);
4236 void ProfStop(void);
4237 BOOL
PtInRegion(HRGN32
,INT32
,INT32
);
4238 BOOL
PtVisible(HDC
,short,short);
4239 int ReadComm(int,LPSTR
,int);
4240 WORD
RealizeDefaultPalette(HDC
);
4241 UINT
RealizePalette(HDC
);
4242 BOOL
Rectangle(HDC
,INT
,INT
,INT
,INT
);
4243 WORD
RegisterClipboardFormat(LPCSTR
);
4244 void ReleaseCapture(void);
4245 int ReleaseDC(HWND
,HDC
);
4246 BOOL
RemoveFontResource(LPSTR
);
4247 BOOL
RemoveMenu(HMENU
,UINT
,UINT
);
4248 HANDLE
RemoveProp(HWND
,SEGPTR
);
4249 void ReplyMessage(LRESULT
);
4250 HDC
ResetDC(HDC
,LPVOID
);
4251 BOOL
ResizePalette(HPALETTE16
,UINT
);
4252 BOOL
RestoreDC(HDC
,short);
4253 int RestoreVisRgn(HDC
);
4254 BOOL
RoundRect(HDC
,INT
,INT
,INT
,INT
,INT
,INT
);
4256 HRGN
SaveVisRgn(HDC
);
4257 void ScrollChildren(HWND
,UINT
,WPARAM
,LPARAM
);
4258 BOOL
ScrollDC(HDC
,short,short,LPRECT16
,LPRECT16
,HRGN
,LPRECT16
);
4259 void ScrollWindow(HWND
,short,short,LPRECT16
,LPRECT16
);
4260 int ScrollWindowEx(HWND
,short,short,LPRECT16
,LPRECT16
,HRGN
,LPRECT16
,WORD
);
4261 int SelectClipRgn(HDC
,HRGN
);
4262 HANDLE
SelectObject(HDC
,HANDLE
);
4263 HPALETTE16
SelectPalette(HDC
,HPALETTE16
,BOOL
);
4264 int SelectVisRgn(HDC
,HRGN
);
4265 WORD
SelectorAccessRights(WORD
,WORD
,WORD
);
4266 HWND
SetActiveWindow(HWND
);
4267 DWORD
SetBkColor(HDC
,COLORREF
);
4268 WORD
SetBkMode(HDC
,WORD
);
4269 DWORD
SetBrushOrg(HDC
,short,short);
4270 HWND
SetCapture(HWND
);
4271 void SetCaretBlinkTime(WORD
);
4272 void SetCaretPos(short,short);
4273 HANDLE
SetClipboardData(WORD
,HANDLE
);
4274 HWND
SetClipboardViewer(HWND
);
4275 int SetCommBreak(int);
4276 UINT
* SetCommEventMask(int,UINT
);
4277 int SetCommState(DCB
*);
4278 void SetConvertHook(BOOL
);
4279 BOOL
SetConvertParams(int,int);
4280 BOOL32
SetCurrentDirectory(LPCSTR
);
4281 HCURSOR
SetCursor(HCURSOR
);
4282 void SetCursorPos(short,short);
4283 BOOL
SetDCHook(HDC
,FARPROC16
,DWORD
);
4284 void SetDCState(HDC
,HDC
);
4285 int SetDIBits(HDC
,HANDLE
,WORD
,WORD
,LPSTR
,LPBITMAPINFO
,WORD
);
4286 int SetDIBitsToDevice(HDC
,short,short,WORD
,WORD
,WORD
,WORD
,WORD
,WORD
,LPSTR
,LPBITMAPINFO
,WORD
);
4287 BOOL
SetDeskPattern(void);
4288 BOOL
SetDeskWallPaper(LPCSTR
);
4289 void SetDoubleClickTime(WORD
);
4290 int SetEnvironment(LPSTR
,LPSTR
,WORD
);
4291 UINT
SetErrorMode(UINT
);
4292 HWND
SetFocus(HWND
);
4293 WORD
SetHandleCount(WORD
);
4294 WORD
SetHookFlags(HDC
,WORD
);
4295 void SetKeyboardState(BYTE
*);
4296 WORD
SetMapMode(HDC
,WORD
);
4297 DWORD
SetMapperFlags(HDC
,DWORD
);
4298 BOOL
SetMenu(HWND
,HMENU
);
4299 BOOL
SetMenuItemBitmaps(HMENU
,UINT
,UINT
,HBITMAP
,HBITMAP
);
4300 BOOL
SetMessageQueue(int);
4301 HANDLE
SetMetaFileBits(HANDLE
);
4302 WORD
SetPaletteEntries(HPALETTE16
,WORD
,WORD
,LPPALETTEENTRY
);
4303 HWND
SetParent(HWND
,HWND
);
4304 COLORREF
SetPixel(HDC
,short,short,COLORREF
);
4305 WORD
SetPolyFillMode(HDC
,WORD
);
4306 BOOL
SetProp(HWND
,SEGPTR
,HANDLE
);
4307 WORD
SetROP2(HDC
,WORD
);
4308 void SetRectRgn(HRGN32
,INT32
,INT32
,INT32
,INT32
);
4309 WORD
SetRelAbs(HDC
,WORD
);
4310 FARPROC
SetResourceHandler(HANDLE
,LPSTR
,FARPROC
);
4311 int SetScrollPos(HWND
,int,int,BOOL
);
4312 void SetScrollRange(HWND
,int,int,int,BOOL
);
4313 WORD
SetSelectorBase(WORD
,DWORD
);
4314 WORD
SetSelectorLimit(WORD
,DWORD
);
4315 int SetSoundNoise(int,int);
4316 WORD
SetStretchBltMode(HDC
,WORD
);
4317 LONG
SetSwapAreaSize(WORD
);
4318 void SetSysColors(int,LPINT16
,COLORREF
*);
4319 HWND
SetSysModalWindow(HWND
);
4320 WORD
SetSystemPaletteUse(HDC
,WORD
);
4321 BOOL
SetSystemPowerState(BOOL
, BOOL
);
4322 BOOL
SetSystemTime(const SYSTEMTIME
*);
4323 WORD
SetSystemTimer(HWND
,WORD
,WORD
,FARPROC
);
4324 HQUEUE
SetTaskQueue(HTASK
,HQUEUE
);
4325 WORD
SetTextAlign(HDC
,WORD
);
4326 short SetTextCharacterExtra(HDC
,short);
4327 DWORD
SetTextColor(HDC
,DWORD
);
4328 short SetTextJustification(HDC
,short,short);
4329 WORD
SetTimer(HWND
,WORD
,WORD
,FARPROC
);
4330 int SetVoiceAccent(int,int,int,int,int);
4331 int SetVoiceEnvelope(int,int,int);
4332 int SetVoiceNote(int,int,int,int);
4333 int SetVoiceQueueSize(int,int);
4334 int SetVoiceSound(int,LONG
,int);
4335 int SetVoiceThreshold(int,int);
4336 BOOL
SetWinDebugInfo(LPWINDEBUGINFO
);
4337 BOOL
SetWindowPos(HWND
,HWND
,INT
,INT
,INT
,INT
,WORD
);
4338 FARPROC
SetWindowsHook(short,FARPROC
);
4339 HHOOK
SetWindowsHookEx(short,HOOKPROC
,HINSTANCE
,HTASK
);
4340 HINSTANCE
ShellExecute(HWND
,LPCSTR
,LPCSTR
,LPSTR
,LPCSTR
,INT
);
4341 void ShowCaret(HWND
);
4342 int ShowCursor(BOOL
);
4343 void ShowOwnedPopups(HWND
,BOOL
);
4344 void ShowScrollBar(HWND
,WORD
,BOOL
);
4345 BOOL
ShowWindow(HWND
,int);
4346 DWORD
SizeofResource(HINSTANCE
,HRSRC
);
4347 VOID
Sleep(DWORD
); /* Win32 */
4348 int StartSound(void);
4349 int StopSound(void);
4350 BOOL
StretchBlt(HDC
,short,short,short,short,HDC
,short,short,short,short,DWORD
);
4351 int StretchDIBits(HDC
,WORD
,WORD
,WORD
,WORD
,WORD
,WORD
,WORD
,WORD
,LPSTR
,LPBITMAPINFO
,WORD
,DWORD
);
4352 BOOL
SwapMouseButton(BOOL
);
4353 void SwapRecording(WORD
);
4354 void SwitchStackBack(void);
4355 void SwitchStackTo(WORD
,WORD
,WORD
);
4356 int SyncAllVoices(void);
4357 BOOL
SystemParametersInfo(UINT
,UINT
,LPVOID
,UINT
);
4358 LONG
TabbedTextOut(HDC
,short,short,LPSTR
,short,short,LPINT16
,short);
4359 int Throw(LPCATCHBUF
,int);
4360 int ToAscii(WORD
,WORD
,LPSTR
,LPVOID
,WORD
);
4361 int TranslateAccelerator(HWND
,HANDLE
,LPMSG16
);
4362 BOOL
TranslateMDISysAccel(HWND
,LPMSG16
);
4363 BOOL
TranslateMessage(LPMSG16
);
4364 int TransmitCommChar(int,char);
4365 int UngetCommChar(int,char);
4366 BOOL
UnhookWindowsHook(short,FARPROC
);
4367 BOOL
UnhookWindowsHookEx(HHOOK
);
4368 void UnlockSegment(HGLOBAL
);
4369 BOOL
UnrealizeObject(HBRUSH
);
4370 int UpdateColors(HDC
);
4371 void UpdateWindow(HWND32
);
4372 void UserYield(void);
4373 void ValidateCodeSegments(void);
4374 LPSTR
ValidateFreeSpaces(void);
4375 void ValidateRgn(HWND32
,HRGN32
);
4376 WORD
VkKeyScan(WORD
);
4377 SEGPTR
WIN16_GlobalLock16(HGLOBAL16
);
4378 SEGPTR
WIN16_LockResource(HANDLE
);
4379 BOOL
WaitEvent(HTASK
);
4380 void WaitMessage(void);
4381 int WaitSoundState(int);
4382 HANDLE
WinExec(LPSTR
,WORD
);
4383 BOOL
WinHelp(HWND
,LPSTR
,WORD
,DWORD
);
4384 int WriteComm(int,LPSTR
,int);
4385 void WriteOutProfiles(void);
4386 BOOL
WritePrivateProfileString(LPCSTR
,LPCSTR
,LPCSTR
,LPCSTR
);
4387 BOOL
WriteProfileString(LPCSTR
,LPCSTR
,LPCSTR
);
4389 LONG
_hread(HFILE
,SEGPTR
,LONG
);
4390 LONG
_hwrite(HFILE
,LPCSTR
,LONG
);
4391 HFILE
_lclose(HFILE
);
4392 HFILE
_lcreat(LPCSTR
,INT
);
4393 LONG
_llseek(HFILE
,LONG
,INT
);
4394 HFILE
_lopen(LPCSTR
,INT
);
4395 INT
_lread(HFILE
,SEGPTR
,WORD
);
4396 INT
_lwrite(HFILE
,LPCSTR
,WORD
);
4400 #define WINELIB_UNIMP(x) fprintf (stderr, "WineLib: Unimplemented %s\n", x)
4407 #endif /* __WINE_WINDOWS_H */