1 #ifndef __WINE_WINDOWS_H
2 #define __WINE_WINDOWS_H
13 /* The SIZE structure */
27 DECL_WINELIB_TYPE(SIZE
);
28 DECL_WINELIB_TYPE(LPSIZE
);
30 #define CONV_SIZE16TO32(s16,s32) \
31 ((s32)->cx = (INT32)(s16)->cx, (s32)->cy = (INT32)(s16)->cy)
32 #define CONV_SIZE32TO16(s32,s16) \
33 ((s16)->cx = (INT16)(s32)->cx, (s16)->cy = (INT16)(s32)->cy)
35 /* The POINT structure */
41 } POINT16
, *LPPOINT16
;
47 } POINT32
, *LPPOINT32
;
49 DECL_WINELIB_TYPE(POINT
);
50 DECL_WINELIB_TYPE(LPPOINT
);
52 #define CONV_POINT16TO32(p16,p32) \
53 ((p32)->x = (INT32)(p16)->x, (p32)->y = (INT32)(p16)->y)
54 #define CONV_POINT32TO16(p32,p16) \
55 ((p16)->x = (INT16)(p32)->x, (p16)->y = (INT16)(p32)->y)
57 #define MAKEPOINT16(l) (*((POINT16 *)&(l)))
58 #define MAKEPOINT WINELIB_NAME(MAKEPOINT)
60 /* The RECT structure */
78 DECL_WINELIB_TYPE(RECT
);
79 DECL_WINELIB_TYPE(LPRECT
);
81 #define CONV_RECT16TO32(r16,r32) \
82 ((r32)->left = (INT32)(r16)->left, (r32)->top = (INT32)(r16)->top, \
83 (r32)->right = (INT32)(r16)->right, (r32)->bottom = (INT32)(r16)->bottom)
84 #define CONV_RECT32TO16(r32,r16) \
85 ((r16)->left = (INT16)(r32)->left, (r16)->top = (INT16)(r32)->top, \
86 (r16)->right = (INT16)(r32)->right, (r16)->bottom = (INT16)(r32)->bottom)
93 } KERNINGPAIR16
, *LPKERNINGPAIR16
;
100 } KERNINGPAIR32
, *LPKERNINGPAIR32
;
102 DECL_WINELIB_TYPE(KERNINGPAIR
);
103 DECL_WINELIB_TYPE(LPKERNINGPAIR
);
112 BYTE rgbReserved
[16];
113 } PAINTSTRUCT16
, *LPPAINTSTRUCT16
;
122 BYTE rgbReserved
[32];
123 } PAINTSTRUCT32
, *LPPAINTSTRUCT32
;
125 DECL_WINELIB_TYPE(PAINTSTRUCT
);
126 DECL_WINELIB_TYPE(LPPAINTSTRUCT
);
133 LPVOID lpCreateParams
;
134 HINSTANCE16 hInstance
;
141 LONG style WINE_PACKED
;
142 SEGPTR lpszName WINE_PACKED
;
143 SEGPTR lpszClass WINE_PACKED
;
144 DWORD dwExStyle WINE_PACKED
;
145 } CREATESTRUCT16
, *LPCREATESTRUCT16
;
149 LPVOID lpCreateParams
;
150 HINSTANCE32 hInstance
;
161 } CREATESTRUCT32A
, *LPCREATESTRUCT32A
;
165 LPVOID lpCreateParams
;
166 HINSTANCE32 hInstance
;
177 } CREATESTRUCT32W
, *LPCREATESTRUCT32W
;
179 DECL_WINELIB_TYPE_AW(CREATESTRUCT
);
180 DECL_WINELIB_TYPE_AW(LPCREATESTRUCT
);
186 } CLIENTCREATESTRUCT16
, *LPCLIENTCREATESTRUCT16
;
192 } CLIENTCREATESTRUCT32
, *LPCLIENTCREATESTRUCT32
;
194 DECL_WINELIB_TYPE(CLIENTCREATESTRUCT
);
195 DECL_WINELIB_TYPE(LPCLIENTCREATESTRUCT
);
206 DWORD style WINE_PACKED
;
207 LPARAM lParam WINE_PACKED
;
208 } MDICREATESTRUCT16
, *LPMDICREATESTRUCT16
;
221 } MDICREATESTRUCT32A
, *LPMDICREATESTRUCT32A
;
234 } MDICREATESTRUCT32W
, *LPMDICREATESTRUCT32W
;
236 DECL_WINELIB_TYPE_AW(MDICREATESTRUCT
);
237 DECL_WINELIB_TYPE_AW(LPMDICREATESTRUCT
);
239 #define MDITILE_VERTICAL 0
240 #define MDITILE_HORIZONTAL 1
241 #define MDIS_ALLCHILDSTYLES 0x0001
243 /* Offsets for GetWindowLong() and GetWindowWord() */
244 #define GWL_USERDATA (-21)
245 #define GWL_EXSTYLE (-20)
246 #define GWL_STYLE (-16)
248 #define GWL_ID GWW_ID
249 #define GWW_HWNDPARENT (-8)
250 #define GWL_HWNDPARENT GWW_HWNDPARENT
251 #define GWW_HINSTANCE (-6)
252 #define GWL_HINSTANCE GWW_HINSTANCE
253 #define GWL_WNDPROC (-4)
254 #define DWL_MSGRESULT 0
255 #define DWL_DLGPROC 4
258 /* GetWindow() constants */
259 #define GW_HWNDFIRST 0
260 #define GW_HWNDLAST 1
261 #define GW_HWNDNEXT 2
262 #define GW_HWNDPREV 3
266 /* WM_GETMINMAXINFO struct */
271 POINT16 ptMaxPosition
;
272 POINT16 ptMinTrackSize
;
273 POINT16 ptMaxTrackSize
;
280 POINT32 ptMaxPosition
;
281 POINT32 ptMinTrackSize
;
282 POINT32 ptMaxTrackSize
;
285 DECL_WINELIB_TYPE(MINMAXINFO
);
287 /* RedrawWindow() flags */
288 #define RDW_INVALIDATE 0x0001
289 #define RDW_INTERNALPAINT 0x0002
290 #define RDW_ERASE 0x0004
291 #define RDW_VALIDATE 0x0008
292 #define RDW_NOINTERNALPAINT 0x0010
293 #define RDW_NOERASE 0x0020
294 #define RDW_NOCHILDREN 0x0040
295 #define RDW_ALLCHILDREN 0x0080
296 #define RDW_UPDATENOW 0x0100
297 #define RDW_ERASENOW 0x0200
298 #define RDW_FRAME 0x0400
299 #define RDW_NOFRAME 0x0800
301 /* WM_WINDOWPOSCHANGING/CHANGED struct */
305 HWND16 hwndInsertAfter
;
316 HWND32 hwndInsertAfter
;
324 DECL_WINELIB_TYPE(WINDOWPOS
);
326 /* SetWindowPlacement() struct */
332 POINT16 ptMinPosition WINE_PACKED
;
333 POINT16 ptMaxPosition WINE_PACKED
;
334 RECT16 rcNormalPosition WINE_PACKED
;
335 } WINDOWPLACEMENT16
, *LPWINDOWPLACEMENT16
;
342 POINT32 ptMinPosition WINE_PACKED
;
343 POINT32 ptMaxPosition WINE_PACKED
;
344 RECT32 rcNormalPosition WINE_PACKED
;
345 } WINDOWPLACEMENT32
, *LPWINDOWPLACEMENT32
;
347 DECL_WINELIB_TYPE(WINDOWPLACEMENT
);
348 DECL_WINELIB_TYPE(LPWINDOWPLACEMENT
);
350 /* WINDOWPLACEMENT flags */
351 #define WPF_SETMINPOSITION 0x0001
352 #define WPF_RESTORETOMAXIMIZED 0x0002
354 /* WM_MOUSEACTIVATE return values */
355 #define MA_ACTIVATE 1
356 #define MA_ACTIVATEANDEAT 2
357 #define MA_NOACTIVATE 3
358 #define MA_NOACTIVATEANDEAT 4
360 /* WM_ACTIVATE wParam values */
361 #define WA_INACTIVE 0
363 #define WA_CLICKACTIVE 2
365 /* WM_NCCALCSIZE parameter structure */
370 } NCCALCSIZE_PARAMS16
, *LPNCCALCSIZE_PARAMS16
;
376 } NCCALCSIZE_PARAMS32
, *LPNCCALCSIZE_PARAMS32
;
378 DECL_WINELIB_TYPE(NCCALCSIZE_PARAMS
);
379 DECL_WINELIB_TYPE(LPNCCALCSIZE_PARAMS
);
381 /* WM_NCCALCSIZE return flags */
382 #define WVR_ALIGNTOP 0x0010
383 #define WVR_ALIGNLEFT 0x0020
384 #define WVR_ALIGNBOTTOM 0x0040
385 #define WVR_ALIGNRIGHT 0x0080
386 #define WVR_HREDRAW 0x0100
387 #define WVR_VREDRAW 0x0200
388 #define WVR_REDRAW (WVR_HREDRAW | WVR_VREDRAW)
389 #define WVR_VALIDRECTS 0x0400
391 /* WM_NCHITTEST return codes */
393 #define HTTRANSPARENT (-1)
402 #define HTMINBUTTON 8
403 #define HTMAXBUTTON 9
408 #define HTTOPRIGHT 14
410 #define HTBOTTOMLEFT 16
411 #define HTBOTTOMRIGHT 17
413 #define HTGROWBOX HTSIZE
414 #define HTREDUCE HTMINBUTTON
415 #define HTZOOM HTMAXBUTTON
417 /* WM_SYSCOMMAND parameters */
418 #define SC_SIZE 0xf000
419 #define SC_MOVE 0xf010
420 #define SC_MINIMIZE 0xf020
421 #define SC_MAXIMIZE 0xf030
422 #define SC_NEXTWINDOW 0xf040
423 #define SC_PREVWINDOW 0xf050
424 #define SC_CLOSE 0xf060
425 #define SC_VSCROLL 0xf070
426 #define SC_HSCROLL 0xf080
427 #define SC_MOUSEMENU 0xf090
428 #define SC_KEYMENU 0xf100
429 #define SC_ARRANGE 0xf110
430 #define SC_RESTORE 0xf120
431 #define SC_TASKLIST 0xf130
432 #define SC_SCREENSAVE 0xf140
433 #define SC_HOTKEY 0xf150
435 /***** Window hooks *****/
439 #define WH_MSGFILTER (-1)
440 #define WH_JOURNALRECORD 0
441 #define WH_JOURNALPLAYBACK 1
442 #define WH_KEYBOARD 2
443 #define WH_GETMESSAGE 3
444 #define WH_CALLWNDPROC 4
446 #define WH_SYSMSGFILTER 6
448 #define WH_HARDWARE 8
451 #define WH_FOREGROUNDIDLE 11
452 #define WH_CALLWNDPROCRET 12
455 #define WH_MINHOOK WH_MIN
456 #define WH_MAXHOOK WH_MAX
457 #define WH_NB_HOOKS (WH_MAXHOOK-WH_MINHOOK+1)
459 /* Hook action codes */
463 #define HC_NOREMOVE 3
464 #define HC_NOREM HC_NOREMOVE
465 #define HC_SYSMODALON 4
466 #define HC_SYSMODALOFF 5
468 /* CallMsgFilter() values */
469 #define MSGF_DIALOGBOX 0
470 #define MSGF_MESSAGEBOX 1
474 #define MSGF_SCROLLBAR 5
475 #define MSGF_NEXTWINDOW 6
476 #define MSGF_MAINLOOP 8
477 #define MSGF_USER 4096
479 /* Windows Exit Procedure flag values */
480 #define WEP_FREE_DLL 0
481 #define WEP_SYSTEM_EXIT 1
483 /* Journalling hook structure */
490 DWORD time WINE_PACKED
;
491 } EVENTMSG16
, *LPEVENTMSG16
;
500 } EVENTMSG32
, *LPEVENTMSG32
;
502 DECL_WINELIB_TYPE(EVENTMSG
);
503 DECL_WINELIB_TYPE(LPEVENTMSG
);
505 /* Mouse hook structure */
513 } MOUSEHOOKSTRUCT16
, *LPMOUSEHOOKSTRUCT16
;
521 } MOUSEHOOKSTRUCT32
, *LPMOUSEHOOKSTRUCT32
;
523 DECL_WINELIB_TYPE(MOUSEHOOKSTRUCT
);
524 DECL_WINELIB_TYPE(LPMOUSEHOOKSTRUCT
);
526 /* Hardware hook structure */
533 LPARAM lParam WINE_PACKED
;
534 } HARDWAREHOOKSTRUCT16
, *LPHARDWAREHOOKSTRUCT16
;
542 } HARDWAREHOOKSTRUCT32
, *LPHARDWAREHOOKSTRUCT32
;
544 DECL_WINELIB_TYPE(HARDWAREHOOKSTRUCT
);
545 DECL_WINELIB_TYPE(LPHARDWAREHOOKSTRUCT
);
547 /* CBT hook values */
548 #define HCBT_MOVESIZE 0
549 #define HCBT_MINMAX 1
551 #define HCBT_CREATEWND 3
552 #define HCBT_DESTROYWND 4
553 #define HCBT_ACTIVATE 5
554 #define HCBT_CLICKSKIPPED 6
555 #define HCBT_KEYSKIPPED 7
556 #define HCBT_SYSCOMMAND 8
557 #define HCBT_SETFOCUS 9
559 /* CBT hook structures */
563 CREATESTRUCT16
*lpcs
;
564 HWND16 hwndInsertAfter
;
565 } CBT_CREATEWND16
, *LPCBT_CREATEWND16
;
569 CREATESTRUCT32A
*lpcs
;
570 HWND32 hwndInsertAfter
;
571 } CBT_CREATEWND32A
, *LPCBT_CREATEWND32A
;
575 CREATESTRUCT32W
*lpcs
;
576 HWND32 hwndInsertAfter
;
577 } CBT_CREATEWND32W
, *LPCBT_CREATEWND32W
;
579 DECL_WINELIB_TYPE_AW(CBT_CREATEWND
);
580 DECL_WINELIB_TYPE_AW(LPCBT_CREATEWND
);
586 } CBTACTIVATESTRUCT16
;
592 } CBTACTIVATESTRUCT32
;
594 DECL_WINELIB_TYPE(CBTACTIVATESTRUCT
);
596 /* Shell hook values */
597 #define HSHELL_WINDOWCREATED 1
598 #define HSHELL_WINDOWDESTROYED 2
599 #define HSHELL_ACTIVATESHELLWINDOW 3
601 /* Debug hook structure */
605 HMODULE16 hModuleHook
;
606 LPARAM reserved WINE_PACKED
;
607 LPARAM lParam WINE_PACKED
;
610 } DEBUGHOOKINFO16
, *LPDEBUGHOOKINFO16
;
615 DWORD idThreadInstaller
;
619 } DEBUGHOOKINFO32
, *LPDEBUGHOOKINFO32
;
621 DECL_WINELIB_TYPE(DEBUGHOOKINFO
);
622 DECL_WINELIB_TYPE(LPDEBUGHOOKINFO
);
624 /***** Dialogs *****/
626 /* cbWndExtra bytes for dialog class */
627 #define DLGWINDOWEXTRA 30
630 #define DS_ABSALIGN 0x001
631 #define DS_SYSMODAL 0x002
632 #define DS_LOCALEDIT 0x020
633 #define DS_SETFONT 0x040
634 #define DS_MODALFRAME 0x080
635 #define DS_NOIDLEMSG 0x100
637 /* Dialog messages */
638 #define DM_GETDEFID (WM_USER+0)
639 #define DM_SETDEFID (WM_USER+1)
641 #define DC_HASDEFID 0x534b
643 /* WM_GETDLGCODE values */
644 #define DLGC_WANTARROWS 0x0001
645 #define DLGC_WANTTAB 0x0002
646 #define DLGC_WANTALLKEYS 0x0004
647 #define DLGC_WANTMESSAGE 0x0004
648 #define DLGC_HASSETSEL 0x0008
649 #define DLGC_DEFPUSHBUTTON 0x0010
650 #define DLGC_UNDEFPUSHBUTTON 0x0020
651 #define DLGC_RADIOBUTTON 0x0040
652 #define DLGC_WANTCHARS 0x0080
653 #define DLGC_STATIC 0x0100
654 #define DLGC_BUTTON 0x2000
656 /* Standard dialog button IDs */
671 LPARAM lParam WINE_PACKED
;
672 DWORD time WINE_PACKED
;
673 POINT16 pt WINE_PACKED
;
686 DECL_WINELIB_TYPE(MSG
);
687 DECL_WINELIB_TYPE(LPMSG
);
689 /* Raster operations */
692 #define R2_NOTMERGEPEN 2
693 #define R2_MASKNOTPEN 3
694 #define R2_NOTCOPYPEN 4
695 #define R2_MASKPENNOT 5
698 #define R2_NOTMASKPEN 8
700 #define R2_NOTXORPEN 10
702 #define R2_MERGENOTPEN 12
703 #define R2_COPYPEN 13
704 #define R2_MERGEPENNOT 14
705 #define R2_MERGEPEN 15
708 #define SRCCOPY 0xcc0020
709 #define SRCPAINT 0xee0086
710 #define SRCAND 0x8800c6
711 #define SRCINVERT 0x660046
712 #define SRCERASE 0x440328
713 #define NOTSRCCOPY 0x330008
714 #define NOTSRCERASE 0x1100a6
715 #define MERGECOPY 0xc000ca
716 #define MERGEPAINT 0xbb0226
717 #define PATCOPY 0xf00021
718 #define PATPAINT 0xfb0a09
719 #define PATINVERT 0x5a0049
720 #define DSTINVERT 0x550009
721 #define BLACKNESS 0x000042
722 #define WHITENESS 0xff0062
724 /* StretchBlt() modes */
725 #define BLACKONWHITE 1
726 #define WHITEONBLACK 2
727 #define COLORONCOLOR 3
729 #define STRETCH_ANDSCANS BLACKONWHITE
730 #define STRETCH_ORSCANS WHITEONBLACK
731 #define STRETCH_DELETESCANS COLORONCOLOR
736 typedef DWORD COLORREF
;
738 #define RGB(r,g,b) ((COLORREF)((r) | ((g) << 8) | ((b) << 16)))
739 #define PALETTERGB(r,g,b) (0x02000000 | RGB(r,g,b))
740 #define PALETTEINDEX(i) ((COLORREF)(0x01000000 | (WORD)(i)))
742 #define GetRValue(rgb) ((rgb) & 0xff)
743 #define GetGValue(rgb) (((rgb) >> 8) & 0xff)
744 #define GetBValue(rgb) (((rgb) >> 16) & 0xff)
746 #define COLOR_SCROLLBAR 0
747 #define COLOR_BACKGROUND 1
748 #define COLOR_ACTIVECAPTION 2
749 #define COLOR_INACTIVECAPTION 3
751 #define COLOR_WINDOW 5
752 #define COLOR_WINDOWFRAME 6
753 #define COLOR_MENUTEXT 7
754 #define COLOR_WINDOWTEXT 8
755 #define COLOR_CAPTIONTEXT 9
756 #define COLOR_ACTIVEBORDER 10
757 #define COLOR_INACTIVEBORDER 11
758 #define COLOR_APPWORKSPACE 12
759 #define COLOR_HIGHLIGHT 13
760 #define COLOR_HIGHLIGHTTEXT 14
761 #define COLOR_BTNFACE 15
762 #define COLOR_BTNSHADOW 16
763 #define COLOR_GRAYTEXT 17
764 #define COLOR_BTNTEXT 18
765 #define COLOR_INACTIVECAPTIONTEXT 19
766 #define COLOR_BTNHIGHLIGHT 20
768 /* WM_CTLCOLOR values */
769 #define CTLCOLOR_MSGBOX 0
770 #define CTLCOLOR_EDIT 1
771 #define CTLCOLOR_LISTBOX 2
772 #define CTLCOLOR_BTN 3
773 #define CTLCOLOR_DLG 4
774 #define CTLCOLOR_SCROLLBAR 5
775 #define CTLCOLOR_STATIC 6
787 SEGPTR bmBits WINE_PACKED
;
788 } BITMAP16
, *LPBITMAP16
;
798 LPVOID bmBits WINE_PACKED
;
799 } BITMAP32
, *LPBITMAP32
;
801 DECL_WINELIB_TYPE(BITMAP
);
802 DECL_WINELIB_TYPE(LPBITMAP
);
809 COLORREF lbColor WINE_PACKED
;
811 } LOGBRUSH16
, *LPLOGBRUSH16
;
818 } LOGBRUSH32
, *LPLOGBRUSH32
;
820 DECL_WINELIB_TYPE(LOGBRUSH
);
821 DECL_WINELIB_TYPE(LPLOGBRUSH
);
830 #define BS_DIBPATTERN 5
833 #define HS_HORIZONTAL 0
834 #define HS_VERTICAL 1
835 #define HS_FDIAGONAL 2
836 #define HS_BDIAGONAL 3
838 #define HS_DIAGCROSS 5
842 #define LF_FACESIZE 32
843 #define LF_FULLFACESIZE 64
857 BYTE lfClipPrecision
;
859 BYTE lfPitchAndFamily
;
860 CHAR lfFaceName
[LF_FACESIZE
] WINE_PACKED
;
861 } LOGFONT16
, *LPLOGFONT16
;
875 BYTE lfClipPrecision
;
877 BYTE lfPitchAndFamily
;
878 CHAR lfFaceName
[LF_FACESIZE
];
879 } LOGFONT32A
, *LPLOGFONT32A
;
893 BYTE lfClipPrecision
;
895 BYTE lfPitchAndFamily
;
896 WCHAR lfFaceName
[LF_FACESIZE
];
897 } LOGFONT32W
, *LPLOGFONT32W
;
899 DECL_WINELIB_TYPE_AW(LOGFONT
);
900 DECL_WINELIB_TYPE_AW(LPLOGFONT
);
904 LOGFONT16 elfLogFont
;
905 BYTE elfFullName
[LF_FULLFACESIZE
] WINE_PACKED
;
906 BYTE elfStyle
[LF_FACESIZE
] WINE_PACKED
;
907 } ENUMLOGFONT16
, *LPENUMLOGFONT16
;
911 LOGFONT32A elfLogFont
;
912 BYTE elfFullName
[LF_FULLFACESIZE
] WINE_PACKED
;
913 BYTE elfStyle
[LF_FACESIZE
] WINE_PACKED
;
914 } ENUMLOGFONT32A
, *LPENUMLOGFONT32A
;
918 LOGFONT32W elfLogFont
;
919 WCHAR elfFullName
[LF_FULLFACESIZE
] WINE_PACKED
;
920 WCHAR elfStyle
[LF_FACESIZE
] WINE_PACKED
;
921 } ENUMLOGFONT32W
, *LPENUMLOGFONT32W
;
923 DECL_WINELIB_TYPE_AW(ENUMLOGFONT
);
924 DECL_WINELIB_TYPE_AW(LPENUMLOGFONT
);
926 /* lfWeight values */
927 #define FW_DONTCARE 0
929 #define FW_EXTRALIGHT 200
930 #define FW_ULTRALIGHT 200
932 #define FW_NORMAL 400
933 #define FW_REGULAR 400
934 #define FW_MEDIUM 500
935 #define FW_SEMIBOLD 600
936 #define FW_DEMIBOLD 600
938 #define FW_EXTRABOLD 800
939 #define FW_ULTRABOLD 800
943 /* lfCharSet values */
944 #define ANSI_CHARSET 0
945 #define DEFAULT_CHARSET 1
946 #define SYMBOL_CHARSET 2
947 #define SHIFTJIS_CHARSET 128
948 #define OEM_CHARSET 255
950 /* lfOutPrecision values */
951 #define OUT_DEFAULT_PRECIS 0
952 #define OUT_STRING_PRECIS 1
953 #define OUT_CHARACTER_PRECIS 2
954 #define OUT_STROKE_PRECIS 3
955 #define OUT_TT_PRECIS 4
956 #define OUT_DEVICE_PRECIS 5
957 #define OUT_RASTER_PRECIS 6
958 #define OUT_TT_ONLY_PRECIS 7
960 /* lfClipPrecision values */
961 #define CLIP_DEFAULT_PRECIS 0x00
962 #define CLIP_CHARACTER_PRECIS 0x01
963 #define CLIP_STROKE_PRECIS 0x02
964 #define CLIP_MASK 0x0F
965 #define CLIP_LH_ANGLES 0x10
966 #define CLIP_TT_ALWAYS 0x20
967 #define CLIP_EMBEDDED 0x80
969 /* lfQuality values */
970 #define DEFAULT_QUALITY 0
971 #define DRAFT_QUALITY 1
972 #define PROOF_QUALITY 2
974 /* lfPitchAndFamily pitch values */
975 #define DEFAULT_PITCH 0x00
976 #define FIXED_PITCH 0x01
977 #define VARIABLE_PITCH 0x02
978 #define FF_DONTCARE 0x00
979 #define FF_ROMAN 0x10
980 #define FF_SWISS 0x20
981 #define FF_MODERN 0x30
982 #define FF_SCRIPT 0x40
983 #define FF_DECORATIVE 0x50
990 INT16 tmInternalLeading
;
991 INT16 tmExternalLeading
;
992 INT16 tmAveCharWidth
;
993 INT16 tmMaxCharWidth
;
1002 BYTE tmPitchAndFamily
;
1004 INT16 tmOverhang WINE_PACKED
;
1005 INT16 tmDigitizedAspectX WINE_PACKED
;
1006 INT16 tmDigitizedAspectY WINE_PACKED
;
1007 } TEXTMETRIC16
, *LPTEXTMETRIC16
;
1014 INT32 tmInternalLeading
;
1015 INT32 tmExternalLeading
;
1016 INT32 tmAveCharWidth
;
1017 INT32 tmMaxCharWidth
;
1020 INT32 tmDigitizedAspectX
;
1021 INT32 tmDigitizedAspectY
;
1029 BYTE tmPitchAndFamily
;
1031 } TEXTMETRIC32A
, *LPTEXTMETRIC32A
;
1038 INT32 tmInternalLeading
;
1039 INT32 tmExternalLeading
;
1040 INT32 tmAveCharWidth
;
1041 INT32 tmMaxCharWidth
;
1044 INT32 tmDigitizedAspectX
;
1045 INT32 tmDigitizedAspectY
;
1048 WCHAR tmDefaultChar
;
1053 BYTE tmPitchAndFamily
;
1055 } TEXTMETRIC32W
, *LPTEXTMETRIC32W
;
1057 DECL_WINELIB_TYPE_AW(TEXTMETRIC
);
1058 DECL_WINELIB_TYPE_AW(LPTEXTMETRIC
);
1060 typedef INT16 (*FONTENUMPROC16
)(SEGPTR
,SEGPTR
,UINT16
,LPARAM
);
1061 typedef INT32 (*FONTENUMPROC32A
)(const LOGFONT32A
*,const TEXTMETRIC32A
*,UINT32
,LPARAM
);
1062 typedef INT32 (*FONTENUMPROC32W
)(const LOGFONT32W
*,const TEXTMETRIC32W
*,UINT32
,LPARAM
);
1063 DECL_WINELIB_TYPE_AW(FONTENUMPROC
);
1065 /* tmPitchAndFamily values */
1066 #define TMPF_FIXED_PITCH 1
1067 #define TMPF_VECTOR 2
1068 #define TMPF_TRUETYPE 4
1069 #define TMPF_DEVICE 8
1071 /* Text alignment */
1072 #define TA_NOUPDATECP 0x00
1073 #define TA_UPDATECP 0x01
1074 #define TA_LEFT 0x00
1075 #define TA_RIGHT 0x02
1076 #define TA_CENTER 0x06
1078 #define TA_BOTTOM 0x08
1079 #define TA_BASELINE 0x18
1081 /* ExtTextOut() parameters */
1082 #define ETO_GRAYED 0x01
1083 #define ETO_OPAQUE 0x02
1084 #define ETO_CLIPPED 0x04
1086 /* for GetCharABCWidths() */
1101 DECL_WINELIB_TYPE(ABC
);
1102 DECL_WINELIB_TYPE(LPABC
);
1104 /* Rasterizer status */
1110 } RASTERIZER_STATUS
, *LPRASTERIZER_STATUS
;
1112 #define TT_AVAILABLE 0x0001
1113 #define TT_ENABLED 0x0002
1115 /* Get/SetSystemPaletteUse() values */
1116 #define SYSPAL_STATIC 1
1117 #define SYSPAL_NOSTATIC 2
1119 typedef struct tagPALETTEENTRY
1121 BYTE peRed
, peGreen
, peBlue
, peFlags
;
1122 } PALETTEENTRY
, *LPPALETTEENTRY
;
1124 /* Logical palette entry flags */
1125 #define PC_RESERVED 0x01
1126 #define PC_EXPLICIT 0x02
1127 #define PC_NOCOLLAPSE 0x04
1133 PALETTEENTRY palPalEntry
[1] WINE_PACKED
;
1134 } LOGPALETTE
, *LPLOGPALETTE
;
1141 POINT16 lopnWidth WINE_PACKED
;
1142 COLORREF lopnColor WINE_PACKED
;
1143 } LOGPEN16
, *LPLOGPEN16
;
1148 POINT32 lopnWidth WINE_PACKED
;
1149 COLORREF lopnColor WINE_PACKED
;
1150 } LOGPEN32
, *LPLOGPEN32
;
1152 DECL_WINELIB_TYPE(LOGPEN
);
1153 DECL_WINELIB_TYPE(LPLOGPEN
);
1158 #define PS_DASHDOT 3
1159 #define PS_DASHDOTDOT 4
1161 #define PS_INSIDEFRAME 6
1166 #define NULLREGION 1
1167 #define SIMPLEREGION 2
1168 #define COMPLEXREGION 3
1176 /* Device contexts */
1179 #define DCX_WINDOW 0x00000001
1180 #define DCX_CACHE 0x00000002
1181 #define DCX_CLIPCHILDREN 0x00000008
1182 #define DCX_CLIPSIBLINGS 0x00000010
1183 #define DCX_PARENTCLIP 0x00000020
1184 #define DCX_EXCLUDERGN 0x00000040
1185 #define DCX_INTERSECTRGN 0x00000080
1186 #define DCX_LOCKWINDOWUPDATE 0x00000400
1187 #define DCX_USESTYLE 0x00010000
1193 /* Background modes */
1194 #ifdef TRANSPARENT /*Apparently some broken svr4 includes define TRANSPARENT*/
1197 #define TRANSPARENT 1
1202 #define MM_LOMETRIC 2
1203 #define MM_HIMETRIC 3
1204 #define MM_LOENGLISH 4
1205 #define MM_HIENGLISH 5
1207 #define MM_ISOTROPIC 7
1208 #define MM_ANISOTROPIC 8
1210 /* Coordinate modes */
1214 /* Flood fill modes */
1215 #define FLOODFILLBORDER 0
1216 #define FLOODFILLSURFACE 1
1218 /* Device parameters for GetDeviceCaps() */
1219 #define DRIVERVERSION 0
1220 #define TECHNOLOGY 2
1225 #define BITSPIXEL 12
1227 #define NUMBRUSHES 16
1229 #define NUMMARKERS 20
1231 #define NUMCOLORS 24
1232 #define PDEVICESIZE 26
1233 #define CURVECAPS 28
1235 #define POLYGONALCAPS 32
1238 #define RASTERCAPS 38
1242 #define LOGPIXELSX 88
1243 #define LOGPIXELSY 90
1244 #define SIZEPALETTE 104
1245 #define NUMRESERVED 106
1246 #define COLORRES 108
1249 #define DT_PLOTTER 0
1250 #define DT_RASDISPLAY 1
1251 #define DT_RASPRINTER 2
1252 #define DT_RASCAMERA 3
1253 #define DT_CHARSTREAM 4
1254 #define DT_METAFILE 5
1255 #define DT_DISPFILE 6
1258 #define CC_NONE 0x0000
1259 #define CC_CIRCLES 0x0001
1260 #define CC_PIE 0x0002
1261 #define CC_CHORD 0x0004
1262 #define CC_ELLIPSES 0x0008
1263 #define CC_WIDE 0x0010
1264 #define CC_STYLED 0x0020
1265 #define CC_WIDESTYLED 0x0040
1266 #define CC_INTERIORS 0x0080
1267 #define CC_ROUNDRECT 0x0100
1270 #define LC_NONE 0x0000
1271 #define LC_POLYLINE 0x0002
1272 #define LC_MARKER 0x0004
1273 #define LC_POLYMARKER 0x0008
1274 #define LC_WIDE 0x0010
1275 #define LC_STYLED 0x0020
1276 #define LC_WIDESTYLED 0x0040
1277 #define LC_INTERIORS 0x0080
1280 #define PC_NONE 0x0000
1281 #define PC_POLYGON 0x0001
1282 #define PC_RECTANGLE 0x0002
1283 #define PC_WINDPOLYGON 0x0004
1284 #define PC_SCANLINE 0x0008
1285 #define PC_WIDE 0x0010
1286 #define PC_STYLED 0x0020
1287 #define PC_WIDESTYLED 0x0040
1288 #define PC_INTERIORS 0x0080
1291 #define TC_OP_CHARACTER 0x0001
1292 #define TC_OP_STROKE 0x0002
1293 #define TC_CP_STROKE 0x0004
1294 #define TC_CR_90 0x0008
1295 #define TC_CR_ANY 0x0010
1296 #define TC_SF_X_YINDEP 0x0020
1297 #define TC_SA_DOUBLE 0x0040
1298 #define TC_SA_INTEGER 0x0080
1299 #define TC_SA_CONTIN 0x0100
1300 #define TC_EA_DOUBLE 0x0200
1301 #define TC_IA_ABLE 0x0400
1302 #define TC_UA_ABLE 0x0800
1303 #define TC_SO_ABLE 0x1000
1304 #define TC_RA_ABLE 0x2000
1305 #define TC_VA_ABLE 0x4000
1306 #define TC_RESERVED 0x8000
1309 #define CP_NONE 0x0000
1310 #define CP_RECTANGLE 0x0001
1311 #define CP_REGION 0x0002
1314 #define RC_NONE 0x0000
1315 #define RC_BITBLT 0x0001
1316 #define RC_BANDING 0x0002
1317 #define RC_SCALING 0x0004
1318 #define RC_BITMAP64 0x0008
1319 #define RC_GDI20_OUTPUT 0x0010
1320 #define RC_GDI20_STATE 0x0020
1321 #define RC_SAVEBITMAP 0x0040
1322 #define RC_DI_BITMAP 0x0080
1323 #define RC_PALETTE 0x0100
1324 #define RC_DIBTODEV 0x0200
1325 #define RC_BIGFONT 0x0400
1326 #define RC_STRETCHBLT 0x0800
1327 #define RC_FLOODFILL 0x1000
1328 #define RC_STRETCHDIB 0x2000
1329 #define RC_OP_DX_OUTPUT 0x4000
1330 #define RC_DEVBITS 0x8000
1332 /* GetSystemMetrics() codes */
1333 #define SM_CXSCREEN 0
1334 #define SM_CYSCREEN 1
1335 #define SM_CXVSCROLL 2
1336 #define SM_CYHSCROLL 3
1337 #define SM_CYCAPTION 4
1338 #define SM_CXBORDER 5
1339 #define SM_CYBORDER 6
1340 #define SM_CXDLGFRAME 7
1341 #define SM_CYDLGFRAME 8
1342 #define SM_CYVTHUMB 9
1343 #define SM_CXHTHUMB 10
1344 #define SM_CXICON 11
1345 #define SM_CYICON 12
1346 #define SM_CXCURSOR 13
1347 #define SM_CYCURSOR 14
1348 #define SM_CYMENU 15
1349 #define SM_CXFULLSCREEN 16
1350 #define SM_CYFULLSCREEN 17
1351 #define SM_CYKANJIWINDOW 18
1352 #define SM_MOUSEPRESENT 19
1353 #define SM_CYVSCROLL 20
1354 #define SM_CXHSCROLL 21
1356 #define SM_SWAPBUTTON 23
1357 #define SM_RESERVED1 24
1358 #define SM_RESERVED2 25
1359 #define SM_RESERVED3 26
1360 #define SM_RESERVED4 27
1363 #define SM_CXSIZE 30
1364 #define SM_CYSIZE 31
1365 #define SM_CXFRAME 32
1366 #define SM_CYFRAME 33
1367 #define SM_CXMINTRACK 34
1368 #define SM_CYMINTRACK 35
1369 #define SM_CXDOUBLECLK 36
1370 #define SM_CYDOUBLECLK 37
1371 #define SM_CXICONSPACING 38
1372 #define SM_CYICONSPACING 39
1373 #define SM_MENUDROPALIGNMENT 40
1374 #define SM_PENWINDOWS 41
1375 #define SM_DBCSENABLED 42
1377 #define SM_CMETRICS 43
1379 /* Device-independent bitmaps */
1381 typedef struct { BYTE rgbBlue
, rgbGreen
, rgbRed
, rgbReserved
; } RGBQUAD
;
1382 typedef struct { BYTE rgbtBlue
, rgbtGreen
, rgbtRed
; } RGBTRIPLE
;
1387 DWORD bfSize WINE_PACKED
;
1388 UINT16 bfReserved1 WINE_PACKED
;
1389 UINT16 bfReserved2 WINE_PACKED
;
1390 DWORD bfOffBits WINE_PACKED
;
1400 DWORD biCompression
;
1402 DWORD biXPelsPerMeter
;
1403 DWORD biYPelsPerMeter
;
1405 DWORD biClrImportant
;
1406 } BITMAPINFOHEADER
, *LPBITMAPINFOHEADER
;
1414 BITMAPINFOHEADER bmiHeader
;
1415 RGBQUAD bmiColors
[1];
1417 typedef BITMAPINFO
*LPBITMAPINFO
;
1418 typedef BITMAPINFO
*NPBITMAPINFO
;
1419 typedef BITMAPINFO
*PBITMAPINFO
;
1432 BITMAPCOREHEADER bmciHeader
;
1433 RGBTRIPLE bmciColors
[1];
1434 } BITMAPCOREINFO
, *LPBITMAPCOREINFO
;
1436 #define DIB_RGB_COLORS 0
1437 #define DIB_PAL_COLORS 1
1441 /* Cursors / Icons */
1456 BYTE i
; /* much more .... */
1458 typedef KANJISTRUCT
*LPKANJISTRUCT
;
1459 typedef KANJISTRUCT
*NPKANJISTRUCT
;
1460 typedef KANJISTRUCT
*PKANJISTRUCT
;
1462 #define OFS_MAXPATHNAME 128
1469 BYTE szPathName
[OFS_MAXPATHNAME
];
1470 } OFSTRUCT
, *LPOFSTRUCT
;
1472 #define OF_READ 0x0000
1473 #define OF_WRITE 0x0001
1474 #define OF_READWRITE 0x0002
1475 #define OF_SHARE_COMPAT 0x0000
1476 #define OF_SHARE_EXCLUSIVE 0x0010
1477 #define OF_SHARE_DENY_WRITE 0x0020
1478 #define OF_SHARE_DENY_READ 0x0030
1479 #define OF_SHARE_DENY_NONE 0x0040
1480 #define OF_PARSE 0x0100
1481 #define OF_DELETE 0x0200
1482 #define OF_VERIFY 0x0400 /* Used with OF_REOPEN */
1483 #define OF_SEARCH 0x0400 /* Used without OF_REOPEN */
1484 #define OF_CANCEL 0x0800
1485 #define OF_CREATE 0x1000
1486 #define OF_PROMPT 0x2000
1487 #define OF_EXIST 0x4000
1488 #define OF_REOPEN 0x8000
1490 /* GetTempFileName() Flags */
1491 #define TF_FORCEDRIVE 0x80
1493 #define DRIVE_CANNOTDETERMINE 0
1494 #define DRIVE_DOESNOTEXIST 1
1495 #define DRIVE_REMOVABLE 2
1496 #define DRIVE_FIXED 3
1497 #define DRIVE_REMOTE 4
1498 /* Win32 additions */
1499 #define DRIVE_CDROM 5
1500 #define DRIVE_RAMDISK 6
1502 #define HFILE_ERROR -1
1504 #define DDL_READWRITE 0x0000
1505 #define DDL_READONLY 0x0001
1506 #define DDL_HIDDEN 0x0002
1507 #define DDL_SYSTEM 0x0004
1508 #define DDL_DIRECTORY 0x0010
1509 #define DDL_ARCHIVE 0x0020
1511 #define DDL_POSTMSGS 0x2000
1512 #define DDL_DRIVES 0x4000
1513 #define DDL_EXCLUSIVE 0x8000
1515 /* The security attributes structure
1520 LPVOID lpSecurityDescriptor
;
1521 BOOL32 bInheritHandle
;
1522 } SECURITY_ATTRIBUTES
, *LPSECURITY_ATTRIBUTES
;
1524 /* 64 bit number of 100 nanoseconds intervals since January 1, 1601 */
1525 /* FIXME: currently dwLowDateTime is equivalent to the UNIX time(),
1526 * and dwHighDateTime 0
1530 INT32 dwLowDateTime
;
1531 INT32 dwHighDateTime
;
1532 } FILETIME
, *LPFILETIME
;
1534 /* Find* structures */
1537 DWORD dwFileAttributes
;
1538 FILETIME ftCreationTime
;
1539 FILETIME ftLastAccessTime
;
1540 FILETIME ftLastWriteTime
;
1541 DWORD nFileSizeHigh
;
1545 CHAR cFileName
[260];
1546 CHAR cAlternateFileName
[14];
1547 } WIN32_FIND_DATA32A
, *LPWIN32_FIND_DATA32A
;
1551 DWORD dwFileAttributes
;
1552 FILETIME ftCreationTime
;
1553 FILETIME ftLastAccessTime
;
1554 FILETIME ftLastWriteTime
;
1555 DWORD nFileSizeHigh
;
1559 WCHAR cFileName
[260];
1560 WCHAR cAlternateFileName
[14];
1561 } WIN32_FIND_DATA32W
, *LPWIN32_FIND_DATA32W
;
1563 DECL_WINELIB_TYPE_AW(WIN32_FIND_DATA
);
1564 DECL_WINELIB_TYPE_AW(LPWIN32_FIND_DATA
);
1568 #define CBR_110 0xFF10
1569 #define CBR_300 0xFF11
1570 #define CBR_600 0xFF12
1571 #define CBR_1200 0xFF13
1572 #define CBR_2400 0xFF14
1573 #define CBR_4800 0xFF15
1574 #define CBR_9600 0xFF16
1575 #define CBR_14400 0xFF17
1576 #define CBR_19200 0xFF18
1577 #define CBR_38400 0xFF1B
1578 #define CBR_56000 0xFF1F
1579 #define CBR_128000 0xFF23
1580 #define CBR_256000 0xFF27
1584 #define EVENPARITY 2
1585 #define MARKPARITY 3
1586 #define SPACEPARITY 4
1587 #define ONESTOPBIT 0
1588 #define ONE5STOPBITS 1
1589 #define TWOSTOPBITS 2
1592 #define INFINITE16 0xFFFF
1593 #define INFINITE32 0xFFFFFFFF
1594 #define INFINITE WINELIB_NAME(INFINITE)
1596 #define CE_RXOVER 0x0001
1597 #define CE_OVERRUN 0x0002
1598 #define CE_RXPARITY 0x0004
1599 #define CE_FRAME 0x0008
1600 #define CE_BREAK 0x0010
1601 #define CE_CTSTO 0x0020
1602 #define CE_DSRTO 0x0040
1603 #define CE_RLSDTO 0x0080
1604 #define CE_TXFULL 0x0100
1605 #define CE_PTO 0x0200
1606 #define CE_IOE 0x0400
1607 #define CE_DNS 0x0800
1608 #define CE_OOP 0x1000
1609 #define CE_MODE 0x8000
1614 #define IE_MEMORY -4
1615 #define IE_DEFAULT -5
1616 #define IE_HARDWARE -10
1617 #define IE_BYTESIZE -11
1618 #define IE_BAUDRATE -12
1620 #define EV_RXCHAR 0x0001
1621 #define EV_RXFLAG 0x0002
1622 #define EV_TXEMPTY 0x0004
1623 #define EV_CTS 0x0008
1624 #define EV_DSR 0x0010
1625 #define EV_RLSD 0x0020
1626 #define EV_BREAK 0x0040
1627 #define EV_ERR 0x0080
1628 #define EV_RING 0x0100
1629 #define EV_PERR 0x0200
1630 #define EV_CTSS 0x0400
1631 #define EV_DSRS 0x0800
1632 #define EV_RLSDS 0x1000
1633 #define EV_RINGTE 0x2000
1634 #define EV_RingTe EV_RINGTE
1650 #define GETBASEIRQ 10
1652 #define CN_RECEIVE 0x0001
1653 #define CN_TRANSMIT 0x0002
1654 #define CN_EVENT 0x0004
1656 typedef struct tagDCB16
1659 UINT16 BaudRate WINE_PACKED
;
1668 UINT16 fRtsDisable
:1;
1670 UINT16 fOutxCtsFlow
:1;
1671 UINT16 fOutxDsrFlow
:1;
1673 UINT16 fDtrDisable
:1;
1691 UINT16 TxDelay WINE_PACKED
;
1694 typedef struct tagDCB32
1700 DWORD fOutxCtsFlow
:1;
1701 DWORD fOutxDsrFlow
:1;
1702 DWORD fDtrControl
:2;
1703 DWORD fDsrSensitivity
:1;
1704 DWORD fTXContinueOnXoff
:1;
1707 DWORD fErrorChar
:1;
1709 DWORD fRtsControl
:2;
1710 DWORD fAbortOnError
:1;
1725 DECL_WINELIB_TYPE(DCB
);
1726 DECL_WINELIB_TYPE(LPDCB
);
1728 #define RTS_CONTROL_DISABLE 0
1729 #define RTS_CONTROL_ENABLE 1
1730 #define RTS_CONTROL_HANDSHAKE 2
1731 #define RTS_CONTROL_TOGGLE 3
1733 #define DTR_CONTROL_DISABLE 0
1734 #define DTR_CONTROL_ENABLE 1
1735 #define DTR_CONTROL_HANDSHAKE 2
1737 typedef struct tagCOMMTIMEOUTS
{
1738 DWORD ReadIntervalTimeout
;
1739 DWORD ReadTotalTimeoutMultiplier
;
1740 DWORD ReadTotalTimeoutConstant
;
1741 DWORD WriteTotalTimeoutMultiplier
;
1742 DWORD WriteTotalTimeoutConstant
;
1743 } COMMTIMEOUTS
,*LPCOMMTIMEOUTS
;
1745 typedef struct tagCOMSTAT
1748 UINT16 cbInQue WINE_PACKED
;
1749 UINT16 cbOutQue WINE_PACKED
;
1750 } COMSTAT
,*LPCOMSTAT
;
1752 #define CSTF_CTSHOLD 0x01
1753 #define CSTF_DSRHOLD 0x02
1754 #define CSTF_RLSDHOLD 0x04
1755 #define CSTF_XOFFHOLD 0x08
1756 #define CSTF_XOFFSENT 0x10
1757 #define CSTF_EOF 0x20
1758 #define CSTF_TXIM 0x40
1760 /* SystemParametersInfo */
1762 #define SPI_GETBEEP 1
1763 #define SPI_SETBEEP 2
1764 #define SPI_GETMOUSE 3
1765 #define SPI_SETMOUSE 4
1766 #define SPI_GETBORDER 5
1767 #define SPI_SETBORDER 6
1768 #define SPI_GETKEYBOARDSPEED 10
1769 #define SPI_SETKEYBOARDSPEED 11
1770 #define SPI_LANGDRIVER 12
1771 #define SPI_ICONHORIZONTALSPACING 13
1772 #define SPI_GETSCREENSAVETIMEOUT 14
1773 #define SPI_SETSCREENSAVETIMEOUT 15
1774 #define SPI_GETSCREENSAVEACTIVE 16
1775 #define SPI_SETSCREENSAVEACTIVE 17
1776 #define SPI_GETGRIDGRANULARITY 18
1777 #define SPI_SETGRIDGRANULARITY 19
1778 #define SPI_SETDESKWALLPAPER 20
1779 #define SPI_SETDESKPATTERN 21
1780 #define SPI_GETKEYBOARDDELAY 22
1781 #define SPI_SETKEYBOARDDELAY 23
1782 #define SPI_ICONVERTICALSPACING 24
1783 #define SPI_GETICONTITLEWRAP 25
1784 #define SPI_SETICONTITLEWRAP 26
1785 #define SPI_GETMENUDROPALIGNMENT 27
1786 #define SPI_SETMENUDROPALIGNMENT 28
1787 #define SPI_SETDOUBLECLKWIDTH 29
1788 #define SPI_SETDOUBLECLKHEIGHT 30
1789 #define SPI_GETICONTITLELOGFONT 31
1790 #define SPI_SETDOUBLECLICKTIME 32
1791 #define SPI_SETMOUSEBUTTONSWAP 33
1792 #define SPI_SETICONTITLELOGFONT 34
1793 #define SPI_GETFASTTASKSWITCH 35
1794 #define SPI_SETFASTTASKSWITCH 36
1796 /* SystemParametersInfo flags */
1798 #define SPIF_UPDATEINIFILE 1
1799 #define SPIF_SENDWININICHANGE 2
1801 /* GetFreeSystemResources() parameters */
1803 #define GFSR_SYSTEMRESOURCES 0x0000
1804 #define GFSR_GDIRESOURCES 0x0001
1805 #define GFSR_USERRESOURCES 0x0002
1809 #define WF_PMODE 0x0001
1810 #define WF_CPU286 0x0002
1811 #define WF_CPU386 0x0004
1812 #define WF_CPU486 0x0008
1813 #define WF_STANDARD 0x0010
1814 #define WF_WIN286 0x0010
1815 #define WF_ENHANCED 0x0020
1816 #define WF_WIN386 0x0020
1817 #define WF_CPU086 0x0040
1818 #define WF_CPU186 0x0080
1819 #define WF_LARGEFRAME 0x0100
1820 #define WF_SMALLFRAME 0x0200
1821 #define WF_80x87 0x0400
1822 #define WF_PAGING 0x0800
1823 #define WF_WLO 0x8000
1825 #define MAKEINTRESOURCE(i) (SEGPTR)((DWORD)((WORD)(i)))
1827 /* Predefined resource types */
1828 #define RT_CURSOR MAKEINTRESOURCE(1)
1829 #define RT_BITMAP MAKEINTRESOURCE(2)
1830 #define RT_ICON MAKEINTRESOURCE(3)
1831 #define RT_MENU MAKEINTRESOURCE(4)
1832 #define RT_DIALOG MAKEINTRESOURCE(5)
1833 #define RT_STRING MAKEINTRESOURCE(6)
1834 #define RT_FONTDIR MAKEINTRESOURCE(7)
1835 #define RT_FONT MAKEINTRESOURCE(8)
1836 #define RT_ACCELERATOR MAKEINTRESOURCE(9)
1837 #define RT_RCDATA MAKEINTRESOURCE(10)
1838 #define RT_MESSAGELIST MAKEINTRESOURCE(11)
1839 #define RT_GROUP_CURSOR MAKEINTRESOURCE(12)
1840 #define RT_GROUP_ICON MAKEINTRESOURCE(14)
1842 /* Predefined resources */
1843 #define IDI_APPLICATION MAKEINTRESOURCE(32512)
1844 #define IDI_HAND MAKEINTRESOURCE(32513)
1845 #define IDI_QUESTION MAKEINTRESOURCE(32514)
1846 #define IDI_EXCLAMATION MAKEINTRESOURCE(32515)
1847 #define IDI_ASTERISK MAKEINTRESOURCE(32516)
1849 #define IDC_BUMMER MAKEINTRESOURCE(100)
1850 #define IDC_ARROW MAKEINTRESOURCE(32512)
1851 #define IDC_IBEAM MAKEINTRESOURCE(32513)
1852 #define IDC_WAIT MAKEINTRESOURCE(32514)
1853 #define IDC_CROSS MAKEINTRESOURCE(32515)
1854 #define IDC_UPARROW MAKEINTRESOURCE(32516)
1855 #define IDC_SIZE MAKEINTRESOURCE(32640)
1856 #define IDC_ICON MAKEINTRESOURCE(32641)
1857 #define IDC_SIZENWSE MAKEINTRESOURCE(32642)
1858 #define IDC_SIZENESW MAKEINTRESOURCE(32643)
1859 #define IDC_SIZEWE MAKEINTRESOURCE(32644)
1860 #define IDC_SIZENS MAKEINTRESOURCE(32645)
1862 /* OEM Resource Ordinal Numbers */
1863 #define OBM_CLOSE 32754
1864 #define OBM_UPARROW 32753
1865 #define OBM_DNARROW 32752
1866 #define OBM_RGARROW 32751
1867 #define OBM_LFARROW 32750
1868 #define OBM_REDUCE 32749
1869 #define OBM_ZOOM 32748
1870 #define OBM_RESTORE 32747
1871 #define OBM_REDUCED 32746
1872 #define OBM_ZOOMD 32745
1873 #define OBM_RESTORED 32744
1874 #define OBM_UPARROWD 32743
1875 #define OBM_DNARROWD 32742
1876 #define OBM_RGARROWD 32741
1877 #define OBM_LFARROWD 32740
1878 #define OBM_MNARROW 32739
1879 #define OBM_COMBO 32738
1880 #define OBM_UPARROWI 32737
1881 #define OBM_DNARROWI 32736
1882 #define OBM_RGARROWI 32735
1883 #define OBM_LFARROWI 32734
1885 #define OBM_FOLDER 32733
1886 #define OBM_FOLDER2 32732
1887 #define OBM_FLOPPY 32731
1888 #define OBM_HDISK 32730
1889 #define OBM_CDROM 32729
1890 #define OBM_TRTYPE 32728
1892 #define OBM_OLD_CLOSE 32767
1893 #define OBM_SIZE 32766
1894 #define OBM_OLD_UPARROW 32765
1895 #define OBM_OLD_DNARROW 32764
1896 #define OBM_OLD_RGARROW 32763
1897 #define OBM_OLD_LFARROW 32762
1898 #define OBM_BTSIZE 32761
1899 #define OBM_CHECK 32760
1900 #define OBM_CHECKBOXES 32759
1901 #define OBM_BTNCORNERS 32758
1902 #define OBM_OLD_REDUCE 32757
1903 #define OBM_OLD_ZOOM 32756
1904 #define OBM_OLD_RESTORE 32755
1906 #define OCR_BUMMER 100
1907 #define OCR_DRAGOBJECT 101
1909 #define OCR_NORMAL 32512
1910 #define OCR_IBEAM 32513
1911 #define OCR_WAIT 32514
1912 #define OCR_CROSS 32515
1913 #define OCR_UP 32516
1914 #define OCR_SIZE 32640
1915 #define OCR_ICON 32641
1916 #define OCR_SIZENWSE 32642
1917 #define OCR_SIZENESW 32643
1918 #define OCR_SIZEWE 32644
1919 #define OCR_SIZENS 32645
1920 #define OCR_SIZEALL 32646
1921 #define OCR_ICOCUR 32647
1923 #define OIC_SAMPLE 32512
1924 #define OIC_HAND 32513
1925 #define OIC_QUES 32514
1926 #define OIC_BANG 32515
1927 #define OIC_NOTE 32516
1928 #define OIC_PORTRAIT 32517
1929 #define OIC_LANDSCAPE 32518
1930 #define OIC_WINEICON 32519
1932 /* Stock GDI objects for GetStockObject() */
1934 #define WHITE_BRUSH 0
1935 #define LTGRAY_BRUSH 1
1936 #define GRAY_BRUSH 2
1937 #define DKGRAY_BRUSH 3
1938 #define BLACK_BRUSH 4
1939 #define NULL_BRUSH 5
1940 #define HOLLOW_BRUSH 5
1944 #define OEM_FIXED_FONT 10
1945 #define ANSI_FIXED_FONT 11
1946 #define ANSI_VAR_FONT 12
1947 #define SYSTEM_FONT 13
1948 #define DEVICE_DEFAULT_FONT 14
1949 #define DEFAULT_PALETTE 15
1950 #define SYSTEM_FIXED_FONT 16
1952 /* DragObject stuff */
1961 POINT16 pt WINE_PACKED
;
1963 } DRAGINFO
, *LPDRAGINFO
;
1965 #define DRAGOBJ_PROGRAM 0x0001
1966 #define DRAGOBJ_DATA 0x0002
1967 #define DRAGOBJ_DIRECTORY 0x0004
1968 #define DRAGOBJ_MULTIPLE 0x0008
1969 #define DRAGOBJ_EXTERNAL 0x8000
1971 #define DRAG_PRINT 0x544E5250
1972 #define DRAG_FILE 0x454C4946
1976 #define WM_NULL 0x0000
1977 #define WM_CREATE 0x0001
1978 #define WM_DESTROY 0x0002
1979 #define WM_MOVE 0x0003
1980 #define WM_SIZEWAIT 0x0004
1981 #define WM_SIZE 0x0005
1982 #define WM_ACTIVATE 0x0006
1983 #define WM_SETFOCUS 0x0007
1984 #define WM_KILLFOCUS 0x0008
1985 #define WM_SETVISIBLE 0x0009
1986 #define WM_ENABLE 0x000a
1987 #define WM_SETREDRAW 0x000b
1988 #define WM_SETTEXT 0x000c
1989 #define WM_GETTEXT 0x000d
1990 #define WM_GETTEXTLENGTH 0x000e
1991 #define WM_PAINT 0x000f
1992 #define WM_CLOSE 0x0010
1993 #define WM_QUERYENDSESSION 0x0011
1994 #define WM_QUIT 0x0012
1995 #define WM_QUERYOPEN 0x0013
1996 #define WM_ERASEBKGND 0x0014
1997 #define WM_SYSCOLORCHANGE 0x0015
1998 #define WM_ENDSESSION 0x0016
1999 #define WM_SYSTEMERROR 0x0017
2000 #define WM_SHOWWINDOW 0x0018
2001 #define WM_CTLCOLOR 0x0019
2002 #define WM_WININICHANGE 0x001a
2003 #define WM_DEVMODECHANGE 0x001b
2004 #define WM_ACTIVATEAPP 0x001c
2005 #define WM_FONTCHANGE 0x001d
2006 #define WM_TIMECHANGE 0x001e
2007 #define WM_CANCELMODE 0x001f
2008 #define WM_SETCURSOR 0x0020
2009 #define WM_MOUSEACTIVATE 0x0021
2010 #define WM_CHILDACTIVATE 0x0022
2011 #define WM_QUEUESYNC 0x0023
2012 #define WM_GETMINMAXINFO 0x0024
2014 #define WM_PAINTICON 0x0026
2015 #define WM_ICONERASEBKGND 0x0027
2016 #define WM_NEXTDLGCTL 0x0028
2017 #define WM_ALTTABACTIVE 0x0029
2018 #define WM_SPOOLERSTATUS 0x002a
2019 #define WM_DRAWITEM 0x002b
2020 #define WM_MEASUREITEM 0x002c
2021 #define WM_DELETEITEM 0x002d
2022 #define WM_VKEYTOITEM 0x002e
2023 #define WM_CHARTOITEM 0x002f
2024 #define WM_SETFONT 0x0030
2025 #define WM_GETFONT 0x0031
2026 #define WM_SETHOTKEY 0x0032
2027 #define WM_GETHOTKEY 0x0033
2028 #define WM_FILESYSCHANGE 0x0034
2029 #define WM_ISACTIVEICON 0x0035
2030 #define WM_QUERYPARKICON 0x0036
2031 #define WM_QUERYDRAGICON 0x0037
2032 #define WM_QUERYSAVESTATE 0x0038
2033 #define WM_COMPAREITEM 0x0039
2034 #define WM_TESTING 0x003a
2036 #define WM_OTHERWINDOWCREATED 0x003c
2037 #define WM_OTHERWINDOWDESTROYED 0x003d
2038 #define WM_ACTIVATESHELLWINDOW 0x003e
2040 #define WM_COMPACTING 0x0041
2042 #define WM_COMMNOTIFY 0x0044
2043 #define WM_WINDOWPOSCHANGING 0x0046
2044 #define WM_WINDOWPOSCHANGED 0x0047
2045 #define WM_POWER 0x0048
2047 #define WM_NCCREATE 0x0081
2048 #define WM_NCDESTROY 0x0082
2049 #define WM_NCCALCSIZE 0x0083
2050 #define WM_NCHITTEST 0x0084
2051 #define WM_NCPAINT 0x0085
2052 #define WM_NCACTIVATE 0x0086
2054 #define WM_GETDLGCODE 0x0087
2055 #define WM_SYNCPAINT 0x0088
2056 #define WM_SYNCTASK 0x0089
2058 /* Non-client mouse messages */
2059 #define WM_NCMOUSEMOVE 0x00a0
2060 #define WM_NCLBUTTONDOWN 0x00a1
2061 #define WM_NCLBUTTONUP 0x00a2
2062 #define WM_NCLBUTTONDBLCLK 0x00a3
2063 #define WM_NCRBUTTONDOWN 0x00a4
2064 #define WM_NCRBUTTONUP 0x00a5
2065 #define WM_NCRBUTTONDBLCLK 0x00a6
2066 #define WM_NCMBUTTONDOWN 0x00a7
2067 #define WM_NCMBUTTONUP 0x00a8
2068 #define WM_NCMBUTTONDBLCLK 0x00a9
2070 /* Keyboard messages */
2071 #define WM_KEYDOWN 0x0100
2072 #define WM_KEYUP 0x0101
2073 #define WM_CHAR 0x0102
2074 #define WM_DEADCHAR 0x0103
2075 #define WM_SYSKEYDOWN 0x0104
2076 #define WM_SYSKEYUP 0x0105
2077 #define WM_SYSCHAR 0x0106
2078 #define WM_SYSDEADCHAR 0x0107
2079 #define WM_KEYFIRST WM_KEYDOWN
2080 #define WM_KEYLAST 0x0108
2082 #define WM_INITDIALOG 0x0110
2083 #define WM_COMMAND 0x0111
2084 #define WM_SYSCOMMAND 0x0112
2085 #define WM_TIMER 0x0113
2086 #define WM_SYSTIMER 0x0118
2088 /* scroll messages */
2089 #define WM_HSCROLL 0x0114
2090 #define WM_VSCROLL 0x0115
2093 #define WM_INITMENU 0x0116
2094 #define WM_INITMENUPOPUP 0x0117
2096 #define WM_MENUSELECT 0x011F
2097 #define WM_MENUCHAR 0x0120
2098 #define WM_ENTERIDLE 0x0121
2100 #define WM_LBTRACKPOINT 0x0131
2102 /* Win32 CTLCOLOR messages */
2103 #define WM_CTLCOLORMSGBOX 0x0132
2104 #define WM_CTLCOLOREDIT 0x0133
2105 #define WM_CTLCOLORLISTBOX 0x0134
2106 #define WM_CTLCOLORBTN 0x0135
2107 #define WM_CTLCOLORDLG 0x0136
2108 #define WM_CTLCOLORSCROLLBAR 0x0137
2109 #define WM_CTLCOLORSTATIC 0x0138
2111 /* Mouse messages */
2112 #define WM_MOUSEMOVE 0x0200
2113 #define WM_LBUTTONDOWN 0x0201
2114 #define WM_LBUTTONUP 0x0202
2115 #define WM_LBUTTONDBLCLK 0x0203
2116 #define WM_RBUTTONDOWN 0x0204
2117 #define WM_RBUTTONUP 0x0205
2118 #define WM_RBUTTONDBLCLK 0x0206
2119 #define WM_MBUTTONDOWN 0x0207
2120 #define WM_MBUTTONUP 0x0208
2121 #define WM_MBUTTONDBLCLK 0x0209
2122 #define WM_MOUSEFIRST WM_MOUSEMOVE
2123 #define WM_MOUSELAST WM_MBUTTONDBLCLK
2125 #define WM_PARENTNOTIFY 0x0210
2126 #define WM_ENTERMENULOOP 0x0211
2127 #define WM_EXITMENULOOP 0x0212
2128 #define WM_NEXTMENU 0x0213
2130 #define WM_MDICREATE 0x0220
2131 #define WM_MDIDESTROY 0x0221
2132 #define WM_MDIACTIVATE 0x0222
2133 #define WM_MDIRESTORE 0x0223
2134 #define WM_MDINEXT 0x0224
2135 #define WM_MDIMAXIMIZE 0x0225
2136 #define WM_MDITILE 0x0226
2137 #define WM_MDICASCADE 0x0227
2138 #define WM_MDIICONARRANGE 0x0228
2139 #define WM_MDIGETACTIVE 0x0229
2140 #define WM_DROPOBJECT 0x022A
2141 #define WM_QUERYDROPOBJECT 0x022B
2142 #define WM_BEGINDRAG 0x022C
2143 #define WM_DRAGLOOP 0x022D
2144 #define WM_DRAGSELECT 0x022E
2145 #define WM_DRAGMOVE 0x022F
2146 #define WM_MDISETMENU 0x0230
2148 #define WM_ENTERSIZEMOVE 0x0231
2149 #define WM_EXITSIZEMOVE 0x0232
2150 #define WM_DROPFILES 0x0233
2152 #define WM_CUT 0x0300
2153 #define WM_COPY 0x0301
2154 #define WM_PASTE 0x0302
2155 #define WM_CLEAR 0x0303
2156 #define WM_UNDO 0x0304
2157 #define WM_RENDERFORMAT 0x0305
2158 #define WM_RENDERALLFORMATS 0x0306
2159 #define WM_DESTROYCLIPBOARD 0x0307
2160 #define WM_DRAWCLIPBOARD 0x0308
2161 #define WM_PAINTCLIPBOARD 0x0309
2162 #define WM_VSCROLLCLIPBOARD 0x030A
2163 #define WM_SIZECLIPBOARD 0x030B
2164 #define WM_ASKCBFORMATNAME 0x030C
2165 #define WM_CHANGECBCHAIN 0x030D
2166 #define WM_HSCROLLCLIPBOARD 0x030E
2167 #define WM_QUERYNEWPALETTE 0x030F
2168 #define WM_PALETTEISCHANGING 0x0310
2169 #define WM_PALETTECHANGED 0x0311
2171 #define WM_COALESCE_FIRST 0x0390
2172 #define WM_COALESCE_LAST 0x039F
2175 #define WM_NULL 0x0000
2176 #define WM_USER 0x0400
2177 #define WM_CPL_LAUNCH (WM_USER + 1000)
2178 #define WM_CPL_LAUNCHED (WM_USER + 1001)
2180 /* Key status flags for mouse events */
2181 #define MK_LBUTTON 0x0001
2182 #define MK_RBUTTON 0x0002
2183 #define MK_SHIFT 0x0004
2184 #define MK_CONTROL 0x0008
2185 #define MK_MBUTTON 0x0010
2187 /* Mouse_Event flags */
2188 #define ME_MOVE 0x01
2189 #define ME_LDOWN 0x02
2191 #define ME_RDOWN 0x08
2194 /* Queue status flags */
2195 #define QS_KEY 0x0001
2196 #define QS_MOUSEMOVE 0x0002
2197 #define QS_MOUSEBUTTON 0x0004
2198 #define QS_MOUSE (QS_MOUSEMOVE | QS_MOUSEBUTTON)
2199 #define QS_POSTMESSAGE 0x0008
2200 #define QS_TIMER 0x0010
2201 #define QS_PAINT 0x0020
2202 #define QS_SENDMESSAGE 0x0040
2203 #define QS_ALLINPUT 0x007f
2205 /* PeekMessage() options */
2206 #define PM_NOREMOVE 0x0000
2207 #define PM_REMOVE 0x0001
2208 #define PM_NOYIELD 0x0002
2210 #define WM_SHOWWINDOW 0x0018
2212 /* WM_SHOWWINDOW wParam codes */
2213 #define SW_PARENTCLOSING 1
2214 #define SW_OTHERMAXIMIZED 2
2215 #define SW_PARENTOPENING 3
2216 #define SW_OTHERRESTORED 4
2218 /* ShowWindow() codes */
2220 #define SW_SHOWNORMAL 1
2222 #define SW_SHOWMINIMIZED 2
2223 #define SW_SHOWMAXIMIZED 3
2224 #define SW_MAXIMIZE 3
2225 #define SW_SHOWNOACTIVATE 4
2227 #define SW_MINIMIZE 6
2228 #define SW_SHOWMINNOACTIVE 7
2230 #define SW_RESTORE 9
2231 #define SW_SHOWDEFAULT 10
2233 #define SW_NORMALNA 0xCC /* undoc. flag in MinMaximize */
2235 /* WM_SIZE message wParam values */
2236 #define SIZE_RESTORED 0
2237 #define SIZE_MINIMIZED 1
2238 #define SIZE_MAXIMIZED 2
2239 #define SIZE_MAXSHOW 3
2240 #define SIZE_MAXHIDE 4
2241 #define SIZENORMAL SIZE_RESTORED
2242 #define SIZEICONIC SIZE_MINIMIZED
2243 #define SIZEFULLSCREEN SIZE_MAXIMIZED
2244 #define SIZEZOOMSHOW SIZE_MAXSHOW
2245 #define SIZEZOOMHIDE SIZE_MAXHIDE
2247 /* SetWindowPos() and WINDOWPOS flags */
2248 #define SWP_NOSIZE 0x0001
2249 #define SWP_NOMOVE 0x0002
2250 #define SWP_NOZORDER 0x0004
2251 #define SWP_NOREDRAW 0x0008
2252 #define SWP_NOACTIVATE 0x0010
2253 #define SWP_FRAMECHANGED 0x0020 /* The frame changed: send WM_NCCALCSIZE */
2254 #define SWP_SHOWWINDOW 0x0040
2255 #define SWP_HIDEWINDOW 0x0080
2256 #define SWP_NOCOPYBITS 0x0100
2257 #define SWP_NOOWNERZORDER 0x0200 /* Don't do owner Z ordering */
2259 #define SWP_DRAWFRAME SWP_FRAMECHANGED
2260 #define SWP_NOREPOSITION SWP_NOOWNERZORDER
2262 #define SWP_NOSENDCHANGING 0x0400
2263 #define SWP_DEFERERASE 0x2000
2265 #define HWND_BROADCAST ((HWND)0xffff)
2267 /* SetWindowPos() hwndInsertAfter field values */
2268 #define HWND_TOP ((HWND)0)
2269 #define HWND_BOTTOM ((HWND)1)
2270 #define HWND_TOPMOST ((HWND)-1)
2271 #define HWND_NOTOPMOST ((HWND)-2)
2273 /* Flags for TrackPopupMenu */
2274 #define TPM_LEFTBUTTON 0x0000
2275 #define TPM_RIGHTBUTTON 0x0002
2276 #define TPM_LEFTALIGN 0x0000
2277 #define TPM_CENTERALIGN 0x0004
2278 #define TPM_RIGHTALIGN 0x0008
2280 #define MF_INSERT 0x0000
2281 #define MF_CHANGE 0x0080
2282 #define MF_APPEND 0x0100
2283 #define MF_DELETE 0x0200
2284 #define MF_REMOVE 0x1000
2285 #define MF_END 0x0080
2287 #define MF_ENABLED 0x0000
2288 #define MF_GRAYED 0x0001
2289 #define MF_DISABLED 0x0002
2290 #define MF_STRING 0x0000
2291 #define MF_BITMAP 0x0004
2292 #define MF_UNCHECKED 0x0000
2293 #define MF_CHECKED 0x0008
2294 #define MF_POPUP 0x0010
2295 #define MF_MENUBARBREAK 0x0020
2296 #define MF_MENUBREAK 0x0040
2297 #define MF_UNHILITE 0x0000
2298 #define MF_HILITE 0x0080
2299 #define MF_OWNERDRAW 0x0100
2300 #define MF_USECHECKBITMAPS 0x0200
2301 #define MF_BYCOMMAND 0x0000
2302 #define MF_BYPOSITION 0x0400
2303 #define MF_SEPARATOR 0x0800
2304 #define MF_SYSMENU 0x2000
2305 #define MF_HELP 0x4000
2306 #define MF_MOUSESELECT 0x8000
2308 #ifndef NOWINOFFSETS
2309 #define GCW_HBRBACKGROUND (-10)
2312 #define MB_OK 0x0000
2313 #define MB_OKCANCEL 0x0001
2314 #define MB_ABORTRETRYIGNORE 0x0002
2315 #define MB_YESNOCANCEL 0x0003
2316 #define MB_YESNO 0x0004
2317 #define MB_RETRYCANCEL 0x0005
2318 #define MB_TYPEMASK 0x000F
2320 #define MB_ICONHAND 0x0010
2321 #define MB_ICONQUESTION 0x0020
2322 #define MB_ICONEXCLAMATION 0x0030
2323 #define MB_ICONASTERISK 0x0040
2324 #define MB_ICONMASK 0x00F0
2326 #define MB_ICONINFORMATION MB_ICONASTERISK
2327 #define MB_ICONSTOP MB_ICONHAND
2329 #define MB_DEFBUTTON1 0x0000
2330 #define MB_DEFBUTTON2 0x0100
2331 #define MB_DEFBUTTON3 0x0200
2332 #define MB_DEFMASK 0x0F00
2334 #define MB_APPLMODAL 0x0000
2335 #define MB_SYSTEMMODAL 0x1000
2336 #define MB_TASKMODAL 0x2000
2338 #define MB_NOFOCUS 0x8000
2345 #define DT_VCENTER 4
2347 #define DT_WORDBREAK 16
2348 #define DT_SINGLELINE 32
2349 #define DT_EXPANDTABS 64
2350 #define DT_TABSTOP 128
2351 #define DT_NOCLIP 256
2352 #define DT_EXTERNALLEADING 512
2353 #define DT_CALCRECT 1024
2354 #define DT_NOPREFIX 2048
2355 #define DT_INTERNAL 4096
2357 /* DrawEdge() flags */
2358 #define BDR_RAISEDOUTER 0x0001
2359 #define BDR_SUNKENOUTER 0x0002
2360 #define BDR_RAISEDINNER 0x0004
2361 #define BDR_SUNKENINNER 0x0008
2363 #define BDR_OUTER 0x0003
2364 #define BDR_INNER 0x000c
2365 #define BDR_RAISED 0x0005
2366 #define BDR_SUNKEN 0x000a
2368 #define EDGE_RAISED (BDR_RAISEDOUTER | BDR_RAISEDINNER)
2369 #define EDGE_SUNKEN (BDR_SUNKENOUTER | BDR_SUNKENINNER)
2370 #define EDGE_ETCHED (BDR_SUNKENOUTER | BDR_RAISEDINNER)
2371 #define EDGE_BUMP (BDR_RAISEDOUTER | BDR_SUNKENINNER)
2374 #define BF_LEFT 0x0001
2375 #define BF_TOP 0x0002
2376 #define BF_RIGHT 0x0004
2377 #define BF_BOTTOM 0x0008
2378 #define BF_DIAGONAL 0x0010
2379 #define BF_MIDDLE 0x0800 /* Fill in the middle */
2380 #define BF_SOFT 0x1000 /* For softer buttons */
2381 #define BF_ADJUST 0x2000 /* Calculate the space left over */
2382 #define BF_FLAT 0x4000 /* For flat rather than 3D borders */
2383 #define BF_MONO 0x8000 /* For monochrome borders */
2384 #define BF_TOPLEFT (BF_TOP | BF_LEFT)
2385 #define BF_TOPRIGHT (BF_TOP | BF_RIGHT)
2386 #define BF_BOTTOMLEFT (BF_BOTTOM | BF_LEFT)
2387 #define BF_BOTTOMRIGHT (BF_BOTTOM | BF_RIGHT)
2388 #define BF_RECT (BF_LEFT | BF_TOP | BF_RIGHT | BF_BOTTOM)
2389 #define BF_DIAGONAL_ENDTOPRIGHT (BF_DIAGONAL | BF_TOP | BF_RIGHT)
2390 #define BF_DIAGONAL_ENDTOPLEFT (BF_DIAGONAL | BF_TOP | BF_LEFT)
2391 #define BF_DIAGONAL_ENDBOTTOMLEFT (BF_DIAGONAL | BF_BOTTOM | BF_LEFT)
2392 #define BF_DIAGONAL_ENDBOTTOMRIGHT (BF_DIAGONAL | BF_BOTTOM | BF_RIGHT)
2395 #define WS_OVERLAPPED 0x00000000L
2396 #define WS_POPUP 0x80000000L
2397 #define WS_CHILD 0x40000000L
2398 #define WS_MINIMIZE 0x20000000L
2399 #define WS_VISIBLE 0x10000000L
2400 #define WS_DISABLED 0x08000000L
2401 #define WS_CLIPSIBLINGS 0x04000000L
2402 #define WS_CLIPCHILDREN 0x02000000L
2403 #define WS_MAXIMIZE 0x01000000L
2404 #define WS_CAPTION 0x00C00000L
2405 #define WS_BORDER 0x00800000L
2406 #define WS_DLGFRAME 0x00400000L
2407 #define WS_VSCROLL 0x00200000L
2408 #define WS_HSCROLL 0x00100000L
2409 #define WS_SYSMENU 0x00080000L
2410 #define WS_THICKFRAME 0x00040000L
2411 #define WS_GROUP 0x00020000L
2412 #define WS_TABSTOP 0x00010000L
2413 #define WS_MINIMIZEBOX 0x00020000L
2414 #define WS_MAXIMIZEBOX 0x00010000L
2415 #define WS_TILED WS_OVERLAPPED
2416 #define WS_ICONIC WS_MINIMIZE
2417 #define WS_SIZEBOX WS_THICKFRAME
2418 #define WS_OVERLAPPEDWINDOW (WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME| WS_MINIMIZEBOX | WS_MAXIMIZEBOX)
2419 #define WS_POPUPWINDOW (WS_POPUP | WS_BORDER | WS_SYSMENU)
2420 #define WS_CHILDWINDOW (WS_CHILD)
2421 #define WS_TILEDWINDOW (WS_OVERLAPPEDWINDOW)
2423 /* Window extended styles */
2424 #define WS_EX_DLGMODALFRAME 0x00000001L
2425 #define WS_EX_DRAGDETECT 0x00000002L
2426 #define WS_EX_NOPARENTNOTIFY 0x00000004L
2427 #define WS_EX_TOPMOST 0x00000008L
2428 #define WS_EX_ACCEPTFILES 0x00000010L
2429 #define WS_EX_TRANSPARENT 0x00000020L
2431 /* Window scrolling */
2432 #define SW_SCROLLCHILDREN 0x0001
2433 #define SW_INVALIDATE 0x0002
2434 #define SW_ERASE 0x0004
2436 /* CreateWindow() coordinates */
2437 #define CW_USEDEFAULT16 ((INT16)0x8000)
2438 #define CW_USEDEFAULT32 ((INT32)0x80000000)
2439 #define CW_USEDEFAULT WINELIB_NAME(CW_USEDEFAULT)
2441 /* Button control styles */
2442 #define BS_PUSHBUTTON 0x00000000L
2443 #define BS_DEFPUSHBUTTON 0x00000001L
2444 #define BS_CHECKBOX 0x00000002L
2445 #define BS_AUTOCHECKBOX 0x00000003L
2446 #define BS_RADIOBUTTON 0x00000004L
2447 #define BS_3STATE 0x00000005L
2448 #define BS_AUTO3STATE 0x00000006L
2449 #define BS_GROUPBOX 0x00000007L
2450 #define BS_USERBUTTON 0x00000008L
2451 #define BS_AUTORADIOBUTTON 0x00000009L
2452 #define BS_OWNERDRAW 0x0000000BL
2453 #define BS_LEFTTEXT 0x00000020L
2455 /* Win16 button control messages */
2456 #define BM_GETCHECK16 (WM_USER+0)
2457 #define BM_SETCHECK16 (WM_USER+1)
2458 #define BM_GETSTATE16 (WM_USER+2)
2459 #define BM_SETSTATE16 (WM_USER+3)
2460 #define BM_SETSTYLE16 (WM_USER+4)
2461 #define BM_CLICK16 WM_NULL /* Does not exist in Win16 */
2462 #define BM_GETIMAGE16 WM_NULL /* Does not exist in Win16 */
2463 #define BM_SETIMAGE16 WM_NULL /* Does not exist in Win16 */
2464 /* Win32 button control messages */
2465 #define BM_GETCHECK32 0x00f0
2466 #define BM_SETCHECK32 0x00f1
2467 #define BM_GETSTATE32 0x00f2
2468 #define BM_SETSTATE32 0x00f3
2469 #define BM_SETSTYLE32 0x00f4
2470 #define BM_CLICK32 0x00f5
2471 #define BM_GETIMAGE32 0x00f6
2472 #define BM_SETIMAGE32 0x00f7
2473 /* Winelib button control messages */
2474 #define BM_GETCHECK WINELIB_NAME(BM_GETCHECK)
2475 #define BM_SETCHECK WINELIB_NAME(BM_SETCHECK)
2476 #define BM_GETSTATE WINELIB_NAME(BM_GETSTATE)
2477 #define BM_SETSTATE WINELIB_NAME(BM_SETSTATE)
2478 #define BM_SETSTYLE WINELIB_NAME(BM_SETSTYLE)
2479 #define BM_CLICK WINELIB_NAME(BM_CLICK)
2480 #define BM_GETIMAGE WINELIB_NAME(BM_GETIMAGE)
2481 #define BM_SETIMAGE WINELIB_NAME(BM_SETIMAGE)
2483 /* Button notification codes */
2484 #define BN_CLICKED 0
2487 #define BN_UNHILITE 3
2488 #define BN_DISABLE 4
2489 #define BN_DOUBLECLICKED 5
2491 /* Static Control Styles */
2492 #define SS_LEFT 0x00000000L
2493 #define SS_CENTER 0x00000001L
2494 #define SS_RIGHT 0x00000002L
2495 #define SS_ICON 0x00000003L
2496 #define SS_BLACKRECT 0x00000004L
2497 #define SS_GRAYRECT 0x00000005L
2498 #define SS_WHITERECT 0x00000006L
2499 #define SS_BLACKFRAME 0x00000007L
2500 #define SS_GRAYFRAME 0x00000008L
2501 #define SS_WHITEFRAME 0x00000009L
2502 #define SS_SIMPLE 0x0000000BL
2503 #define SS_LEFTNOWORDWRAP 0x0000000CL
2504 #define SS_NOPREFIX 0x00000080L
2506 /* Static Control Mesages */
2507 #define STM_SETICON (WM_USER+0)
2508 #define STM_GETICON (WM_USER+1)
2510 /* WM_H/VSCROLL commands */
2512 #define SB_LINELEFT 0
2513 #define SB_LINEDOWN 1
2514 #define SB_LINERIGHT 1
2516 #define SB_PAGELEFT 2
2517 #define SB_PAGEDOWN 3
2518 #define SB_PAGERIGHT 3
2519 #define SB_THUMBPOSITION 4
2520 #define SB_THUMBTRACK 5
2525 #define SB_ENDSCROLL 8
2527 /* Scroll bar selection constants */
2533 /* Scrollbar styles */
2534 #define SBS_HORZ 0x0000L
2535 #define SBS_VERT 0x0001L
2536 #define SBS_TOPALIGN 0x0002L
2537 #define SBS_LEFTALIGN 0x0002L
2538 #define SBS_BOTTOMALIGN 0x0004L
2539 #define SBS_RIGHTALIGN 0x0004L
2540 #define SBS_SIZEBOXTOPLEFTALIGN 0x0002L
2541 #define SBS_SIZEBOXBOTTOMRIGHTALIGN 0x0004L
2542 #define SBS_SIZEBOX 0x0008L
2544 /* EnableScrollBar() flags */
2545 #define ESB_ENABLE_BOTH 0x0000
2546 #define ESB_DISABLE_BOTH 0x0003
2548 #define ESB_DISABLE_LEFT 0x0001
2549 #define ESB_DISABLE_RIGHT 0x0002
2551 #define ESB_DISABLE_UP 0x0001
2552 #define ESB_DISABLE_DOWN 0x0002
2554 #define ESB_DISABLE_LTUP ESB_DISABLE_LEFT
2555 #define ESB_DISABLE_RTDN ESB_DISABLE_RIGHT
2557 /* Scrollbar messages */
2558 #define SBM_SETPOS16 (WM_USER+0)
2559 #define SBM_SETPOS32 0x00e0
2560 #define SBM_SETPOS WINELIB_NAME(SBM_SETPOS)
2561 #define SBM_GETPOS16 (WM_USER+1)
2562 #define SBM_GETPOS32 0x00e1
2563 #define SBM_GETPOS WINELIB_NAME(SBM_GETPOS)
2564 #define SBM_SETRANGE16 (WM_USER+2)
2565 #define SBM_SETRANGE32 0x00e2
2566 #define SBM_SETRANGE WINELIB_NAME(SBM_SETRANGE)
2567 #define SBM_GETRANGE16 (WM_USER+3)
2568 #define SBM_GETRANGE32 0x00e3
2569 #define SBM_GETRANGE WINELIB_NAME(SBM_GETRANGE)
2570 #define SBM_ENABLE_ARROWS16 (WM_USER+4)
2571 #define SBM_ENABLE_ARROWS32 0x00e4
2572 #define SBM_ENABLE_ARROWS WINELIB_NAME(SBM_ENABLE_ARROWS)
2573 #define SBM_SETRANGEREDRAW16 WM_NULL /* Not in Win16 */
2574 #define SBM_SETRANGEREDRAW32 0x00e6
2575 #define SBM_SETRANGEREDRAW WINELIB_NAME(SBM_SETRANGEREDRAW)
2576 #define SBM_SETSCROLLINFO16 WM_NULL /* Not in Win16 */
2577 #define SBM_SETSCROLLINFO32 0x00e9
2578 #define SBM_SETSCROLLINFO WINELIB_NAME(SBM_SETSCROLLINFO)
2579 #define SBM_GETSCROLLINFO16 WM_NULL /* Not in Win16 */
2580 #define SBM_GETSCROLLINFO32 0x00ea
2581 #define SBM_GETSCROLLINFO WINELIB_NAME(SBM_GETSCROLLINFO)
2583 /* Scrollbar info */
2593 } SCROLLINFO
, *LPSCROLLINFO
;
2595 /* GetScrollInfo() flags */
2596 #define SIF_RANGE 0x0001
2597 #define SIF_PAGE 0x0002
2598 #define SIF_POS 0x0004
2599 #define SIF_DISABLENOSCROLL 0x0008
2600 #define SIF_TRACKPOS 0x0010
2601 #define SIF_ALL (SIF_RANGE | SIF_PAGE | SIF_POS | SIF_TRACKPOS)
2603 /* Listbox styles */
2604 #define LBS_NOTIFY 0x0001
2605 #define LBS_SORT 0x0002
2606 #define LBS_NOREDRAW 0x0004
2607 #define LBS_MULTIPLESEL 0x0008
2608 #define LBS_OWNERDRAWFIXED 0x0010
2609 #define LBS_OWNERDRAWVARIABLE 0x0020
2610 #define LBS_HASSTRINGS 0x0040
2611 #define LBS_USETABSTOPS 0x0080
2612 #define LBS_NOINTEGRALHEIGHT 0x0100
2613 #define LBS_MULTICOLUMN 0x0200
2614 #define LBS_WANTKEYBOARDINPUT 0x0400
2615 #define LBS_EXTENDEDSEL 0x0800
2616 #define LBS_DISABLENOSCROLL 0x1000
2617 #define LBS_NODATA 0x2000
2618 #define LBS_NOSEL 0x4000
2619 #define LBS_STANDARD (LBS_NOTIFY | LBS_SORT | WS_VSCROLL | WS_BORDER)
2621 /* Listbox messages */
2622 #define LB_ADDSTRING16 (WM_USER+1)
2623 #define LB_ADDSTRING32 0x0180
2624 #define LB_ADDSTRING WINELIB_NAME(LB_ADDSTRING)
2625 #define LB_INSERTSTRING16 (WM_USER+2)
2626 #define LB_INSERTSTRING32 0x0181
2627 #define LB_INSERTSTRING WINELIB_NAME(LB_INSERTSTRING)
2628 #define LB_DELETESTRING16 (WM_USER+3)
2629 #define LB_DELETESTRING32 0x0182
2630 #define LB_DELETESTRING WINELIB_NAME(LB_DELETESTRING)
2631 #define LB_SELITEMRANGEEX16 (WM_USER+4)
2632 #define LB_SELITEMRANGEEX32 0x0183
2633 #define LB_SELITEMRANGEEX WINELIB_NAME(LB_SELITEMRANGEEX)
2634 #define LB_RESETCONTENT16 (WM_USER+5)
2635 #define LB_RESETCONTENT32 0x0184
2636 #define LB_RESETCONTENT WINELIB_NAME(LB_RESETCONTENT)
2637 #define LB_SETSEL16 (WM_USER+6)
2638 #define LB_SETSEL32 0x0185
2639 #define LB_SETSEL WINELIB_NAME(LB_SETSEL)
2640 #define LB_SETCURSEL16 (WM_USER+7)
2641 #define LB_SETCURSEL32 0x0186
2642 #define LB_SETCURSEL WINELIB_NAME(LB_SETCURSEL)
2643 #define LB_GETSEL16 (WM_USER+8)
2644 #define LB_GETSEL32 0x0187
2645 #define LB_GETSEL WINELIB_NAME(LB_GETSEL)
2646 #define LB_GETCURSEL16 (WM_USER+9)
2647 #define LB_GETCURSEL32 0x0188
2648 #define LB_GETCURSEL WINELIB_NAME(LB_GETCURSEL)
2649 #define LB_GETTEXT16 (WM_USER+10)
2650 #define LB_GETTEXT32 0x0189
2651 #define LB_GETTEXT WINELIB_NAME(LB_GETTEXT)
2652 #define LB_GETTEXTLEN16 (WM_USER+11)
2653 #define LB_GETTEXTLEN32 0x018a
2654 #define LB_GETTEXTLEN WINELIB_NAME(LB_GETTEXTLEN)
2655 #define LB_GETCOUNT16 (WM_USER+12)
2656 #define LB_GETCOUNT32 0x018b
2657 #define LB_GETCOUNT WINELIB_NAME(LB_GETCOUNT)
2658 #define LB_SELECTSTRING16 (WM_USER+13)
2659 #define LB_SELECTSTRING32 0x018c
2660 #define LB_SELECTSTRING WINELIB_NAME(LB_SELECTSTRING)
2661 #define LB_DIR16 (WM_USER+14)
2662 #define LB_DIR32 0x018d
2663 #define LB_DIR WINELIB_NAME(LB_DIR)
2664 #define LB_GETTOPINDEX16 (WM_USER+15)
2665 #define LB_GETTOPINDEX32 0x018e
2666 #define LB_GETTOPINDEX WINELIB_NAME(LB_GETTOPINDEX)
2667 #define LB_FINDSTRING16 (WM_USER+16)
2668 #define LB_FINDSTRING32 0x018f
2669 #define LB_FINDSTRING WINELIB_NAME(LB_FINDSTRING)
2670 #define LB_GETSELCOUNT16 (WM_USER+17)
2671 #define LB_GETSELCOUNT32 0x0190
2672 #define LB_GETSELCOUNT WINELIB_NAME(LB_GETSELCOUNT)
2673 #define LB_GETSELITEMS16 (WM_USER+18)
2674 #define LB_GETSELITEMS32 0x0191
2675 #define LB_GETSELITEMS WINELIB_NAME(LB_GETSELITEMS)
2676 #define LB_SETTABSTOPS16 (WM_USER+19)
2677 #define LB_SETTABSTOPS32 0x0192
2678 #define LB_SETTABSTOPS WINELIB_NAME(LB_SETTABSTOPS)
2679 #define LB_GETHORIZONTALEXTENT16 (WM_USER+20)
2680 #define LB_GETHORIZONTALEXTENT32 0x0193
2681 #define LB_GETHORIZONTALEXTENT WINELIB_NAME(LB_GETHORIZONTALEXTENT)
2682 #define LB_SETHORIZONTALEXTENT16 (WM_USER+21)
2683 #define LB_SETHORIZONTALEXTENT32 0x0194
2684 #define LB_SETHORIZONTALEXTENT WINELIB_NAME(LB_SETHORIZONTALEXTENT)
2685 #define LB_SETCOLUMNWIDTH16 (WM_USER+22)
2686 #define LB_SETCOLUMNWIDTH32 0x0195
2687 #define LB_SETCOLUMNWIDTH WINELIB_NAME(LB_SETCOLUMNWIDTH)
2688 #define LB_ADDFILE16 (WM_USER+23)
2689 #define LB_ADDFILE32 0x0196
2690 #define LB_ADDFILE WINELIB_NAME(LB_ADDFILE)
2691 #define LB_SETTOPINDEX16 (WM_USER+24)
2692 #define LB_SETTOPINDEX32 0x0197
2693 #define LB_SETTOPINDEX WINELIB_NAME(LB_SETTOPINDEX)
2694 #define LB_GETITEMRECT16 (WM_USER+25)
2695 #define LB_GETITEMRECT32 0x0198
2696 #define LB_GETITEMRECT WINELIB_NAME(LB_GETITEMRECT)
2697 #define LB_GETITEMDATA16 (WM_USER+26)
2698 #define LB_GETITEMDATA32 0x0199
2699 #define LB_GETITEMDATA WINELIB_NAME(LB_GETITEMDATA)
2700 #define LB_SETITEMDATA16 (WM_USER+27)
2701 #define LB_SETITEMDATA32 0x019a
2702 #define LB_SETITEMDATA WINELIB_NAME(LB_SETITEMDATA)
2703 #define LB_SELITEMRANGE16 (WM_USER+28)
2704 #define LB_SELITEMRANGE32 0x019b
2705 #define LB_SELITEMRANGE WINELIB_NAME(LB_SELITEMRANGE)
2706 #define LB_SETANCHORINDEX16 (WM_USER+29)
2707 #define LB_SETANCHORINDEX32 0x019c
2708 #define LB_SETANCHORINDEX WINELIB_NAME(LB_SETANCHORINDEX)
2709 #define LB_GETANCHORINDEX16 (WM_USER+30)
2710 #define LB_GETANCHORINDEX32 0x019d
2711 #define LB_GETANCHORINDEX WINELIB_NAME(LB_GETANCHORINDEX)
2712 #define LB_SETCARETINDEX16 (WM_USER+31)
2713 #define LB_SETCARETINDEX32 0x019e
2714 #define LB_SETCARETINDEX WINELIB_NAME(LB_SETCARETINDEX)
2715 #define LB_GETCARETINDEX16 (WM_USER+32)
2716 #define LB_GETCARETINDEX32 0x019f
2717 #define LB_GETCARETINDEX WINELIB_NAME(LB_GETCARETINDEX)
2718 #define LB_SETITEMHEIGHT16 (WM_USER+33)
2719 #define LB_SETITEMHEIGHT32 0x01a0
2720 #define LB_SETITEMHEIGHT WINELIB_NAME(LB_SETITEMHEIGHT)
2721 #define LB_GETITEMHEIGHT16 (WM_USER+34)
2722 #define LB_GETITEMHEIGHT32 0x01a1
2723 #define LB_GETITEMHEIGHT WINELIB_NAME(LB_GETITEMHEIGHT)
2724 #define LB_FINDSTRINGEXACT16 (WM_USER+35)
2725 #define LB_FINDSTRINGEXACT32 0x01a2
2726 #define LB_FINDSTRINGEXACT WINELIB_NAME(LB_FINDSTRINGEXACT)
2727 /* Here are 2 undocumented messages used by ComboLBoxes */
2728 #define LB_SETLOCALE16 WM_NULL /* Not in Win16 */
2729 #define LB_SETLOCALE32 0x01a5
2730 #define LB_SETLOCALE WINELIB_NAME(LB_SETLOCALE)
2731 #define LB_GETLOCALE16 WM_NULL /* Not in Win16 */
2732 #define LB_GETLOCALE32 0x01a6
2733 #define LB_GETLOCALE WINELIB_NAME(LB_GETLOCALE)
2734 #define LB_SETCOUNT16 WM_NULL /* Not in Win16 */
2735 #define LB_SETCOUNT32 0x01a7
2736 #define LB_SETCOUNT WINELIB_NAME(LB_SETCOUNT)
2737 #define LB_INITSTORAGE16 WM_NULL /* Not in Win16 */
2738 #define LB_INITSTORAGE32 0x01a8
2739 #define LB_INITSTORAGE WINELIB_NAME(LB_INITSTORAGE)
2740 #define LB_ITEMFROMPOINT16 WM_NULL /* Not in Win16 */
2741 #define LB_ITEMFROMPOINT32 0x01a9
2742 #define LB_ITEMFROMPOINT WINELIB_NAME(LB_ITEMFROMPOINT)
2744 /* Listbox notification codes */
2745 #define LBN_ERRSPACE (-2)
2746 #define LBN_SELCHANGE 1
2747 #define LBN_DBLCLK 2
2748 #define LBN_SELCANCEL 3
2749 #define LBN_SETFOCUS 4
2750 #define LBN_KILLFOCUS 5
2752 /* Listbox message return values */
2755 #define LB_ERRSPACE (-2)
2757 #define LB_CTLCODE 0L
2759 /* Combo box styles */
2760 #define CBS_SIMPLE 0x0001L
2761 #define CBS_DROPDOWN 0x0002L
2762 #define CBS_DROPDOWNLIST 0x0003L
2763 #define CBS_OWNERDRAWFIXED 0x0010L
2764 #define CBS_OWNERDRAWVARIABLE 0x0020L
2765 #define CBS_AUTOHSCROLL 0x0040L
2766 #define CBS_OEMCONVERT 0x0080L
2767 #define CBS_SORT 0x0100L
2768 #define CBS_HASSTRINGS 0x0200L
2769 #define CBS_NOINTEGRALHEIGHT 0x0400L
2770 #define CBS_DISABLENOSCROLL 0x0800L
2772 /* Combo box messages */
2773 #define CB_GETEDITSEL16 (WM_USER+0)
2774 #define CB_GETEDITSEL32 0x0140
2775 #define CB_GETEDITSEL WINELIB_NAME(CB_GETEDITSEL)
2776 #define CB_LIMITTEXT16 (WM_USER+1)
2777 #define CB_LIMITTEXT32 0x0141
2778 #define CB_LIMITTEXT WINELIB_NAME(CB_LIMITTEXT)
2779 #define CB_SETEDITSEL16 (WM_USER+2)
2780 #define CB_SETEDITSEL32 0x0142
2781 #define CB_SETEDITSEL WINELIB_NAME(CB_SETEDITSEL)
2782 #define CB_ADDSTRING16 (WM_USER+3)
2783 #define CB_ADDSTRING32 0x0143
2784 #define CB_ADDSTRING WINELIB_NAME(CB_ADDSTRING)
2785 #define CB_DELETESTRING16 (WM_USER+4)
2786 #define CB_DELETESTRING32 0x0144
2787 #define CB_DELETESTRING WINELIB_NAME(CB_DELETESTRING)
2788 #define CB_DIR16 (WM_USER+5)
2789 #define CB_DIR32 0x0145
2790 #define CB_DIR WINELIB_NAME(CB_DIR)
2791 #define CB_GETCOUNT16 (WM_USER+6)
2792 #define CB_GETCOUNT32 0x0146
2793 #define CB_GETCOUNT WINELIB_NAME(CB_GETCOUNT)
2794 #define CB_GETCURSEL16 (WM_USER+7)
2795 #define CB_GETCURSEL32 0x0147
2796 #define CB_GETCURSEL WINELIB_NAME(CB_GETCURSEL)
2797 #define CB_GETLBTEXT16 (WM_USER+8)
2798 #define CB_GETLBTEXT32 0x0148
2799 #define CB_GETLBTEXT WINELIB_NAME(CB_GETLBTEXT)
2800 #define CB_GETLBTEXTLEN16 (WM_USER+9)
2801 #define CB_GETLBTEXTLEN32 0x0149
2802 #define CB_GETLBTEXTLEN WINELIB_NAME(CB_GETLBTEXTLEN)
2803 #define CB_INSERTSTRING16 (WM_USER+10)
2804 #define CB_INSERTSTRING32 0x014a
2805 #define CB_INSERTSTRING WINELIB_NAME(CB_INSERTSTRING)
2806 #define CB_RESETCONTENT16 (WM_USER+11)
2807 #define CB_RESETCONTENT32 0x014b
2808 #define CB_RESETCONTENT WINELIB_NAME(CB_RESETCONTENT)
2809 #define CB_FINDSTRING16 (WM_USER+12)
2810 #define CB_FINDSTRING32 0x014c
2811 #define CB_FINDSTRING WINELIB_NAME(CB_FINDSTRING)
2812 #define CB_SELECTSTRING16 (WM_USER+13)
2813 #define CB_SELECTSTRING32 0x014d
2814 #define CB_SELECTSTRING WINELIB_NAME(CB_SELECTSTRING)
2815 #define CB_SETCURSEL16 (WM_USER+14)
2816 #define CB_SETCURSEL32 0x014e
2817 #define CB_SETCURSEL WINELIB_NAME(CB_SETCURSEL)
2818 #define CB_SHOWDROPDOWN16 (WM_USER+15)
2819 #define CB_SHOWDROPDOWN32 0x014f
2820 #define CB_SHOWDROPDOWN WINELIB_NAME(CB_SHOWDROPDOWN)
2821 #define CB_GETITEMDATA16 (WM_USER+16)
2822 #define CB_GETITEMDATA32 0x0150
2823 #define CB_GETITEMDATA WINELIB_NAME(CB_GETITEMDATA)
2824 #define CB_SETITEMDATA16 (WM_USER+17)
2825 #define CB_SETITEMDATA32 0x0151
2826 #define CB_SETITEMDATA WINELIB_NAME(CB_SETITEMDATA)
2827 #define CB_GETDROPPEDCONTROLRECT16 (WM_USER+18)
2828 #define CB_GETDROPPEDCONTROLRECT32 0x0152
2829 #define CB_GETDROPPEDCONTROLRECT WINELIB_NAME(CB_GETDROPPEDCONTROLRECT)
2830 #define CB_SETITEMHEIGHT16 (WM_USER+19)
2831 #define CB_SETITEMHEIGHT32 0x0153
2832 #define CB_SETITEMHEIGHT WINELIB_NAME(CB_SETITEMHEIGHT)
2833 #define CB_GETITEMHEIGHT16 (WM_USER+20)
2834 #define CB_GETITEMHEIGHT32 0x0154
2835 #define CB_GETITEMHEIGHT WINELIB_NAME(CB_GETITEMHEIGHT)
2836 #define CB_SETEXTENDEDUI16 (WM_USER+21)
2837 #define CB_SETEXTENDEDUI32 0x0155
2838 #define CB_SETEXTENDEDUI WINELIB_NAME(CB_SETEXTENDEDUI)
2839 #define CB_GETEXTENDEDUI16 (WM_USER+22)
2840 #define CB_GETEXTENDEDUI32 0x0156
2841 #define CB_GETEXTENDEDUI WINELIB_NAME(CB_GETEXTENDEDUI)
2842 #define CB_GETDROPPEDSTATE16 (WM_USER+23)
2843 #define CB_GETDROPPEDSTATE32 0x0157
2844 #define CB_GETDROPPEDSTATE WINELIB_NAME(CB_GETDROPPEDSTATE)
2845 #define CB_FINDSTRINGEXACT16 (WM_USER+24)
2846 #define CB_FINDSTRINGEXACT32 0x0158
2847 #define CB_FINDSTRINGEXACT WINELIB_NAME(CB_FINDSTRINGEXACT)
2848 #define CB_SETLOCALE16 WM_NULL /* Not in Win16 */
2849 #define CB_SETLOCALE32 0x0159
2850 #define CB_SETLOCALE WINELIB_NAME(CB_SETLOCALE)
2851 #define CB_GETLOCALE16 WM_NULL /* Not in Win16 */
2852 #define CB_GETLOCALE32 0x015a
2853 #define CB_GETLOCALE WINELIB_NAME(CB_GETLOCALE)
2854 #define CB_GETTOPINDEX16 WM_NULL /* Not in Win16 */
2855 #define CB_GETTOPINDEX32 0x015b
2856 #define CB_GETTOPINDEX WINELIB_NAME(CB_GETTOPINDEX)
2857 #define CB_SETTOPINDEX16 WM_NULL /* Not in Win16 */
2858 #define CB_SETTOPINDEX32 0x015c
2859 #define CB_SETTOPINDEX WINELIB_NAME(CB_SETTOPINDEX)
2860 #define CB_GETHORIZONTALEXTENT16 WM_NULL /* Not in Win16 */
2861 #define CB_GETHORIZONTALEXTENT32 0x015d
2862 #define CB_GETHORIZONTALEXTENT WINELIB_NAME(CB_GETHORIZONTALEXTENT)
2863 #define CB_SETHORIZONTALEXTENT16 WM_NULL /* Not in Win16 */
2864 #define CB_SETHORIZONTALEXTENT32 0x015e
2865 #define CB_SETHORIZONTALEXTENT WINELIB_NAME(CB_SETHORIZONTALEXTENT)
2866 #define CB_GETDROPPEDWIDTH16 WM_NULL /* Not in Win16 */
2867 #define CB_GETDROPPEDWIDTH32 0x015f
2868 #define CB_GETDROPPEDWIDTH WINELIB_NAME(CB_GETDROPPEDWIDTH)
2869 #define CB_SETDROPPEDWIDTH16 WM_NULL /* Not in Win16 */
2870 #define CB_SETDROPPEDWIDTH32 0x0160
2871 #define CB_SETDROPPEDWIDTH WINELIB_NAME(CB_SETDROPPEDWIDTH)
2872 #define CB_INITSTORAGE16 WM_NULL /* Not in Win16 */
2873 #define CB_INITSTORAGE32 0x0161
2874 #define CB_INITSTORAGE WINELIB_NAME(CB_INITSTORAGE)
2876 /* Combo box notification codes */
2877 #define CBN_ERRSPACE (-1)
2878 #define CBN_SELCHANGE 1
2879 #define CBN_DBLCLK 2
2880 #define CBN_SETFOCUS 3
2881 #define CBN_KILLFOCUS 4
2882 #define CBN_EDITCHANGE 5
2883 #define CBN_EDITUPDATE 6
2884 #define CBN_DROPDOWN 7
2885 #define CBN_CLOSEUP 8
2886 #define CBN_SELENDOK 9
2887 #define CBN_SELENDCANCEL 10
2889 /* Combo box message return values */
2892 #define CB_ERRSPACE (-2)
2895 /* Owner draw control types */
2897 #define ODT_LISTBOX 2
2898 #define ODT_COMBOBOX 3
2899 #define ODT_BUTTON 4
2901 /* Owner draw actions */
2902 #define ODA_DRAWENTIRE 0x0001
2903 #define ODA_SELECT 0x0002
2904 #define ODA_FOCUS 0x0004
2906 /* Owner draw state */
2907 #define ODS_SELECTED 0x0001
2908 #define ODS_GRAYED 0x0002
2909 #define ODS_DISABLED 0x0004
2910 #define ODS_CHECKED 0x0008
2911 #define ODS_FOCUS 0x0010
2913 /* Edit control styles */
2914 #define ES_LEFT 0x00000000L
2915 #define ES_CENTER 0x00000001L
2916 #define ES_RIGHT 0x00000002L
2917 #define ES_MULTILINE 0x00000004L
2918 #define ES_UPPERCASE 0x00000008L
2919 #define ES_LOWERCASE 0x00000010L
2920 #define ES_PASSWORD 0x00000020L
2921 #define ES_AUTOVSCROLL 0x00000040L
2922 #define ES_AUTOHSCROLL 0x00000080L
2923 #define ES_NOHIDESEL 0x00000100L
2924 #define ES_OEMCONVERT 0x00000400L
2925 #define ES_READONLY 0x00000800L
2926 #define ES_WANTRETURN 0x00001000L
2928 /* Edit control messages */
2929 #define EM_GETSEL (WM_USER+0)
2930 #define EM_SETSEL (WM_USER+1)
2931 #define EM_GETRECT (WM_USER+2)
2932 #define EM_SETRECT (WM_USER+3)
2933 #define EM_SETRECTNP (WM_USER+4)
2934 #define EM_LINESCROLL (WM_USER+6)
2935 #define EM_GETMODIFY (WM_USER+8)
2936 #define EM_SETMODIFY (WM_USER+9)
2937 #define EM_GETLINECOUNT (WM_USER+10)
2938 #define EM_LINEINDEX (WM_USER+11)
2939 #define EM_SETHANDLE (WM_USER+12)
2940 #define EM_GETHANDLE (WM_USER+13)
2941 #define EM_LINELENGTH (WM_USER+17)
2942 #define EM_REPLACESEL (WM_USER+18)
2943 #define EM_GETLINE (WM_USER+20)
2944 #define EM_LIMITTEXT (WM_USER+21)
2945 #define EM_CANUNDO (WM_USER+22)
2946 #define EM_UNDO (WM_USER+23)
2947 #define EM_FMTLINES (WM_USER+24)
2948 #define EM_LINEFROMCHAR (WM_USER+25)
2949 #define EM_SETTABSTOPS (WM_USER+27)
2950 #define EM_SETPASSWORDCHAR (WM_USER+28)
2951 #define EM_EMPTYUNDOBUFFER (WM_USER+29)
2952 #define EM_GETFIRSTVISIBLELINE (WM_USER+30)
2953 #define EM_SETREADONLY (WM_USER+31)
2954 #define EM_SETWORDBREAKPROC (WM_USER+32)
2955 #define EM_GETWORDBREAKPROC (WM_USER+33)
2956 #define EM_GETPASSWORDCHAR (WM_USER+34)
2957 /* Edit control undocumented messages */
2958 #define EM_SCROLL (WM_USER+5)
2959 #define EM_GETTHUMB (WM_USER+14)
2961 /* EDITWORDBREAKPROC code values */
2964 #define WB_ISDELIMITER 2
2966 /* Edit control notification codes */
2967 #define EN_SETFOCUS 0x0100
2968 #define EN_KILLFOCUS 0x0200
2969 #define EN_CHANGE 0x0300
2970 #define EN_UPDATE 0x0400
2971 #define EN_ERRSPACE 0x0500
2972 #define EN_MAXTEXT 0x0501
2973 #define EN_HSCROLL 0x0601
2974 #define EN_VSCROLL 0x0602
2986 RECT16 rcItem WINE_PACKED
;
2987 DWORD itemData WINE_PACKED
;
2988 } DRAWITEMSTRUCT16
, *PDRAWITEMSTRUCT16
, *LPDRAWITEMSTRUCT16
;
2999 RECT32 rcItem WINE_PACKED
;
3000 DWORD itemData WINE_PACKED
;
3001 } DRAWITEMSTRUCT32
, *PDRAWITEMSTRUCT32
, *LPDRAWITEMSTRUCT32
;
3003 DECL_WINELIB_TYPE(DRAWITEMSTRUCT
);
3004 DECL_WINELIB_TYPE(PDRAWITEMSTRUCT
);
3005 DECL_WINELIB_TYPE(LPDRAWITEMSTRUCT
);
3014 DWORD itemData WINE_PACKED
;
3015 } MEASUREITEMSTRUCT16
, *PMEASUREITEMSTRUCT16
, *LPMEASUREITEMSTRUCT16
;
3025 } MEASUREITEMSTRUCT32
, *PMEASUREITEMSTRUCT32
, *LPMEASUREITEMSTRUCT32
;
3027 DECL_WINELIB_TYPE(MEASUREITEMSTRUCT
);
3028 DECL_WINELIB_TYPE(PMEASUREITEMSTRUCT
);
3029 DECL_WINELIB_TYPE(LPMEASUREITEMSTRUCT
);
3038 } DELETEITEMSTRUCT16
, *LPDELETEITEMSTRUCT16
;
3047 } DELETEITEMSTRUCT32
, *LPDELETEITEMSTRUCT32
;
3049 DECL_WINELIB_TYPE(DELETEITEMSTRUCT
);
3050 DECL_WINELIB_TYPE(LPDELETEITEMSTRUCT
);
3060 DWORD itemData2 WINE_PACKED
;
3061 } COMPAREITEMSTRUCT16
, *LPCOMPAREITEMSTRUCT16
;
3073 } COMPAREITEMSTRUCT32
, *LPCOMPAREITEMSTRUCT32
;
3075 DECL_WINELIB_TYPE(COMPAREITEMSTRUCT
);
3076 DECL_WINELIB_TYPE(LPCOMPAREITEMSTRUCT
);
3078 /* WM_KEYUP/DOWN/CHAR HIWORD(lParam) flags */
3079 #define KF_EXTENDED 0x0100
3080 #define KF_DLGMODE 0x0800
3081 #define KF_MENUMODE 0x1000
3082 #define KF_ALTDOWN 0x2000
3083 #define KF_REPEAT 0x4000
3084 #define KF_UP 0x8000
3086 /* Virtual key codes */
3087 #define VK_LBUTTON 0x01
3088 #define VK_RBUTTON 0x02
3089 #define VK_CANCEL 0x03
3090 #define VK_MBUTTON 0x04
3091 #define VK_BACK 0x08
3093 #define VK_CLEAR 0x0C
3094 #define VK_RETURN 0x0D
3095 #define VK_SHIFT 0x10
3096 #define VK_CONTROL 0x11
3097 #define VK_MENU 0x12
3098 #define VK_PAUSE 0x13
3099 #define VK_CAPITAL 0x14
3100 #define VK_ESCAPE 0x1B
3101 #define VK_SPACE 0x20
3102 #define VK_PRIOR 0x21
3103 #define VK_NEXT 0x22
3105 #define VK_HOME 0x24
3106 #define VK_LEFT 0x25
3108 #define VK_RIGHT 0x27
3109 #define VK_DOWN 0x28
3110 #define VK_SELECT 0x29
3111 #define VK_PRINT 0x2A
3112 #define VK_EXECUTE 0x2B
3113 #define VK_SNAPSHOT 0x2C
3114 #define VK_INSERT 0x2D
3115 #define VK_DELETE 0x2E
3116 #define VK_HELP 0x2F
3117 #define VK_NUMPAD0 0x60
3118 #define VK_NUMPAD1 0x61
3119 #define VK_NUMPAD2 0x62
3120 #define VK_NUMPAD3 0x63
3121 #define VK_NUMPAD4 0x64
3122 #define VK_NUMPAD5 0x65
3123 #define VK_NUMPAD6 0x66
3124 #define VK_NUMPAD7 0x67
3125 #define VK_NUMPAD8 0x68
3126 #define VK_NUMPAD9 0x69
3127 #define VK_MULTIPLY 0x6A
3129 #define VK_SEPARATOR 0x6C
3130 #define VK_SUBTRACT 0x6D
3131 #define VK_DECIMAL 0x6E
3132 #define VK_DIVIDE 0x6F
3157 #define VK_NUMLOCK 0x90
3158 #define VK_SCROLL 0x91
3161 #define LMEM_FIXED 0
3162 #define LMEM_MOVEABLE 0x0002
3163 #define LMEM_NOCOMPACT 0x0010
3164 #define LMEM_NODISCARD 0x0020
3165 #define LMEM_ZEROINIT 0x0040
3166 #define LMEM_MODIFY 0x0080
3167 #define LMEM_DISCARDABLE 0x0F00
3168 #define LMEM_DISCARDED 0x4000
3169 #define LMEM_LOCKCOUNT 0x00FF
3171 #define GMEM_FIXED 0x0000
3172 #define GMEM_MOVEABLE 0x0002
3173 #define GMEM_NOCOMPACT 0x0010
3174 #define GMEM_NODISCARD 0x0020
3175 #define GMEM_ZEROINIT 0x0040
3176 #define GMEM_MODIFY 0x0080
3177 #define GMEM_DISCARDABLE 0x0100
3178 #define GMEM_NOT_BANKED 0x1000
3179 #define GMEM_SHARE 0x2000
3180 #define GMEM_DDESHARE 0x2000
3181 #define GMEM_NOTIFY 0x4000
3182 #define GMEM_LOWER GMEM_NOT_BANKED
3183 #define GMEM_DISCARDED 0x4000
3184 #define GMEM_LOCKCOUNT 0x00ff
3185 #define GMEM_INVALID_HANDLE 0x8000
3187 #define GHND (GMEM_MOVEABLE | GMEM_ZEROINIT)
3188 #define GPTR (GMEM_FIXED | GMEM_ZEROINIT)
3191 typedef struct tagMEMORYSTATUS
3197 DWORD dwTotalPageFile
;
3198 DWORD dwAvailPageFile
;
3199 DWORD dwTotalVirtual
;
3200 DWORD dwAvailVirtual
;
3201 } MEMORYSTATUS
, *LPMEMORYSTATUS
;
3203 /* Predefined Clipboard Formats */
3206 #define CF_METAFILEPICT 3
3210 #define CF_OEMTEXT 7
3212 #define CF_PALETTE 9
3213 #define CF_PENDATA 10
3217 #define CF_OWNERDISPLAY 0x0080
3218 #define CF_DSPTEXT 0x0081
3219 #define CF_DSPBITMAP 0x0082
3220 #define CF_DSPMETAFILEPICT 0x0083
3222 /* "Private" formats don't get GlobalFree()'d */
3223 #define CF_PRIVATEFIRST 0x0200
3224 #define CF_PRIVATELAST 0x02FF
3226 /* "GDIOBJ" formats do get DeleteObject()'d */
3227 #define CF_GDIOBJFIRST 0x0300
3228 #define CF_GDIOBJLAST 0x03FF
3230 /* Clipboard command messages */
3231 #define WM_CUT 0x0300
3232 #define WM_COPY 0x0301
3233 #define WM_PASTE 0x0302
3234 #define WM_CLEAR 0x0303
3235 #define WM_UNDO 0x0304
3237 /* Clipboard owner messages */
3238 #define WM_RENDERFORMAT 0x0305
3239 #define WM_RENDERALLFORMATS 0x0306
3240 #define WM_DESTROYCLIPBOARD 0x0307
3242 /* Clipboard viewer messages */
3243 #define WM_DRAWCLIPBOARD 0x0308
3244 #define WM_PAINTCLIPBOARD 0x0309
3245 #define WM_SIZECLIPBOARD 0x030B
3246 #define WM_VSCROLLCLIPBOARD 0x030A
3247 #define WM_HSCROLLCLIPBOARD 0x030E
3248 #define WM_ASKCBFORMATNAME 0x030C
3249 #define WM_CHANGECBCHAIN 0x030D
3251 /* Metafile header structure */
3257 DWORD mtSize WINE_PACKED
;
3259 DWORD mtMaxRecord WINE_PACKED
;
3260 WORD mtNoParameters
;
3263 /* Metafile typical record structure */
3270 typedef METARECORD
*PMETARECORD
;
3271 typedef METARECORD
*LPMETARECORD
;
3273 /* Handle table structure */
3277 HGDIOBJ16 objectHandle
[1];
3278 } HANDLETABLE16
, *LPHANDLETABLE16
;
3282 HGDIOBJ32 objectHandle
[1];
3283 } HANDLETABLE32
, *LPHANDLETABLE32
;
3285 DECL_WINELIB_TYPE(HANDLETABLE
);
3286 DECL_WINELIB_TYPE(LPHANDLETABLE
);
3288 /* Clipboard metafile picture structure */
3295 } METAFILEPICT16
, *LPMETAFILEPICT16
;
3303 } METAFILEPICT32
, *LPMETAFILEPICT32
;
3305 DECL_WINELIB_TYPE(METAFILEPICT
);
3306 DECL_WINELIB_TYPE(LPMETAFILEPICT
);
3308 /* Metafile functions */
3309 #define META_SETBKCOLOR 0x0201
3310 #define META_SETBKMODE 0x0102
3311 #define META_SETMAPMODE 0x0103
3312 #define META_SETROP2 0x0104
3313 #define META_SETRELABS 0x0105
3314 #define META_SETPOLYFILLMODE 0x0106
3315 #define META_SETSTRETCHBLTMODE 0x0107
3316 #define META_SETTEXTCHAREXTRA 0x0108
3317 #define META_SETTEXTCOLOR 0x0209
3318 #define META_SETTEXTJUSTIFICATION 0x020A
3319 #define META_SETWINDOWORG 0x020B
3320 #define META_SETWINDOWEXT 0x020C
3321 #define META_SETVIEWPORTORG 0x020D
3322 #define META_SETVIEWPORTEXT 0x020E
3323 #define META_OFFSETWINDOWORG 0x020F
3324 #define META_SCALEWINDOWEXT 0x0410
3325 #define META_OFFSETVIEWPORTORG 0x0211
3326 #define META_SCALEVIEWPORTEXT 0x0412
3327 #define META_LINETO 0x0213
3328 #define META_MOVETO 0x0214
3329 #define META_EXCLUDECLIPRECT 0x0415
3330 #define META_INTERSECTCLIPRECT 0x0416
3331 #define META_ARC 0x0817
3332 #define META_ELLIPSE 0x0418
3333 #define META_FLOODFILL 0x0419
3334 #define META_PIE 0x081A
3335 #define META_RECTANGLE 0x041B
3336 #define META_ROUNDRECT 0x061C
3337 #define META_PATBLT 0x061D
3338 #define META_SAVEDC 0x001E
3339 #define META_SETPIXEL 0x041F
3340 #define META_OFFSETCLIPRGN 0x0220
3341 #define META_TEXTOUT 0x0521
3342 #define META_BITBLT 0x0922
3343 #define META_STRETCHBLT 0x0B23
3344 #define META_POLYGON 0x0324
3345 #define META_POLYLINE 0x0325
3346 #define META_ESCAPE 0x0626
3347 #define META_RESTOREDC 0x0127
3348 #define META_FILLREGION 0x0228
3349 #define META_FRAMEREGION 0x0429
3350 #define META_INVERTREGION 0x012A
3351 #define META_PAINTREGION 0x012B
3352 #define META_SELECTCLIPREGION 0x012C
3353 #define META_SELECTOBJECT 0x012D
3354 #define META_SETTEXTALIGN 0x012E
3355 #define META_DRAWTEXT 0x062F
3356 #define META_CHORD 0x0830
3357 #define META_SETMAPPERFLAGS 0x0231
3358 #define META_EXTTEXTOUT 0x0A32
3359 #define META_SETDIBTODEV 0x0D33
3360 #define META_SELECTPALETTE 0x0234
3361 #define META_REALIZEPALETTE 0x0035
3362 #define META_ANIMATEPALETTE 0x0436
3363 #define META_SETPALENTRIES 0x0037
3364 #define META_POLYPOLYGON 0x0538
3365 #define META_RESIZEPALETTE 0x0139
3366 #define META_DIBBITBLT 0x0940
3367 #define META_DIBSTRETCHBLT 0x0B41
3368 #define META_DIBCREATEPATTERNBRUSH 0x0142
3369 #define META_STRETCHDIB 0x0F43
3370 #define META_EXTFLOODFILL 0x0548
3371 #define META_RESETDC 0x014C
3372 #define META_STARTDOC 0x014D
3373 #define META_STARTPAGE 0x004F
3374 #define META_ENDPAGE 0x0050
3375 #define META_ABORTDOC 0x0052
3376 #define META_ENDDOC 0x005E
3377 #define META_DELETEOBJECT 0x01F0
3378 #define META_CREATEPALETTE 0x00F7
3379 #define META_CREATEBRUSH 0x00F8
3380 #define META_CREATEPATTERNBRUSH 0x01F9
3381 #define META_CREATEPENINDIRECT 0x02FA
3382 #define META_CREATEFONTINDIRECT 0x02FB
3383 #define META_CREATEBRUSHINDIRECT 0x02FC
3384 #define META_CREATEBITMAPINDIRECT 0x02FD
3385 #define META_CREATEBITMAP 0x06FE
3386 #define META_CREATEREGION 0x06FF
3388 typedef INT16 (*MFENUMPROC16
)(HDC16
,HANDLETABLE16
*,METARECORD
*,INT16
,LPARAM
);
3389 typedef INT32 (*MFENUMPROC32
)(HDC32
,HANDLETABLE32
*,METARECORD
*,INT32
,LPARAM
);
3390 DECL_WINELIB_TYPE(MFENUMPROC
);
3392 /* Debugging support (DEBUG SYSTEM ONLY) */
3396 DWORD dwOptions WINE_PACKED
;
3397 DWORD dwFilter WINE_PACKED
;
3398 CHAR achAllocModule
[8] WINE_PACKED
;
3399 DWORD dwAllocBreak WINE_PACKED
;
3400 DWORD dwAllocCount WINE_PACKED
;
3401 } WINDEBUGINFO
, *LPWINDEBUGINFO
;
3403 /* WINDEBUGINFO flags values */
3404 #define WDI_OPTIONS 0x0001
3405 #define WDI_FILTER 0x0002
3406 #define WDI_ALLOCBREAK 0x0004
3408 /* dwOptions values */
3409 #define DBO_CHECKHEAP 0x0001
3410 #define DBO_BUFFERFILL 0x0004
3411 #define DBO_DISABLEGPTRAPPING 0x0010
3412 #define DBO_CHECKFREE 0x0020
3414 #define DBO_SILENT 0x8000
3416 #define DBO_TRACEBREAK 0x2000
3417 #define DBO_WARNINGBREAK 0x1000
3418 #define DBO_NOERRORBREAK 0x0800
3419 #define DBO_NOFATALBREAK 0x0400
3420 #define DBO_INT3BREAK 0x0100
3422 /* DebugOutput flags values */
3423 #define DBF_TRACE 0x0000
3424 #define DBF_WARNING 0x4000
3425 #define DBF_ERROR 0x8000
3426 #define DBF_FATAL 0xc000
3428 /* dwFilter values */
3429 #define DBF_KERNEL 0x1000
3430 #define DBF_KRN_MEMMAN 0x0001
3431 #define DBF_KRN_LOADMODULE 0x0002
3432 #define DBF_KRN_SEGMENTLOAD 0x0004
3433 #define DBF_USER 0x0800
3434 #define DBF_GDI 0x0400
3435 #define DBF_MMSYSTEM 0x0040
3436 #define DBF_PENWIN 0x0020
3437 #define DBF_APPLICATION 0x0008
3438 #define DBF_DRIVER 0x0010
3440 /* Win32-specific structures */
3451 } SYSTEMTIME
, *LPSYSTEMTIME
;
3454 /* Code page information.
3458 BYTE DefaultChar
[2];
3460 } CPINFO
, *LPCPINFO
;
3462 /* The 'overlapped' data structure used by async I/O functions.
3470 } OVERLAPPED
, *LPOVERLAPPED
;
3472 /* Process startup information.
3483 DWORD dwXCountChars
;
3484 DWORD dwYCountChars
;
3485 DWORD dwFillAttribute
;
3491 HANDLE32 hStdOutput
;
3493 } STARTUPINFO
, *LPSTARTUPINFO
;
3497 WCHAR StandardName
[32];
3498 SYSTEMTIME StandardDate
;
3500 WCHAR DaylightName
[32];
3501 SYSTEMTIME DaylightDate
;
3503 } TIME_ZONE_INFORMATION
, *LPTIME_ZONE_INFORMATION
;
3505 #define TIME_ZONE_ID_UNKNOWN 0
3506 #define TIME_ZONE_ID_STANDARD 1
3507 #define TIME_ZONE_ID_DAYLIGHT 2
3510 /* File object type definitions
3512 #define FILE_TYPE_UNKNOWN 0
3513 #define FILE_TYPE_DISK 1
3514 #define FILE_TYPE_CHAR 2
3515 #define FILE_TYPE_PIPE 3
3516 #define FILE_TYPE_REMOTE 32768
3518 /* File creation flags
3520 #define GENERIC_READ 0x80000000L
3521 #define GENERIC_WRITE 0x40000000L
3522 #define CREATE_NEW 1
3523 #define CREATE_ALWAYS 2
3524 #define OPEN_EXISTING 3
3525 #define OPEN_ALWAYS 4
3526 #define TRUNCATE_EXISTING 5
3528 /* Standard handle identifiers
3530 #define STD_INPUT_HANDLE ((DWORD) -10)
3531 #define STD_OUTPUT_HANDLE ((DWORD) -11)
3532 #define STD_ERROR_HANDLE ((DWORD) -12)
3536 int dwFileAttributes
;
3537 FILETIME ftCreationTime
;
3538 FILETIME ftLastAccessTime
;
3539 FILETIME ftLastWriteTime
;
3540 int dwVolumeSerialNumber
;
3546 } BY_HANDLE_FILE_INFORMATION
;
3548 /* File attribute flags
3550 #define FILE_ATTRIBUTE_ARCHIVE 0x0020
3551 #define FILE_ATTRIBUTE_COMPRESSED 0x0800
3552 #define FILE_ATTRIBUTE_DIRECTORY 0x0010
3553 #define FILE_ATTRIBUTE_HIDDEN 0x0002
3554 #define FILE_ATTRIBUTE_NORMAL 0x0080
3555 #define FILE_ATTRIBUTE_READONLY 0x0001
3556 #define FILE_ATTRIBUTE_SYSTEM 0x0004
3557 #define FILE_ATTRIBUTE_TEMPORARY 0x0100
3558 #define FILE_ATTRIBUTE_ATOMIC_WRITE 0x0200
3559 #define FILE_ATTRIBUTE_XACTION_WRITE 0x0400
3562 /* WinHelp internal structure */
3570 } WINHELP
,*LPWINHELP
;
3576 BYTE szKeyPhrase
[1];
3577 } MULTIKEYHELP
, *LPMULTIKEYHELP
;
3587 } HELPWININFO
, *LPHELPWININFO
;
3589 #define HELP_CONTEXT 0x0001
3590 #define HELP_QUIT 0x0002
3591 #define HELP_INDEX 0x0003
3592 #define HELP_CONTENTS 0x0003
3593 #define HELP_HELPONHELP 0x0004
3594 #define HELP_SETINDEX 0x0005
3595 #define HELP_SETCONTENTS 0x0005
3596 #define HELP_CONTEXTPOPUP 0x0008
3597 #define HELP_FORCEFILE 0x0009
3598 #define HELP_KEY 0x0101
3599 #define HELP_COMMAND 0x0102
3600 #define HELP_PARTIALKEY 0x0105
3601 #define HELP_MULTIKEY 0x0201
3602 #define HELP_SETWINPOS 0x0203
3605 CHAR dmDeviceName
[32];
3607 WORD dmDriverVersion
;
3611 short dmOrientation
;
3613 short dmPaperLength
;
3617 short dmDefaultSource
;
3618 short dmPrintQuality
;
3621 short dmYResolution
;
3624 CHAR dmFormName
[32];
3625 WORD dmUnusedPadding
;
3629 DWORD dmDisplayFlags
;
3630 DWORD dmDisplayFrequency
;
3633 typedef struct _SYSTEM_POWER_STATUS
3635 BOOL16 ACLineStatus
;
3637 BYTE BatteryLifePercent
;
3639 DWORD BatteryLifeTime
;
3640 DWORD BatteryFullLifeTime
;
3641 } SYSTEM_POWER_STATUS
, *LPSYSTEM_POWER_STATUS
;
3643 /* flags to FormatMessage */
3644 #define FORMAT_MESSAGE_ALLOCATE_BUFFER 0x00000100
3645 #define FORMAT_MESSAGE_IGNORE_INSERTS 0x00000200
3646 #define FORMAT_MESSAGE_FROM_STRING 0x00000400
3647 #define FORMAT_MESSAGE_FROM_HMODULE 0x00000800
3648 #define FORMAT_MESSAGE_FROM_SYSTEM 0x00001000
3649 #define FORMAT_MESSAGE_ARGUMENT_ARRAY 0x00002000
3650 #define FORMAT_MESSAGE_MAX_WIDTH_MASK 0x000000FF
3652 /* types of LoadImage */
3653 #define IMAGE_BITMAP 0
3654 #define IMAGE_ICON 1
3655 #define IMAGE_CURSOR 2
3656 #define IMAGE_ENHMETA 3
3658 /* loadflags to LoadImage */
3659 #define LR_DEFAULTCOLOR 0x0000
3660 #define LR_MONOCHROME 0x0001
3661 #define LR_COPYRETURNONORG 0x0002
3662 #define LR_COPYDELETEORC 0x0004
3663 #define LR_COPYFROMRESOURCE 0x0008
3664 #define LR_LOADFROMFILE 0x0010
3665 #define LR_LOADREALSIZE 0x0020
3666 #define LR_LOADMAP3DCOLORS 0x1000
3668 typedef struct _LARGE_INTEGER
3672 } LARGE_INTEGER
,*LPLARGE_INTEGER
;
3674 typedef struct _ULARGE_INTEGER
3678 } ULARGE_INTEGER
,*LPULARGE_INTEGER
;
3680 /* SetLastErrorEx types */
3681 #define SLE_ERROR 0x00000001
3682 #define SLE_MINORERROR 0x00000002
3683 #define SLE_WARNING 0x00000003
3685 /* Argument 1 passed to the DllEntryProc. */
3686 #define DLL_PROCESS_DETACH 0 /* detach process (unload library) */
3687 #define DLL_PROCESS_ATTACH 1 /* attach process (load library) */
3688 #define DLL_THREAD_ATTACH 2 /* attach new thread */
3689 #define DLL_THREAD_DETACH 3 /* detach thread */
3691 typedef struct _MEMORY_BASIC_INFORMATION
3694 LPVOID AllocationBase
;
3695 DWORD AllocationProtect
;
3700 } MEMORY_BASIC_INFORMATION
,*LPMEMORY_BASIC_INFORMATION
;
3702 typedef DWORD (*LPTHREAD_START_ROUTINE
)(LPVOID
);
3704 typedef BOOL32 (*CODEPAGE_ENUMPROC32A
)(LPSTR
);
3705 typedef BOOL32 (*CODEPAGE_ENUMPROC32W
)(LPWSTR
);
3706 DECL_WINELIB_TYPE_AW(CODEPAGE_ENUMPROC
);
3708 typedef struct tagSYSTEM_INFO
3712 LPVOID lpMinimumApplicationAddress
;
3713 LPVOID lpMaximumApplicationAddress
;
3714 DWORD dwActiveProcessorMask
;
3715 DWORD dwNumberOfProcessors
;
3716 DWORD dwProcessorType
;
3717 DWORD dwAllocationGranularity
;
3719 } SYSTEM_INFO
, *LPSYSTEM_INFO
;
3723 /* Declarations for functions that exist only in Win16 */
3725 WORD
AllocCStoDSAlias(WORD
);
3726 WORD
AllocDStoCSAlias(WORD
);
3727 WORD
AllocSelector(WORD
);
3728 WORD
AllocSelectorArray(WORD
);
3729 INT16
Catch(LPCATCHBUF
);
3730 WORD
ChangeSelector(WORD
,WORD
);
3731 INT16
CloseComm(INT16
);
3732 BOOL16
DCHook(HDC16
,WORD
,DWORD
,LPARAM
);
3733 VOID
DirectedYield(HTASK16
);
3734 HGLOBAL16
DirectResAlloc(HINSTANCE16
,WORD
,UINT16
);
3735 BOOL16
DlgDirSelect(HWND16
,LPSTR
,INT16
);
3736 BOOL16
DlgDirSelectComboBox(HWND16
,LPSTR
,INT16
);
3737 BOOL16
EnableHardwareInput(BOOL16
);
3738 INT16
ExcludeVisRect(HDC16
,INT16
,INT16
,INT16
,INT16
);
3739 HANDLE16
FarGetOwner(HGLOBAL16
);
3740 VOID
FarSetOwner(HGLOBAL16
,HANDLE16
);
3741 BOOL16
FastWindowFrame(HDC16
,const RECT16
*,INT16
,INT16
,DWORD
);
3742 VOID
FillWindow(HWND16
,HWND16
,HDC16
,HBRUSH16
);
3743 INT16
FlushComm(INT16
,INT16
);
3744 WORD
FreeSelector(WORD
);
3745 void GlobalFreeAll(HGLOBAL16
);
3746 HGLOBAL16
GlobalLRUNewest(HGLOBAL16
);
3747 HGLOBAL16
GlobalLRUOldest(HGLOBAL16
);
3748 VOID
GlobalNotify(FARPROC16
);
3749 HANDLE16
GetAtomHandle(ATOM
);
3750 DWORD
GetBitmapDimension(HBITMAP16
);
3751 HANDLE16
GetCodeHandle(FARPROC16
);
3752 INT16
GetCommError(INT16
,LPCOMSTAT
);
3753 UINT16
GetCommEventMask(INT16
,UINT16
);
3754 VOID
GetCodeInfo(FARPROC16
,LPVOID
);
3755 HANDLE16
GetCurrentPDB(void);
3756 HTASK16
GetCurrentTask(void);
3757 DWORD
GetDCHook(HDC16
,FARPROC16
*);
3758 HWND16
GetDesktopHwnd(void);
3759 HMODULE16
GetExePtr(HANDLE16
);
3760 WORD
GetExeVersion(void);
3761 INT16
GetInstanceData(HINSTANCE16
,WORD
,INT16
);
3762 BOOL16
GetModuleName(HINSTANCE16
,LPSTR
,INT16
);
3763 FARPROC16
GetMouseEventProc(void);
3764 UINT16
GetNumTasks(void);
3765 DWORD
GetSelectorBase(WORD
);
3766 DWORD
GetSelectorLimit(WORD
);
3767 HINSTANCE16
GetTaskDS(void);
3768 HQUEUE16
GetTaskQueue(HTASK16
);
3769 DWORD
GlobalDOSAlloc(DWORD
);
3770 WORD
GlobalDOSFree(WORD
);
3771 WORD
GlobalPageLock(HGLOBAL16
);
3772 WORD
GlobalPageUnlock(HGLOBAL16
);
3773 INT16
InitApp(HINSTANCE16
);
3774 INT16
IntersectVisRect(HDC16
,INT16
,INT16
,INT16
,INT16
);
3775 BOOL16
IsGDIObject(HGDIOBJ16
);
3776 BOOL16
IsSharedSelector(HANDLE16
);
3777 BOOL16
IsTask(HTASK16
);
3778 HTASK16
IsTaskLocked(void);
3779 BOOL16
LocalInit(HANDLE16
,WORD
,WORD
);
3780 HTASK16
LockCurrentTask(BOOL16
);
3781 DWORD
MoveTo(HDC16
,INT16
,INT16
);
3782 DWORD
OffsetViewportOrg(HDC16
,INT16
,INT16
);
3783 INT16
OffsetVisRgn(HDC16
,INT16
,INT16
);
3784 DWORD
OffsetWindowOrg(HDC16
,INT16
,INT16
);
3785 VOID
OldYield(void);
3786 INT16
OpenComm(LPCSTR
,UINT16
,UINT16
);
3787 VOID
PaintRect(HWND16
,HWND16
,HDC16
,HBRUSH16
,const RECT16
*);
3788 VOID
PostEvent(HTASK16
);
3789 WORD
PrestoChangoSelector(WORD
,WORD
);
3790 INT16
ReadComm(INT16
,LPSTR
,INT16
);
3791 INT16
RestoreVisRgn(HDC16
);
3792 HRGN16
SaveVisRgn(HDC16
);
3793 DWORD
ScaleViewportExt(HDC16
,INT16
,INT16
,INT16
,INT16
);
3794 DWORD
ScaleWindowExt(HDC16
,INT16
,INT16
,INT16
,INT16
);
3795 WORD
SelectorAccessRights(WORD
,WORD
,WORD
);
3796 INT16
SelectVisRgn(HDC16
,HRGN16
);
3797 DWORD
SetBitmapDimension(HBITMAP16
,INT16
,INT16
);
3798 DWORD
SetBrushOrg(HDC16
,INT16
,INT16
);
3799 UINT16
* SetCommEventMask(INT16
,UINT16
);
3800 BOOL16
SetDCHook(HDC16
,FARPROC16
,DWORD
);
3801 BOOL16
SetDeskPattern(void);
3802 VOID
SetPriority(HTASK16
,INT16
);
3803 WORD
SetSelectorBase(WORD
,DWORD
);
3804 WORD
SetSelectorLimit(WORD
,DWORD
);
3805 HQUEUE16
SetTaskQueue(HTASK16
,HQUEUE16
);
3806 FARPROC16
SetTaskSignalProc(HTASK16
,FARPROC16
);
3807 DWORD
SetViewportExt(HDC16
,INT16
,INT16
);
3808 DWORD
SetViewportOrg(HDC16
,INT16
,INT16
);
3809 DWORD
SetWindowExt(HDC16
,INT16
,INT16
);
3810 DWORD
SetWindowOrg(HDC16
,INT16
,INT16
);
3811 VOID
SwitchStackBack(void);
3812 VOID
SwitchStackTo(WORD
,WORD
,WORD
);
3813 INT16
Throw(LPCATCHBUF
,INT16
);
3814 INT16
UngetCommChar(INT16
,CHAR
);
3815 VOID
UserYield(void);
3816 BOOL16
WaitEvent(HTASK16
);
3817 INT16
WriteComm(INT16
,LPSTR
,INT16
);
3818 VOID
hmemcpy(LPVOID
,LPCVOID
,LONG
);
3821 /* Declarations for functions that exist only in Win32 */
3823 BOOL32
Beep(DWORD
,DWORD
);
3824 BOOL32
ClearCommError(INT32
,LPDWORD
,LPCOMSTAT
);
3825 HFILE
CreateFile32A(LPCSTR
,DWORD
,DWORD
,LPSECURITY_ATTRIBUTES
,DWORD
,DWORD
,HANDLE32
);
3826 HFILE
CreateFile32W(LPCWSTR
,DWORD
,DWORD
,LPSECURITY_ATTRIBUTES
,DWORD
,DWORD
,HANDLE32
);
3827 #define CreateFile WINELIB_NAME_AW(CreateFile)
3828 HANDLE32
CreateFileMapping32A(HANDLE32
,LPSECURITY_ATTRIBUTES
,DWORD
,DWORD
,DWORD
,LPCSTR
);
3829 HANDLE32
CreateFileMapping32W(HANDLE32
,LPSECURITY_ATTRIBUTES
,DWORD
,DWORD
,DWORD
,LPCWSTR
);
3830 #define CreateFileMapping WINELIB_NAME_AW(CreateFileMapping)
3831 BOOL32
DosDateTimeToFileTime(WORD
,WORD
,LPFILETIME
);
3832 INT32
EnumPropsEx32A(HWND32
,PROPENUMPROCEX32A
,LPARAM
);
3833 INT32
EnumPropsEx32W(HWND32
,PROPENUMPROCEX32W
,LPARAM
);
3834 #define EnumPropsEx WINELIB_NAME_AW(EnumPropsEx)
3835 BOOL32
EnumSystemCodePages32A(CODEPAGE_ENUMPROC32A
,DWORD
);
3836 BOOL32
EnumSystemCodePages32W(CODEPAGE_ENUMPROC32W
,DWORD
);
3837 #define EnumSystemCodePages WINELIB_NAME_AW(EnumSystemCodePages)
3838 BOOL32
EnumThreadWindows(DWORD
,WNDENUMPROC32
,LPARAM
);
3839 void ExitProcess(DWORD
);
3840 BOOL32
FileTimeToDosDateTime(LPFILETIME
,LPWORD
,LPWORD
);
3841 BOOL32
FileTimeToLocalFileTime(LPFILETIME
,LPFILETIME
);
3842 BOOL32
FileTimeToSystemTime(LPFILETIME
,LPSYSTEMTIME
);
3843 HRSRC32
FindResourceEx32A(HINSTANCE32
,LPCSTR
,LPCSTR
,WORD
);
3844 HRSRC32
FindResourceEx32W(HINSTANCE32
,LPCWSTR
,LPCWSTR
,WORD
);
3845 #define FindResourceEx WINELIB_NAME_AW(FindResourceEx)
3846 BOOL32
FlushFileBuffers(HFILE
);
3847 LPCSTR
GetCommandLine32A();
3848 LPCWSTR
GetCommandLine32W();
3849 #define GetCommandLine WINELIB_NAME_AW(GetCommandLine)
3850 BOOL32
GetCommTimeouts(INT32
,LPCOMMTIMEOUTS
);
3851 DWORD
GetFileInformationByHandle(HFILE
,BY_HANDLE_FILE_INFORMATION
*);
3852 DWORD
GetFileSize(HFILE
,LPDWORD
);
3853 DWORD
GetFileType(HFILE
);
3854 VOID
GetLocalTime(LPSYSTEMTIME
);
3855 DWORD
GetLogicalDrives(void);
3856 HANDLE32
GetProcessHeap(void);
3857 DWORD
GetShortPathName32A(LPCSTR
,LPSTR
,DWORD
);
3858 DWORD
GetShortPathName32W(LPCWSTR
,LPWSTR
,DWORD
);
3859 #define GetShortPathName WINELIB_NAME_AW(GetShortPathName)
3860 HFILE
GetStdHandle(DWORD
);
3861 VOID
GetSystemInfo(LPSYSTEM_INFO
);
3862 BOOL32
GetSystemPowerStatus(LPSYSTEM_POWER_STATUS
);
3863 VOID
GetSystemTime(LPSYSTEMTIME
);
3864 VOID
GlobalMemoryStatus(LPMEMORYSTATUS
);
3865 LPVOID
HeapAlloc(HANDLE32
,DWORD
,DWORD
);
3866 DWORD
HeapCompact(HANDLE32
,DWORD
);
3867 HANDLE32
HeapCreate(DWORD
,DWORD
,DWORD
);
3868 BOOL32
HeapDestroy(HANDLE32
);
3869 BOOL32
HeapFree(HANDLE32
,DWORD
,LPVOID
);
3870 BOOL32
HeapLock(HANDLE32
);
3871 LPVOID
HeapReAlloc(HANDLE32
,DWORD
,LPVOID
,DWORD
);
3872 DWORD
HeapSize(HANDLE32
,DWORD
,LPVOID
);
3873 BOOL32
HeapUnlock(HANDLE32
);
3874 BOOL32
HeapValidate(HANDLE32
,DWORD
,LPVOID
);
3875 BOOL32
IsWindowUnicode(HWND32
);
3876 BOOL32
LocalFileTimeToFileTime(LPFILETIME
,LPFILETIME
);
3877 LPVOID
MapViewOfFileEx(HANDLE32
,DWORD
,DWORD
,DWORD
,DWORD
,DWORD
);
3878 BOOL32
MoveFile32A(LPCSTR
,LPCSTR
);
3879 BOOL32
MoveFile32W(LPCWSTR
,LPCWSTR
);
3880 #define MoveFile WINELIB_NAME_AW(MoveFile)
3881 BOOL32
QueryPerformanceCounter(LPLARGE_INTEGER
);
3882 BOOL32
ReadFile(HFILE
,LPVOID
,DWORD
,LPDWORD
,LPOVERLAPPED
);
3883 DWORD
RegCreateKeyEx32A(HKEY
,LPCSTR
,DWORD
,LPSTR
,DWORD
,REGSAM
,
3884 LPSECURITY_ATTRIBUTES
,LPHKEY
,LPDWORD
);
3885 DWORD
RegCreateKeyEx32W(HKEY
,LPCWSTR
,DWORD
,LPWSTR
,DWORD
,REGSAM
,
3886 LPSECURITY_ATTRIBUTES
,LPHKEY
,LPDWORD
);
3887 #define RegCreateKeyEx WINELIB_NAME_AW(RegCreateKeyEx)
3888 DWORD
RegEnumKeyEx32A(HKEY
,DWORD
,LPSTR
,LPDWORD
,LPDWORD
,LPSTR
,LPDWORD
,LPFILETIME
);
3889 DWORD
RegEnumKeyEx32W(HKEY
,DWORD
,LPWSTR
,LPDWORD
,LPDWORD
,LPWSTR
,LPDWORD
,LPFILETIME
);
3890 #define RegEnumKeyEx WINELIB_NAME_AW(RegEnumKeyEx)
3891 DWORD
RegOpenKeyEx32W(HKEY
,LPCWSTR
,DWORD
,REGSAM
,LPHKEY
);
3892 DWORD
RegOpenKeyEx32A(HKEY
,LPCSTR
,DWORD
,REGSAM
,LPHKEY
);
3893 #define RegOpenKeyEx WINELIB_NAME_AW(RegOpenKeyEx)
3894 DWORD
RegQueryInfoKey32W(HKEY
,LPWSTR
,LPDWORD
,LPDWORD
,LPDWORD
,LPDWORD
,
3895 LPDWORD
,LPDWORD
,LPDWORD
,LPDWORD
,LPDWORD
,LPFILETIME
);
3896 DWORD
RegQueryInfoKey32A(HKEY
,LPSTR
,LPDWORD
,LPDWORD
,LPDWORD
,LPDWORD
,
3897 LPDWORD
,LPDWORD
,LPDWORD
,LPDWORD
,LPDWORD
,LPFILETIME
);
3898 #define RegQueryInfoKey WINELIB_NAME_AW(RegQueryInfoKey)
3899 VOID
RtlFillMemory(LPVOID
,UINT32
,UINT32
);
3900 VOID
RtlMoveMemory(LPVOID
,LPCVOID
,UINT32
);
3901 VOID
RtlZeroMemory(LPVOID
,UINT32
);
3902 DWORD
SearchPath32A(LPCSTR
,LPCSTR
,LPCSTR
,DWORD
,LPSTR
,LPSTR
*);
3903 DWORD
SearchPath32W(LPCWSTR
,LPCWSTR
,LPCWSTR
,DWORD
,LPWSTR
,LPWSTR
*);
3904 #define SearchPath WINELIB_NAME(SearchPath)
3905 BOOL32
SetBrushOrgEx(HDC32
,INT32
,INT32
,LPPOINT32
);
3906 BOOL32
SetCommMask(INT32
,DWORD
);
3907 BOOL32
SetCommTimeouts(INT32
,LPCOMMTIMEOUTS
);
3908 BOOL32
SetEndOfFile(HFILE
);
3909 DWORD
SetFilePointer(HFILE
,LONG
,LPLONG
,DWORD
);
3910 BOOL32
SetFileTime(HFILE
,LPFILETIME
,LPFILETIME
,LPFILETIME
);
3911 BOOL32
SetTimeZoneInformation(const LPTIME_ZONE_INFORMATION
);
3912 BOOL32
SetSystemPowerState(BOOL32
,BOOL32
);
3913 BOOL32
SetSystemTime(const SYSTEMTIME
*);
3915 BOOL32
SystemTimeToFileTime(LPSYSTEMTIME
,LPFILETIME
);
3916 LPVOID
VirtualAlloc(LPVOID
,DWORD
,DWORD
,DWORD
);
3917 BOOL32
VirtualFree(LPVOID
,DWORD
,DWORD
);
3918 BOOL32
WriteFile(HFILE
,LPVOID
,DWORD
,LPDWORD
,LPOVERLAPPED
);
3921 /* Declarations for functions that are the same in Win16 and Win32 */
3923 BOOL16
CheckDlgButton(HWND32
,INT32
,UINT32
);
3924 BOOL16
CheckRadioButton(HWND32
,UINT32
,UINT32
,UINT32
);
3925 LONG
CopyLZFile(HFILE
,HFILE
);
3926 HBITMAP16
CreateBitmap(INT32
,INT32
,UINT32
,UINT32
,LPCVOID
);
3927 BOOL16
CreateCaret(HWND32
,HBITMAP32
,INT32
,INT32
);
3928 HBITMAP16
CreateCompatibleBitmap(HDC32
,INT32
,INT32
);
3929 HBITMAP16
CreateDiscardableBitmap(HDC32
,INT32
,INT32
);
3930 BOOL16
DestroyCaret(void);
3931 BOOL16
EndDialog(HWND32
,INT32
);
3932 INT16
ExcludeUpdateRgn(HDC32
,HWND32
);
3933 DWORD
GetAppCompatFlags(HTASK32
);
3934 LONG
GetBitmapBits(HBITMAP32
,LONG
,LPVOID
);
3935 WORD
GetClassWord(HWND32
,INT32
);
3936 INT16
GetDlgCtrlID(HWND32
);
3937 DWORD
GetLastError(void);
3938 COLORREF
GetSysColor(INT32
);
3939 DWORD
GetTickCount(void);
3940 INT16
GetUpdateRgn(HWND32
,HRGN32
,BOOL32
);
3941 WORD
GetWindowWord(HWND32
,INT32
);
3942 BOOL16
HideCaret(HWND32
);
3943 BOOL16
IsWindow(HWND32
);
3944 void LZClose(HFILE
);
3945 LONG
LZCopy(HFILE
,HFILE
);
3947 HFILE
LZInit(HFILE
);
3948 LONG
LZSeek(HFILE
,LONG
,INT32
);
3949 INT16
LZStart(void);
3950 HFILE
OpenFile(LPCSTR
,OFSTRUCT
*,UINT32
);
3951 UINT16
RealizePalette(HDC32
);
3952 DWORD
RegCloseKey(HKEY
);
3953 DWORD
RegFlushKey(HKEY
);
3954 VOID
ReleaseCapture(void);
3955 LONG
SetBitmapBits(HBITMAP32
,LONG
,LPCVOID
);
3956 COLORREF
SetBkColor(HDC32
,COLORREF
);
3957 BOOL16
SetCaretBlinkTime(UINT32
);
3958 BOOL16
SetCaretPos(INT32
,INT32
);
3959 WORD
SetClassWord(HWND32
,INT32
,WORD
);
3960 INT16
SetDIBits(HDC32
,HBITMAP32
,UINT32
,UINT32
,LPCVOID
,const BITMAPINFO
*,UINT32
);
3961 INT16
SetDIBitsToDevice(HDC32
,INT32
,INT32
,DWORD
,DWORD
,INT32
,INT32
,UINT32
,UINT32
,LPCVOID
,const BITMAPINFO
*,UINT32
);
3962 VOID
SetLastError(DWORD
);
3963 VOID
SetLastErrorEx(DWORD
,DWORD
);
3964 VOID
SetRectRgn(HRGN32
,INT32
,INT32
,INT32
,INT32
);
3965 COLORREF
SetTextColor(HDC32
,COLORREF
);
3966 WORD
SetWindowWord(HWND32
,INT32
,WORD
);
3967 BOOL16
ShowCaret(HWND32
);
3968 VOID
UpdateWindow(HWND32
);
3969 LONG
_hread(HFILE
,LPVOID
,LONG
);
3970 HFILE
_lclose(HFILE
);
3971 HFILE
_lcreat(LPCSTR
,INT32
);
3972 LONG
_llseek(HFILE
,LONG
,INT32
);
3973 HFILE
_lopen(LPCSTR
,INT32
);
3974 LONG
_hwrite(HFILE
,LPCSTR
,LONG
);
3976 /* Declarations for functions that change between Win16 and Win32 */
3978 INT16
AccessResource16(HINSTANCE16
,HRSRC16
);
3979 INT32
AccessResource32(HINSTANCE32
,HRSRC32
);
3980 #define AccessResource WINELIB_NAME(AccessResource)
3981 BOOL16
AdjustWindowRect16(LPRECT16
,DWORD
,BOOL16
);
3982 BOOL32
AdjustWindowRect32(LPRECT32
,DWORD
,BOOL32
);
3983 #define AdjustWindowRect WINELIB_NAME(AdjustWindowRect)
3984 BOOL16
AdjustWindowRectEx16(LPRECT16
,DWORD
,BOOL16
,DWORD
);
3985 BOOL32
AdjustWindowRectEx32(LPRECT32
,DWORD
,BOOL32
,DWORD
);
3986 #define AdjustWindowRectEx WINELIB_NAME(AdjustWindowRectEx)
3987 HGLOBAL16
AllocResource16(HINSTANCE16
,HRSRC16
,DWORD
);
3988 HGLOBAL32
AllocResource32(HINSTANCE32
,HRSRC32
,DWORD
);
3989 #define AllocResource WINELIB_NAME(AllocResource)
3990 BOOL16
AppendMenu16(HMENU16
,UINT16
,UINT16
,SEGPTR
);
3991 BOOL32
AppendMenu32A(HMENU32
,UINT32
,UINT32
,LPCSTR
);
3992 BOOL32
AppendMenu32W(HMENU32
,UINT32
,UINT32
,LPCWSTR
);
3993 #define AppendMenu WINELIB_NAME_AW(AppendMenu)
3994 BOOL16
Arc16(HDC16
,INT16
,INT16
,INT16
,INT16
,INT16
,INT16
,INT16
,INT16
);
3995 BOOL32
Arc32(HDC32
,INT32
,INT32
,INT32
,INT32
,INT32
,INT32
,INT32
,INT32
);
3996 #define Arc WINELIB_NAME(Arc)
3997 HDC16
BeginPaint16(HWND16
,LPPAINTSTRUCT16
);
3998 HDC32
BeginPaint32(HWND32
,LPPAINTSTRUCT32
);
3999 #define BeginPaint WINELIB_NAME(BeginPaint)
4000 BOOL16
BitBlt16(HDC16
,INT16
,INT16
,INT16
,INT16
,HDC16
,INT16
,INT16
,DWORD
);
4001 BOOL32
BitBlt32(HDC32
,INT32
,INT32
,INT32
,INT32
,HDC32
,INT32
,INT32
,DWORD
);
4002 #define BitBlt WINELIB_NAME(BitBlt)
4003 BOOL16
BuildCommDCB16(LPCSTR
,LPDCB16
);
4004 BOOL32
BuildCommDCB32A(LPCSTR
,LPDCB32
);
4005 BOOL32
BuildCommDCB32W(LPCWSTR
,LPDCB32
);
4006 #define BuildCommDCB WINELIB_NAME_AW(BuildCommDCB)
4007 BOOL32
BuildCommDCBAndTimeouts32A(LPCSTR
,LPDCB32
,LPCOMMTIMEOUTS
);
4008 BOOL32
BuildCommDCBAndTimeouts32W(LPCWSTR
,LPDCB32
,LPCOMMTIMEOUTS
);
4009 #define BuildCommDCBAndTimeouts WINELIB_NAME_AW(BuildCommDCBAndTimeouts)
4010 LRESULT
CallWindowProc16(WNDPROC16
,HWND16
,UINT16
,WPARAM16
,LPARAM
);
4011 LRESULT
CallWindowProc32A(WNDPROC32
,HWND32
,UINT32
,WPARAM32
,LPARAM
);
4012 LRESULT
CallWindowProc32W(WNDPROC32
,HWND32
,UINT32
,WPARAM32
,LPARAM
);
4013 #define CallWindowProc WINELIB_NAME_AW(CallWindowProc)
4014 BOOL16
ChangeMenu16(HMENU16
,UINT16
,SEGPTR
,UINT16
,UINT16
);
4015 BOOL32
ChangeMenu32A(HMENU32
,UINT32
,LPCSTR
,UINT32
,UINT32
);
4016 BOOL32
ChangeMenu32W(HMENU32
,UINT32
,LPCWSTR
,UINT32
,UINT32
);
4017 #define ChangeMenu WINELIB_NAME_AW(ChangeMenu)
4018 LPSTR
CharLower32A(LPSTR
);
4019 LPWSTR
CharLower32W(LPWSTR
);
4020 #define CharLower WINELIB_NAME_AW(CharLower)
4021 DWORD
CharLowerBuff32A(LPSTR
,DWORD
);
4022 DWORD
CharLowerBuff32W(LPWSTR
,DWORD
);
4023 #define CharLowerBuff WINELIB_NAME_AW(CharLowerBuff)
4024 LPSTR
CharNext32A(LPCSTR
);
4025 LPWSTR
CharNext32W(LPCWSTR
);
4026 #define CharNext WINELIB_NAME_AW(CharNext)
4027 LPSTR
CharNextEx32A(WORD
,LPCSTR
,DWORD
);
4028 LPWSTR
CharNextEx32W(WORD
,LPCWSTR
,DWORD
);
4029 #define CharNextEx WINELIB_NAME_AW(CharNextEx)
4030 LPSTR
CharPrev32A(LPCSTR
,LPCSTR
);
4031 LPWSTR
CharPrev32W(LPCWSTR
,LPCWSTR
);
4032 #define CharPrev WINELIB_NAME_AW(CharPrev)
4033 LPSTR
CharPrevEx32A(WORD
,LPCSTR
,LPCSTR
,DWORD
);
4034 LPWSTR
CharPrevEx32W(WORD
,LPCWSTR
,LPCWSTR
,DWORD
);
4035 #define CharPrevEx WINELIB_NAME_AW(CharPrevEx)
4036 LPSTR
CharUpper32A(LPSTR
);
4037 LPWSTR
CharUpper32W(LPWSTR
);
4038 #define CharUpper WINELIB_NAME_AW(CharUpper)
4039 DWORD
CharUpperBuff32A(LPSTR
,DWORD
);
4040 DWORD
CharUpperBuff32W(LPWSTR
,DWORD
);
4041 #define CharUpperBuff WINELIB_NAME_AW(CharUpperBuff)
4042 BOOL32
CharToOem32A(LPSTR
,LPSTR
);
4043 BOOL32
CharToOem32W(LPCWSTR
,LPSTR
);
4044 #define CharToOem WINELIB_NAME_AW(CharToOem)
4045 BOOL32
CharToOemBuff32A(LPSTR
,LPSTR
,DWORD
);
4046 BOOL32
CharToOemBuff32W(LPCWSTR
,LPSTR
,DWORD
);
4047 #define CharToOemBuff WINELIB_NAME_AW(CharToOemBuff)
4048 HWND16
ChildWindowFromPoint16(HWND16
,POINT16
);
4049 HWND32
ChildWindowFromPoint32(HWND32
,POINT32
);
4050 #define ChildWindowFromPoint WINELIB_NAME(ChildWindowFromPoint)
4051 BOOL16
Chord16(HDC16
,INT16
,INT16
,INT16
,INT16
,INT16
,INT16
,INT16
,INT16
);
4052 BOOL32
Chord32(HDC32
,INT32
,INT32
,INT32
,INT32
,INT32
,INT32
,INT32
,INT32
);
4053 #define Chord WINELIB_NAME(Chord)
4054 INT16
ClearCommBreak16(INT16
);
4055 BOOL32
ClearCommBreak32(INT32
);
4056 #define ClearCommBreak WINELIB_NAME(ClearCommBreak)
4057 BOOL16
ClientToScreen16(HWND16
,LPPOINT16
);
4058 BOOL32
ClientToScreen32(HWND32
,LPPOINT32
);
4059 #define ClientToScreen WINELIB_NAME(ClientToScreen)
4060 BOOL16
ClipCursor16(const RECT16
*);
4061 BOOL32
ClipCursor32(const RECT32
*);
4062 #define ClipCursor WINELIB_NAME(ClipCursor)
4063 HMETAFILE16
CloseMetaFile16(HDC16
);
4064 HMETAFILE32
CloseMetaFile32(HDC32
);
4065 #define CloseMetaFile WINELIB_NAME(CloseMetaFile)
4066 INT16
CombineRgn16(HRGN16
,HRGN16
,HRGN16
,INT16
);
4067 INT32
CombineRgn32(HRGN32
,HRGN32
,HRGN32
,INT32
);
4068 #define CombineRgn WINELIB_NAME(CombineRgn)
4069 UINT16
CompareString16(DWORD
,DWORD
,LPCSTR
,DWORD
,LPCSTR
,DWORD
);
4070 UINT32
CompareString32A(DWORD
,DWORD
,LPCSTR
,DWORD
,LPCSTR
,DWORD
);
4071 UINT32
CompareString32W(DWORD
,DWORD
,LPCWSTR
,DWORD
,LPCWSTR
,DWORD
);
4072 #define CompareString WINELIB_NAME_AW(CompareString)
4073 HCURSOR16
CopyCursor16(HINSTANCE16
,HCURSOR16
);
4074 #define CopyCursor32(cur) ((HCURSOR32)CopyIcon32((HICON32)(cur)))
4075 #define CopyCursor WINELIB_NAME(CopyCursor)
4076 HICON16
CopyIcon16(HINSTANCE16
,HICON16
);
4077 HICON32
CopyIcon32(HICON32
);
4078 #define CopyIcon WINELIB_NAME(CopyIcon)
4079 BOOL16
CopyRect16(RECT16
*,const RECT16
*);
4080 BOOL32
CopyRect32(RECT32
*,const RECT32
*);
4081 #define CopyRect WINELIB_NAME(CopyRect)
4082 HBITMAP16
CreateBitmapIndirect16(const BITMAP16
*);
4083 HBITMAP32
CreateBitmapIndirect32(const BITMAP32
*);
4084 #define CreateBitmapIndirect WINELIB_NAME(CreateBitmapIndirect)
4085 HBRUSH16
CreateBrushIndirect16(const LOGBRUSH16
*);
4086 HBRUSH32
CreateBrushIndirect32(const LOGBRUSH32
*);
4087 #define CreateBrushIndirect WINELIB_NAME(CreateBrushIndirect)
4088 HWND16
CreateDialog16(HINSTANCE16
,SEGPTR
,HWND16
,DLGPROC16
);
4089 #define CreateDialog32A(inst,ptr,hwnd,dlg) \
4090 CreateDialogParam32A(inst,ptr,hwnd,dlg,0)
4091 #define CreateDialog32W(inst,ptr,hwnd,dlg) \
4092 CreateDialogParam32W(inst,ptr,hwnd,dlg,0)
4093 #define CreateDialog WINELIB_NAME_AW(CreateDialog)
4094 HWND16
CreateDialogIndirect16(HINSTANCE16
,LPCVOID
,HWND16
,DLGPROC16
);
4095 #define CreateDialogIndirect32A(inst,ptr,hwnd,dlg) \
4096 CreateDialogIndirectParam32A(inst,ptr,hwnd,dlg,0)
4097 #define CreateDialogIndirect32W(inst,ptr,hwnd,dlg) \
4098 CreateDialogIndirectParam32W(inst,ptr,hwnd,dlg,0)
4099 #define CreateDialogIndirect WINELIB_NAME_AW(CreateDialogIndirect)
4100 HWND16
CreateDialogIndirectParam16(HINSTANCE16
,LPCVOID
,HWND16
,DLGPROC16
,LPARAM
);
4101 HWND32
CreateDialogIndirectParam32A(HINSTANCE32
,LPCVOID
,HWND32
,DLGPROC32
,LPARAM
);
4102 HWND32
CreateDialogIndirectParam32W(HINSTANCE32
,LPCVOID
,HWND32
,DLGPROC32
,LPARAM
);
4103 #define CreateDialogIndirectParam WINELIB_NAME_AW(CreateDialogIndirectParam)
4104 HWND16
CreateDialogParam16(HINSTANCE16
,SEGPTR
,HWND16
,DLGPROC16
,LPARAM
);
4105 HWND32
CreateDialogParam32A(HINSTANCE32
,LPCSTR
,HWND32
,DLGPROC32
,LPARAM
);
4106 HWND32
CreateDialogParam32W(HINSTANCE32
,LPCWSTR
,HWND32
,DLGPROC32
,LPARAM
);
4107 #define CreateDialogParam WINELIB_NAME_AW(CreateDialogParam)
4108 HBRUSH16
CreateDIBPatternBrush16(HGLOBAL16
,UINT16
);
4109 HBRUSH32
CreateDIBPatternBrush32(HGLOBAL32
,UINT32
);
4110 #define CreateDIBPatternBrush WINELIB_NAME(CreateDIBPatternBrush)
4111 BOOL16
CreateDirectory16(LPCSTR
,LPVOID
);
4112 BOOL32
CreateDirectory32A(LPCSTR
,LPSECURITY_ATTRIBUTES
);
4113 BOOL32
CreateDirectory32W(LPCWSTR
,LPSECURITY_ATTRIBUTES
);
4114 #define CreateDirectory WINELIB_NAME_AW(CreateDirectory)
4115 HRGN16
CreateEllipticRgn16(INT16
,INT16
,INT16
,INT16
);
4116 HRGN32
CreateEllipticRgn32(INT32
,INT32
,INT32
,INT32
);
4117 #define CreateEllipticRgn WINELIB_NAME(CreateEllipticRgn)
4118 HRGN16
CreateEllipticRgnIndirect16(const RECT16
*);
4119 HRGN32
CreateEllipticRgnIndirect32(const RECT32
*);
4120 #define CreateEllipticRgnIndirect WINELIB_NAME(CreateEllipticRgnIndirect)
4121 HFONT16
CreateFont16(INT16
,INT16
,INT16
,INT16
,INT16
,BYTE
,BYTE
,BYTE
,BYTE
,BYTE
,BYTE
,BYTE
,BYTE
,LPCSTR
);
4122 HFONT32
CreateFont32A(INT32
,INT32
,INT32
,INT32
,INT32
,DWORD
,DWORD
,DWORD
,DWORD
,DWORD
,DWORD
,DWORD
,DWORD
,LPCSTR
);
4123 HFONT32
CreateFont32W(INT32
,INT32
,INT32
,INT32
,INT32
,DWORD
,DWORD
,DWORD
,DWORD
,DWORD
,DWORD
,DWORD
,DWORD
,LPCWSTR
);
4124 #define CreateFont WINELIB_NAME_AW(CreateFont)
4125 HFONT16
CreateFontIndirect16(const LOGFONT16
*);
4126 HFONT32
CreateFontIndirect32A(const LOGFONT32A
*);
4127 HFONT32
CreateFontIndirect32W(const LOGFONT32W
*);
4128 #define CreateFontIndirect WINELIB_NAME_AW(CreateFontIndirect)
4129 HBRUSH16
CreateHatchBrush16(INT16
,COLORREF
);
4130 HBRUSH32
CreateHatchBrush32(INT32
,COLORREF
);
4131 #define CreateHatchBrush WINELIB_NAME(CreateHatchBrush)
4132 HDC16
CreateMetaFile16(LPCSTR
);
4133 HDC32
CreateMetaFile32A(LPCSTR
);
4134 HDC32
CreateMetaFile32W(LPCWSTR
);
4135 #define CreateMetaFile WINELIB_NAME_AW(CreateMetaFile)
4136 HBRUSH16
CreatePatternBrush16(HBITMAP16
);
4137 HBRUSH32
CreatePatternBrush32(HBITMAP32
);
4138 #define CreatePatternBrush WINELIB_NAME(CreatePatternBrush)
4139 HPEN16
CreatePen16(INT16
,INT16
,COLORREF
);
4140 HPEN32
CreatePen32(INT32
,INT32
,COLORREF
);
4141 #define CreatePen WINELIB_NAME(CreatePen)
4142 HPEN16
CreatePenIndirect16(const LOGPEN16
*);
4143 HPEN32
CreatePenIndirect32(const LOGPEN32
*);
4144 #define CreatePenIndirect WINELIB_NAME(CreatePenIndirect)
4145 HRGN16
CreatePolyPolygonRgn16(const POINT16
*,const INT16
*,INT16
,INT16
);
4146 HRGN32
CreatePolyPolygonRgn32(const POINT32
*,const INT32
*,INT32
,INT32
);
4147 #define CreatePolyPolygonRgn WINELIB_NAME(CreatePolyPolygonRgn)
4148 HRGN16
CreatePolygonRgn16(const POINT16
*,INT16
,INT16
);
4149 HRGN32
CreatePolygonRgn32(const POINT32
*,INT32
,INT32
);
4150 #define CreatePolygonRgn WINELIB_NAME(CreatePolygonRgn)
4151 HRGN16
CreateRectRgn16(INT16
,INT16
,INT16
,INT16
);
4152 HRGN32
CreateRectRgn32(INT32
,INT32
,INT32
,INT32
);
4153 #define CreateRectRgn WINELIB_NAME(CreateRectRgn)
4154 HRGN16
CreateRectRgnIndirect16(const RECT16
*);
4155 HRGN32
CreateRectRgnIndirect32(const RECT32
*);
4156 #define CreateRectRgnIndirect WINELIB_NAME(CreateRectRgnIndirect)
4157 HRGN16
CreateRoundRectRgn16(INT16
,INT16
,INT16
,INT16
,INT16
,INT16
);
4158 HRGN32
CreateRoundRectRgn32(INT32
,INT32
,INT32
,INT32
,INT32
,INT32
);
4159 #define CreateRoundRectRgn WINELIB_NAME(CreateRoundRectRgn)
4160 HBRUSH16
CreateSolidBrush16(COLORREF
);
4161 HBRUSH32
CreateSolidBrush32(COLORREF
);
4162 #define CreateSolidBrush WINELIB_NAME(CreateSolidBrush)
4163 HWND16
CreateWindow16(LPCSTR
,LPCSTR
,DWORD
,INT16
,INT16
,INT16
,INT16
,HWND16
,HMENU16
,HINSTANCE16
,LPVOID
);
4164 #define CreateWindow32A(className,titleName,style,x,y,width,height,\
4165 parent,menu,instance,param) \
4166 CreateWindowEx32A(0,className,titleName,style,x,y,width,height,\
4167 parent,menu,instance,param)
4168 #define CreateWindow32W(className,titleName,style,x,y,width,height,\
4169 parent,menu,instance,param) \
4170 CreateWindowEx32W(0,className,titleName,style,x,y,width,height,\
4171 parent,menu,instance,param)
4172 #define CreateWindow WINELIB_NAME_AW(CreateWindow)
4173 HWND16
CreateWindowEx16(DWORD
,LPCSTR
,LPCSTR
,DWORD
,INT16
,INT16
,INT16
,INT16
,HWND16
,HMENU16
,HINSTANCE16
,LPVOID
);
4174 HWND32
CreateWindowEx32A(DWORD
,LPCSTR
,LPCSTR
,DWORD
,INT32
,INT32
,INT32
,INT32
,HWND32
,HMENU32
,HINSTANCE32
,LPVOID
);
4175 HWND32
CreateWindowEx32W(DWORD
,LPCWSTR
,LPCWSTR
,DWORD
,INT32
,INT32
,INT32
,INT32
,HWND32
,HMENU32
,HINSTANCE32
,LPVOID
);
4176 #define CreateWindowEx WINELIB_NAME_AW(CreateWindowEx)
4177 LRESULT
DefDlgProc16(HWND16
,UINT16
,WPARAM16
,LPARAM
);
4178 LRESULT
DefDlgProc32A(HWND32
,UINT32
,WPARAM32
,LPARAM
);
4179 LRESULT
DefDlgProc32W(HWND32
,UINT32
,WPARAM32
,LPARAM
);
4180 #define DefDlgProc WINELIB_NAME_AW(DefDlgProc)
4181 LRESULT
DefFrameProc16(HWND16
,HWND16
,UINT16
,WPARAM16
,LPARAM
);
4182 LRESULT
DefFrameProc32A(HWND32
,HWND32
,UINT32
,WPARAM32
,LPARAM
);
4183 LRESULT
DefFrameProc32W(HWND32
,HWND32
,UINT32
,WPARAM32
,LPARAM
);
4184 #define DefFrameProc WINELIB_NAME_AW(DefFrameProc)
4185 LRESULT
DefMDIChildProc16(HWND16
,UINT16
,WPARAM16
,LPARAM
);
4186 LRESULT
DefMDIChildProc32A(HWND32
,UINT32
,WPARAM32
,LPARAM
);
4187 LRESULT
DefMDIChildProc32W(HWND32
,UINT32
,WPARAM32
,LPARAM
);
4188 #define DefMDIChildProc WINELIB_NAME_AW(DefMDIChildProc)
4189 LRESULT
DefWindowProc16(HWND16
,UINT16
,WPARAM16
,LPARAM
);
4190 LRESULT
DefWindowProc32A(HWND32
,UINT32
,WPARAM32
,LPARAM
);
4191 LRESULT
DefWindowProc32W(HWND32
,UINT32
,WPARAM32
,LPARAM
);
4192 #define DefWindowProc WINELIB_NAME_AW(DefWindowProc)
4193 BOOL16
DeleteFile16(LPCSTR
);
4194 BOOL32
DeleteFile32A(LPCSTR
);
4195 BOOL32
DeleteFile32W(LPCWSTR
);
4196 #define DeleteFile WINELIB_NAME_AW(DeleteFile)
4197 BOOL16
DeleteMetaFile16(HMETAFILE16
);
4198 BOOL32
DeleteMetaFile32(HMETAFILE32
);
4199 #define DeleteMetaFile WINELIB_NAME(DeleteMetaFile)
4200 BOOL16
DeleteObject16(HGDIOBJ16
);
4201 BOOL32
DeleteObject32(HGDIOBJ32
);
4202 #define DeleteObject WINELIB_NAME(DeleteObject)
4203 INT16
DialogBox16(HINSTANCE16
,SEGPTR
,HWND16
,DLGPROC16
);
4204 #define DialogBox32A(inst,template,owner,func) \
4205 DialogBoxParam32A(inst,template,owner,func,0)
4206 #define DialogBox32W(inst,template,owner,func) \
4207 DialogBoxParam32W(inst,template,owner,func,0)
4208 #define DialogBox WINELIB_NAME_AW(DialogBox)
4209 INT16
DialogBoxIndirect16(HINSTANCE16
,HANDLE16
,HWND16
,DLGPROC16
);
4210 #define DialogBoxIndirect32A(inst,template,owner,func) \
4211 DialogBoxIndirectParam32A(inst,template,owner,func,0)
4212 #define DialogBoxIndirect32W(inst,template,owner,func) \
4213 DialogBoxIndirectParam32W(inst,template,owner,func,0)
4214 #define DialogBoxIndirect WINELIB_NAME_AW(DialogBoxIndirect)
4215 INT16
DialogBoxIndirectParam16(HINSTANCE16
,HANDLE16
,HWND16
,DLGPROC16
,LPARAM
);
4216 INT32
DialogBoxIndirectParam32A(HINSTANCE32
,LPCVOID
,HWND32
,DLGPROC32
,LPARAM
);
4217 INT32
DialogBoxIndirectParam32W(HINSTANCE32
,LPCVOID
,HWND32
,DLGPROC32
,LPARAM
);
4218 #define DialogBoxIndirectParam WINELIB_NAME_AW(DialogBoxIndirectParam)
4219 INT16
DialogBoxParam16(HINSTANCE16
,SEGPTR
,HWND16
,DLGPROC16
,LPARAM
);
4220 INT32
DialogBoxParam32A(HINSTANCE32
,LPCSTR
,HWND32
,DLGPROC32
,LPARAM
);
4221 INT32
DialogBoxParam32W(HINSTANCE32
,LPCWSTR
,HWND32
,DLGPROC32
,LPARAM
);
4222 #define DialogBoxParam WINELIB_NAME_AW(DialogBoxParam)
4223 INT16
DlgDirListComboBox16(HWND16
,SEGPTR
,INT16
,INT16
,UINT16
);
4224 INT32
DlgDirListComboBox32A(HWND32
,LPCSTR
,INT32
,INT32
,UINT32
);
4225 INT32
DlgDirListComboBox32W(HWND32
,LPCWSTR
,INT32
,INT32
,UINT32
);
4226 #define DlgDirListComboBox WINELIB_NAME_AW(DlgDirListComboBox)
4227 BOOL16
DlgDirSelectComboBoxEx16(HWND16
,LPSTR
,INT16
,INT16
);
4228 BOOL32
DlgDirSelectComboBoxEx32A(HWND32
,LPSTR
,INT32
,INT32
);
4229 BOOL32
DlgDirSelectComboBoxEx32W(HWND32
,LPWSTR
,INT32
,INT32
);
4230 #define DlgDirSelectComboBoxEx WINELIB_NAME_AW(DlgDirSelectComboBoxEx)
4231 BOOL16
DlgDirSelectEx16(HWND16
,LPSTR
,INT16
,INT16
);
4232 BOOL32
DlgDirSelectEx32A(HWND32
,LPSTR
,INT32
,INT32
);
4233 BOOL32
DlgDirSelectEx32W(HWND32
,LPWSTR
,INT32
,INT32
);
4234 #define DlgDirSelectEx WINELIB_NAME_AW(DlgDirSelectEx)
4235 BOOL16
DPtoLP16(HDC16
,LPPOINT16
,INT16
);
4236 BOOL32
DPtoLP32(HDC32
,LPPOINT32
,INT32
);
4237 #define DPtoLP WINELIB_NAME(DPtoLP)
4238 BOOL16
DrawEdge16(HDC16
,LPRECT16
,UINT16
,UINT16
);
4239 BOOL32
DrawEdge32(HDC32
,LPRECT32
,UINT32
,UINT32
);
4240 #define DrawEdge WINELIB_NAME(DrawEdge)
4241 void DrawFocusRect16(HDC16
,const RECT16
*);
4242 void DrawFocusRect32(HDC32
,const RECT32
*);
4243 #define DrawFocusRect WINELIB_NAME(DrawFocusRect)
4244 BOOL16
DrawFrameControl16(HDC16
,LPRECT16
,UINT16
,UINT16
);
4245 BOOL32
DrawFrameControl32(HDC32
,LPRECT32
,UINT32
,UINT32
);
4246 #define DrawFrameControl WINELIB_NAME(DrawFrameControl)
4247 INT16
DrawText16(HDC16
,LPCSTR
,INT16
,LPRECT16
,UINT16
);
4248 INT32
DrawText32A(HDC32
,LPCSTR
,INT32
,LPRECT32
,UINT32
);
4249 INT32
DrawText32W(HDC32
,LPCWSTR
,INT32
,LPRECT32
,UINT32
);
4250 #define DrawText WINELIB_NAME_AW(DrawText)
4251 BOOL16
Ellipse16(HDC16
,INT16
,INT16
,INT16
,INT16
);
4252 BOOL32
Ellipse32(HDC32
,INT32
,INT32
,INT32
,INT32
);
4253 #define Ellipse WINELIB_NAME(Ellipse)
4254 BOOL16
EnableScrollBar16(HWND16
,INT16
,UINT16
);
4255 BOOL32
EnableScrollBar32(HWND32
,INT32
,UINT32
);
4256 #define EnableScrollBar WINELIB_NAME(EnableScrollBar)
4257 BOOL16
EndPaint16(HWND16
,const PAINTSTRUCT16
*);
4258 BOOL32
EndPaint32(HWND32
,const PAINTSTRUCT32
*);
4259 #define EndPaint WINELIB_NAME(EndPaint)
4260 BOOL16
EnumChildWindows16(HWND16
,WNDENUMPROC16
,LPARAM
);
4261 BOOL32
EnumChildWindows32(HWND32
,WNDENUMPROC32
,LPARAM
);
4262 #define EnumChildWindows WINELIB_NAME(EnumChildWindows)
4263 INT16
EnumFontFamilies16(HDC16
,LPCSTR
,FONTENUMPROC16
,LPARAM
);
4264 INT32
EnumFontFamilies32A(HDC32
,LPCSTR
,FONTENUMPROC32A
,LPARAM
);
4265 INT32
EnumFontFamilies32W(HDC32
,LPCWSTR
,FONTENUMPROC32W
,LPARAM
);
4266 #define EnumFontFamilies WINELIB_NAME_AW(EnumFontFamilies)
4267 INT16
EnumObjects16(HDC16
,INT16
,GOBJENUMPROC16
,LPARAM
);
4268 INT32
EnumObjects32(HDC32
,INT32
,GOBJENUMPROC32
,LPARAM
);
4269 #define EnumObjects WINELIB_NAME(EnumObjects)
4270 INT16
EnumProps16(HWND16
,PROPENUMPROC16
);
4271 INT32
EnumProps32A(HWND32
,PROPENUMPROC32A
);
4272 INT32
EnumProps32W(HWND32
,PROPENUMPROC32W
);
4273 #define EnumProps WINELIB_NAME_AW(EnumProps)
4274 BOOL16
EnumTaskWindows16(HTASK16
,WNDENUMPROC16
,LPARAM
);
4275 #define EnumTaskWindows32(handle,proc,lparam) \
4276 EnumThreadWindows(handle,proc,lparam)
4277 #define EnumTaskWindows WINELIB_NAME(EnumTaskWindows)
4278 BOOL16
EnumWindows16(WNDENUMPROC16
,LPARAM
);
4279 BOOL32
EnumWindows32(WNDENUMPROC32
,LPARAM
);
4280 #define EnumWindows WINELIB_NAME(EnumWindows)
4281 BOOL16
EqualRect16(const RECT16
*,const RECT16
*);
4282 BOOL32
EqualRect32(const RECT32
*,const RECT32
*);
4283 #define EqualRect WINELIB_NAME(EqualRect)
4284 BOOL16
EqualRgn16(HRGN16
,HRGN16
);
4285 BOOL32
EqualRgn32(HRGN32
,HRGN32
);
4286 #define EqualRgn WINELIB_NAME(EqualRgn)
4287 LONG
EscapeCommFunction16(UINT16
,UINT16
);
4288 BOOL32
EscapeCommFunction32(INT32
,UINT32
);
4289 #define EscapeCommFunction WINELIB_NAME(EscapeCommFunction)
4290 INT16
ExcludeClipRect16(HDC16
,INT16
,INT16
,INT16
,INT16
);
4291 INT32
ExcludeClipRect32(HDC32
,INT32
,INT32
,INT32
,INT32
);
4292 #define ExcludeClipRect WINELIB_NAME(ExcludeClipRect)
4293 BOOL16
ExtFloodFill16(HDC16
,INT16
,INT16
,COLORREF
,UINT16
);
4294 BOOL32
ExtFloodFill32(HDC32
,INT32
,INT32
,COLORREF
,UINT32
);
4295 #define ExtFloodFill WINELIB_NAME(ExtFloodFill)
4296 BOOL16
ExtTextOut16(HDC16
,INT16
,INT16
,UINT16
,const RECT16
*,LPCSTR
,UINT16
,const INT16
*);
4297 BOOL32
ExtTextOut32A(HDC32
,INT32
,INT32
,UINT32
,const RECT32
*,LPCSTR
,UINT32
,const INT32
*);
4298 BOOL32
ExtTextOut32W(HDC32
,INT32
,INT32
,UINT32
,const RECT32
*,LPCWSTR
,UINT32
,const INT32
*);
4299 #define ExtTextOut WINELIB_NAME_AW(ExtTextOut)
4300 INT16
FillRect16(HDC16
,const RECT16
*,HBRUSH16
);
4301 INT32
FillRect32(HDC32
,const RECT32
*,HBRUSH32
);
4302 #define FillRect WINELIB_NAME(FillRect)
4303 BOOL16
FillRgn16(HDC16
,HRGN16
,HBRUSH16
);
4304 BOOL32
FillRgn32(HDC32
,HRGN32
,HBRUSH32
);
4305 #define FillRgn WINELIB_NAME(FillRgn)
4306 BOOL16
FindClose16(HANDLE16
);
4307 BOOL32
FindClose32(HANDLE32
);
4308 #define FindClose WINELIB_NAME(FindClose)
4309 HANDLE16
FindFirstFile16(LPCSTR
,LPVOID
);
4310 HANDLE32
FindFirstFile32A(LPCSTR
,LPWIN32_FIND_DATA32A
);
4311 HANDLE32
FindFirstFile32W(LPCWSTR
,LPWIN32_FIND_DATA32W
);
4312 #define FindFirst WINELIB_NAME_AW(FindFirst)
4313 BOOL16
FindNextFile16(HANDLE16
,LPVOID
);
4314 BOOL32
FindNextFile32A(HANDLE32
,LPWIN32_FIND_DATA32A
);
4315 BOOL32
FindNextFile32W(HANDLE32
,LPWIN32_FIND_DATA32W
);
4316 #define FindNext WINELIB_NAME_AW(FindNext)
4317 HRSRC16
FindResource16(HINSTANCE16
,SEGPTR
,SEGPTR
);
4318 HRSRC32
FindResource32A(HINSTANCE32
,LPCSTR
,LPCSTR
);
4319 HRSRC32
FindResource32W(HINSTANCE32
,LPCWSTR
,LPCWSTR
);
4320 #define FindResource WINELIB_NAME_AW(FindResource)
4321 HWND16
FindWindow16(SEGPTR
,LPCSTR
);
4322 HWND32
FindWindow32A(LPCSTR
,LPCSTR
);
4323 HWND32
FindWindow32W(LPCWSTR
,LPCWSTR
);
4324 #define FindWindow WINELIB_NAME_AW(FindWindow)
4325 HWND16
FindWindowEx16(HWND16
,HWND16
,SEGPTR
,LPCSTR
);
4326 HWND32
FindWindowEx32A(HWND32
,HWND32
,LPCSTR
,LPCSTR
);
4327 HWND32
FindWindowEx32W(HWND32
,HWND32
,LPCWSTR
,LPCWSTR
);
4328 #define FindWindowEx WINELIB_NAME_AW(FindWindowEx)
4329 BOOL16
FloodFill16(HDC16
,INT16
,INT16
,COLORREF
);
4330 BOOL32
FloodFill32(HDC32
,INT32
,INT32
,COLORREF
);
4331 #define FloodFill WINELIB_NAME(FloodFill)
4332 INT16
FrameRect16(HDC16
,const RECT16
*,HBRUSH16
);
4333 INT32
FrameRect32(HDC32
,const RECT32
*,HBRUSH32
);
4334 #define FrameRect WINELIB_NAME(FrameRect)
4335 BOOL16
FrameRgn16(HDC16
,HRGN16
,HBRUSH16
,INT16
,INT16
);
4336 BOOL32
FrameRgn32(HDC32
,HRGN32
,HBRUSH32
,INT32
,INT32
);
4337 #define FrameRgn WINELIB_NAME(FrameRgn)
4338 BOOL16
FreeModule16(HMODULE16
);
4339 #define FreeModule32(handle) FreeLibrary32(handle)
4340 #define FreeModule WINELIB_NAME(FreeModule)
4341 void FreeProcInstance16(FARPROC16
);
4342 #define FreeProcInstance32(proc) /*nothing*/
4343 #define FreeProcInstance WINELIB_NAME(FreeProcInstance)
4344 BOOL16
FreeResource16(HGLOBAL16
);
4345 BOOL32
FreeResource32(HGLOBAL32
);
4346 #define FreeResource WINELIB_NAME(FreeResource)
4347 BOOL16
GetBitmapDimensionEx16(HBITMAP16
,LPSIZE16
);
4348 BOOL32
GetBitmapDimensionEx32(HBITMAP32
,LPSIZE32
);
4349 #define GetBitmapDimensionEx WINELIB_NAME(GetBitmapDimensionEx)
4350 BOOL16
GetBrushOrgEx16(HDC16
,LPPOINT16
);
4351 BOOL32
GetBrushOrgEx32(HDC32
,LPPOINT32
);
4352 #define GetBrushOrgEx WINELIB_NAME(GetBrushOrgEx)
4353 HWND16
GetCapture16(void);
4354 HWND32
GetCapture32(void);
4355 #define GetCapture WINELIB_NAME(GetCapture)
4356 UINT16
GetCaretBlinkTime16(void);
4357 UINT32
GetCaretBlinkTime32(void);
4358 #define GetCaretBlinkTime WINELIB_NAME(GetCaretBlinkTime)
4359 VOID
GetCaretPos16(LPPOINT16
);
4360 BOOL32
GetCaretPos32(LPPOINT32
);
4361 #define GetCaretPos WINELIB_NAME(GetCaretPos)
4362 BOOL16
GetClassInfo16(HINSTANCE16
,SEGPTR
,WNDCLASS16
*);
4363 BOOL32
GetClassInfo32A(HINSTANCE32
,LPCSTR
,WNDCLASS32A
*);
4364 BOOL32
GetClassInfo32W(HINSTANCE32
,LPCWSTR
,WNDCLASS32W
*);
4365 #define GetClassInfo WINELIB_NAME_AW(GetClassInfo)
4366 BOOL16
GetClassInfoEx16(HINSTANCE16
,SEGPTR
,WNDCLASSEX16
*);
4367 BOOL32
GetClassInfoEx32A(HINSTANCE32
,LPCSTR
,WNDCLASSEX32A
*);
4368 BOOL32
GetClassInfoEx32W(HINSTANCE32
,LPCWSTR
,WNDCLASSEX32W
*);
4369 #define GetClassInfoEx WINELIB_NAME_AW(GetClassInfoEx)
4370 LONG
GetClassLong16(HWND16
,INT16
);
4371 LONG
GetClassLong32A(HWND32
,INT32
);
4372 LONG
GetClassLong32W(HWND32
,INT32
);
4373 #define GetClassLong WINELIB_NAME_AW(GetClassLong)
4374 INT16
GetClassName16(HWND16
,LPSTR
,INT16
);
4375 INT32
GetClassName32A(HWND32
,LPSTR
,INT32
);
4376 INT32
GetClassName32W(HWND32
,LPWSTR
,INT32
);
4377 #define GetClassName WINELIB_NAME_AW(GetClassName)
4378 void GetClientRect16(HWND16
,LPRECT16
);
4379 void GetClientRect32(HWND32
,LPRECT32
);
4380 #define GetClientRect WINELIB_NAME(GetClientRect)
4381 INT16
GetClipBox16(HDC16
,LPRECT16
);
4382 INT32
GetClipBox32(HDC32
,LPRECT32
);
4383 #define GetClipBox WINELIB_NAME(GetClipBox)
4384 void GetClipCursor16(LPRECT16
);
4385 void GetClipCursor32(LPRECT32
);
4386 #define GetClipCursor WINELIB_NAME(GetClipCursor)
4387 INT16
GetCommState16(INT16
,LPDCB16
);
4388 BOOL32
GetCommState32(INT32
,LPDCB32
);
4389 #define GetCommState WINELIB_NAME(GetCommState)
4390 UINT16
GetCurrentDirectory16(UINT16
,LPSTR
);
4391 UINT32
GetCurrentDirectory32A(UINT32
,LPSTR
);
4392 UINT32
GetCurrentDirectory32W(UINT32
,LPWSTR
);
4393 #define GetCurrentDirectory WINELIB_NAME_AW(GetCurrentDirectory)
4394 BOOL16
GetCurrentPositionEx16(HDC16
,LPPOINT16
);
4395 BOOL32
GetCurrentPositionEx32(HDC32
,LPPOINT32
);
4396 #define GetCurrentPositionEx WINELIB_NAME(GetCurrentPositionEx)
4397 void GetCursorPos16(LPPOINT16
);
4398 void GetCursorPos32(LPPOINT32
);
4399 #define GetCursorPos WINELIB_NAME(GetCursorPos)
4400 HDC16
GetDC16(HWND16
);
4401 HDC32
GetDC32(HWND32
);
4402 #define GetDC WINELIB_NAME(GetDC)
4403 HDC16
GetDCEx16(HWND16
,HRGN16
,DWORD
);
4404 HDC32
GetDCEx32(HWND32
,HRGN32
,DWORD
);
4405 #define GetDCEx WINELIB_NAME(GetDCEx)
4406 HWND16
GetDesktopWindow16(void);
4407 HWND32
GetDesktopWindow32(void);
4408 #define GetDesktopWindow WINELIB_NAME(GetDesktopWindow)
4409 BOOL16
GetDiskFreeSpace16(LPCSTR
,LPDWORD
,LPDWORD
,LPDWORD
,LPDWORD
);
4410 BOOL32
GetDiskFreeSpace32A(LPCSTR
,LPDWORD
,LPDWORD
,LPDWORD
,LPDWORD
);
4411 BOOL32
GetDiskFreeSpace32W(LPCWSTR
,LPDWORD
,LPDWORD
,LPDWORD
,LPDWORD
);
4412 #define GetDiskFreeSpace WINELIB_NAME_AW(GetDiskFreeSpace)
4413 INT16
GetDlgItemText16(HWND16
,INT16
,SEGPTR
,UINT16
);
4414 INT32
GetDlgItemText32A(HWND32
,INT32
,LPSTR
,UINT32
);
4415 INT32
GetDlgItemText32W(HWND32
,INT32
,LPWSTR
,UINT32
);
4416 #define GetDlgItemText WINELIB_NAME_AW(GetDlgItemText)
4417 UINT16
GetDriveType16(UINT16
); /* yes, the arguments differ */
4418 UINT32
GetDriveType32A(LPCSTR
);
4419 UINT32
GetDriveType32W(LPCWSTR
);
4420 #define GetDriveType WINELIB_NAME_AW(GetDriveType)
4421 INT16
GetExpandedName16(LPCSTR
,LPSTR
);
4422 INT32
GetExpandedName32A(LPCSTR
,LPSTR
);
4423 INT32
GetExpandedName32W(LPCWSTR
,LPWSTR
);
4424 #define GetExpandedName WINELIB_NAME_AW(GetExpandedName)
4425 DWORD
GetFileAttributes16(LPCSTR
);
4426 DWORD
GetFileAttributes32A(LPCSTR
);
4427 DWORD
GetFileAttributes32W(LPCWSTR
);
4428 #define GetFileAttributes WINELIB_NAME_AW(GetFileAttributes)
4429 DWORD
GetFileVersionInfoSize16(LPCSTR
,LPDWORD
);
4430 DWORD
GetFileVersionInfoSize32A(LPCSTR
,LPDWORD
);
4431 DWORD
GetFileVersionInfoSize32W(LPCWSTR
,LPDWORD
);
4432 #define GetFileVersionInfoSize WINELIB_NAME_AW(GetFileVersionInfoSize)
4433 DWORD
GetFileVersionInfo16(LPCSTR
,DWORD
,DWORD
,LPVOID
);
4434 DWORD
GetFileVersionInfo32A(LPCSTR
,DWORD
,DWORD
,LPVOID
);
4435 DWORD
GetFileVersionInfo32W(LPCWSTR
,DWORD
,DWORD
,LPVOID
);
4436 #define GetFileVersionInfo WINELIB_NAME_AW(GetFileVersionInfo)
4437 HWND16
GetFocus16(void);
4438 HWND32
GetFocus32(void);
4439 #define GetFocus WINELIB_NAME(GetFocus)
4440 UINT16
GetInternalWindowPos16(HWND16
,LPRECT16
,LPPOINT16
);
4441 UINT32
GetInternalWindowPos32(HWND32
,LPRECT32
,LPPOINT32
);
4442 #define GetInternalWindowPos WINELIB_NAME(GetInternalWindowPos)
4443 UINT32
GetLogicalDriveStrings32A(UINT32
,LPSTR
);
4444 UINT32
GetLogicalDriveStrings32W(UINT32
,LPWSTR
);
4445 #define GetLogicalDriveStrings WINELIB_NAME_AW(GetLogicalDriveStrings)
4446 HWND16
GetNextDlgGroupItem16(HWND16
,HWND16
,BOOL16
);
4447 HWND32
GetNextDlgGroupItem32(HWND32
,HWND32
,BOOL32
);
4448 #define GetNextDlgGroupItem WINELIB_NAME(GetNextDlgGroupItem)
4449 HWND16
GetNextDlgTabItem16(HWND16
,HWND16
,BOOL16
);
4450 HWND32
GetNextDlgTabItem32(HWND32
,HWND32
,BOOL32
);
4451 #define GetNextDlgTabItem WINELIB_NAME(GetNextDlgTabItem)
4452 INT16
GetObject16(HANDLE16
,INT16
,LPVOID
);
4453 INT32
GetObject32A(HANDLE32
,INT32
,LPVOID
);
4454 INT32
GetObject32W(HANDLE32
,INT32
,LPVOID
);
4455 #define GetObject WINELIB_NAME_AW(GetObject)
4456 HWND16
GetParent16(HWND16
);
4457 HWND32
GetParent32(HWND32
);
4458 #define GetParent WINELIB_NAME(GetParent)
4459 COLORREF
GetPixel16(HDC16
,INT16
,INT16
);
4460 COLORREF
GetPixel32(HDC32
,INT32
,INT32
);
4461 #define GetPixel WINELIB_NAME(GetPixel)
4462 FARPROC16
GetProcAddress16(HMODULE16
,SEGPTR
);
4463 FARPROC32
GetProcAddress32(HMODULE32
,LPCSTR
);
4464 #define GetProcAddress WINELIB_NAME(GetProcAddress)
4465 HANDLE16
GetProp16(HWND16
,LPCSTR
);
4466 HANDLE32
GetProp32A(HWND32
,LPCSTR
);
4467 HANDLE32
GetProp32W(HWND32
,LPCWSTR
);
4468 #define GetProp WINELIB_NAME_AW(GetProp)
4469 INT16
GetRgnBox16(HRGN16
,LPRECT16
);
4470 INT32
GetRgnBox32(HRGN32
,LPRECT32
);
4471 #define GetRgnBox WINELIB_NAME(GetRgnBox)
4472 BOOL16
GetScrollInfo16(HWND16
,INT16
,LPSCROLLINFO
);
4473 BOOL32
GetScrollInfo32(HWND32
,INT32
,LPSCROLLINFO
);
4474 #define GetScrollInfo WINELIB_NAME(GetScrollInfo)
4475 INT16
GetScrollPos16(HWND16
,INT16
);
4476 INT32
GetScrollPos32(HWND32
,INT32
);
4477 #define GetScrollPos WINELIB_NAME(GetScrollPos)
4478 BOOL16
GetScrollRange16(HWND16
,INT16
,LPINT16
,LPINT16
);
4479 BOOL32
GetScrollRange32(HWND32
,INT32
,LPINT32
,LPINT32
);
4480 #define GetScrollRange WINELIB_NAME(GetScrollRange)
4481 HGDIOBJ16
GetStockObject16(INT16
);
4482 HGDIOBJ32
GetStockObject32(INT32
);
4483 #define GetStockObject WINELIB_NAME(GetStockObject)
4484 HBRUSH16
GetSysColorBrush16(INT16
);
4485 HBRUSH32
GetSysColorBrush32(INT32
);
4486 #define GetSysColorBrush WINELIB_NAME(GetSysColorBrush)
4487 HWND16
GetSysModalWindow16(void);
4488 #define GetSysModalWindow32() ((HWND32)0)
4489 #define GetSysModalWindow WINELIB_NAME(GetSysModalWindow)
4490 UINT16
GetSystemDirectory16(LPSTR
,UINT16
);
4491 UINT32
GetSystemDirectory32A(LPSTR
,UINT32
);
4492 UINT32
GetSystemDirectory32W(LPWSTR
,UINT32
);
4493 #define GetSystemDirectory WINELIB_NAME_AW(GetSystemDirectory)
4494 UINT16
GetTempFileName16(BYTE
,LPCSTR
,UINT16
,LPSTR
);
4495 UINT32
GetTempFileName32A(LPCSTR
,LPCSTR
,UINT32
,LPSTR
);
4496 UINT32
GetTempFileName32W(LPCWSTR
,LPCWSTR
,UINT32
,LPWSTR
);
4497 #define GetTempFileName WINELIB_NAME_AW(GetTempFileName)
4498 UINT32
GetTempPath32A(UINT32
,LPSTR
);
4499 UINT32
GetTempPath32W(UINT32
,LPWSTR
);
4500 #define GetTempPath WINELIB_NAME_AW(GetTempPath)
4501 BOOL16
GetTextExtentPoint16(HDC16
,LPCSTR
,INT16
,LPSIZE16
);
4502 BOOL32
GetTextExtentPoint32A(HDC32
,LPCSTR
,INT32
,LPSIZE32
);
4503 BOOL32
GetTextExtentPoint32W(HDC32
,LPCWSTR
,INT32
,LPSIZE32
);
4504 #define GetTextExtentPoint WINELIB_NAME_AW(GetTextExtentPoint)
4505 BOOL16
GetTextMetrics16(HDC16
,LPTEXTMETRIC16
);
4506 BOOL32
GetTextMetrics32A(HDC32
,LPTEXTMETRIC32A
);
4507 BOOL32
GetTextMetrics32W(HDC32
,LPTEXTMETRIC32W
);
4508 #define GetTextMetrics WINELIB_NAME_AW(GetTextMetrics)
4509 BOOL16
GetUpdateRect16(HWND16
,LPRECT16
,BOOL16
);
4510 BOOL32
GetUpdateRect32(HWND32
,LPRECT32
,BOOL32
);
4511 #define GetUpdateRect WINELIB_NAME(GetUpdateRect)
4512 LONG
GetVersion16(void);
4513 LONG
GetVersion32(void);
4514 #define GetVersion WINELIB_NAME(GetVersion)
4515 BOOL16
GetViewportExtEx16(HDC16
,LPPOINT16
);
4516 BOOL32
GetViewportExtEx32(HDC32
,LPPOINT32
);
4517 #define GetViewportExtEx WINELIB_NAME(GetViewportExtEx)
4518 BOOL16
GetViewportOrgEx16(HDC16
,LPPOINT16
);
4519 BOOL32
GetViewportOrgEx32(HDC32
,LPPOINT32
);
4520 #define GetViewportOrgEx WINELIB_NAME(GetViewportOrgEx)
4521 BOOL32
GetVolumeInformation32A(LPCSTR
,LPSTR
,DWORD
,LPDWORD
,LPDWORD
,LPDWORD
,LPSTR
,DWORD
);
4522 BOOL32
GetVolumeInformation32W(LPCWSTR
,LPWSTR
,DWORD
,LPDWORD
,LPDWORD
,LPDWORD
,LPWSTR
,DWORD
);
4523 #define GetVolumeInformation WINELIB_NAME_AW(GetVolumeInformation)
4524 HDC16
GetWindowDC16(HWND16
);
4525 HDC32
GetWindowDC32(HWND32
);
4526 #define GetWindowDC WINELIB_NAME(GetWindowDC)
4527 BOOL16
GetWindowExtEx16(HDC16
,LPPOINT16
);
4528 BOOL32
GetWindowExtEx32(HDC32
,LPPOINT32
);
4529 #define GetWindowExtEx WINELIB_NAME(GetWindowExtEx)
4530 LONG
GetWindowLong16(HWND16
,INT16
);
4531 LONG
GetWindowLong32A(HWND32
,INT32
);
4532 LONG
GetWindowLong32W(HWND32
,INT32
);
4533 #define GetWindowLong WINELIB_NAME_AW(GetWindowLong)
4534 BOOL16
GetWindowOrgEx16(HDC16
,LPPOINT16
);
4535 BOOL32
GetWindowOrgEx32(HDC32
,LPPOINT32
);
4536 #define GetWindowOrgEx WINELIB_NAME(GetWindowOrgEx)
4537 BOOL16
GetWindowPlacement16(HWND16
,LPWINDOWPLACEMENT16
);
4538 BOOL32
GetWindowPlacement32(HWND32
,LPWINDOWPLACEMENT32
);
4539 #define GetWindowPlacement WINELIB_NAME(GetWindowPlacement)
4540 void GetWindowRect16(HWND16
,LPRECT16
);
4541 void GetWindowRect32(HWND32
,LPRECT32
);
4542 #define GetWindowRect WINELIB_NAME(GetWindowRect)
4543 UINT16
GetWindowsDirectory16(LPSTR
,UINT16
);
4544 UINT32
GetWindowsDirectory32A(LPSTR
,UINT32
);
4545 UINT32
GetWindowsDirectory32W(LPWSTR
,UINT32
);
4546 #define GetWindowsDirectory WINELIB_NAME_AW(GetWindowsDirectory)
4547 HTASK16
GetWindowTask16(HWND16
);
4548 #define GetWindowTask32(hwnd) ((HTASK32)GetWindowThreadProcessId(hwnd,NULL))
4549 #define GetWindowTask WINELIB_NAME(GetWindowTask)
4550 INT16
GetWindowText16(HWND16
,SEGPTR
,INT16
);
4551 INT32
GetWindowText32A(HWND32
,LPSTR
,INT32
);
4552 INT32
GetWindowText32W(HWND32
,LPWSTR
,INT32
);
4553 #define GetWindowText WINELIB_NAME_AW(GetWindowText)
4554 ATOM
GlobalAddAtom16(SEGPTR
);
4555 ATOM
GlobalAddAtom32A(LPCSTR
);
4556 ATOM
GlobalAddAtom32W(LPCWSTR
);
4557 #define GlobalAddAtom WINELIB_NAME_AW(GlobalAddAtom)
4558 HGLOBAL16
GlobalAlloc16(UINT16
,DWORD
);
4559 HGLOBAL32
GlobalAlloc32(UINT32
,DWORD
);
4560 #define GlobalAlloc WINELIB_NAME(GlobalAlloc)
4561 DWORD
GlobalCompact16(DWORD
);
4562 DWORD
GlobalCompact32(DWORD
);
4563 #define GlobalCompact WINELIB_NAME(GlobalCompact)
4564 UINT16
GlobalFlags16(HGLOBAL16
);
4565 UINT32
GlobalFlags32(HGLOBAL32
);
4566 #define GlobalFlags WINELIB_NAME(GlobalFlags)
4567 ATOM
GlobalFindAtom16(SEGPTR
);
4568 ATOM
GlobalFindAtom32A(LPCSTR
);
4569 ATOM
GlobalFindAtom32W(LPCWSTR
);
4570 #define GlobalFindAtom WINELIB_NAME_AW(GlobalFindAtom)
4571 HGLOBAL16
GlobalFree16(HGLOBAL16
);
4572 HGLOBAL32
GlobalFree32(HGLOBAL32
);
4573 #define GlobalFree WINELIB_NAME(GlobalFree)
4574 UINT16
GlobalGetAtomName16(ATOM
,LPSTR
,INT16
);
4575 UINT32
GlobalGetAtomName32A(ATOM
,LPSTR
,INT32
);
4576 UINT32
GlobalGetAtomName32W(ATOM
,LPWSTR
,INT32
);
4577 #define GlobalGetAtomName WINELIB_NAME_AW(GlobalGetAtomName)
4578 DWORD
GlobalHandle16(WORD
);
4579 HGLOBAL32
GlobalHandle32(LPCVOID
);
4580 #define GlobalHandle WINELIB_NAME(GlobalHandle)
4581 LPVOID
GlobalLock16(HGLOBAL16
);
4582 LPVOID
GlobalLock32(HGLOBAL32
);
4583 #define GlobalLock WINELIB_NAME(GlobalLock)
4584 HGLOBAL16
GlobalReAlloc16(HGLOBAL16
,DWORD
,UINT16
);
4585 HGLOBAL32
GlobalReAlloc32(HGLOBAL32
,DWORD
,UINT32
);
4586 #define GlobalReAlloc WINELIB_NAME(GlobalReAlloc)
4587 DWORD
GlobalSize16(HGLOBAL16
);
4588 DWORD
GlobalSize32(HGLOBAL32
);
4589 #define GlobalSize WINELIB_NAME(GlobalSize)
4590 BOOL16
GlobalUnlock16(HGLOBAL16
);
4591 BOOL32
GlobalUnlock32(HGLOBAL32
);
4592 #define GlobalUnlock WINELIB_NAME(GlobalUnlock)
4593 void InflateRect16(LPRECT16
,INT16
,INT16
);
4594 void InflateRect32(LPRECT32
,INT32
,INT32
);
4595 #define InflateRect WINELIB_NAME(InflateRect)
4596 BOOL16
InsertMenu16(HMENU16
,UINT16
,UINT16
,UINT16
,SEGPTR
);
4597 BOOL32
InsertMenu32A(HMENU32
,UINT32
,UINT32
,UINT32
,LPCSTR
);
4598 BOOL32
InsertMenu32W(HMENU32
,UINT32
,UINT32
,UINT32
,LPCWSTR
);
4599 #define InsertMenu WINELIB_NAME_AW(InsertMenu)
4600 INT16
IntersectClipRect16(HDC16
,INT16
,INT16
,INT16
,INT16
);
4601 INT32
IntersectClipRect32(HDC32
,INT32
,INT32
,INT32
,INT32
);
4602 #define IntersectClipRect WINELIB_NAME(IntersectClipRect)
4603 BOOL16
IntersectRect16(LPRECT16
,const RECT16
*,const RECT16
*);
4604 BOOL32
IntersectRect32(LPRECT32
,const RECT32
*,const RECT32
*);
4605 #define IntersectRect WINELIB_NAME(IntersectRect)
4606 void InvalidateRect16(HWND16
,const RECT16
*,BOOL16
);
4607 void InvalidateRect32(HWND32
,const RECT32
*,BOOL32
);
4608 #define InvalidateRect WINELIB_NAME(InvalidateRect)
4609 void InvertRect16(HDC16
,const RECT16
*);
4610 void InvertRect32(HDC32
,const RECT32
*);
4611 #define InvertRect WINELIB_NAME(InvertRect)
4612 BOOL16
InvertRgn16(HDC16
,HRGN16
);
4613 BOOL32
InvertRgn32(HDC32
,HRGN32
);
4614 #define InvertRgn WINELIB_NAME(InvertRgn)
4615 BOOL16
IsBadCodePtr16(SEGPTR
);
4616 BOOL32
IsBadCodePtr32(FARPROC32
);
4617 #define IsBadCodePtr WINELIB_NAME(IsBadCodePtr)
4618 BOOL16
IsBadHugeReadPtr16(SEGPTR
,DWORD
);
4619 BOOL32
IsBadHugeReadPtr32(LPCVOID
,UINT32
);
4620 #define IsBadHugeReadPtr WINELIB_NAME(IsBadHugeReadPtr)
4621 BOOL16
IsBadHugeWritePtr16(SEGPTR
,DWORD
);
4622 BOOL32
IsBadHugeWritePtr32(LPCVOID
,UINT32
);
4623 #define IsBadHugeWritePtr WINELIB_NAME(IsBadHugeWritePtr)
4624 BOOL16
IsBadReadPtr16(SEGPTR
,UINT16
);
4625 BOOL32
IsBadReadPtr32(LPCVOID
,UINT32
);
4626 #define IsBadReadPtr WINELIB_NAME(IsBadReadPtr)
4627 BOOL16
IsBadStringPtr16(SEGPTR
,UINT16
);
4628 BOOL32
IsBadStringPtr32A(LPCSTR
,UINT32
);
4629 BOOL32
IsBadStringPtr32W(LPCWSTR
,UINT32
);
4630 #define IsBadStringPtr WINELIB_NAME_AW(IsBadStringPtr)
4631 BOOL16
IsBadWritePtr16(SEGPTR
,UINT16
);
4632 BOOL32
IsBadWritePtr32(LPVOID
,UINT32
);
4633 #define IsBadWritePtr WINELIB_NAME(IsBadWritePtr)
4634 BOOL16
IsCharAlpha16(CHAR
);
4635 BOOL32
IsCharAlpha32A(CHAR
);
4636 BOOL32
IsCharAlpha32W(WCHAR
);
4637 #define IsCharAlpha WINELIB_NAME_AW(IsCharAlpha)
4638 BOOL16
IsCharAlphaNumeric16(CHAR
);
4639 BOOL32
IsCharAlphaNumeric32A(CHAR
);
4640 BOOL32
IsCharAlphaNumeric32W(WCHAR
);
4641 #define IsCharAlphaNumeric WINELIB_NAME_AW(IsCharAlphaNumeric)
4642 BOOL16
IsCharLower16(CHAR
);
4643 BOOL32
IsCharLower32A(CHAR
);
4644 BOOL32
IsCharLower32W(WCHAR
);
4645 #define IsCharLower WINELIB_NAME_AW(IsCharLower)
4646 BOOL16
IsCharUpper16(CHAR
);
4647 BOOL32
IsCharUpper32A(CHAR
);
4648 BOOL32
IsCharUpper32W(WCHAR
);
4649 #define IsCharUpper WINELIB_NAME_AW(IsCharUpper)
4650 BOOL16
IsRectEmpty16(const RECT16
*);
4651 BOOL32
IsRectEmpty32(const RECT32
*);
4652 #define IsRectEmpty WINELIB_NAME(IsRectEmpty)
4653 BOOL16
KillSystemTimer16(HWND16
,UINT16
);
4654 BOOL32
KillSystemTimer32(HWND32
,UINT32
);
4655 #define KillSystemTimer WINELIB_NAME(KillSystemTimer)
4656 BOOL16
KillTimer16(HWND16
,UINT16
);
4657 BOOL32
KillTimer32(HWND32
,UINT32
);
4658 #define KillTimer WINELIB_NAME(KillTimer)
4659 HFILE
LZOpenFile16(LPCSTR
,LPOFSTRUCT
,UINT16
);
4660 HFILE
LZOpenFile32A(LPCSTR
,LPOFSTRUCT
,UINT32
);
4661 HFILE
LZOpenFile32W(LPCWSTR
,LPOFSTRUCT
,UINT32
);
4662 #define LZOpenFile WINELIB_NAME_AW(LZOpenFile)
4663 INT16
LZRead16(HFILE
,SEGPTR
,UINT16
);
4664 INT32
LZRead32(HFILE
,LPVOID
,UINT32
);
4665 #define LZRead WINELIB_NAME(LZRead)
4666 VOID
LineDDA16(INT16
,INT16
,INT16
,INT16
,LINEDDAPROC16
,LPARAM
);
4667 BOOL32
LineDDA32(INT32
,INT32
,INT32
,INT32
,LINEDDAPROC32
,LPARAM
);
4668 #define LineDDA WINELIB_NAME(LineDDA)
4669 BOOL16
LineTo16(HDC16
,INT16
,INT16
);
4670 BOOL32
LineTo32(HDC32
,INT32
,INT32
);
4671 #define LineTo WINELIB_NAME(LineTo)
4672 HACCEL16
LoadAccelerators16(HINSTANCE16
,SEGPTR
);
4673 HACCEL32
LoadAccelerators32A(HINSTANCE32
,LPCSTR
);
4674 HACCEL32
LoadAccelerators32W(HINSTANCE32
,LPCWSTR
);
4675 #define LoadAccelerators WINELIB_NAME_AW(LoadAccelerators)
4676 HBITMAP16
LoadBitmap16(HANDLE16
,SEGPTR
);
4677 HBITMAP32
LoadBitmap32A(HANDLE32
,LPCSTR
);
4678 HBITMAP32
LoadBitmap32W(HANDLE32
,LPCWSTR
);
4679 #define LoadBitmap WINELIB_NAME(LoadBitmap)
4680 HCURSOR16
LoadCursor16(HINSTANCE16
,SEGPTR
);
4681 HCURSOR32
LoadCursor32A(HINSTANCE32
,LPCSTR
);
4682 HCURSOR32
LoadCursor32W(HINSTANCE32
,LPCWSTR
);
4683 #define LoadCursor WINELIB_NAME_AW(LoadCursor)
4684 HICON16
LoadIcon16(HINSTANCE16
,SEGPTR
);
4685 HICON32
LoadIcon32A(HINSTANCE32
,LPCSTR
);
4686 HICON32
LoadIcon32W(HINSTANCE32
,LPCWSTR
);
4687 #define LoadIcon WINELIB_NAME_AW(LoadIcon)
4688 HMENU16
LoadMenu16(HINSTANCE16
,SEGPTR
);
4689 HMENU32
LoadMenu32A(HINSTANCE32
,LPCSTR
);
4690 HMENU32
LoadMenu32W(HINSTANCE32
,LPCWSTR
);
4691 #define LoadMenu WINELIB_NAME_AW(LoadMenu)
4692 HMENU16
LoadMenuIndirect16(LPCVOID
);
4693 HMENU32
LoadMenuIndirect32A(LPCVOID
);
4694 HMENU32
LoadMenuIndirect32W(LPCVOID
);
4695 #define LoadMenuIndirect WINELIB_NAME_AW(LoadMenuIndirect)
4696 HGLOBAL16
LoadResource16(HINSTANCE16
,HRSRC16
);
4697 HGLOBAL32
LoadResource32(HINSTANCE32
,HRSRC32
);
4698 #define LoadResource WINELIB_NAME(LoadResource)
4699 INT16
LoadString16(HINSTANCE16
,UINT16
,LPSTR
,INT16
);
4700 INT32
LoadString32A(HINSTANCE32
,UINT32
,LPSTR
,INT32
);
4701 INT32
LoadString32W(HINSTANCE32
,UINT32
,LPWSTR
,INT32
);
4702 #define LoadString WINELIB_NAME_AW(LoadString)
4703 HLOCAL16
LocalAlloc16(UINT16
,WORD
);
4704 HLOCAL32
LocalAlloc32(UINT32
,DWORD
);
4705 #define LocalAlloc WINELIB_NAME(LocalAlloc)
4706 UINT16
LocalCompact16(UINT16
);
4707 UINT32
LocalCompact32(UINT32
);
4708 #define LocalCompact WINELIB_NAME(LocalCompact)
4709 UINT16
LocalFlags16(HLOCAL16
);
4710 UINT32
LocalFlags32(HLOCAL32
);
4711 #define LocalFlags WINELIB_NAME(LocalFlags)
4712 HLOCAL16
LocalFree16(HLOCAL16
);
4713 HLOCAL32
LocalFree32(HLOCAL32
);
4714 #define LocalFree WINELIB_NAME(LocalFree)
4715 HLOCAL16
LocalHandle16(WORD
);
4716 HLOCAL32
LocalHandle32(LPCVOID
);
4717 #define LocalHandle WINELIB_NAME(LocalHandle)
4718 SEGPTR
LocalLock16(HLOCAL16
);
4719 LPVOID
LocalLock32(HLOCAL32
);
4720 #define LocalLock WINELIB_NAME(LocalLock)
4721 HLOCAL16
LocalReAlloc16(HLOCAL16
,WORD
,UINT16
);
4722 HLOCAL32
LocalReAlloc32(HLOCAL32
,DWORD
,UINT32
);
4723 #define LocalReAlloc WINELIB_NAME(LocalReAlloc)
4724 UINT16
LocalShrink16(HGLOBAL16
,UINT16
);
4725 UINT32
LocalShrink32(HGLOBAL32
,UINT32
);
4726 #define LocalShrink WINELIB_NAME(LocalShrink)
4727 UINT16
LocalSize16(HLOCAL16
);
4728 UINT32
LocalSize32(HLOCAL32
);
4729 #define LocalSize WINELIB_NAME(LocalSize)
4730 BOOL16
LocalUnlock16(HLOCAL16
);
4731 BOOL32
LocalUnlock32(HLOCAL32
);
4732 #define LocalUnlock WINELIB_NAME(LocalUnlock)
4733 LPVOID
LockResource16(HGLOBAL16
);
4734 LPVOID
LockResource32(HGLOBAL32
);
4735 #define LockResource WINELIB_NAME(LockResource)
4736 HGLOBAL16
LockSegment16(HGLOBAL16
);
4737 #define LockSegment32(handle) GlobalFix((HANDLE32)(handle))
4738 #define LockSegment WINELIB_NAME(LockSegment)
4739 BOOL16
LPtoDP16(HDC16
,LPPOINT16
,INT16
);
4740 BOOL32
LPtoDP32(HDC32
,LPPOINT32
,INT32
);
4741 #define LPtoDP WINELIB_NAME(LPtoDP)
4742 FARPROC16
MakeProcInstance16(FARPROC16
,HANDLE16
);
4743 #define MakeProcInstance32(proc,inst) (proc)
4744 #define MakeProcInstance WINELIB_NAME(MakeProcInstance)
4745 void MapDialogRect16(HWND16
,LPRECT16
);
4746 void MapDialogRect32(HWND32
,LPRECT32
);
4747 #define MapDialogRect WINELIB_NAME(MapDialogRect)
4748 void MapWindowPoints16(HWND16
,HWND16
,LPPOINT16
,UINT16
);
4749 void MapWindowPoints32(HWND32
,HWND32
,LPPOINT32
,UINT32
);
4750 #define MapWindowPoints WINELIB_NAME(MapWindowPoints)
4751 BOOL16
ModifyMenu16(HMENU16
,UINT16
,UINT16
,UINT16
,SEGPTR
);
4752 BOOL32
ModifyMenu32A(HMENU32
,UINT32
,UINT32
,UINT32
,LPCSTR
);
4753 BOOL32
ModifyMenu32W(HMENU32
,UINT32
,UINT32
,UINT32
,LPCWSTR
);
4754 #define ModifyMenu WINELIB_NAME_AW(ModifyMenu)
4755 BOOL16
MoveToEx16(HDC16
,INT16
,INT16
,LPPOINT16
);
4756 BOOL32
MoveToEx32(HDC32
,INT32
,INT32
,LPPOINT32
);
4757 #define MoveToEx WINELIB_NAME(MoveToEx)
4758 INT16
MulDiv16(INT16
,INT16
,INT16
);
4759 INT32
MulDiv32(INT32
,INT32
,INT32
);
4760 #define MulDiv WINELIB_NAME(MulDiv)
4761 BOOL32
OemToChar32A(LPSTR
,LPSTR
);
4762 BOOL32
OemToChar32W(LPCSTR
,LPWSTR
);
4763 #define OemToChar WINELIB_NAME_AW(OemToChar)
4764 BOOL32
OemToCharBuff32A(LPSTR
,LPSTR
,DWORD
);
4765 BOOL32
OemToCharBuff32W(LPCSTR
,LPWSTR
,DWORD
);
4766 #define OemToCharBuff WINELIB_NAME_AW(OemToCharBuff)
4767 INT16
OffsetClipRgn16(HDC16
,INT16
,INT16
);
4768 INT32
OffsetClipRgn32(HDC32
,INT32
,INT32
);
4769 #define OffsetClipRgn WINELIB_NAME(OffsetClipRgn)
4770 void OffsetRect16(LPRECT16
,INT16
,INT16
);
4771 void OffsetRect32(LPRECT32
,INT32
,INT32
);
4772 #define OffsetRect WINELIB_NAME(OffsetRect)
4773 INT16
OffsetRgn16(HRGN16
,INT16
,INT16
);
4774 INT32
OffsetRgn32(HRGN32
,INT32
,INT32
);
4775 #define OffsetRgn WINELIB_NAME(OffsetRgn)
4776 BOOL16
OffsetViewportOrgEx16(HDC16
,INT16
,INT16
,LPPOINT16
);
4777 BOOL32
OffsetViewportOrgEx32(HDC32
,INT32
,INT32
,LPPOINT32
);
4778 #define OffsetViewportOrgEx WINELIB_NAME(OffsetViewportOrgEx)
4779 BOOL16
OffsetWindowOrgEx16(HDC16
,INT16
,INT16
,LPPOINT16
);
4780 BOOL32
OffsetWindowOrgEx32(HDC32
,INT32
,INT32
,LPPOINT32
);
4781 #define OffsetWindowOrgEx WINELIB_NAME(OffsetWindowOrgEx)
4782 BOOL16
PaintRgn16(HDC16
,HRGN16
);
4783 BOOL32
PaintRgn32(HDC32
,HRGN32
);
4784 #define PaintRgn WINELIB_NAME(PaintRgn)
4785 BOOL16
PatBlt16(HDC16
,INT16
,INT16
,INT16
,INT16
,DWORD
);
4786 BOOL32
PatBlt32(HDC32
,INT32
,INT32
,INT32
,INT32
,DWORD
);
4787 #define PatBlt WINELIB_NAME(PatBlt)
4788 BOOL16
PeekMessage16(LPMSG16
,HWND16
,UINT16
,UINT16
,UINT16
);
4789 BOOL32
PeekMessage32A(LPMSG32
,HWND32
,UINT32
,UINT32
,UINT32
);
4790 BOOL32
PeekMessage32W(LPMSG32
,HWND32
,UINT32
,UINT32
,UINT32
);
4791 #define PeekMessage WINELIB_NAME_AW(PeekMessage)
4792 BOOL16
Pie16(HDC16
,INT16
,INT16
,INT16
,INT16
,INT16
,INT16
,INT16
,INT16
);
4793 BOOL32
Pie32(HDC32
,INT32
,INT32
,INT32
,INT32
,INT32
,INT32
,INT32
,INT32
);
4794 #define Pie WINELIB_NAME(Pie)
4795 BOOL16
PolyPolygon16(HDC16
,LPPOINT16
,LPINT16
,UINT16
);
4796 BOOL32
PolyPolygon32(HDC32
,LPPOINT32
,LPINT32
,UINT32
);
4797 #define PolyPolygon WINELIB_NAME(PolyPolygon)
4798 BOOL16
Polygon16(HDC16
,LPPOINT16
,INT16
);
4799 BOOL32
Polygon32(HDC32
,LPPOINT32
,INT32
);
4800 #define Polygon WINELIB_NAME(Polygon)
4801 BOOL16
Polyline16(HDC16
,LPPOINT16
,INT16
);
4802 BOOL32
Polyline32(HDC32
,LPPOINT32
,INT32
);
4803 #define Polyline WINELIB_NAME(Polyline)
4804 BOOL16
PostAppMessage16(HTASK16
,UINT16
,WPARAM16
,LPARAM
);
4805 #define PostAppMessage32A(thread,msg,wparam,lparam) \
4806 PostThreadMessage32A((DWORD)(thread),msg,wparam,lparam)
4807 #define PostAppMessage32W(thread,msg,wparam,lparam) \
4808 PostThreadMessage32W((DWORD)(thread),msg,wparam,lparam)
4809 #define PostAppMessage WINELIB_NAME_AW(PostAppMessage)
4810 BOOL16
PtInRect16(const RECT16
*,POINT16
);
4811 BOOL32
PtInRect32(const RECT32
*,POINT32
);
4812 #define PtInRect WINELIB_NAME(PtInRect)
4813 BOOL16
PtInRegion16(HRGN16
,INT16
,INT16
);
4814 BOOL32
PtInRegion32(HRGN32
,INT32
,INT32
);
4815 #define PtInRegion WINELIB_NAME(PtInRegion)
4816 BOOL16
PtVisible16(HDC16
,INT16
,INT16
);
4817 BOOL32
PtVisible32(HDC32
,INT32
,INT32
);
4818 #define PtVisible WINELIB_NAME(PtVisible)
4819 BOOL16
Rectangle16(HDC16
,INT16
,INT16
,INT16
,INT16
);
4820 BOOL32
Rectangle32(HDC32
,INT32
,INT32
,INT32
,INT32
);
4821 #define Rectangle WINELIB_NAME(Rectangle)
4822 BOOL16
RectInRegion16(HRGN16
,const RECT16
*);
4823 BOOL32
RectInRegion32(HRGN32
,const RECT32
*);
4824 #define RectInRegion WINELIB_NAME(RectInRegion)
4825 BOOL16
RectVisible16(HDC16
,LPRECT16
);
4826 BOOL32
RectVisible32(HDC32
,LPRECT32
);
4827 #define RectVisible WINELIB_NAME(RectVisible)
4828 BOOL16
RedrawWindow16(HWND16
,const RECT16
*,HRGN16
,UINT16
);
4829 BOOL32
RedrawWindow32(HWND32
,const RECT32
*,HRGN32
,UINT32
);
4830 #define RedrawWindow WINELIB_NAME(RedrawWindow)
4831 DWORD
RegCreateKey16(HKEY
,LPCSTR
,LPHKEY
);
4832 DWORD
RegCreateKey32A(HKEY
,LPCSTR
,LPHKEY
);
4833 DWORD
RegCreateKey32W(HKEY
,LPCWSTR
,LPHKEY
);
4834 #define RegCreateKey WINELIB_NAME_AW(RegCreateKey)
4835 DWORD
RegDeleteKey16(HKEY
,LPCSTR
);
4836 DWORD
RegDeleteKey32A(HKEY
,LPCSTR
);
4837 DWORD
RegDeleteKey32W(HKEY
,LPWSTR
);
4838 #define RegDeleteKey WINELIB_NAME_AW(RegDeleteKey)
4839 DWORD
RegDeleteValue16(HKEY
,LPSTR
);
4840 DWORD
RegDeleteValue32A(HKEY
,LPSTR
);
4841 DWORD
RegDeleteValue32W(HKEY
,LPWSTR
);
4842 #define RegDeleteValue WINELIB_NAME_AW(RegDeleteValue)
4843 DWORD
RegEnumKey16(HKEY
,DWORD
,LPSTR
,DWORD
);
4844 DWORD
RegEnumKey32A(HKEY
,DWORD
,LPSTR
,DWORD
);
4845 DWORD
RegEnumKey32W(HKEY
,DWORD
,LPWSTR
,DWORD
);
4846 #define RegEnumKey WINELIB_NAME_AW(RegEnumKey)
4847 DWORD
RegEnumValue16(HKEY
,DWORD
,LPSTR
,LPDWORD
,LPDWORD
,LPDWORD
,LPBYTE
,LPDWORD
);
4848 DWORD
RegEnumValue32A(HKEY
,DWORD
,LPSTR
,LPDWORD
,LPDWORD
,LPDWORD
,LPBYTE
,LPDWORD
);
4849 DWORD
RegEnumValue32W(HKEY
,DWORD
,LPWSTR
,LPDWORD
,LPDWORD
,LPDWORD
,LPBYTE
,LPDWORD
);
4850 #define RegEnumValue WINELIB_NAME_AW(RegEnumValue)
4851 ATOM
RegisterClass16(const WNDCLASS16
*);
4852 ATOM
RegisterClass32A(const WNDCLASS32A
*);
4853 ATOM
RegisterClass32W(const WNDCLASS32W
*);
4854 #define RegisterClass WINELIB_NAME_AW(RegisterClass)
4855 ATOM
RegisterClassEx16(const WNDCLASSEX16
*);
4856 ATOM
RegisterClassEx32A(const WNDCLASSEX32A
*);
4857 ATOM
RegisterClassEx32W(const WNDCLASSEX32W
*);
4858 #define RegisterClassEx WINELIB_NAME_AW(RegisterClassEx)
4859 WORD
RegisterWindowMessage16(SEGPTR
);
4860 WORD
RegisterWindowMessage32A(LPCSTR
);
4861 WORD
RegisterWindowMessage32W(LPCWSTR
);
4862 #define RegisterWindowMessage WINELIB_NAME_AW(RegisterWindowMessage)
4863 DWORD
RegOpenKey16(HKEY
,LPCSTR
,LPHKEY
);
4864 DWORD
RegOpenKey32A(HKEY
,LPCSTR
,LPHKEY
);
4865 DWORD
RegOpenKey32W(HKEY
,LPCWSTR
,LPHKEY
);
4866 #define RegOpenKey WINELIB_NAME_AW(RegOpenKey)
4867 DWORD
RegQueryValue16(HKEY
,LPSTR
,LPSTR
,LPDWORD
);
4868 DWORD
RegQueryValue32A(HKEY
,LPSTR
,LPSTR
,LPDWORD
);
4869 DWORD
RegQueryValue32W(HKEY
,LPWSTR
,LPWSTR
,LPDWORD
);
4870 #define RegQueryValue WINELIB_NAME_AW(RegQueryValue)
4871 DWORD
RegQueryValueEx16(HKEY
,LPSTR
,LPDWORD
,LPDWORD
,LPBYTE
,LPDWORD
);
4872 DWORD
RegQueryValueEx32A(HKEY
,LPSTR
,LPDWORD
,LPDWORD
,LPBYTE
,LPDWORD
);
4873 DWORD
RegQueryValueEx32W(HKEY
,LPWSTR
,LPDWORD
,LPDWORD
,LPBYTE
,LPDWORD
);
4874 #define RegQueryValueEx WINELIB_NAME_AW(RegQueryValueEx)
4875 DWORD
RegSetValue16(HKEY
,LPCSTR
,DWORD
,LPCSTR
,DWORD
);
4876 DWORD
RegSetValue32A(HKEY
,LPCSTR
,DWORD
,LPCSTR
,DWORD
);
4877 DWORD
RegSetValue32W(HKEY
,LPCWSTR
,DWORD
,LPCWSTR
,DWORD
);
4878 #define RegSetValue WINELIB_NAME_AW(RegSetValue)
4879 DWORD
RegSetValueEx16(HKEY
,LPSTR
,DWORD
,DWORD
,LPBYTE
,DWORD
);
4880 DWORD
RegSetValueEx32A(HKEY
,LPSTR
,DWORD
,DWORD
,LPBYTE
,DWORD
);
4881 DWORD
RegSetValueEx32W(HKEY
,LPWSTR
,DWORD
,DWORD
,LPBYTE
,DWORD
);
4882 #define RegSetValueEx WINELIB_NAME_AW(RegSetValueEx)
4883 INT16
ReleaseDC16(HWND16
,HDC16
);
4884 INT32
ReleaseDC32(HWND32
,HDC32
);
4885 #define ReleaseDC WINELIB_NAME(ReleaseDC)
4886 HANDLE16
RemoveProp16(HWND16
,LPCSTR
);
4887 HANDLE32
RemoveProp32A(HWND32
,LPCSTR
);
4888 HANDLE32
RemoveProp32W(HWND32
,LPCWSTR
);
4889 #define RemoveProp WINELIB_NAME_AW(RemoveProp)
4890 BOOL16
RemoveDirectory16(LPCSTR
);
4891 BOOL32
RemoveDirectory32A(LPCSTR
);
4892 BOOL32
RemoveDirectory32W(LPCWSTR
);
4893 #define RemoveDirectory WINELIB_NAME_AW(RemoveDirectory)
4894 BOOL16
RoundRect16(HDC16
,INT16
,INT16
,INT16
,INT16
,INT16
,INT16
);
4895 BOOL32
RoundRect32(HDC32
,INT32
,INT32
,INT32
,INT32
,INT32
,INT32
);
4896 #define RoundRect WINELIB_NAME(RoundRect)
4897 BOOL16
ScaleViewportExtEx16(HDC16
,INT16
,INT16
,INT16
,INT16
,LPSIZE16
);
4898 BOOL32
ScaleViewportExtEx32(HDC32
,INT32
,INT32
,INT32
,INT32
,LPSIZE32
);
4899 #define ScaleViewportExtEx WINELIB_NAME(ScaleViewportExtEx)
4900 BOOL16
ScaleWindowExtEx16(HDC16
,INT16
,INT16
,INT16
,INT16
,LPSIZE16
);
4901 BOOL32
ScaleWindowExtEx32(HDC32
,INT32
,INT32
,INT32
,INT32
,LPSIZE32
);
4902 #define ScaleWindowExtEx WINELIB_NAME(ScaleWindowExtEx)
4903 void ScreenToClient16(HWND16
,LPPOINT16
);
4904 void ScreenToClient32(HWND32
,LPPOINT32
);
4905 #define ScreenToClient WINELIB_NAME(ScreenToClient)
4906 BOOL16
ScrollDC16(HDC16
,INT16
,INT16
,const RECT16
*,const RECT16
*,
4908 BOOL32
ScrollDC32(HDC32
,INT32
,INT32
,const RECT32
*,const RECT32
*,
4910 #define ScrollDC WINELIB_NAME(ScrollDC)
4911 void ScrollWindow16(HWND16
,INT16
,INT16
,const RECT16
*,const RECT16
*);
4912 BOOL32
ScrollWindow32(HWND32
,INT32
,INT32
,const RECT32
*,const RECT32
*);
4913 #define ScrollWindow WINELIB_NAME(ScrollWindow)
4914 INT16
ScrollWindowEx16(HWND16
,INT16
,INT16
,const RECT16
*,const RECT16
*,
4915 HRGN16
,LPRECT16
,UINT16
);
4916 INT32
ScrollWindowEx32(HWND32
,INT32
,INT32
,const RECT32
*,const RECT32
*,
4917 HRGN32
,LPRECT32
,UINT32
);
4918 #define ScrollWindowEx WINELIB_NAME(ScrollWindowEx)
4919 INT16
SelectClipRgn16(HDC16
,HRGN16
);
4920 INT32
SelectClipRgn32(HDC32
,HRGN32
);
4921 #define SelectClipRgn WINELIB_NAME(SelectClipRgn)
4922 HGDIOBJ16
SelectObject16(HDC16
,HGDIOBJ16
);
4923 HGDIOBJ32
SelectObject32(HDC32
,HGDIOBJ32
);
4924 #define SelectObject WINELIB_NAME(SelectObject)
4925 LRESULT
SendDlgItemMessage16(HWND16
,INT16
,UINT16
,WPARAM16
,LPARAM
);
4926 LRESULT
SendDlgItemMessage32A(HWND32
,INT32
,UINT32
,WPARAM32
,LPARAM
);
4927 LRESULT
SendDlgItemMessage32W(HWND32
,INT32
,UINT32
,WPARAM32
,LPARAM
);
4928 #define SendDlgItemMessage WINELIB_NAME_AW(SendDlgItemMessage)
4929 LRESULT
SendMessage16(HWND16
,UINT16
,WPARAM16
,LPARAM
);
4930 LRESULT
SendMessage32A(HWND32
,UINT32
,WPARAM32
,LPARAM
);
4931 LRESULT
SendMessage32W(HWND32
,UINT32
,WPARAM32
,LPARAM
);
4932 #define SendMessage WINELIB_NAME_AW(SendMessage)
4933 BOOL16
SetBitmapDimensionEx16(HBITMAP16
,INT16
,INT16
,LPSIZE16
);
4934 BOOL32
SetBitmapDimensionEx32(HBITMAP32
,INT32
,INT32
,LPSIZE32
);
4935 #define SetBitmapDimensionEx WINELIB_NAME(SetBitmapDimensionEx)
4936 HWND16
SetCapture16(HWND16
);
4937 HWND32
SetCapture32(HWND32
);
4938 #define SetCapture WINELIB_NAME(SetCapture)
4939 LONG
SetClassLong16(HWND16
,INT16
,LONG
);
4940 LONG
SetClassLong32A(HWND32
,INT32
,LONG
);
4941 LONG
SetClassLong32W(HWND32
,INT32
,LONG
);
4942 #define SetClassLong WINELIB_NAME_AW(SetClassLong)
4943 INT16
SetCommBreak16(INT16
);
4944 BOOL32
SetCommBreak32(INT32
);
4945 #define SetCommBreak WINELIB_NAME(SetCommBreak)
4946 INT16
SetCommState16(LPDCB16
);
4947 BOOL32
SetCommState32(INT32
,LPDCB32
);
4948 #define SetCommState WINELIB_NAME(SetCommState)
4949 BOOL16
SetDeskWallPaper16(LPCSTR
);
4950 BOOL32
SetDeskWallPaper32(LPCSTR
);
4951 #define SetDeskWallPaper WINELIB_NAME(SetDeskWallPaper)
4952 void SetDlgItemInt16(HWND16
,INT16
,UINT16
,BOOL16
);
4953 void SetDlgItemInt32(HWND32
,INT32
,UINT32
,BOOL32
);
4954 #define SetDlgItemInt WINELIB_NAME(SetDlgItemInt)
4955 void SetDlgItemText16(HWND16
,INT16
,SEGPTR
);
4956 void SetDlgItemText32A(HWND32
,INT32
,LPCSTR
);
4957 void SetDlgItemText32W(HWND32
,INT32
,LPCWSTR
);
4958 #define SetDlgItemText WINELIB_NAME_AW(SetDlgItemText)
4959 BOOL32
SetEnvironmentVariable32A(LPCSTR
,LPCSTR
);
4960 BOOL32
SetEnvironmentVariable32W(LPCWSTR
,LPCWSTR
);
4961 #define SetEnvironmentVariable WINELIB_NAME_AW(SetEnvironmentVariable)
4962 BOOL16
SetFileAttributes16(LPCSTR
,DWORD
);
4963 BOOL32
SetFileAttributes32A(LPCSTR
,DWORD
);
4964 BOOL32
SetFileAttributes32W(LPCWSTR
,DWORD
);
4965 #define SetFileAttributes WINELIB_NAME_AW(SetFileAttributes)
4966 HWND16
SetFocus16(HWND16
);
4967 HWND32
SetFocus32(HWND32
);
4968 #define SetFocus WINELIB_NAME(SetFocus)
4969 UINT16
SetHandleCount16(UINT16
);
4970 UINT32
SetHandleCount32(UINT32
);
4971 #define SetHandleCount WINELIB_NAME(SetHandleCount)
4972 void SetInternalWindowPos16(HWND16
,UINT16
,LPRECT16
,LPPOINT16
);
4973 void SetInternalWindowPos32(HWND32
,UINT32
,LPRECT32
,LPPOINT32
);
4974 #define SetInternalWindowPos WINELIB_NAME(SetInternalWindowPos)
4975 COLORREF
SetPixel16(HDC16
,INT16
,INT16
,COLORREF
);
4976 COLORREF
SetPixel32(HDC32
,INT32
,INT32
,COLORREF
);
4977 #define SetPixel WINELIB_NAME(SetPixel)
4978 BOOL16
SetProp16(HWND16
,LPCSTR
,HANDLE16
);
4979 BOOL32
SetProp32A(HWND32
,LPCSTR
,HANDLE32
);
4980 BOOL32
SetProp32W(HWND32
,LPCWSTR
,HANDLE32
);
4981 #define SetProp WINELIB_NAME_AW(SetProp)
4982 void SetRect16(LPRECT16
,INT16
,INT16
,INT16
,INT16
);
4983 void SetRect32(LPRECT32
,INT32
,INT32
,INT32
,INT32
);
4984 #define SetRect WINELIB_NAME(SetRect)
4985 void SetRectEmpty16(LPRECT16
);
4986 void SetRectEmpty32(LPRECT32
);
4987 #define SetRectEmpty WINELIB_NAME(SetRectEmpty)
4988 INT16
SetScrollInfo16(HWND16
,INT16
,const SCROLLINFO
*,BOOL16
);
4989 INT32
SetScrollInfo32(HWND32
,INT32
,const SCROLLINFO
*,BOOL32
);
4990 #define SetScrollInfo WINELIB_NAME(SetScrollInfo)
4991 INT16
SetScrollPos16(HWND16
,INT16
,INT16
,BOOL16
);
4992 INT32
SetScrollPos32(HWND32
,INT32
,INT32
,BOOL32
);
4993 #define SetScrollPos WINELIB_NAME(SetScrollPos)
4994 void SetScrollRange16(HWND16
,INT16
,INT16
,INT16
,BOOL16
);
4995 BOOL32
SetScrollRange32(HWND32
,INT32
,INT32
,INT32
,BOOL32
);
4996 #define SetScrollRange WINELIB_NAME(SetScrollRange)
4997 HWND16
SetSysModalWindow16(HWND16
);
4998 #define SetSysModalWindow32(hwnd) ((HWND32)0)
4999 #define SetSysModalWindow WINELIB_NAME(SetSysModalWindow)
5000 UINT16
SetSystemTimer16(HWND16
,UINT16
,UINT16
,TIMERPROC16
);
5001 UINT32
SetSystemTimer32(HWND32
,UINT32
,UINT32
,TIMERPROC32
);
5002 #define SetSystemTimer WINELIB_NAME(SetSystemTimer)
5003 UINT16
SetTimer16(HWND16
,UINT16
,UINT16
,TIMERPROC16
);
5004 UINT32
SetTimer32(HWND32
,UINT32
,UINT32
,TIMERPROC32
);
5005 #define SetTimer WINELIB_NAME(SetTimer)
5006 BOOL16
SetViewportExtEx16(HDC16
,INT16
,INT16
,LPSIZE16
);
5007 BOOL32
SetViewportExtEx32(HDC32
,INT32
,INT32
,LPSIZE32
);
5008 #define SetViewportExtEx WINELIB_NAME(SetViewportExtEx)
5009 BOOL16
SetViewportOrgEx16(HDC16
,INT16
,INT16
,LPPOINT16
);
5010 BOOL32
SetViewportOrgEx32(HDC32
,INT32
,INT32
,LPPOINT32
);
5011 #define SetViewportOrgEx WINELIB_NAME(SetViewportOrgEx)
5012 BOOL16
SetWindowExtEx16(HDC16
,INT16
,INT16
,LPSIZE16
);
5013 BOOL32
SetWindowExtEx32(HDC32
,INT32
,INT32
,LPSIZE32
);
5014 #define SetWindowExtEx WINELIB_NAME(SetWindowExtEx)
5015 LONG
SetWindowLong16(HWND16
,INT16
,LONG
);
5016 LONG
SetWindowLong32A(HWND32
,INT32
,LONG
);
5017 LONG
SetWindowLong32W(HWND32
,INT32
,LONG
);
5018 #define SetWindowLong WINELIB_NAME_AW(SetWindowLong)
5019 BOOL16
SetWindowOrgEx16(HDC16
,INT16
,INT16
,LPPOINT16
);
5020 BOOL32
SetWindowOrgEx32(HDC32
,INT32
,INT32
,LPPOINT32
);
5021 #define SetWindowOrgEx WINELIB_NAME(SetWindowOrgEx)
5022 BOOL16
SetWindowPlacement16(HWND16
,const WINDOWPLACEMENT16
*);
5023 BOOL32
SetWindowPlacement32(HWND32
,const WINDOWPLACEMENT32
*);
5024 #define SetWindowPlacement WINELIB_NAME(SetWindowPlacement)
5025 FARPROC16
SetWindowsHook16(INT16
,HOOKPROC16
);
5026 HHOOK
SetWindowsHook32A(INT32
,HOOKPROC32
);
5027 HHOOK
SetWindowsHook32W(INT32
,HOOKPROC32
);
5028 #define SetWindowsHook WINELIB_NAME_AW(SetWindowsHook)
5029 HHOOK
SetWindowsHookEx16(INT16
,HOOKPROC16
,HINSTANCE16
,HTASK16
);
5030 HHOOK
SetWindowsHookEx32A(INT32
,HOOKPROC32
,HINSTANCE32
,DWORD
);
5031 HHOOK
SetWindowsHookEx32W(INT32
,HOOKPROC32
,HINSTANCE32
,DWORD
);
5032 #define SetWindowsHookEx WINELIB_NAME_AW(SetWindowsHookEx)
5033 void SetWindowText16(HWND16
,SEGPTR
);
5034 void SetWindowText32A(HWND32
,LPCSTR
);
5035 void SetWindowText32W(HWND32
,LPCWSTR
);
5036 #define SetWindowText WINELIB_NAME_AW(SetWindowText)
5037 void ShowScrollBar16(HWND16
,INT16
,BOOL16
);
5038 BOOL32
ShowScrollBar32(HWND32
,INT32
,BOOL32
);
5039 #define ShowScrollBar WINELIB_NAME(ShowScrollBar)
5040 BOOL16
StretchBlt16(HDC16
,INT16
,INT16
,INT16
,INT16
,HDC16
,INT16
,INT16
,
5042 BOOL32
StretchBlt32(HDC32
,INT32
,INT32
,INT32
,INT32
,HDC32
,INT32
,INT32
,
5044 #define StretchBlt WINELIB_NAME(StretchBlt)
5045 BOOL16
SubtractRect16(LPRECT16
,const RECT16
*,const RECT16
*);
5046 BOOL32
SubtractRect32(LPRECT32
,const RECT32
*,const RECT32
*);
5047 #define SubtractRect WINELIB_NAME(SubtractRect)
5048 BOOL16
TextOut16(HDC16
,INT16
,INT16
,LPCSTR
,INT16
);
5049 BOOL32
TextOut32A(HDC32
,INT32
,INT32
,LPCSTR
,INT32
);
5050 BOOL32
TextOut32W(HDC32
,INT32
,INT32
,LPCWSTR
,INT32
);
5051 #define TextOut WINELIB_NAME_AW(TextOut)
5052 BOOL16
TrackPopupMenu16(HMENU16
,UINT16
,INT16
,INT16
,INT16
,HWND16
,const RECT16
*);
5053 BOOL32
TrackPopupMenu32(HMENU32
,UINT32
,INT32
,INT32
,INT32
,HWND32
,const RECT32
*);
5054 #define TrackPopupMenu WINELIB_NAME(TrackPopupMenu)
5055 INT16
TransmitCommChar16(INT16
,CHAR
);
5056 BOOL32
TransmitCommChar32(INT32
,CHAR
);
5057 #define TransmitCommChar WINELIB_NAME(TransmitCommChar)
5058 BOOL16
UnhookWindowsHook16(INT16
,HOOKPROC16
);
5059 BOOL32
UnhookWindowsHook32(INT32
,HOOKPROC32
);
5060 #define UnhookWindowsHook WINELIB_NAME(UnhookWindowsHook)
5061 BOOL16
UnhookWindowsHookEx16(HHOOK
);
5062 BOOL32
UnhookWindowsHookEx32(HHOOK
);
5063 #define UnhookWindowsHookEx WINELIB_NAME(UnhookWindowsHookEx)
5064 BOOL16
UnionRect16(LPRECT16
,const RECT16
*,const RECT16
*);
5065 BOOL32
UnionRect32(LPRECT32
,const RECT32
*,const RECT32
*);
5066 #define UnionRect WINELIB_NAME(UnionRect)
5067 void UnlockSegment16(HGLOBAL16
);
5068 #define UnlockSegment32(handle) GlobalUnfix((HANDLE32)(handle))
5069 #define UnlockSegment WINELIB_NAME(UnlockSegment)
5070 BOOL16
UnrealizeObject16(HGDIOBJ16
);
5071 BOOL32
UnrealizeObject32(HGDIOBJ32
);
5072 #define UnrealizeObject WINELIB_NAME(UnrealizeObject)
5073 BOOL16
UnregisterClass16(SEGPTR
,HINSTANCE16
);
5074 BOOL32
UnregisterClass32A(LPCSTR
,HINSTANCE32
);
5075 BOOL32
UnregisterClass32W(LPCWSTR
,HINSTANCE32
);
5076 #define UnregisterClass WINELIB_NAME_AW(UnregisterClass)
5077 void ValidateRect16(HWND16
,const RECT16
*);
5078 void ValidateRect32(HWND32
,const RECT32
*);
5079 #define ValidateRect WINELIB_NAME(ValidateRect)
5080 DWORD
VerFindFile16(UINT16
,LPCSTR
,LPCSTR
,LPCSTR
,LPSTR
,UINT16
*,LPSTR
,UINT16
*);
5081 DWORD
VerFindFile32A(UINT32
,LPCSTR
,LPCSTR
,LPCSTR
,LPSTR
,UINT32
*,LPSTR
,UINT32
*);
5082 DWORD
VerFindFile32W(UINT32
,LPCWSTR
,LPCWSTR
,LPCWSTR
,LPWSTR
,UINT32
*,LPWSTR
,UINT32
*);
5083 #define VerFindFile WINELIB_NAME_AW(VerFindFile)
5084 DWORD
VerInstallFile16(UINT16
,LPCSTR
,LPCSTR
,LPCSTR
,LPCSTR
,LPSTR
,UINT16
*);
5085 DWORD
VerInstallFile32A(UINT32
,LPCSTR
,LPCSTR
,LPCSTR
,LPCSTR
,LPSTR
,UINT32
*);
5086 DWORD
VerInstallFile32W(UINT32
,LPCWSTR
,LPCWSTR
,LPCWSTR
,LPCWSTR
,LPWSTR
,UINT32
*);
5087 #define VerInstallFile WINELIB_NAME_AW(VerInstallFile)
5088 DWORD
VerLanguageName16(UINT16
,LPSTR
,UINT16
);
5089 DWORD
VerLanguageName32A(UINT32
,LPSTR
,UINT32
);
5090 DWORD
VerLanguageName32W(UINT32
,LPWSTR
,UINT32
);
5091 #define VerLanguageName WINELIB_NAME_AW(VerLanguageName)
5092 DWORD
VerQueryValue16(SEGPTR
,LPCSTR
,SEGPTR
*,UINT16
*);
5093 DWORD
VerQueryValue32A(LPVOID
,LPCSTR
,LPVOID
*,UINT32
*);
5094 DWORD
VerQueryValue32W(LPVOID
,LPCWSTR
,LPVOID
*,UINT32
*);
5095 #define VerQueryValue WINELIB_NAME_AW(VerQueryValue)
5096 HWND16
WindowFromDC16(HDC16
);
5097 HWND32
WindowFromDC32(HDC32
);
5098 #define WindowFromDC WINELIB_NAME(WindowFromDC)
5099 HWND16
WindowFromPoint16(POINT16
);
5100 HWND32
WindowFromPoint32(POINT32
);
5101 #define WindowFromPoint WINELIB_NAME(WindowFromPoint)
5102 SEGPTR
lstrcat16(SEGPTR
,SEGPTR
);
5103 LPSTR
lstrcat32A(LPSTR
,LPCSTR
);
5104 LPWSTR
lstrcat32W(LPWSTR
,LPCWSTR
);
5105 #define lstrcat WINELIB_NAME_AW(lstrcat)
5106 SEGPTR
lstrcatn16(SEGPTR
,SEGPTR
,INT16
);
5107 LPSTR
lstrcatn32A(LPSTR
,LPCSTR
,INT32
);
5108 LPWSTR
lstrcatn32W(LPWSTR
,LPCWSTR
,INT32
);
5109 #define lstrcatn WINELIB_NAME_AW(lstrcatn)
5110 INT16
lstrcmp16(LPCSTR
,LPCSTR
);
5111 INT32
lstrcmp32A(LPCSTR
,LPCSTR
);
5112 INT32
lstrcmp32W(LPCWSTR
,LPCWSTR
);
5113 #define lstrcmp WINELIB_NAME_AW(lstrcmp)
5114 INT16
lstrcmpi16(LPCSTR
,LPCSTR
);
5115 INT32
lstrcmpi32A(LPCSTR
,LPCSTR
);
5116 INT32
lstrcmpi32W(LPCWSTR
,LPCWSTR
);
5117 #define lstrcmpi WINELIB_NAME_AW(lstrcmpi)
5118 SEGPTR
lstrcpy16(SEGPTR
,SEGPTR
);
5119 LPSTR
lstrcpy32A(LPSTR
,LPCSTR
);
5120 LPWSTR
lstrcpy32W(LPWSTR
,LPCWSTR
);
5121 #define lstrcpy WINELIB_NAME_AW(lstrcpy)
5122 SEGPTR
lstrcpyn16(SEGPTR
,SEGPTR
,INT16
);
5123 LPSTR
lstrcpyn32A(LPSTR
,LPCSTR
,INT32
);
5124 LPWSTR
lstrcpyn32W(LPWSTR
,LPCWSTR
,INT32
);
5125 #define lstrcpyn WINELIB_NAME_AW(lstrcpyn)
5126 INT16
lstrlen16(LPCSTR
);
5127 INT32
lstrlen32A(LPCSTR
);
5128 INT32
lstrlen32W(LPCWSTR
);
5129 #define lstrlen WINELIB_NAME_AW(lstrlen)
5130 INT16
wsnprintf16(LPSTR
,UINT16
,LPCSTR
,...);
5131 INT32
wsnprintf32A(LPSTR
,UINT32
,LPCSTR
,...);
5132 INT32
wsnprintf32W(LPWSTR
,UINT32
,LPCWSTR
,...);
5133 #define wsnprintf WINELIB_NAME_AW(wsnprintf)
5134 INT16
wsprintf16(LPSTR
,LPCSTR
,...);
5135 INT32
wsprintf32A(LPSTR
,LPCSTR
,...);
5136 INT32
wsprintf32W(LPWSTR
,LPCWSTR
,...);
5137 #define wsprintf WINELIB_NAME_AW(wsprintf)
5138 INT16
wvsnprintf16(LPSTR
,UINT16
,LPCSTR
,LPCVOID
);
5139 INT32
wvsnprintf32A(LPSTR
,UINT32
,LPCSTR
,LPCVOID
);
5140 INT32
wvsnprintf32W(LPWSTR
,UINT32
,LPCWSTR
,LPCVOID
);
5141 #define wvsnprintf WINELIB_NAME_AW(wvsnprintf)
5142 INT16
wvsprintf16(LPSTR
,LPCSTR
,LPCVOID
);
5143 INT32
wvsprintf32A(LPSTR
,LPCSTR
,LPCVOID
);
5144 INT32
wvsprintf32W(LPWSTR
,LPCWSTR
,LPCVOID
);
5145 #define wvsprintf WINELIB_NAME_AW(wvsprintf)
5146 UINT16
_lread16(HFILE
,LPVOID
,UINT16
);
5147 UINT32
_lread32(HFILE
,LPVOID
,UINT32
);
5148 #define _lread WINELIB_NAME(_lread)
5149 UINT16
_lwrite16(HFILE
,LPCSTR
,UINT16
);
5150 UINT32
_lwrite32(HFILE
,LPCSTR
,UINT32
);
5151 #define _lwrite WINELIB_NAME(_lwrite)
5153 /* Extra functions that don't exist in the Windows API */
5155 INT32
LoadMessage32A(HINSTANCE32
,UINT32
,WORD
,LPSTR
,INT32
);
5156 INT32
LoadMessage32W(HINSTANCE32
,UINT32
,WORD
,LPWSTR
,INT32
);
5157 SEGPTR
WIN16_GlobalLock16(HGLOBAL16
);
5158 INT32
lstrncmp32A(LPCSTR
,LPCSTR
,INT32
);
5159 INT32
lstrncmp32W(LPCWSTR
,LPCWSTR
,INT32
);
5160 INT32
lstrncmpi32A(LPCSTR
,LPCSTR
,INT32
);
5161 INT32
lstrncmpi32W(LPCWSTR
,LPCWSTR
,INT32
);
5162 LPWSTR
lstrcpynAtoW(LPWSTR
,LPCSTR
,INT32
);
5163 LPSTR
lstrcpynWtoA(LPSTR
,LPCWSTR
,INT32
);
5165 /* Library data types defined as a transition aid for the emulator. */
5166 /* These should _not_ be used in the emulator and will be removed someday. */
5168 #ifndef NO_TRANSITION_TYPES
5173 typedef UINT32 UINT
;
5174 typedef BOOL32 BOOL
;
5175 typedef HANDLE32 HWND
;
5176 # else /* WINELIB32 */
5178 typedef UINT16 UINT
;
5179 typedef BOOL16 BOOL
;
5180 typedef HANDLE16 HWND
;
5181 # endif /* WINELIB32 */
5182 #endif /* __WINE__ */
5184 /* Callback function pointers types. */
5187 typedef LONG (*DRIVERPROC
)(DWORD
, HDRVR16
, UINT
, LPARAM
, LPARAM
);
5188 typedef int (*EDITWORDBREAKPROC
)(LPSTR lpch
, int ichCurrent
, int cch
,int code
);
5190 typedef SEGPTR DRIVERPROC
;
5191 typedef SEGPTR EDITWORDBREAKPROC
;
5194 ATOM
AddAtom(SEGPTR
);
5195 INT
AddFontResource(LPCSTR
);
5196 BOOL
AnimatePalette(HPALETTE16
,UINT
,UINT
,LPPALETTEENTRY
);
5197 LPSTR
AnsiLower(LPSTR
);
5198 UINT
AnsiLowerBuff(LPSTR
,UINT
);
5199 SEGPTR
AnsiNext(SEGPTR
);
5200 SEGPTR
AnsiPrev(SEGPTR
,SEGPTR
);
5201 INT
AnsiToOem(LPCSTR
,LPSTR
);
5202 void AnsiToOemBuff(LPCSTR
,LPSTR
,UINT
);
5203 LPSTR
AnsiUpper(LPSTR
);
5204 UINT
AnsiUpperBuff(LPSTR
,UINT
);
5205 BOOL
AnyPopup(void);
5206 UINT
ArrangeIconicWindows(HWND
);
5207 HDWP16
BeginDeferWindowPos(INT
);
5208 BOOL
BringWindowToTop(HWND
);
5209 void CalcChildScroll(HWND
,WORD
);
5210 BOOL
CallMsgFilter(SEGPTR
,INT
);
5211 LRESULT
CallNextHookEx(HHOOK
,INT
,WPARAM16
,LPARAM
);
5212 BOOL
ChangeClipboardChain(HWND
,HWND
);
5213 INT
CheckMenuItem(HMENU16
,UINT
,UINT
);
5214 BOOL
CloseClipboard(void);
5215 void CloseSound(void);
5216 BOOL
CloseWindow(HWND
);
5217 int ConvertRequest(HWND
,LPKANJISTRUCT
);
5218 HMETAFILE16
CopyMetaFile(HMETAFILE16
,LPCSTR
);
5219 INT
CountClipboardFormats(void);
5220 INT
CountVoiceNotes(INT
);
5221 HDC16
CreateCompatibleDC(HDC16
);
5222 HCURSOR16
CreateCursor(HINSTANCE16
,INT
,INT
,INT
,INT
,const BYTE
*,const BYTE
*);
5223 HGLOBAL16
CreateCursorIconIndirect(HINSTANCE16
,CURSORICONINFO
*,const BYTE
*,const BYTE
*);
5224 HDC16
CreateDC(LPCSTR
,LPCSTR
,LPCSTR
,const DEVMODE
*);
5225 HBITMAP16
CreateDIBitmap(HDC16
,BITMAPINFOHEADER
*,DWORD
,LPVOID
,BITMAPINFO
*,UINT
);
5226 HDC16
CreateIC(LPCSTR
,LPCSTR
,LPCSTR
,const DEVMODE
*);
5227 HICON16
CreateIcon(HINSTANCE16
,INT
,INT
,BYTE
,BYTE
,const BYTE
*,const BYTE
*);
5228 HMENU16
CreateMenu(void);
5229 HPALETTE16
CreatePalette(const LOGPALETTE
*);
5230 HMENU16
CreatePopupMenu(void);
5231 DWORD
DefHookProc(short,WORD
,DWORD
,HHOOK
*);
5232 HDWP16
DeferWindowPos(HDWP16
,HWND
,HWND
,INT
,INT
,INT
,INT
,UINT
);
5233 ATOM
DeleteAtom(ATOM
);
5234 BOOL
DeleteDC(HDC16
);
5235 BOOL
DeleteMenu(HMENU16
,UINT
,UINT
);
5236 BOOL
DestroyCursor(HCURSOR16
);
5237 BOOL
DestroyIcon(HICON16
);
5238 BOOL
DestroyMenu(HMENU16
);
5239 BOOL
DestroyWindow(HWND
);
5240 LONG
DispatchMessage(const MSG16
*);
5241 INT
DlgDirList(HWND
,SEGPTR
,INT
,INT
,UINT
);
5242 BOOL16
DragDetect(HWND16
,POINT16
);
5243 DWORD
DragObject(HWND
, HWND
, WORD
, HANDLE16
, WORD
, HCURSOR16
);
5244 BOOL
DrawIcon(HDC16
,INT
,INT
,HICON16
);
5245 void DrawMenuBar(HWND
);
5246 DWORD
DumpIcon(SEGPTR
,WORD
*,SEGPTR
*,SEGPTR
*);
5247 BOOL
EmptyClipboard(void);
5248 BOOL
EnableMenuItem(HMENU16
,UINT
,UINT
);
5249 BOOL
EnableWindow(HWND
,BOOL
);
5250 BOOL
EndDeferWindowPos(HDWP16
);
5251 UINT16
EnumClipboardFormats(UINT16
);
5252 INT
EnumFonts(HDC16
,LPCSTR
,FONTENUMPROC16
,LPARAM
);
5253 BOOL
EnumMetaFile(HDC16
,HMETAFILE16
,MFENUMPROC16
,LPARAM
);
5254 INT
Escape(HDC16
,INT
,INT
,SEGPTR
,SEGPTR
);
5255 BOOL
ExitWindows(DWORD
,WORD
);
5256 HICON16
ExtractIcon(HINSTANCE16
,LPCSTR
,WORD
);
5257 void FatalAppExit(UINT
,LPCSTR
);
5258 void FatalExit(int);
5259 ATOM
FindAtom(SEGPTR
);
5260 HINSTANCE16
FindExecutable(LPCSTR
,LPCSTR
,LPSTR
);
5261 BOOL
FlashWindow(HWND
,BOOL
);
5262 void FreeLibrary(HINSTANCE16
);
5263 UINT
GDIRealizePalette(HDC16
);
5264 HPALETTE16
GDISelectPalette(HDC16
,HPALETTE16
,WORD
);
5265 HWND
GetActiveWindow(void);
5266 DWORD
GetAspectRatioFilter(HDC16
);
5267 int GetAsyncKeyState(int);
5268 WORD
GetAtomName(ATOM
,LPSTR
,short);
5269 COLORREF
GetBkColor(HDC16
);
5270 WORD
GetBkMode(HDC16
);
5271 DWORD
GetBrushOrg(HDC16
);
5272 BOOL
GetCharABCWidths(HDC16
,UINT
,UINT
,LPABC16
);
5273 BOOL
GetCharWidth(HDC16
,WORD
,WORD
,LPINT16
);
5274 HRGN32
GetClipRgn(HDC16
);
5275 HANDLE16
GetClipboardData(WORD
);
5276 int GetClipboardFormatName(WORD
,LPSTR
,short);
5277 HWND
GetClipboardOwner(void);
5278 HWND
GetClipboardViewer(void);
5279 HBRUSH16
GetControlBrush(HWND
,HDC16
,WORD
);
5280 DWORD
GetCurrentPosition(HDC16
);
5281 DWORD
GetCurrentTime(void);
5282 HCURSOR16
GetCursor(void);
5283 DWORD
GetDCOrg(HDC16
);
5284 HDC16
GetDCState(HDC16
);
5285 int GetDIBits(HDC16
,HBITMAP16
,WORD
,WORD
,LPSTR
,LPBITMAPINFO
,WORD
);
5286 SEGPTR
GetDOSEnvironment(void);
5287 int GetDeviceCaps(HDC16
,WORD
);
5288 DWORD
GetDialogBaseUnits(void);
5289 HWND
GetDlgItem(HWND
,WORD
);
5290 WORD
GetDlgItemInt(HWND
,WORD
,BOOL
*,BOOL
);
5291 WORD
GetDoubleClickTime(void);
5292 int GetEnvironment(LPSTR
,LPSTR
,WORD
);
5293 DWORD
GetFreeSpace(UINT16
);
5294 DWORD
GetHeapSpaces(HMODULE16
);
5295 BOOL
GetInputState(void);
5296 int GetKBCodePage(void);
5297 int GetKerningPairs(HDC16
,int,LPKERNINGPAIR16
);
5298 int GetKeyNameText(LONG
,LPSTR
,int);
5299 INT
GetKeyState(INT
);
5300 void GetKeyboardState(BYTE
*);
5301 int GetKeyboardType(int);
5302 HWND
GetLastActivePopup(HWND
);
5303 WORD
GetMapMode(HDC16
);
5304 HMENU16
GetMenu(HWND
);
5305 DWORD
GetMenuCheckMarkDimensions(void);
5306 INT
GetMenuItemCount(HMENU16
);
5307 UINT
GetMenuItemID(HMENU16
,int);
5308 UINT
GetMenuState(HMENU16
,UINT
,UINT
);
5309 int GetMenuString(HMENU16
,UINT
,LPSTR
,short,UINT
);
5310 BOOL
GetMessage(SEGPTR
,HWND
,UINT
,UINT
);
5311 LONG
GetMessageExtraInfo(void);
5312 DWORD
GetMessagePos(void);
5313 LONG
GetMessageTime(void);
5314 HMETAFILE16
GetMetaFile(LPSTR
);
5315 HGLOBAL16
GetMetaFileBits(HMETAFILE16
);
5316 INT16
GetModuleFileName(HINSTANCE16
,LPSTR
,INT16
);
5317 HMODULE16
GetModuleHandle(LPCSTR
);
5318 INT16
GetModuleUsage(HINSTANCE16
);
5319 DWORD
GetNearestColor(HDC16
,DWORD
);
5320 WORD
GetNearestPaletteIndex(HPALETTE16
,DWORD
);
5321 HWND
GetNextWindow(HWND
,WORD
);
5322 HWND
GetOpenClipboardWindow(void);
5323 WORD
GetPaletteEntries(HPALETTE16
,WORD
,WORD
,LPPALETTEENTRY
);
5324 WORD
GetPolyFillMode(HDC16
);
5325 int GetPriorityClipboardFormat(WORD
*,short);
5326 UINT
GetPrivateProfileInt(LPCSTR
,LPCSTR
,INT
,LPCSTR
);
5327 INT
GetPrivateProfileString(LPCSTR
,LPCSTR
,LPCSTR
,LPSTR
,INT
,LPCSTR
);
5328 UINT
GetProfileInt(LPCSTR
,LPCSTR
,INT
);
5329 INT
GetProfileString(LPCSTR
,LPCSTR
,LPCSTR
,LPSTR
,INT
);
5330 DWORD
GetQueueStatus(UINT
);
5331 BOOL
GetRasterizerCaps(LPRASTERIZER_STATUS
,UINT
);
5332 WORD
GetROP2(HDC16
);
5333 WORD
GetRelAbs(HDC16
);
5334 WORD
GetStretchBltMode(HDC16
);
5335 HMENU16
GetSubMenu(HMENU16
,short);
5336 HMENU16
GetSystemMenu(HWND
,BOOL
);
5337 int GetSystemMetrics(WORD
);
5338 WORD
GetSystemPaletteEntries(HDC16
,WORD
,WORD
,LPPALETTEENTRY
);
5339 WORD
GetSystemPaletteUse(HDC16
);
5340 DWORD
GetTabbedTextExtent(HDC16
,LPSTR
,int,int,LPINT16
);
5341 BYTE
GetTempDrive(BYTE
);
5342 WORD
GetTextAlign(HDC16
);
5343 short GetTextCharacterExtra(HDC16
);
5344 COLORREF
GetTextColor(HDC16
);
5345 DWORD
GetTextExtent(HDC16
,LPCSTR
,short);
5346 INT
GetTextFace(HDC16
,INT
,LPSTR
);
5347 LPINT16
GetThresholdEvent(void);
5348 int GetThresholdStatus(void);
5349 HWND
GetTopWindow(HWND
);
5350 DWORD
GetViewportExt(HDC16
);
5351 DWORD
GetViewportOrg(HDC16
);
5352 BOOL
GetWinDebugInfo(LPWINDEBUGINFO
,UINT
);
5353 LONG
GetWinFlags(void);
5354 HWND
GetWindow(HWND
,WORD
);
5355 DWORD
GetWindowExt(HDC16
);
5356 DWORD
GetWindowOrg(HDC16
);
5357 int GetWindowTextLength(HWND
);
5358 ATOM
GlobalDeleteAtom(ATOM
);
5359 void GlobalFix(HGLOBAL16
);
5360 BOOL16
GlobalUnWire(HGLOBAL16
);
5361 void GlobalUnfix(HGLOBAL16
);
5362 SEGPTR
GlobalWire(HGLOBAL16
);
5363 BOOL
GrayString(HDC16
,HBRUSH16
,GRAYSTRINGPROC16
,LPARAM
,INT
,INT
,INT
,INT
,INT
);
5364 BOOL
HiliteMenuItem(HWND
,HMENU16
,UINT
,UINT
);
5365 BOOL
InSendMessage(void);
5366 WORD
InitAtomTable(WORD
);
5367 HRGN32
InquireVisRgn(HDC16
);
5368 void InvalidateRgn(HWND32
,HRGN32
,BOOL32
);
5369 BOOL
IsChild(HWND
,HWND
);
5370 BOOL
IsClipboardFormatAvailable(WORD
);
5371 BOOL
IsDialogMessage(HWND
,LPMSG16
);
5372 WORD
IsDlgButtonChecked(HWND
,WORD
);
5373 BOOL
IsIconic(HWND
);
5374 BOOL
IsMenu(HMENU16
);
5375 BOOL
IsValidMetaFile(HMETAFILE16
);
5376 BOOL
IsWindowEnabled(HWND
);
5377 BOOL
IsWindowVisible(HWND
);
5378 BOOL
IsZoomed(HWND
);
5379 HINSTANCE16
LoadLibrary(LPCSTR
);
5380 HINSTANCE16
LoadModule(LPCSTR
,LPVOID
);
5381 FARPROC16
LocalNotify(FARPROC16
);
5382 HMENU16
LookupMenuHandle(HMENU16
,INT
);
5383 WORD
MapVirtualKey(WORD
,WORD
);
5384 void MessageBeep(WORD
);
5385 int MessageBox(HWND
,LPCSTR
,LPCSTR
,WORD
);
5386 BOOL
MoveWindow(HWND
,short,short,short,short,BOOL
);
5387 DWORD
OemKeyScan(WORD
);
5388 BOOL
OemToAnsi(LPCSTR
,LPSTR
);
5389 void OemToAnsiBuff(LPCSTR
,LPSTR
,INT
);
5390 BOOL
OpenClipboard(HWND
);
5391 BOOL
OpenIcon(HWND
);
5392 int OpenSound(void);
5393 void OutputDebugString(LPCSTR
);
5394 BOOL
PlayMetaFile(HDC16
,HMETAFILE16
);
5395 void PlayMetaFileRecord(HDC16
,LPHANDLETABLE16
,LPMETARECORD
,WORD
);
5396 BOOL
PostMessage(HWND
,WORD
,WORD
,LONG
);
5397 void PostQuitMessage(INT
);
5398 void ProfClear(void);
5399 void ProfFinish(void);
5400 void ProfFlush(void);
5401 int ProfInsChk(void);
5402 void ProfSampRate(int,int);
5403 void ProfSetup(int,int);
5404 void ProfStart(void);
5405 void ProfStop(void);
5406 WORD
RealizeDefaultPalette(HDC16
);
5407 WORD
RegisterClipboardFormat(LPCSTR
);
5408 BOOL
RemoveFontResource(LPSTR
);
5409 BOOL
RemoveMenu(HMENU16
,UINT
,UINT
);
5410 void ReplyMessage(LRESULT
);
5411 HDC16
ResetDC(HDC16
,LPVOID
);
5412 BOOL
ResizePalette(HPALETTE16
,UINT
);
5413 BOOL
RestoreDC(HDC16
,short);
5415 void ScrollChildren(HWND
,UINT
,WPARAM16
,LPARAM
);
5416 HPALETTE16
SelectPalette(HDC16
,HPALETTE16
,BOOL
);
5417 HWND
SetActiveWindow(HWND
);
5418 WORD
SetBkMode(HDC16
,WORD
);
5419 HANDLE16
SetClipboardData(WORD
,HANDLE16
);
5420 HWND
SetClipboardViewer(HWND
);
5421 void SetConvertHook(BOOL
);
5422 BOOL
SetConvertParams(int,int);
5423 BOOL32
SetCurrentDirectory(LPCSTR
);
5424 HCURSOR16
SetCursor(HCURSOR16
);
5425 void SetCursorPos(short,short);
5426 void SetDCState(HDC16
,HDC16
);
5427 void SetDoubleClickTime(WORD
);
5428 int SetEnvironment(LPCSTR
,LPCSTR
,WORD
);
5429 UINT
SetErrorMode(UINT
);
5430 WORD
SetHookFlags(HDC16
,WORD
);
5431 void SetKeyboardState(BYTE
*);
5432 WORD
SetMapMode(HDC16
,WORD
);
5433 DWORD
SetMapperFlags(HDC16
,DWORD
);
5434 BOOL
SetMenu(HWND
,HMENU16
);
5435 BOOL
SetMenuItemBitmaps(HMENU16
,UINT
,UINT
,HBITMAP16
,HBITMAP16
);
5436 BOOL
SetMessageQueue(int);
5437 HMETAFILE16
SetMetaFileBits(HGLOBAL16
);
5438 WORD
SetPaletteEntries(HPALETTE16
,WORD
,WORD
,LPPALETTEENTRY
);
5439 HWND
SetParent(HWND
,HWND
);
5440 WORD
SetPolyFillMode(HDC16
,WORD
);
5441 WORD
SetROP2(HDC16
,WORD
);
5442 WORD
SetRelAbs(HDC16
,WORD
);
5443 FARPROC16
SetResourceHandler(HINSTANCE16
,LPSTR
,FARPROC16
);
5444 int SetSoundNoise(int,int);
5445 WORD
SetStretchBltMode(HDC16
,WORD
);
5446 LONG
SetSwapAreaSize(WORD
);
5447 void SetSysColors(int,LPINT16
,COLORREF
*);
5448 WORD
SetSystemPaletteUse(HDC16
,WORD
);
5449 WORD
SetTextAlign(HDC16
,WORD
);
5450 short SetTextCharacterExtra(HDC16
,short);
5451 short SetTextJustification(HDC16
,short,short);
5452 int SetVoiceAccent(int,int,int,int,int);
5453 int SetVoiceEnvelope(int,int,int);
5454 int SetVoiceNote(int,int,int,int);
5455 int SetVoiceQueueSize(int,int);
5456 int SetVoiceSound(int,LONG
,int);
5457 int SetVoiceThreshold(int,int);
5458 BOOL
SetWinDebugInfo(LPWINDEBUGINFO
);
5459 BOOL
SetWindowPos(HWND
,HWND
,INT
,INT
,INT
,INT
,WORD
);
5460 HINSTANCE16
ShellExecute(HWND
,LPCSTR
,LPCSTR
,LPSTR
,LPCSTR
,INT
);
5461 int ShowCursor(BOOL
);
5462 void ShowOwnedPopups(HWND
,BOOL
);
5463 BOOL
ShowWindow(HWND
,int);
5464 DWORD
SizeofResource(HMODULE16
,HRSRC16
);
5465 int StartSound(void);
5466 int StopSound(void);
5467 int StretchDIBits(HDC16
,WORD
,WORD
,WORD
,WORD
,WORD
,WORD
,WORD
,WORD
,LPSTR
,LPBITMAPINFO
,WORD
,DWORD
);
5468 BOOL
SwapMouseButton(BOOL
);
5469 void SwapRecording(WORD
);
5470 int SyncAllVoices(void);
5471 BOOL
SystemParametersInfo(UINT
,UINT
,LPVOID
,UINT
);
5472 LONG
TabbedTextOut(HDC16
,short,short,LPSTR
,short,short,LPINT16
,short);
5473 int ToAscii(WORD
,WORD
,LPSTR
,LPVOID
,WORD
);
5474 INT16
TranslateAccelerator(HWND
,HACCEL16
,LPMSG16
);
5475 BOOL
TranslateMDISysAccel(HWND
,LPMSG16
);
5476 BOOL
TranslateMessage(LPMSG16
);
5477 int UpdateColors(HDC16
);
5478 void ValidateCodeSegments(void);
5479 LPSTR
ValidateFreeSpaces(void);
5480 void ValidateRgn(HWND32
,HRGN32
);
5481 WORD
VkKeyScan(WORD
);
5482 SEGPTR
WIN16_LockResource(HGLOBAL16
);
5483 void WaitMessage(void);
5484 int WaitSoundState(int);
5485 HINSTANCE16
WinExec(LPSTR
,WORD
);
5486 BOOL
WinHelp(HWND
,LPSTR
,WORD
,DWORD
);
5487 void WriteOutProfiles(void);
5488 BOOL
WritePrivateProfileString(LPCSTR
,LPCSTR
,LPCSTR
,LPCSTR
);
5489 BOOL
WriteProfileString(LPCSTR
,LPCSTR
,LPCSTR
);
5491 #endif /* NO_TRANSITION_TYPES */
5493 #define WINELIB_UNIMP(x) fprintf (stderr, "WineLib: Unimplemented %s\n", x)
5499 #endif /* __WINE_WINDOWS_H */