1 /* Initial draft attempt of windows.h, by Peter MacDonald, pmacdona@sanjuan.uvic.ca */
8 typedef unsigned short UINT
;
9 typedef unsigned short WORD
;
10 typedef unsigned long DWORD
;
12 typedef unsigned short BOOL
;
13 typedef unsigned char BYTE
;
20 #define DECLARE_HANDLE(a) typedef HANDLE a;
22 DECLARE_HANDLE(HTASK
);
23 DECLARE_HANDLE(HDRVR
);
26 DECLARE_HANDLE(HCLASS
);
27 DECLARE_HANDLE(HCURSOR
);
28 DECLARE_HANDLE(HFONT
);
31 DECLARE_HANDLE(HPALETTE
);
32 DECLARE_HANDLE(HICON
);
33 DECLARE_HANDLE(HINSTANCE
);
34 DECLARE_HANDLE(HMENU
);
35 DECLARE_HANDLE(HBITMAP
);
36 DECLARE_HANDLE(HBRUSH
);
37 DECLARE_HANDLE(LOCALHANDLE
);
40 typedef const char *LPCSTR
;
44 typedef long (*FARPROC
)();
45 typedef int CATCHBUF
[9];
46 typedef int *LPCATCHBUF
;
50 #define CW_USEDEFAULT ((short)0x8000)
56 #define CALLBACK PASCAL
58 #define NULL (void *)0
61 #define LOBYTE(w) ((BYTE)(w))
62 #define HIBYTE(w) ((BYTE)((UINT)(w) >> 8))
64 #define LOWORD(l) ((WORD)(l))
65 #define HIWORD(l) ((WORD)((DWORD)(l) >> 16))
67 #define MAKELONG(low, high) ((LONG)(((WORD)(low)) | (((DWORD)((WORD)(high))) << 16)))
70 #define max(a,b) (((a) > (b)) ? (a) : (b))
74 #define min(a,b) (((a) < (b)) ? (a) : (b))
82 typedef HANDLE HCLASS;
83 typedef HANDLE HCURSOR;
87 typedef HANDLE HPALETTE;
89 typedef HANDLE HINSTANCE;
91 typedef HANDLE HBITMAP;
92 typedef HANDLE HBRUSH;
93 typedef HANDLE LOCALHANDLE;
98 typedef long (*FARPROC)();
99 typedef int CATCHBUF[9];
100 typedef int *LPCATCHBUF;
104 #define CW_USEDEFAULT ((short)0x8000)
109 #define NULL (void *)0
113 #define MAKELPARAM(low, high) ((LONG)(((WORD)(low)) | \
114 (((DWORD)((WORD)(high))) << 16)))
116 typedef struct { short left
, top
, right
, bottom
; } RECT
;
117 typedef RECT
*LPRECT
;
118 typedef RECT
*NPRECT
;
125 BOOL fRestore
, fIncUpdate
;
126 BYTE rgbReserved
[16];
129 typedef PAINTSTRUCT
*PPAINTSTRUCT
;
130 typedef PAINTSTRUCT
*NPPAINTSTRUCT
;
131 typedef PAINTSTRUCT
*LPPAINTSTRUCT
;
137 LONG (*lpfnWndProc
)() __attribute__ ((packed
));
138 short cbClsExtra
, cbWndExtra
;
142 HBRUSH hbrBackground
;
143 LPSTR lpszMenuName
__attribute__ ((packed
));
144 LPSTR lpszClassName
__attribute__ ((packed
));
145 } WNDCLASS
, *LPWNDCLASS
;
147 typedef LONG (* WNDPROC
)() __attribute__ ((packed
));
149 #define CS_VREDRAW 0x0001
150 #define CS_HREDRAW 0x0002
151 #define CS_KEYCVTWINDOW 0x0004
152 #define CS_DBLCLKS 0x0008
153 #define CS_OWNDC 0x0020
154 #define CS_CLASSDC 0x0040
155 #define CS_PARENTDC 0x0080
156 #define CS_NOKEYCVT 0x0100
157 #define CS_NOCLOSE 0x0200
158 #define CS_SAVEBITS 0x0800
159 #define CS_BYTEALIGNCLIENT 0x1000
160 #define CS_BYTEALIGNWINDOW 0x2000
161 #define CS_GLOBALCLASS 0x4000
163 /* Offsets for GetClassLong() and GetClassWord() */
164 #define GCL_MENUNAME (-8)
165 #define GCW_HBRBACKGROUND (-10)
166 #define GCW_HCURSOR (-12)
167 #define GCW_HICON (-14)
168 #define GCW_HMODULE (-16)
169 #define GCW_CBWNDEXTRA (-18)
170 #define GCW_CBCLSEXTRA (-20)
171 #define GCL_WNDPROC (-24)
172 #define GCW_STYLE (-26)
173 #define GCW_ATOM (-32)
178 void * lpCreateParams
;
186 LONG style
__attribute__ ((packed
));
187 char * lpszName
__attribute__ ((packed
));
188 char * lpszClass
__attribute__ ((packed
));
189 DWORD dwExStyle
__attribute__ ((packed
));
190 } CREATESTRUCT
, *LPCREATESTRUCT
;
192 /* Offsets for GetWindowLong() and GetWindowWord() */
193 #define GWL_EXSTYLE (-20)
194 #define GWL_STYLE (-16)
196 #define GWW_HWNDPARENT (-8)
197 #define GWW_HINSTANCE (-6)
198 #define GWL_WNDPROC (-4)
199 #define DWL_MSGRESULT 0
200 #define DWL_DLGPROC 4
203 /* GetWindow() constants */
204 #define GW_HWNDFIRST 0
205 #define GW_HWNDLAST 1
206 #define GW_HWNDNEXT 2
207 #define GW_HWNDPREV 3
213 /* cbWndExtra bytes for dialog class */
214 #define DLGWINDOWEXTRA 30
217 #define DS_ABSALIGN 0x001
218 #define DS_SYSMODAL 0x002
219 #define DS_LOCALEDIT 0x020
220 #define DS_SETFONT 0x040
221 #define DS_MODALFRAME 0x080
222 #define DS_NOIDLEMSG 0x100
224 /* Dialog messages */
225 #define DM_GETDEFID (WM_USER+0)
226 #define DM_SETDEFID (WM_USER+1)
228 #define DC_HASDEFID 0x534b
230 /* WM_GETDLGCODE values */
231 #define DLGC_WANTARROWS 0x0001
232 #define DLGC_WANTTAB 0x0002
233 #define DLGC_WANTALLKEYS 0x0004
234 #define DLGC_WANTMESSAGE 0x0004
235 #define DLGC_HASSETSEL 0x0008
236 #define DLGC_DEFPUSHBUTTON 0x0010
237 #define DLGC_UNDEFPUSHBUTTON 0x0020
238 #define DLGC_RADIOBUTTON 0x0040
239 #define DLGC_WANTCHARS 0x0080
240 #define DLGC_STATIC 0x0100
241 #define DLGC_BUTTON 0x2000
243 /* Standard dialog button IDs */
253 typedef struct { short x
, y
; } POINT
;
254 typedef POINT
*PPOINT
;
255 typedef POINT
*NPPOINT
;
256 typedef POINT
*LPPOINT
;
264 #define MAKEPOINT(l) (*((POINT *)&(l)))
266 typedef struct tagMSG
271 DWORD lParam
__attribute__ ((packed
));
272 DWORD time
__attribute__ ((packed
));
273 POINT pt
__attribute__ ((packed
));
278 /* Raster operations */
281 #define R2_NOTMERGEPEN 2
282 #define R2_MASKNOTPEN 3
283 #define R2_NOTCOPYPEN 4
284 #define R2_MASKPENNOT 5
287 #define R2_NOTMASKPEN 8
289 #define R2_NOTXORPEN 10
291 #define R2_MERGENOTPEN 12
292 #define R2_COPYPEN 13
293 #define R2_MERGEPENNOT 14
294 #define R2_MERGEPEN 15
297 #define SRCCOPY 0xcc0020
298 #define SRCPAINT 0xee0086
299 #define SRCAND 0x8800c6
300 #define SRCINVERT 0x660046
301 #define SRCERASE 0x440328
302 #define NOTSRCCOPY 0x330008
303 #define NOTSRCERASE 0x1100a6
304 #define MERGECOPY 0xc000ca
305 #define MERGEPAINT 0xbb0226
306 #define PATCOPY 0xf00021
307 #define PATPAINT 0xfb0a09
308 #define PATINVERT 0x5a0049
309 #define DSTINVERT 0x550009
310 #define BLACKNESS 0x000042
311 #define WHITENESS 0xff0062
313 /* StretchBlt() modes */
314 #define BLACKONWHITE 1
315 #define WHITEONBLACK 2
316 #define COLORONCOLOR 3
318 #define STRETCH_ANDSCANS BLACKONWHITE
319 #define STRETCH_ORSCANS WHITEONBLACK
320 #define STRETCH_DELETESCANS COLORONCOLOR
325 typedef DWORD COLORREF
;
327 #define RGB(r,g,b) ((COLORREF)((r) | ((g) << 8) | ((b) << 16)))
329 #define GetRValue(rgb) ((rgb) & 0xff)
330 #define GetGValue(rgb) (((rgb) >> 8) & 0xff)
331 #define GetBValue(rgb) (((rgb) >> 16) & 0xff)
333 #define COLOR_SCROLLBAR 0
334 #define COLOR_BACKGROUND 1
335 #define COLOR_ACTIVECAPTION 2
336 #define COLOR_INACTIVECAPTION 3
338 #define COLOR_WINDOW 5
339 #define COLOR_WINDOWFRAME 6
340 #define COLOR_MENUTEXT 7
341 #define COLOR_WINDOWTEXT 8
342 #define COLOR_CAPTIONTEXT 9
343 #define COLOR_ACTIVEBORDER 10
344 #define COLOR_INACTIVEBORDER 11
345 #define COLOR_APPWORKSPACE 12
346 #define COLOR_HIGHLIGHT 13
347 #define COLOR_HIGHLIGHTTEXT 14
348 #define COLOR_BTNFACE 15
349 #define COLOR_BTNSHADOW 16
350 #define COLOR_GRAYTEXT 17
351 #define COLOR_BTNTEXT 18
352 #define COLOR_INACTIVECAPTIONTEXT 19
353 #define COLOR_BTNHIGHLIGHT 20
355 /* WM_CTLCOLOR values */
356 #define CTLCOLOR_MSGBOX 0
357 #define CTLCOLOR_EDIT 1
358 #define CTLCOLOR_LISTBOX 2
359 #define CTLCOLOR_BTN 3
360 #define CTLCOLOR_DLG 4
361 #define CTLCOLOR_SCROLLBAR 5
362 #define CTLCOLOR_STATIC 6
366 typedef struct tagBITMAP
374 void * bmBits
__attribute__ ((packed
));
377 typedef BITMAP
*PBITMAP
;
378 typedef BITMAP
*NPBITMAP
;
379 typedef BITMAP
*LPBITMAP
;
383 typedef struct tagLOGBRUSH
386 COLORREF lbColor
__attribute__ ((packed
));
388 } LOGBRUSH
, *PLOGBRUSH
, *NPLOGBRUSH
, *LPLOGBRUSH
;
397 #define BS_DIBPATTERN 5
400 #define HS_HORIZONTAL 0
401 #define HS_VERTICAL 1
402 #define HS_FDIAGONAL 2
403 #define HS_BDIAGONAL 3
405 #define HS_DIAGCROSS 5
409 #define LF_FACESIZE 32
410 typedef struct tagLOGFONT
412 short lfHeight
, lfWidth
, lfEscapement
, lfOrientation
, lfWeight
;
413 BYTE lfItalic
, lfUnderline
, lfStrikeOut
, lfCharSet
;
414 BYTE lfOutPrecision
, lfClipPrecision
, lfQuality
, lfPitchAndFamily
;
415 BYTE lfFaceName
[LF_FACESIZE
] __attribute__ ((packed
));
416 } LOGFONT
, *PLOGFONT
, *NPLOGFONT
, *LPLOGFONT
;
418 /* lfWeight values */
419 #define FW_DONTCARE 0
421 #define FW_EXTRALIGHT 200
422 #define FW_ULTRALIGHT 200
424 #define FW_NORMAL 400
425 #define FW_REGULAR 400
426 #define FW_MEDIUM 500
427 #define FW_SEMIBOLD 600
428 #define FW_DEMIBOLD 600
430 #define FW_EXTRABOLD 800
431 #define FW_ULTRABOLD 800
435 /* lfCharSet values */
436 #define ANSI_CHARSET 0
437 #define DEFAULT_CHARSET 1
438 #define SYMBOL_CHARSET 2
439 #define SHIFTJIS_CHARSET 128
440 #define OEM_CHARSET 255
442 /* lfOutPrecision values */
443 #define OUT_DEFAULT_PRECIS 0
444 #define OUT_STRING_PRECIS 1
445 #define OUT_CHARACTER_PRECIS 2
446 #define OUT_STROKE_PRECIS 3
447 #define OUT_TT_PRECIS 4
448 #define OUT_DEVICE_PRECIS 5
449 #define OUT_RASTER_PRECIS 6
450 #define OUT_TT_ONLY_PRECIS 7
452 /* lfClipPrecision values */
453 #define CLIP_DEFAULT_PRECIS 0x00
454 #define CLIP_CHARACTER_PRECIS 0x01
455 #define CLIP_STROKE_PRECIS 0x02
456 #define CLIP_MASK 0x0F
457 #define CLIP_LH_ANGLES 0x10
458 #define CLIP_TT_ALWAYS 0x20
459 #define CLIP_EMBEDDED 0x80
461 /* lfQuality values */
462 #define DEFAULT_QUALITY 0
463 #define DRAFT_QUALITY 1
464 #define PROOF_QUALITY 2
466 /* lfPitchAndFamily pitch values */
467 #define DEFAULT_PITCH 0x00
468 #define FIXED_PITCH 0x01
469 #define VARIABLE_PITCH 0x02
470 #define FF_DONTCARE 0x00
471 #define FF_ROMAN 0x10
472 #define FF_SWISS 0x20
473 #define FF_MODERN 0x30
474 #define FF_SCRIPT 0x40
475 #define FF_DECORATIVE 0x50
477 typedef struct tagTEXTMETRIC
482 short tmInternalLeading
;
483 short tmExternalLeading
;
484 short tmAveCharWidth
;
485 short tmMaxCharWidth
;
494 BYTE tmPitchAndFamily
;
497 short tmDigitizedAspectX
;
498 short tmDigitizedAspectY
;
499 } TEXTMETRIC
, *PTEXTMETRIC
, *NPTEXTMETRIC
, *LPTEXTMETRIC
;
501 /* tmPitchAndFamily values */
502 #define TMPF_FIXED_PITCH 1
503 #define TMPF_VECTOR 2
504 #define TMPF_TRUETYPE 4
505 #define TMPF_DEVICE 8
508 #define TA_NOUPDATECP 0x00
509 #define TA_UPDATECP 0x01
511 #define TA_RIGHT 0x02
512 #define TA_CENTER 0x06
514 #define TA_BOTTOM 0x08
515 #define TA_BASELINE 0x18
518 typedef struct tagPALETTEENTRY
520 BYTE peRed
, peGreen
, peBlue
, peFlags
;
521 } PALETTEENTRY
, *LPPALETTEENTRY
;
523 typedef struct tagLOGPALETTE
527 PALETTEENTRY palPalEntry
[1] __attribute__ ((packed
));
528 } LOGPALETTE
, *PLOGPALETTE
, *NPLOGPALETTE
, *LPLOGPALETTE
;
533 typedef struct tagLOGPEN
536 POINT lopnWidth
__attribute__ ((packed
));
537 COLORREF lopnColor
__attribute__ ((packed
));
538 } LOGPEN
, *PLOGPEN
, *NPLOGPEN
, *LPLOGPEN
;
544 #define PS_DASHDOTDOT 4
546 #define PS_INSIDEFRAME 6
552 #define SIMPLEREGION 2
553 #define COMPLEXREGION 3
567 WORD rdFunction
, rdParam
[1];
569 typedef METARECORD
*LPMETARECORD
;
570 typedef METARECORD
*NPMETARECORD
;
571 typedef METARECORD
*PMETARECORD
;
573 /* Background modes */
574 #define TRANSPARENT 1
579 #define MM_LOMETRIC 2
580 #define MM_HIMETRIC 3
581 #define MM_LOENGLISH 4
582 #define MM_HIENGLISH 5
584 #define MM_ISOTROPIC 7
585 #define MM_ANISOTROPIC 8
587 /* Coordinate modes */
591 /* Device parameters for GetDeviceCaps() */
592 #define DRIVERVERSION 0
600 #define NUMBRUSHES 16
602 #define NUMMARKERS 20
605 #define PDEVICESIZE 26
608 #define POLYGONALCAPS 32
611 #define RASTERCAPS 38
615 #define LOGPIXELSX 88
616 #define LOGPIXELSY 90
617 #define SIZEPALETTE 104
618 #define NUMRESERVED 106
623 #define DT_RASDISPLAY 1
624 #define DT_RASPRINTER 2
625 #define DT_RASCAMERA 3
626 #define DT_CHARSTREAM 4
627 #define DT_METAFILE 5
628 #define DT_DISPFILE 6
631 #define CC_NONE 0x0000
632 #define CC_CIRCLES 0x0001
633 #define CC_PIE 0x0002
634 #define CC_CHORD 0x0004
635 #define CC_ELLIPSES 0x0008
636 #define CC_WIDE 0x0010
637 #define CC_STYLED 0x0020
638 #define CC_WIDESTYLED 0x0040
639 #define CC_INTERIORS 0x0080
640 #define CC_ROUNDRECT 0x0100
643 #define LC_NONE 0x0000
644 #define LC_POLYLINE 0x0002
645 #define LC_MARKER 0x0004
646 #define LC_POLYMARKER 0x0008
647 #define LC_WIDE 0x0010
648 #define LC_STYLED 0x0020
649 #define LC_WIDESTYLED 0x0040
650 #define LC_INTERIORS 0x0080
653 #define PC_NONE 0x0000
654 #define PC_POLYGON 0x0001
655 #define PC_RECTANGLE 0x0002
656 #define PC_WINDPOLYGON 0x0004
657 #define PC_SCANLINE 0x0008
658 #define PC_WIDE 0x0010
659 #define PC_STYLED 0x0020
660 #define PC_WIDESTYLED 0x0040
661 #define PC_INTERIORS 0x0080
664 #define TC_OP_CHARACTER 0x0001
665 #define TC_OP_STROKE 0x0002
666 #define TC_CP_STROKE 0x0004
667 #define TC_CR_90 0x0008
668 #define TC_CR_ANY 0x0010
669 #define TC_SF_X_YINDEP 0x0020
670 #define TC_SA_DOUBLE 0x0040
671 #define TC_SA_INTEGER 0x0080
672 #define TC_SA_CONTIN 0x0100
673 #define TC_EA_DOUBLE 0x0200
674 #define TC_IA_ABLE 0x0400
675 #define TC_UA_ABLE 0x0800
676 #define TC_SO_ABLE 0x1000
677 #define TC_RA_ABLE 0x2000
678 #define TC_VA_ABLE 0x4000
679 #define TC_RESERVED 0x8000
682 #define CP_NONE 0x0000
683 #define CP_RECTANGLE 0x0001
684 #define CP_REGION 0x0002
687 #define RC_NONE 0x0000
688 #define RC_BITBLT 0x0001
689 #define RC_BANDING 0x0002
690 #define RC_SCALING 0x0004
691 #define RC_BITMAP64 0x0008
692 #define RC_GDI20_OUTPUT 0x0010
693 #define RC_GDI20_STATE 0x0020
694 #define RC_SAVEBITMAP 0x0040
695 #define RC_DI_BITMAP 0x0080
696 #define RC_PALETTE 0x0100
697 #define RC_DIBTODEV 0x0200
698 #define RC_BIGFONT 0x0400
699 #define RC_STRETCHBLT 0x0800
700 #define RC_FLOODFILL 0x1000
701 #define RC_STRETCHDIB 0x2000
702 #define RC_OP_DX_OUTPUT 0x4000
703 #define RC_DEVBITS 0x8000
705 /* GetSystemMetrics() codes */
706 #define SM_CXSCREEN 0
707 #define SM_CYSCREEN 1
708 #define SM_CXVSCROLL 2
709 #define SM_CYHSCROLL 3
710 #define SM_CYCAPTION 4
711 #define SM_CXBORDER 5
712 #define SM_CYBORDER 6
713 #define SM_CXDLGFRAME 7
714 #define SM_CYDLGFRAME 8
715 #define SM_CYVTHUMB 9
716 #define SM_CXHTHUMB 10
719 #define SM_CXCURSOR 13
720 #define SM_CYCURSOR 14
722 #define SM_CXFULLSCREEN 16
723 #define SM_CYFULLSCREEN 17
724 #define SM_CYKANJIWINDOW 18
725 #define SM_MOUSEPRESENT 19
726 #define SM_CYVSCROLL 20
727 #define SM_CXHSCROLL 21
729 #define SM_SWAPBUTTON 23
730 #define SM_RESERVED1 24
731 #define SM_RESERVED2 25
732 #define SM_RESERVED3 26
733 #define SM_RESERVED4 27
738 #define SM_CXFRAME 32
739 #define SM_CYFRAME 33
740 #define SM_CXMINTRACK 34
741 #define SM_CYMINTRACK 35
742 #define SM_CXDOUBLECLK 36
743 #define SM_CYDOUBLECLK 37
744 #define SM_CXICONSPACING 38
745 #define SM_CYICONSPACING 39
746 #define SM_MENUDROPALIGNMENT 40
747 #define SM_PENWINDOWS 41
748 #define SM_DBCSENABLED 42
750 /* Device-independent bitmaps */
752 typedef struct { BYTE rgbBlue
, rgbGreen
, rgbRed
, rgbReserved
; } RGBQUAD
;
753 typedef struct { BYTE rgbtBlue
, rgbtGreen
, rgbtRed
; } RGBTRIPLE
;
755 typedef struct tagBITMAPINFOHEADER
764 DWORD biXPelsPerMeter
;
765 DWORD biYPelsPerMeter
;
767 DWORD biClrImportant
;
770 typedef BITMAPINFOHEADER
* LPBITMAPINFOHEADER
;
771 typedef BITMAPINFOHEADER
* NPBITMAPINFOHEADER
;
772 typedef BITMAPINFOHEADER
* PBITMAPINFOHEADER
;
780 BITMAPINFOHEADER bmiHeader
;
781 RGBQUAD bmiColors
[1];
783 typedef BITMAPINFO
*LPBITMAPINFO
;
784 typedef BITMAPINFO
*NPBITMAPINFO
;
785 typedef BITMAPINFO
*PBITMAPINFO
;
787 typedef struct tagBITMAPCOREHEADER
789 unsigned long bcSize
;
790 unsigned short bcWidth
;
791 unsigned short bcHeight
;
792 unsigned short bcPlanes
;
793 unsigned short bcBitCount
;
796 #define DIB_RGB_COLORS 0
797 #define DIB_PAL_COLORS 1
801 /* Unimplemented structs */
803 BYTE Id
; /* much more .... */
807 BYTE i
; /* much more .... */
813 BYTE i
; /* much more .... */
815 typedef KANJISTRUCT
*LPKANJISTRUCT
;
816 typedef KANJISTRUCT
*NPKANJISTRUCT
;
817 typedef KANJISTRUCT
*PKANJISTRUCT
;
820 BYTE cBytes
, fFixedDisk
;
822 BYTE reserved
[4], szPathName
[128];
824 typedef OFSTRUCT
*POFSTRUCT
;
825 typedef OFSTRUCT
*NPOFSTRUCT
;
826 typedef OFSTRUCT
*LPOFSTRUCT
;
828 #define OF_READ 0x0000
829 #define OF_WRITE 0x0001
830 #define OF_READWRITE 0x0002
831 #define OF_CANCEL 0x0800
832 #define OF_CREATE 0x1000
833 #define OF_DELETE 0x0200
834 #define OF_EXIST 0x4000
835 #define OF_PARSE 0x0100
836 #define OF_PROMPT 0x2000
837 #define OF_REOPEN 0x8000
838 #define OF_SHARE_COMPAT 0x0000
839 #define OF_SHARE_DENY_NONE 0x0040
840 #define OF_SHARE_DENY_READ 0x0030
841 #define OF_SHARE_DENY_WRITE 0x0020
842 #define OF_SHARE_EXCLUSIVE 0x0010
843 #define OF_VERIFY 0x0400
848 HANDLE objectHandle
[1];
850 typedef HANDLETABLE
*LPHANDLETABLE
;
852 #define MAKEINTRESOURCE(i) (LPSTR)((DWORD)((WORD)(i)))
854 #define IDI_APPLICATION MAKEINTRESOURCE(32512)
855 #define IDI_HAND MAKEINTRESOURCE(32513)
856 #define IDI_QUESTION MAKEINTRESOURCE(32514)
857 #define IDI_EXCLAMATION MAKEINTRESOURCE(32515)
858 #define IDI_ASTERISK MAKEINTRESOURCE(32516)
860 #define IDC_ARROW MAKEINTRESOURCE(32512)
861 #define IDC_IBEAM MAKEINTRESOURCE(32513)
862 #define IDC_WAIT MAKEINTRESOURCE(32514)
863 #define IDC_CROSS MAKEINTRESOURCE(32515)
864 #define IDC_UPARROW MAKEINTRESOURCE(32516)
865 #define IDC_SIZE MAKEINTRESOURCE(32540)
866 #define IDC_ICON MAKEINTRESOURCE(32541)
867 #define IDC_SIZENWSE MAKEINTRESOURCE(32542)
868 #define IDC_SIZENESW MAKEINTRESOURCE(32543)
869 #define IDC_SIZEWE MAKEINTRESOURCE(32544)
870 #define IDC_SIZENS MAKEINTRESOURCE(32545)
872 /* Stock GDI objects for GetStockObject() */
874 #define WHITE_BRUSH 0
875 #define LTGRAY_BRUSH 1
877 #define DKGRAY_BRUSH 3
878 #define BLACK_BRUSH 4
880 #define HOLLOW_BRUSH 5
884 #define OEM_FIXED_FONT 10
885 #define ANSI_FIXED_FONT 11
886 #define ANSI_VAR_FONT 12
887 #define SYSTEM_FONT 13
888 #define DEVICE_DEFAULT_FONT 14
889 #define DEFAULT_PALETTE 15
890 #define SYSTEM_FIXED_FONT 16
893 enum { WM_NULL
, WM_CREATE
, WM_DESTROY
, WM_MOVE
, WM_UNUSED0
, WM_SIZE
, WM_ACTIVATE
,
894 WM_SETFOCUS
, WM_KILLFOCUS
, WM_UNUSED1
, WM_ENABLE
, WM_SETREDRAW
,
895 WM_SETTEXT
, WM_GETTEXT
, WM_GETTEXTLENGTH
, WM_PAINT
, WM_CLOSE
,
896 WM_QUERYENDSESSION
, WM_QUIT
, WM_QUERYOPEN
, WM_ERASEBKGND
,
897 WM_SYSCOLORCHANGE
, WM_ENDSESSION
, WM_UNUSED2
,
898 WM_SHOWWINDOW
, WM_CTLCOLOR
, WM_WININICHANGE
, WM_DEVMODECHANGE
,
899 WM_ACTIVATEAPP
, WM_FONTCHANGE
, WM_TIMECHANGE
, WM_CANCELMODE
, WM_SETCURSOR
,
900 WM_MOUSEACTIVATE
, WM_CHILDACTIVATE
, WM_QUEUESYNC
, WM_GETMINMAXINFO
,
901 WM_UNUSED3
, WM_PAINTICON
, WM_ICONERASEBKGND
, WM_NEXTDLGCTL
,
902 WM_UNUSED4
, WM_SPOOLERSTATUS
, WM_DRAWITEM
, WM_MEASUREITEM
,
903 WM_DELETEITEM
, WM_VKEYTOITEM
,
904 WM_CHARTOITEM
, WM_SETFONT
, WM_GETFONT
};
906 #define WM_NCCREATE 0x0081
907 #define WM_NCDESTROY 0x0082
909 #define WM_GETDLGCODE 0x0087
911 /* Keyboard messages */
912 #define WM_KEYDOWN 0x0100
913 #define WM_KEYUP 0x0101
914 #define WM_CHAR 0x0102
915 #define WM_DEADCHAR 0x0103
916 #define WM_SYSKEYDOWN 0x0104
917 #define WM_SYSKEYUP 0x0105
918 #define WM_SYSCHAR 0x0106
919 #define WM_SYSDEADCHAR 0x0107
920 #define WM_KEYFIRST WM_KEYDOWN
921 #define WM_KEYLAST 0x0108
923 #define WM_INITDIALOG 0x0110
924 #define WM_COMMAND 0x0111
925 #define WM_TIMER 0x0113
926 #define WM_SYSTIMER 0x0118
928 /* scroll messages */
929 #define WM_HSCROLL 0x0114
930 #define WM_VSCROLL 0x0115
933 #define WM_MOUSEMOVE 0x0200
934 #define WM_LBUTTONDOWN 0x0201
935 #define WM_LBUTTONUP 0x0202
936 #define WM_LBUTTONDBLCLK 0x0203
937 #define WM_RBUTTONDOWN 0x0204
938 #define WM_RBUTTONUP 0x0205
939 #define WM_RBUTTONDBLCLK 0x0206
940 #define WM_MBUTTONDOWN 0x0207
941 #define WM_MBUTTONUP 0x0208
942 #define WM_MBUTTONDBLCLK 0x0209
943 #define WM_MOUSEFIRST WM_MOUSEMOVE
944 #define WM_MOUSELAST WM_MBUTTONDBLCLK
946 #define WM_PARENTNOTIFY 0x0210
949 #define WM_NULL 0x0000
950 #define WM_USER 0x0400
953 /* Key status flags for mouse events */
954 #define MK_LBUTTON 0x0001
955 #define MK_RBUTTON 0x0002
956 #define MK_SHIFT 0x0004
957 #define MK_CONTROL 0x0008
958 #define MK_MBUTTON 0x0010
960 /* Queue status flags */
961 #define QS_KEY 0x0001
962 #define QS_MOUSEMOVE 0x0002
963 #define QS_MOUSEBUTTON 0x0004
964 #define QS_MOUSE (QS_MOUSEMOVE | QS_MOUSEBUTTON)
965 #define QS_POSTMESSAGE 0x0008
966 #define QS_TIMER 0x0010
967 #define QS_PAINT 0x0020
968 #define QS_SENDMESSAGE 0x0040
969 #define QS_ALLINPUT 0x007f
971 /* PeekMessage() options */
972 #define PM_NOREMOVE 0x0000
973 #define PM_REMOVE 0x0001
974 #define PM_NOYIELD 0x0002
976 enum { SW_HIDE
, SW_SHOWNORMAL
, SW_NORMAL
, SW_SHOWMINIMIZED
, SW_SHOWMAXIMIZED
,
977 SW_MAXIMIZE
, SW_SHOWNOACTIVATE
, SW_SHOW
, SW_MINIMIZE
,
978 SW_SHOWMINNOACTIVE
, SW_SHOWNA
, SW_RESTORE
};
980 /* WM_SIZE message wParam values */
981 #define SIZE_RESTORED 0
982 #define SIZE_MINIMIZED 1
983 #define SIZE_MAXIMIZED 2
984 #define SIZE_MAXSHOW 3
985 #define SIZE_MAXHIDE 4
987 /* SetWindowPos() and WINDOWPOS flags */
988 #define SWP_NOSIZE 0x0001
989 #define SWP_NOMOVE 0x0002
990 #define SWP_NOZORDER 0x0004
991 #define SWP_NOREDRAW 0x0008
992 #define SWP_NOACTIVATE 0x0010
993 #define SWP_FRAMECHANGED 0x0020 /* The frame changed: send WM_NCCALCSIZE */
994 #define SWP_SHOWWINDOW 0x0040
995 #define SWP_HIDEWINDOW 0x0080
996 #define SWP_NOCOPYBITS 0x0100
997 #define SWP_NOOWNERZORDER 0x0200 /* Don't do owner Z ordering */
999 #define SWP_DRAWFRAME SWP_FRAMECHANGED
1000 #define SWP_NOREPOSITION SWP_NOOWNERZORDER
1002 #define SWP_NOSENDCHANGING 0x0400
1003 #define SWP_DEFERERASE 0x2000
1005 /* SetWindowPos() hwndInsertAfter field values */
1006 #define HWND_TOP ((HWND)0)
1007 #define HWND_BOTTOM ((HWND)1)
1008 #define HWND_TOPMOST ((HWND)-1)
1009 #define HWND_NOTOPMOST ((HWND)-2)
1013 #define MF_CHANGE 0x0080
1014 #define MF_APPEND 0x0100
1015 #define MF_DELETE 0x0200
1016 #define MF_REMOVE 0x1000
1017 #define MF_BYCOMMAND 0
1018 #define MF_BYPOSITION 0x0400
1019 #define MF_SEPARATOR 0x080
1020 #define MF_ENABLED 0
1021 #define MF_GRAYED 0x0001
1022 #define MF_DISABLED 0x0002
1023 #define MF_UNCHECKED 0
1024 #define MF_CHECKED 0x0008
1025 #define MF_USECHECKBITMAPS 0x0200
1027 #define MF_BITMAP 0x0004
1028 #define MF_OWNERDRAW 0x0100
1029 #define MF_POPUP 0x0010
1030 #define MF_MENUBARBREAK 0x0020
1031 #define MF_MENUBREAK 0x0040
1032 #define MF_UNHILITE 0
1033 #define MF_HILITE 0x0080
1034 #define MF_SYSMENU 0x2000
1035 #define MF_HELP 0x4000
1036 #define MF_MOUSESELECT 0x8000
1037 #define MF_END 0x0080
1039 #ifndef NOWINOFFSETS
1040 #define GCW_HBRBACKGROUND (-10)
1043 #define MB_OK 0x0000
1044 #define MB_OKCANCEL 0x0001
1045 #define MB_ABORTRETRYIGNORE 0x0002
1046 #define MB_YESNOCANCEL 0x0003
1047 #define MB_YESNO 0x0004
1048 #define MB_RETRYCANCEL 0x0005
1049 #define MB_TYPEMASK 0x000F
1051 #define MB_ICONHAND 0x0010
1052 #define MB_ICONQUESTION 0x0020
1053 #define MB_ICONEXCLAMATION 0x0030
1054 #define MB_ICONASTERISK 0x0040
1055 #define MB_ICONMASK 0x00F0
1057 #define MB_ICONINFORMATION MB_ICONASTERISK
1058 #define MB_ICONSTOP MB_ICONHAND
1060 #define MB_DEFBUTTON1 0x0000
1061 #define MB_DEFBUTTON2 0x0100
1062 #define MB_DEFBUTTON3 0x0200
1063 #define MB_DEFMASK 0x0F00
1065 #define MB_APPLMODAL 0x0000
1066 #define MB_SYSTEMMODAL 0x1000
1067 #define MB_TASKMODAL 0x2000
1069 #define MB_NOFOCUS 0x8000
1076 #define DT_VCENTER 4
1078 #define DT_WORDBREAK 16
1079 #define DT_SINGLELINE 32
1080 #define DT_EXPANDTABS 64
1081 #define DT_TABSTOP 128
1082 #define DT_NOCLIP 256
1083 #define DT_EXTERNALLEADING 512
1084 #define DT_CALCRECT 1024
1085 #define DT_NOPREFIX 2048
1086 #define DT_INTERNAL 4096
1091 #define WS_OVERLAPPED 0x00000000L
1092 #define WS_POPUP 0x80000000L
1093 #define WS_CHILD 0x40000000L
1094 #define WS_MINIMIZE 0x20000000L
1095 #define WS_VISIBLE 0x10000000L
1096 #define WS_DISABLED 0x08000000L
1097 #define WS_CLIPSIBLINGS 0x04000000L
1098 #define WS_CLIPCHILDREN 0x02000000L
1099 #define WS_MAXIMIZE 0x01000000L
1100 #define WS_CAPTION 0x00C00000L
1101 #define WS_BORDER 0x00800000L
1102 #define WS_DLGFRAME 0x00400000L
1103 #define WS_VSCROLL 0x00200000L
1104 #define WS_HSCROLL 0x00100000L
1105 #define WS_SYSMENU 0x00080000L
1106 #define WS_THICKFRAME 0x00040000L
1107 #define WS_GROUP 0x00020000L
1108 #define WS_TABSTOP 0x00010000L
1109 #define WS_MINIMIZEBOX 0x00020000L
1110 #define WS_MINIMIZEBOX 0x00020000L
1111 #define WS_MAXIMIZEBOX 0x00010000L
1112 #define WS_TILED WS_OVERLAPPED
1113 #define WS_ICONIC WS_MINIMIZE
1114 #define WS_SIZEBOX WS_THICKFRAME
1115 #define WS_OVERLAPPEDWINDOW (WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME| WS_MINIMIZEBOX | WS_MAXIMIZEBOX)
1116 #define WS_POPUPWINDOW (WS_POPUP | WS_BORDER | WS_SYSMENU)
1117 #define WS_CHILDWINDOW (WS_CHILD)
1118 #define WS_TILEDWINDOW (WS_OVERLAPPEDWINDOW)
1120 /* Window extended styles */
1121 #define WS_EX_DLGMODALFRAME 0x00000001L
1122 #define WS_EX_NOPARENTNOTIFY 0x00000004L
1123 #define WS_EX_TOPMOST 0x00000008L
1124 #define WS_EX_ACCEPTFILES 0x00000010L
1125 #define WS_EX_TRANSPARENT 0x00000020L
1127 /* Window scrolling */
1128 #define SW_SCROLLCHILDREN 0x0001
1129 #define SW_INVALIDATE 0x0002
1130 #define SW_ERASE 0x0003
1132 /* Button control styles */
1133 #define BS_PUSHBUTTON 0x00000000L
1134 #define BS_DEFPUSHBUTTON 0x00000001L
1135 #define BS_CHECKBOX 0x00000002L
1136 #define BS_AUTOCHECKBOX 0x00000003L
1137 #define BS_RADIOBUTTON 0x00000004L
1138 #define BS_3STATE 0x00000005L
1139 #define BS_AUTO3STATE 0x00000006L
1140 #define BS_GROUPBOX 0x00000007L
1141 #define BS_USERBUTTON 0x00000008L
1142 #define BS_AUTORADIOBUTTON 0x00000009L
1143 #define BS_OWNERDRAW 0x0000000BL
1144 #define BS_LEFTTEXT 0x00000020L
1146 /* Button control messages */
1147 #define BM_GETCHECK (WM_USER+0)
1148 #define BM_SETCHECK (WM_USER+1)
1149 #define BM_GETSTATE (WM_USER+2)
1150 #define BM_SETSTATE (WM_USER+3)
1151 #define BM_SETSTYLE (WM_USER+4)
1153 /* Button notification codes */
1154 #define BN_CLICKED 0
1157 #define BN_UNHILITE 3
1158 #define BN_DISABLE 4
1159 #define BN_DOUBLECLICKED 5
1161 /* Static Control Styles */
1162 #define SS_LEFT 0x00000000L
1163 #define SS_CENTER 0x00000001L
1164 #define SS_RIGHT 0x00000002L
1165 #define SS_ICON 0x00000003L
1166 #define SS_BLACKRECT 0x00000004L
1167 #define SS_GRAYRECT 0x00000005L
1168 #define SS_WHITERECT 0x00000006L
1169 #define SS_BLACKFRAME 0x00000007L
1170 #define SS_GRAYFRAME 0x00000008L
1171 #define SS_WHITEFRAME 0x00000009L
1172 #define SS_SIMPLE 0x0000000BL
1173 #define SS_LEFTNOWORDWRAP 0x0000000CL
1174 #define SS_NOPREFIX 0x00000080L
1176 /* Static Control Mesages */
1177 #define STM_SETICON (WM_USER+0)
1178 #define STM_GETICON (WM_USER+1)
1180 /* WM_H/VSCROLL commands */
1182 #define SB_LINELEFT 0
1183 #define SB_LINEDOWN 1
1184 #define SB_LINERIGHT 1
1186 #define SB_PAGELEFT 2
1187 #define SB_PAGEDOWN 3
1188 #define SB_PAGERIGHT 3
1189 #define SB_THUMBPOSITION 4
1190 #define SB_THUMBTRACK 5
1195 #define SB_ENDSCROLL 8
1197 /* Scroll bar selection constants */
1203 /* Scrollbar styles */
1204 #define SBS_HORZ 0x0000L
1205 #define SBS_VERT 0x0001L
1206 #define SBS_TOPALIGN 0x0002L
1207 #define SBS_LEFTALIGN 0x0002L
1208 #define SBS_BOTTOMALIGN 0x0004L
1209 #define SBS_RIGHTALIGN 0x0004L
1210 #define SBS_SIZEBOXTOPLEFTALIGN 0x0002L
1211 #define SBS_SIZEBOXBOTTOMRIGHTALIGN 0x0004L
1212 #define SBS_SIZEBOX 0x0008L
1214 /* EnableScrollBar() flags */
1215 #define ESB_ENABLE_BOTH 0x0000
1216 #define ESB_DISABLE_BOTH 0x0003
1218 #define ESB_DISABLE_LEFT 0x0001
1219 #define ESB_DISABLE_RIGHT 0x0002
1221 #define ESB_DISABLE_UP 0x0001
1222 #define ESB_DISABLE_DOWN 0x0002
1224 #define ESB_DISABLE_LTUP ESB_DISABLE_LEFT
1225 #define ESB_DISABLE_RTDN ESB_DISABLE_RIGHT
1227 /* Listbox styles */
1228 #define LBS_NOTIFY 0x0001L
1229 #define LBS_SORT 0x0002L
1230 #define LBS_NOREDRAW 0x0004L
1231 #define LBS_MULTIPLESEL 0x0008L
1232 #define LBS_OWNERDRAWFIXED 0x0010L
1233 #define LBS_OWNERDRAWVARIABLE 0x0020L
1234 #define LBS_HASSTRINGS 0x0040L
1235 #define LBS_USETABSTOPS 0x0080L
1236 #define LBS_NOINTEGRALHEIGHT 0x0100L
1237 #define LBS_MULTICOLUMN 0x0200L
1238 #define LBS_WANTKEYBOARDINPUT 0x0400L
1239 #define LBS_EXTENDEDSEL 0x0800L
1240 #define LBS_DISABLENOSCROLL 0x1000L
1241 #define LBS_STANDARD (LBS_NOTIFY | LBS_SORT | WS_VSCROLL | WS_BORDER)
1243 /* Listbox messages */
1244 #define LB_ADDSTRING (WM_USER+1)
1245 #define LB_INSERTSTRING (WM_USER+2)
1246 #define LB_DELETESTRING (WM_USER+3)
1247 #define LB_RESETCONTENT (WM_USER+5)
1248 #define LB_SETSEL (WM_USER+6)
1249 #define LB_SETCURSEL (WM_USER+7)
1250 #define LB_GETSEL (WM_USER+8)
1251 #define LB_GETCURSEL (WM_USER+9)
1252 #define LB_GETTEXT (WM_USER+10)
1253 #define LB_GETTEXTLEN (WM_USER+11)
1254 #define LB_GETCOUNT (WM_USER+12)
1255 #define LB_SELECTSTRING (WM_USER+13)
1256 #define LB_DIR (WM_USER+14)
1257 #define LB_GETTOPINDEX (WM_USER+15)
1258 #define LB_FINDSTRING (WM_USER+16)
1259 #define LB_GETSELCOUNT (WM_USER+17)
1260 #define LB_GETSELITEMS (WM_USER+18)
1261 #define LB_SETTABSTOPS (WM_USER+19)
1262 #define LB_GETHORIZONTALEXTENT (WM_USER+20)
1263 #define LB_SETHORIZONTALEXTENT (WM_USER+21)
1264 #define LB_SETCOLUMNWIDTH (WM_USER+22)
1265 #define LB_SETTOPINDEX (WM_USER+24)
1266 #define LB_GETITEMRECT (WM_USER+25)
1267 #define LB_GETITEMDATA (WM_USER+26)
1268 #define LB_SETITEMDATA (WM_USER+27)
1269 #define LB_SELITEMRANGE (WM_USER+28)
1270 #define LB_SETCARETINDEX (WM_USER+31)
1271 #define LB_GETCARETINDEX (WM_USER+32)
1272 #define LB_SETITEMHEIGHT (WM_USER+33)
1273 #define LB_GETITEMHEIGHT (WM_USER+34)
1274 #define LB_FINDSTRINGEXACT (WM_USER+35)
1276 /* Listbox notification codes */
1277 #define LBN_ERRSPACE (-2)
1278 #define LBN_SELCHANGE 1
1279 #define LBN_DBLCLK 2
1280 #define LBN_SELCANCEL 3
1281 #define LBN_SETFOCUS 4
1282 #define LBN_KILLFOCUS 5
1284 /* Listbox notification messages */
1285 #define WM_VKEYTOITEM 0x002E
1286 #define WM_CHARTOITEM 0x002F
1288 /* Listbox message return values */
1291 #define LB_ERRSPACE (-2)
1293 #define LB_CTLCODE 0L
1295 /* Combo box styles */
1296 #define CBS_SIMPLE 0x0001L
1297 #define CBS_DROPDOWN 0x0002L
1298 #define CBS_DROPDOWNLIST 0x0003L
1299 #define CBS_OWNERDRAWFIXED 0x0010L
1300 #define CBS_OWNERDRAWVARIABLE 0x0020L
1301 #define CBS_AUTOHSCROLL 0x0040L
1302 #define CBS_OEMCONVERT 0x0080L
1303 #define CBS_SORT 0x0100L
1304 #define CBS_HASSTRINGS 0x0200L
1305 #define CBS_NOINTEGRALHEIGHT 0x0400L
1306 #define CBS_DISABLENOSCROLL 0x0800L
1308 /* Combo box messages */
1309 #define CB_GETEDITSEL (WM_USER+0)
1310 #define CB_LIMITTEXT (WM_USER+1)
1311 #define CB_SETEDITSEL (WM_USER+2)
1312 #define CB_ADDSTRING (WM_USER+3)
1313 #define CB_DELETESTRING (WM_USER+4)
1314 #define CB_DIR (WM_USER+5)
1315 #define CB_GETCOUNT (WM_USER+6)
1316 #define CB_GETCURSEL (WM_USER+7)
1317 #define CB_GETLBTEXT (WM_USER+8)
1318 #define CB_GETLBTEXTLEN (WM_USER+9)
1319 #define CB_INSERTSTRING (WM_USER+10)
1320 #define CB_RESETCONTENT (WM_USER+11)
1321 #define CB_FINDSTRING (WM_USER+12)
1322 #define CB_SELECTSTRING (WM_USER+13)
1323 #define CB_SETCURSEL (WM_USER+14)
1324 #define CB_SHOWDROPDOWN (WM_USER+15)
1325 #define CB_GETITEMDATA (WM_USER+16)
1326 #define CB_SETITEMDATA (WM_USER+17)
1327 #define CB_GETDROPPEDCONTROLRECT (WM_USER+18)
1328 #define CB_SETITEMHEIGHT (WM_USER+19)
1329 #define CB_GETITEMHEIGHT (WM_USER+20)
1330 #define CB_SETEXTENDEDUI (WM_USER+21)
1331 #define CB_GETEXTENDEDUI (WM_USER+22)
1332 #define CB_GETDROPPEDSTATE (WM_USER+23)
1333 #define CB_FINDSTRINGEXACT (WM_USER+24)
1335 /* Combo box notification codes */
1336 #define CBN_ERRSPACE (-1)
1337 #define CBN_SELCHANGE 1
1338 #define CBN_DBLCLK 2
1339 #define CBN_SETFOCUS 3
1340 #define CBN_KILLFOCUS 4
1341 #define CBN_EDITCHANGE 5
1342 #define CBN_EDITUPDATE 6
1343 #define CBN_DROPDOWN 7
1344 #define CBN_CLOSEUP 8
1345 #define CBN_SELENDOK 9
1346 #define CBN_SELENDCANCEL 10
1348 /* Combo box message return values */
1351 #define CB_ERRSPACE (-2)
1354 /* Owner draw control types */
1356 #define ODT_LISTBOX 2
1357 #define ODT_COMBOBOX 3
1358 #define ODT_BUTTON 4
1360 /* Owner draw actions */
1361 #define ODA_DRAWENTIRE 0x0001
1362 #define ODA_SELECT 0x0002
1363 #define ODA_FOCUS 0x0004
1365 /* Owner draw state */
1366 #define ODS_SELECTED 0x0001
1367 #define ODS_GRAYED 0x0002
1368 #define ODS_DISABLED 0x0004
1369 #define ODS_CHECKED 0x0008
1370 #define ODS_FOCUS 0x0010
1372 /* Edit control styles */
1373 #define ES_LEFT 0x00000000L
1374 #define ES_CENTER 0x00000001L
1375 #define ES_RIGHT 0x00000002L
1376 #define ES_MULTILINE 0x00000004L
1377 #define ES_UPPERCASE 0x00000008L
1378 #define ES_LOWERCASE 0x00000010L
1379 #define ES_PASSWORD 0x00000020L
1380 #define ES_AUTOVSCROLL 0x00000040L
1381 #define ES_AUTOHSCROLL 0x00000080L
1382 #define ES_NOHISESEL 0x00000100L
1383 #define ES_OEMCONVERT 0x00000400L
1384 #define ES_READONLY 0x00000800L
1385 #define ES_WANTRETURN 0x00001000L
1387 /* Edit control messages */
1388 #define EM_GETSEL (WM_USER+0)
1389 #define EM_SETSEL (WM_USER+1)
1390 #define EM_GETRECT (WM_USER+2)
1391 #define EM_SETRECT (WM_USER+3)
1392 #define EM_SETRECTNP (WM_USER+4)
1393 #define EM_LINESCROLL (WM_USER+6)
1394 #define EM_GETMODIFY (WM_USER+8)
1395 #define EM_SETMODIFY (WM_USER+9)
1396 #define EM_GETLINECOUNT (WM_USER+10)
1397 #define EM_LINEINDEX (WM_USER+11)
1398 #define EM_SETHANDLE (WM_USER+12)
1399 #define EM_GETHANDLE (WM_USER+13)
1400 #define EM_LINELENGTH (WM_USER+17)
1401 #define EM_REPLACESEL (WM_USER+18)
1402 #define EM_GETLINE (WM_USER+20)
1403 #define EM_LIMITTEXT (WM_USER+21)
1404 #define EM_CANUNDO (WM_USER+22)
1405 #define EM_UNDO (WM_USER+23)
1406 #define EM_FMTLINES (WM_USER+24)
1407 #define EM_LINEFROMCHAR (WM_USER+25)
1408 #define EM_SETTABSTOPS (WM_USER+27)
1409 #define EM_SETPASSWORDCHAR (WM_USER+28)
1410 #define EM_EMPTYUNDOBUFFER (WM_USER+29)
1411 #define EM_GETFIRSTVISIBLELINE (WM_USER+30)
1412 #define EM_SETREADONLY (WM_USER+31)
1413 #define EM_SETWORDBREAKPROC (WM_USER+32)
1414 #define EM_GETWORDBREAKPROC (WM_USER+33)
1415 #define EM_GETPASSWORDCHAR (WM_USER+34)
1417 typedef int (CALLBACK
*EDITWORDBREAKPROC
)(LPSTR lpch
, int ichCurrent
,
1420 /* EDITWORDBREAKPROC code values */
1423 #define WB_ISDELIMITER 2
1425 /* Edit control notification codes */
1426 #define EN_SETFOCUS 0x0100
1427 #define EN_KILLFOCUS 0x0200
1428 #define EN_CHANGE 0x0300
1429 #define EN_UPDATE 0x0400
1430 #define EN_ERRSPACE 0x0500
1431 #define EN_MAXTEXT 0x0501
1432 #define EN_HSCROLL 0x0601
1433 #define EN_VSCROLL 0x0602
1436 #define WM_DRAWITEM 0x002B
1438 typedef struct tagDRAWITEMSTRUCT
1450 typedef DRAWITEMSTRUCT NEAR
* PDRAWITEMSTRUCT
;
1451 typedef DRAWITEMSTRUCT FAR
* LPDRAWITEMSTRUCT
;
1453 #define WM_MEASUREITEM 0x002C
1455 typedef struct tagMEASUREITEMSTRUCT
1463 } MEASUREITEMSTRUCT
;
1464 typedef MEASUREITEMSTRUCT NEAR
* PMEASUREITEMSTRUCT
;
1465 typedef MEASUREITEMSTRUCT FAR
* LPMEASUREITEMSTRUCT
;
1467 #define WM_DELETEITEM 0x002D
1469 typedef struct tagDELETEITEMSTRUCT
1477 typedef DELETEITEMSTRUCT NEAR
* PDELETEITEMSTRUCT
;
1478 typedef DELETEITEMSTRUCT FAR
* LPDELETEITEMSTRUCT
;
1480 #define WM_COMPAREITEM 0x0039
1482 typedef struct tagCOMPAREITEMSTRUCT
1491 } COMPAREITEMSTRUCT
;
1492 typedef COMPAREITEMSTRUCT NEAR
* PCOMPAREITEMSTRUCT
;
1493 typedef COMPAREITEMSTRUCT FAR
* LPCOMPAREITEMSTRUCT
;
1496 #define LMEM_MOVEABLE 0x0002
1498 #define GMEM_FIXED 0x0000
1499 #define GMEM_MOVEABLE 0x0002
1500 #define GMEM_NOCOMPACT 0x0010
1501 #define GMEM_NODISCARD 0x0020
1502 #define GMEM_ZEROINIT 0x0040
1503 #define GMEM_MODIFY 0x0080
1504 #define GMEM_DISCARDABLE 0x0100
1505 #define GMEM_NOT_BANKED 0x1000
1506 #define GMEM_SHARE 0x2000
1507 #define GMEM_DDESHARE 0x2000
1508 #define GMEM_NOTIFY 0x4000
1509 #define GMEM_LOWER GMEM_NOT_BANKED
1511 #define GHND (GMEM_MOVEABLE | GMEM_ZEROINIT)
1512 #define GPTR (GMEM_FIXED | GMEM_ZEROINIT)
1515 #define F(ret,name) ret name(void);
1516 #define Fa(ret,name,t1,a1) ret name(t1 a1);
1517 #define Fb(ret,name,t1,a1,t2,a2) ret name(t1 a1,t2 a2);
1518 #define Fc(ret,name,t1,a1,t2,a2,t3,a3) ret name(t1 a1,t2 a2,t3 a3);
1519 #define Fd(ret,name,t1,a1,t2,a2,t3,a3,t4,a4) ret name(t1 a1,t2 a2,t3 a3,t4 a4);
1520 #define Fe(ret,name,t1,a1,t2,a2,t3,a3,t4,a4,t5,a5) ret name( t1 a1,t2 a2,t3 a3,t4 a4,t5 a5);
1521 #define Ff(ret,name,t1,a1,t2,a2,t3,a3,t4,a4,t5,a5,t6,a6) ret name(t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6);
1522 #define Fg(ret,name,t1,a1,t2,a2,t3,a3,t4,a4,t5,a5,t6,a6,t7,a7) ret name( t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7);
1523 #define Fh(ret,name,t1,a1,t2,a2,t3,a3,t4,a4,t5,a5,t6,a6,t7,a7,t8,a8) ret name(t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8);
1524 #define Fi(ret,name,t1,a1,t2,a2,t3,a3,t4,a4,t5,a5,t6,a6,t7,a7,t8,a8,t9,a9) ret name(t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8,t9 a9);
1525 #define Fj(ret,name,t1,a1,t2,a2,t3,a3,t4,a4,t5,a5,t6,a6,t7,a7,t8,a8,t9,a9,t10,a10) ret name(t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8,t9 a9,t10 a10);
1526 #define Fk(ret,name,t1,a1,t2,a2,t3,a3,t4,a4,t5,a5,t6,a6,t7,a7,t8,a8,t9,a9,t10,a10,t11,a11) ret name (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8,t9 a9,t10 a10,t11 a11);
1527 #define Fl(ret,name,t1,a1,t2,a2,t3,a3,t4,a4,t5,a5,t6,a6,t7,a7,t8,a8,t9,a9,t10,a10,t11,a11,t12,a12) ret name(t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8,t9 a9,t10 a10,t11 a11,t12 a12);
1528 #define Fm(ret,name,t1,a1,t2,a2,t3,a3,t4,a4,t5,a5,t6,a6,t7,a7,t8,a8,t9,a9,t10,a10,t11,a11,t12,a12,t13,a13) ret name(t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8,t9 a9,t10 a10,t11 a11,t12 a12,t13 a13);
1529 #define Fn(ret,name,t1,a1,t2,a2,t3,a3,t4,a4,t5,a5,t6,a6,t7,a7,t8,a8,t9,a9,t10,a10,t11,a11,t12,a12,t13,a13,t14,a14) ret name(t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8,t9 a9,t10 a10,t11 a11,t12 a12,t13 a13,t14 a14);
1531 int wsprintf(LPSTR a
,LPSTR b
,...);
1534 /* Implemented functions */
1537 F(BOOL
,GetInputState
)
1538 F(LPSTR
,GetDOSEnvironment
)
1539 F(DWORD
,GetMessagePos
)
1540 F(LONG
,GetMessageTime
)
1541 F(LONG
,GetMessageExtraInfo
)
1543 F(BOOL
,CloseClipboard
)
1544 F(BOOL
,EmptyClipboard
)
1545 F(BOOL
,InSendMessage
)
1546 F(DWORD
,GetCurrentTime
)
1547 F(DWORD
,GetDialogBaseUnits
)
1548 F(DWORD
,GetTickCount
)
1549 F(HANDLE
,GetCurrentTask
)
1550 F(HMENU
,CreatePopupMenu
)
1551 F(HWND
,GetActiveWindow
)
1553 F(HWND
,GetClipboardOwner
)
1554 F(HWND
,GetClipboardViewer
)
1555 F(HWND
,GetDesktopHwnd
)
1556 F(HWND
,GetDesktopWindow
)
1558 F(HWND
,GetSysModalWindow
)
1559 F(LONG
,GetMenuCheckMarkDimensions
)
1561 F(LPINT
,GetThresholdEvent
)
1562 F(LPSTR
,ValidateFreeSpaces
)
1563 F(void,ValidateCodeSegments
)
1564 F(WORD
,GetCaretBlinkTime
)
1565 F(WORD
,GetCurrentPDB
)
1566 F(WORD
,GetDoubleClickTime
)
1569 F(int,CountClipboardFormats
)
1570 F(int,GetKBCodePage
)
1571 F(int,GetThresholdStatus
)
1576 F(int,SyncAllVoices
)
1579 F(void,DestroyCaret
)
1585 F(void,ReleaseCapture
)
1586 F(void,SwitchStackBack
)
1589 Fa(BOOL
,IsCharAlpha
,char,ch
)
1590 Fa(BOOL
,IsCharAlphaNumeric
,char,ch
)
1591 Fa(BOOL
,IsCharLower
,char,ch
)
1592 Fa(BOOL
,IsCharUpper
,char,ch
)
1593 Fa(ATOM
,RegisterClass
,LPWNDCLASS
,a
)
1594 Fa(BOOL
,TranslateMessage
,LPMSG
,a
)
1595 Fa(void,PostQuitMessage
,int,a
)
1596 Fa(BOOL
,SetMessageQueue
,int,a
)
1597 Fa(int,_lclose
,int,a
)
1598 Fb(int,_lopen
,LPSTR
,a
,int,b
)
1599 Fa(int,lstrlen
,LPCSTR
,a
)
1600 Fa(LONG
,DispatchMessage
,LPMSG
,msg
)
1601 Fa(void,UpdateWindow
,HWND
,a
)
1602 Fa(ATOM
,AddAtom
,LPCSTR
,a
)
1603 Fa(ATOM
,DeleteAtom
,ATOM
,a
)
1604 Fa(ATOM
,FindAtom
,LPCSTR
,a
)
1605 Fa(ATOM
,GlobalAddAtom
,LPCSTR
,a
)
1606 Fa(ATOM
,GlobalDeleteAtom
,ATOM
,a
)
1607 Fa(ATOM
,GlobalFindAtom
,LPCSTR
,a
)
1608 Fa(BOOL
,DeleteDC
,HDC
,a
)
1609 Fa(BOOL
,DeleteMetaFile
,HANDLE
,a
)
1610 Fa(BOOL
,DeleteObject
,HANDLE
,a
)
1611 Fa(BOOL
,DestroyCursor
,HCURSOR
,a
)
1612 Fa(BOOL
,DestroyIcon
,HICON
,a
)
1613 Fa(BOOL
,DestroyMenu
,HMENU
,a
)
1614 Fa(BOOL
,DestroyWindow
,HWND
,a
)
1615 Fa(BOOL
,EnableHardwareInput
,BOOL
,a
)
1616 Fa(BOOL
,FreeModule
,HANDLE
,a
)
1617 Fa(BOOL
,FreeResource
,HANDLE
,a
)
1618 Fa(BOOL
,GlobalUnWire
,HANDLE
,a
)
1619 Fa(BOOL
,GlobalUnfix
,HANDLE
,a
)
1620 Fa(BOOL
,GlobalUnlock
,HANDLE
,a
)
1621 Fa(BOOL
,InitAtomTable
,WORD
,a
)
1622 Fa(BOOL
,IsClipboardFormatAvailable
,WORD
,a
)
1623 Fa(BOOL
,IsIconic
,HWND
,a
)
1624 Fa(BOOL
,IsRectEmpty
,LPRECT
,a
)
1625 Fa(BOOL
,IsTwoByteCharPrefix
,char,a
)
1626 Fa(BOOL
,IsWindow
,HWND
,a
)
1627 Fa(BOOL
,IsWindowEnabled
,HWND
,a
)
1628 Fa(BOOL
,IsWindowVisible
,HWND
,a
)
1629 Fa(BOOL
,IsZoomed
,HWND
,a
)
1630 Fa(BOOL
,LocalUnlock
,HANDLE
,a
)
1631 Fa(BOOL
,OpenClipboard
,HWND
,a
)
1632 Fa(BOOL
,OpenIcon
,HWND
,a
)
1633 Fa(BOOL
,RemoveFontResource
,LPSTR
,a
)
1634 Fa(BOOL
,SetErrorMode
,WORD
,a
)
1635 Fa(BOOL
,SwapMouseButton
,BOOL
,a
)
1636 Fa(BOOL
,UnrealizeObject
,HBRUSH
,a
)
1637 Fa(BYTE
,GetTempDrive
,BYTE
,a
)
1638 Fa(DWORD
,GetAspectRatioFilter
,HDC
,a
)
1639 Fa(DWORD
,GetBitmapDimension
,HBITMAP
,a
)
1640 Fa(COLORREF
,GetBkColor
,HDC
,a
)
1641 Fa(DWORD
,GetBrushOrg
,HDC
,a
)
1642 Fa(DWORD
,GetCurrentPosition
,HDC
,a
)
1643 Fa(DWORD
,GetDCOrg
,HDC
,a
)
1644 Fa(DWORD
,GetFreeSpace
,WORD
,a
)
1645 Fa(COLORREF
,GetSysColor
,short,a
)
1646 Fa(COLORREF
,GetTextColor
,HDC
,a
)
1647 Fa(DWORD
,GetViewportExt
,HDC
,a
)
1648 Fa(DWORD
,GetViewportOrg
,HDC
,a
)
1649 Fa(DWORD
,GetWindowExt
,HDC
,a
)
1650 Fa(DWORD
,GetWindowOrg
,HDC
,a
)
1651 Fa(DWORD
,GlobalCompact
,DWORD
,a
)
1652 Fa(DWORD
,GlobalHandle
,WORD
,a
)
1653 Fa(DWORD
,GlobalSize
,HANDLE
,a
)
1654 Fa(DWORD
,OemKeyScan
,WORD
,a
)
1655 Fa(FARPROC
,LocalNotify
,FARPROC
,a
)
1656 Fa(HANDLE
,BeginDeferWindowPos
,int,nNumWindows
)
1657 Fa(HANDLE
,CloseMetaFile
,HANDLE
,a
)
1658 Fa(HANDLE
,CreateMetaFile
,LPSTR
,a
)
1659 Fa(HANDLE
,GetAtomHandle
,ATOM
,a
)
1660 Fa(HANDLE
,GetClipboardData
,WORD
,a
)
1661 Fa(HANDLE
,GetCodeHandle
,FARPROC
,a
)
1662 Fa(HANDLE
,GetMetaFile
,LPSTR
,a
)
1663 Fa(HANDLE
,GetMetaFileBits
,HANDLE
,a
)
1664 Fa(HANDLE
,GetModuleHandle
,LPSTR
,a
)
1665 Fa(HANDLE
,GetStockObject
,int,a
)
1666 Fa(HANDLE
,GetWindowTask
,HWND
,a
)
1667 Fa(HANDLE
,GlobalFree
,HANDLE
,a
)
1668 Fa(HANDLE
,GlobalLRUNewest
,HANDLE
,a
)
1669 Fa(HANDLE
,GlobalLRUOldest
,HANDLE
,a
)
1670 Fa(HANDLE
,LoadLibrary
,LPSTR
,a
)
1671 Fa(HANDLE
,LocalFree
,HANDLE
,a
)
1672 Fa(HANDLE
,LocalHandle
,WORD
,a
)
1673 Fa(HANDLE
,LockSegment
,WORD
,a
)
1674 Fa(HANDLE
,SetMetaFileBits
,HANDLE
,a
)
1675 Fa(HANDLE
,UnlockSegment
,WORD
,a
)
1676 Fa(HBITMAP
,CreateBitmapIndirect
,BITMAP FAR
*,a
)
1677 Fa(HBRUSH
,CreateBrushIndirect
,LOGBRUSH FAR
*,a
)
1678 Fa(HBRUSH
,CreatePatternBrush
,HBITMAP
,a
)
1679 Fa(HBRUSH
,CreateSolidBrush
,DWORD
,a
)
1680 Fa(HCURSOR
,SetCursor
,HCURSOR
,a
)
1681 Fa(HDC
,CreateCompatibleDC
,HDC
,a
)
1682 Fa(HDC
,GetDC
,HWND
,a
)
1683 Fa(HDC
,GetDCState
,HDC
,a
)
1684 Fa(HDC
,GetWindowDC
,HWND
,a
)
1685 Fa(HFONT
,CreateFontIndirect
,LOGFONT FAR
*,a
)
1686 Fa(HMENU
,GetMenu
,HWND
,a
)
1687 Fa(HMENU
,LoadMenuIndirect
,LPSTR
,a
)
1688 Fa(HPALETTE
,CreatePalette
,LPLOGPALETTE
,a
)
1689 Fa(HPEN
,CreatePenIndirect
,LOGPEN FAR
*,a
)
1690 Fa(HRGN
,CreateEllipticRgnIndirect
,LPRECT
,a
)
1691 Fa(HRGN
,CreateRectRgnIndirect
,LPRECT
,a
)
1692 Fa(HRGN
,GetClipRgn
,HDC
,a
)
1693 Fa(HRGN
,InquireVisRgn
,HDC
,a
)
1694 Fa(HRGN
,SaveVisRgn
,HDC
,a
)
1695 Fa(HWND
,GetLastActivePopup
,HWND
,a
)
1696 Fa(HWND
,GetParent
,HWND
,a
)
1697 Fa(HWND
,GetTopWindow
,HWND
,a
)
1698 Fa(HWND
,SetActiveWindow
,HWND
,a
)
1699 Fa(HWND
,SetCapture
,HWND
,a
)
1700 Fa(HWND
,SetClipboardViewer
,HWND
,a
)
1701 Fa(HWND
,SetFocus
,HWND
,a
)
1702 Fa(HWND
,SetSysModalWindow
,HWND
,a
)
1703 Fa(HWND
,WindowFromPoint
,POINT
,a
)
1704 Fa(LONG
,SetSwapAreaSize
,WORD
,a
)
1705 Fa(LPSTR
,AnsiLower
,LPSTR
,a
)
1706 Fa(LPSTR
,AnsiNext
,LPSTR
,a
)
1707 Fa(LPSTR
,AnsiUpper
,LPSTR
,a
)
1708 Fa(LPSTR
,GlobalLock
,HANDLE
,a
)
1709 Fa(LPSTR
,GlobalWire
,HANDLE
,a
)
1710 Fa(LPSTR
,LockResource
,HANDLE
,a
)
1711 Fa(void,GlobalFix
,HANDLE
,a
)
1712 Fa(void,GlobalNotify
,FARPROC
,a
)
1713 Fa(void,LimitEmsPages
,DWORD
,a
)
1714 Fa(void,SetConvertHook
,BOOL
,a
)
1715 Fa(WORD
,AllocDStoCSAlias
,WORD
,a
)
1716 Fa(WORD
,AllocSelector
,WORD
,a
)
1717 Fa(WORD
,ArrangeIconicWindows
,HWND
,a
)
1718 Fa(WORD
,EnumClipboardFormats
,WORD
,a
)
1719 Fa(WORD
,FreeSelector
,WORD
,a
)
1720 Fa(WORD
,GetDriveType
,int,a
)
1721 Fa(WORD
,GetMenuItemCount
,HMENU
,a
)
1722 Fa(WORD
,GetTextAlign
,HDC
,a
)
1723 Fa(WORD
,GlobalFlags
,HANDLE
,a
)
1724 Fa(WORD
,GlobalPageLock
,HANDLE
,a
)
1725 Fa(WORD
,GlobalPageUnlock
,HANDLE
,a
)
1726 Fa(WORD
,LocalCompact
,WORD
,a
)
1727 Fa(WORD
,LocalFlags
,HANDLE
,a
)
1728 Fa(WORD
,LocalSize
,HANDLE
,a
)
1729 Fa(WORD
,RealizePalette
,HDC
,a
)
1730 Fa(WORD
,RegisterClipboardFormat
,LPSTR
,a
)
1731 Fa(WORD
,RegisterWindowMessage
,LPSTR
,a
)
1732 Fa(WORD
,SetHandleCount
,WORD
,a
)
1733 Fa(WORD
,VkKeyScan
,WORD
,a
)
1734 Fa(char NEAR
*,LocalLock
,HANDLE
,a
)
1735 Fa(int,AddFontResource
,LPSTR
,a
)
1736 Fa(int,Catch
,LPCATCHBUF
,a
)
1737 Fa(int,ClearCommBreak
,int,a
)
1738 Fa(int,CloseComm
,int,a
)
1739 Fa(int,CountVoiceNotes
,int,a
)
1740 Fa(int,GetAsyncKeyState
,int,a
)
1741 Fa(WORD
,GetBkMode
,HDC
,a
)
1742 Fa(int,GetDlgCtrlID
,HWND
,a
)
1743 Fa(int,GetKeyState
,int,a
)
1744 Fa(int,GetKeyboardType
,int,a
)
1745 Fa(WORD
,GetMapMode
,HDC
,a
)
1746 Fa(int,GetModuleUsage
,HANDLE
,a
)
1747 Fa(WORD
,GetPolyFillMode
,HDC
,a
)
1748 Fa(WORD
,GetRelAbs
,HDC
,a
)
1749 Fa(WORD
,GetROP2
,HDC
,a
)
1750 Fa(WORD
,GetStretchBltMode
,HDC
,a
)
1751 Fa(int,GetSystemMetrics
,short,a
)
1752 Fa(int,GetWindowTextLength
,HWND
,a
)
1753 Fa(int,RestoreVisRgn
,HDC
,a
)
1754 Fa(int,SaveDC
,HDC
,a
)
1755 Fa(int,SetCommBreak
,int,a
)
1756 Fa(int,SetCommState
,DCB
*,a
)
1757 Fa(int,ShowCursor
,BOOL
,a
)
1758 Fa(int,UpdateColors
,HDC
,a
)
1759 Fa(int,WaitSoundState
,int,a
)
1760 Fa(short,GetTextCharacterExtra
,HDC
,a
)
1761 Fa(void,BringWindowToTop
,HWND
,a
)
1762 Fa(void,ClipCursor
,LPRECT
,a
)
1763 Fa(void,CloseWindow
,HWND
,a
)
1764 Fa(void,DrawMenuBar
,HWND
,a
)
1765 Fa(void,EndDeferWindowPos
,HANDLE
,hWinPosInfo
)
1766 Fa(void,FatalExit
,int,a
)
1767 Fa(void,FreeLibrary
,HANDLE
,a
)
1768 Fa(void,FreeProcInstance
,FARPROC
,a
)
1769 Fa(void,GetCaretPos
,LPPOINT
,a
)
1770 Fa(void,GetCursorPos
,LPPOINT
,a
)
1771 Fa(void,GetKeyboardState
,BYTE FAR
*,a
)
1772 Fa(void,HideCaret
,HWND
,a
)
1773 Fa(void,MessageBeep
,WORD
,a
)
1774 Fa(void,OutputDebugString
,LPSTR
,a
)
1775 Fa(void,ReplyMessage
,LONG
,a
)
1776 Fa(void,SetCaretBlinkTime
,WORD
,a
)
1777 Fa(void,SetDoubleClickTime
,WORD
,a
)
1778 Fa(void,SetKeyboardState
,BYTE FAR
*,a
)
1779 Fa(void,SetRectEmpty
,LPRECT
,a
)
1780 Fa(void,ShowCaret
,HWND
,a
)
1781 Fa(void,SwapRecording
,WORD
,a
)
1782 Fb(BOOL
,ExitWindows
,DWORD
,dwReserved
,WORD
,wReturnCode
)
1783 Fb(BOOL
,GetBitmapDimensionEx
,HBITMAP
,a
,LPSIZE
,b
)
1784 Fb(BOOL
,ShowWindow
,HWND
,a
,int,b
)
1785 Fb(HDC
,BeginPaint
,HWND
,a
,LPPAINTSTRUCT
,b
)
1786 Fb(LPSTR
,lstrcat
,LPSTR
,a
,LPCSTR
,b
)
1787 Fb(LPSTR
,lstrcpy
,LPSTR
,a
,LPCSTR
,b
)
1788 Fb(int,_lcreat
,LPSTR
,a
,int,b
)
1789 Fb(int,lstrcmp
,LPCSTR
,a
,LPCSTR
,b
)
1790 Fb(int,lstrcmpi
,LPCSTR
,a
,LPCSTR
,b
)
1791 Fb(void,EndPaint
,HWND
,a
,LPPAINTSTRUCT
,b
)
1792 Fb(void,GetClientRect
,HWND
,a
,LPRECT
,b
)
1793 Fb(void,SetDCState
,HDC
,a
,HDC
,b
)
1794 Fb(BOOL
,UnregisterClass
,LPSTR
,a
,HANDLE
,b
)
1795 Fb(BOOL
,CallMsgFilter
,LPMSG
,a
,int,b
)
1796 Fb(BOOL
,ChangeClipboardChain
,HWND
,a
,HWND
,b
)
1797 Fb(BOOL
,EnableWindow
,HWND
,a
,BOOL
,b
)
1798 Fb(BOOL
,EnumWindows
,FARPROC
,a
,LONG
,b
)
1799 Fb(BOOL
,EqualRect
,LPRECT
,a
,LPRECT
,b
)
1800 Fb(BOOL
,EqualRgn
,HRGN
,a
,HRGN
,b
)
1801 Fb(BOOL
,FlashWindow
,HWND
,a
,BOOL
,b
)
1802 Fb(BOOL
,GetBrushOrgEx
,HDC
,a
,LPPOINT
,b
)
1803 Fb(BOOL
,GetTextMetrics
,HDC
,a
,LPTEXTMETRIC
,b
)
1804 Fb(BOOL
,InvertRgn
,HDC
,a
,HRGN
,b
)
1805 Fb(BOOL
,IsChild
,HWND
,a
,HWND
,b
)
1806 Fb(BOOL
,IsDialogMessage
,HWND
,a
,LPMSG
,b
)
1807 Fb(BOOL
,KillTimer
,HWND
,a
,WORD
,b
)
1808 Fb(BOOL
,OemToAnsi
,LPSTR
,a
,LPSTR
,b
)
1809 Fb(BOOL
,PaintRgn
,HDC
,a
,HRGN
,b
)
1810 Fb(BOOL
,PlayMetaFile
,HDC
,a
,HANDLE
,b
)
1811 Fb(BOOL
,PtInRect
,LPRECT
,a
,POINT
,b
)
1812 Fb(BOOL
,RectInRegion
,HRGN
,a
,LPRECT
,b
)
1813 Fb(BOOL
,RectVisible
,HDC
,a
,LPRECT
,b
)
1814 Fb(BOOL
,ResizePalette
,HPALETTE
,a
,WORD
,b
)
1815 Fb(BOOL
,RestoreDC
,HDC
,a
,short,b
)
1816 Fb(BOOL
,SetConvertParams
,int,a
,int,b
)
1817 Fb(BOOL
,SetMenu
,HWND
,a
,HMENU
,b
)
1818 Fb(BOOL
,TranslateMDISysAccel
,HWND
,a
,LPMSG
,b
)
1819 Fb(BOOL
,UnhookWindowsHook
,int,a
,FARPROC
,b
)
1820 Fb(DWORD
,GetNearestColor
,HDC
,a
,DWORD
,b
)
1821 Fb(DWORD
,SetBkColor
,HDC
,a
,COLORREF
,b
)
1822 Fb(DWORD
,SetMapperFlags
,HDC
,a
,DWORD
,b
)
1823 Fb(DWORD
,SetTextColor
,HDC
,a
,DWORD
,b
)
1824 Fb(FARPROC
,GetProcAddress
,HANDLE
,a
,LPSTR
,b
)
1825 Fb(FARPROC
,MakeProcInstance
,FARPROC
,a
,HANDLE
,b
)
1826 Fb(FARPROC
,SetWindowsHook
,int,a
,FARPROC
,b
)
1827 Fb(HANDLE
,CopyMetaFile
,HANDLE
,a
,LPSTR
,b
)
1828 Fb(HANDLE
,GetProp
,HWND
,a
,LPSTR
,b
)
1829 Fb(HANDLE
,GlobalAlloc
,WORD
,a
,DWORD
,b
)
1830 Fb(HANDLE
,LoadAccelerators
,HANDLE
,a
,LPSTR
,b
)
1831 Fb(HANDLE
,LoadModule
,LPSTR
,a
,LPVOID
,b
)
1832 Fb(HANDLE
,LoadResource
,HANDLE
,a
,HANDLE
,b
)
1833 Fb(HANDLE
,LocalAlloc
,WORD
,a
,WORD
,b
)
1834 Fb(HANDLE
,RemoveProp
,HWND
,a
,LPSTR
,b
)
1835 Fb(HANDLE
,SelectObject
,HDC
,a
,HANDLE
,b
)
1836 Fb(HANDLE
,SetClipboardData
,WORD
,a
,HANDLE
,b
)
1837 Fb(HBITMAP
,LoadBitmap
,HANDLE
,a
,LPSTR
,b
)
1838 Fb(HBRUSH
,CreateDIBPatternBrush
,HANDLE
,a
,WORD
,b
)
1839 Fb(HBRUSH
,CreateHatchBrush
,short,a
,COLORREF
,b
)
1840 Fb(HCURSOR
,LoadCursor
,HANDLE
,a
,LPSTR
,b
)
1841 Fb(HICON
,LoadIcon
,HANDLE
,a
,LPSTR
,b
)
1842 Fb(HMENU
,GetSubMenu
,HMENU
,a
,int,b
)
1843 Fb(HMENU
,GetSystemMenu
,HWND
,a
,BOOL
,b
)
1844 Fb(HMENU
,LoadMenu
,HANDLE
,a
,LPSTR
,b
)
1845 Fb(HWND
,ChildWindowFromPoint
,HWND
,a
,POINT
,b
)
1846 Fb(HWND
,FindWindow
,LPSTR
,a
,LPSTR
,b
)
1847 Fb(HWND
,GetDlgItem
,HWND
,a
,WORD
,b
)
1848 Fb(HWND
,GetNextWindow
,HWND
,a
,WORD
,b
)
1849 Fb(HWND
,GetWindow
,HWND
,a
,WORD
,b
)
1850 Fb(BOOL
,GetCurrentPositionEx
,HDC
,a
,LPPOINT
,b
)
1851 Fb(BOOL
,GetViewportExtEx
,HDC
,a
,LPPOINT
,b
)
1852 Fb(BOOL
,GetViewportOrgEx
,HDC
,a
,LPPOINT
,b
)
1853 Fb(BOOL
,GetWindowExtEx
,HDC
,a
,LPPOINT
,b
)
1854 Fb(BOOL
,GetWindowOrgEx
,HDC
,a
,LPPOINT
,b
)
1855 Fb(HWND
,SetParent
,HWND
,a
,HWND
,b
)
1856 Fb(LONG
,GetClassLong
,HWND
,a
,short,b
)
1857 Fb(LONG
,GetWindowLong
,HWND
,a
,short,b
)
1858 Fb(LPSTR
,AnsiPrev
,LPSTR
,a
,LPSTR
,b
)
1859 Fb(WORD FAR
*,SetCommEventMask
,int,a
,WORD
,b
)
1860 Fb(WORD
,AnsiLowerBuff
,LPSTR
,a
,WORD
,b
)
1861 Fb(WORD
,AnsiUpperBuff
,LPSTR
,a
,WORD
,b
)
1862 Fb(WORD
,ChangeSelector
,WORD
,a
,WORD
,b
)
1863 Fb(WORD
,GetClassWord
,HWND
,a
,short,b
)
1864 Fb(WORD
,GetCommEventMask
,int,a
,int,b
)
1865 Fb(WORD
,GetMenuItemID
,HMENU
,a
,int,b
)
1866 Fb(WORD
,GetNearestPaletteIndex
,HPALETTE
,a
,DWORD
,b
)
1867 Fb(WORD
,GetSystemDirectory
,LPSTR
,a
,WORD
,b
)
1868 Fb(WORD
,GetSystemPaletteUse
,HDC
,a
,WORD
,b
)
1869 Fb(WORD
,GetWindowWord
,HWND
,a
,short,b
)
1870 Fb(WORD
,GetWindowsDirectory
,LPSTR
,a
,WORD
,b
)
1871 Fb(WORD
,IsDlgButtonChecked
,HWND
,a
,WORD
,b
)
1872 Fb(WORD
,LocalShrink
,HANDLE
,a
,WORD
,b
)
1873 Fb(WORD
,MapVirtualKey
,WORD
,a
,WORD
,b
)
1874 Fb(WORD
,SetSystemPaletteUse
,HDC
,a
,WORD
,b
)
1875 Fb(WORD
,SetTextAlign
,HDC
,a
,WORD
,b
)
1876 Fb(WORD
,SizeofResource
,HANDLE
,a
,HANDLE
,b
)
1877 Fb(WORD
,WinExec
,LPSTR
,a
,WORD
,b
)
1878 Fb(int,AccessResource
,HANDLE
,a
,HANDLE
,b
)
1879 Fb(int,AnsiToOem
,LPSTR
,a
,LPSTR
,b
)
1880 Fb(int,BuildCommDCB
,LPSTR
,a
,DCB
*,b
)
1881 Fb(int,ConvertRequest
,HWND
,a
,LPKANJISTRUCT
,b
)
1882 Fb(void,CopyRect
,LPRECT
,a
,LPRECT
,b
)
1883 Fb(int,EnumProps
,HWND
,a
,FARPROC
,b
)
1884 Fb(int,EscapeCommFunction
,int,a
,int,b
)
1885 Fb(int,ExcludeUpdateRgn
,HDC
,a
,HWND
,b
)
1886 Fb(int,FlushComm
,int,a
,int,b
)
1887 Fb(int,GetClipBox
,HDC
,a
,LPRECT
,b
)
1888 Fb(int,GetCommError
,int,a
,COMSTAT
*,b
)
1889 Fb(int,GetCommState
,int,a
,DCB
*,b
)
1890 Fb(int,GetDeviceCaps
,HDC
,a
,WORD
,b
)
1891 Fb(int,GetPriorityClipboardFormat
,WORD FAR
*,a
,int,b
)
1892 Fb(int,GetRgnBox
,HRGN
,a
,LPRECT
,b
)
1893 Fb(int,GetScrollPos
,HWND
,a
,int,b
)
1894 Fb(int,ReleaseDC
,HWND
,a
,HDC
,b
)
1895 Fb(int,SelectClipRgn
,HDC
,a
,HRGN
,b
)
1896 Fb(int,SelectVisRgn
,HDC
,a
,HRGN
,b
)
1897 Fb(int,SetSoundNoise
,int,a
,int,b
)
1898 Fb(int,SetVoiceQueueSize
,int,a
,int,b
)
1899 Fb(int,SetVoiceThreshold
,int,a
,int,b
)
1900 Fb(int,TransmitCommChar
,int,a
,char,b
)
1901 Fb(int,UngetCommChar
,int,a
,char,b
)
1902 Fb(short,SetTextCharacterExtra
,HDC
,a
,short,b
)
1903 Fb(void,ClientToScreen
,HWND
,a
,LPPOINT
,b
)
1904 Fb(void,DrawFocusRect
,HDC
,a
,LPRECT
,b
)
1905 Fb(void,EndDialog
,HWND
,a
,short,b
)
1906 Fb(void,GetCodeInfo
,FARPROC
,lpProc
,LPVOID
,lpSegInfo
)
1907 Fb(void,GetWindowRect
,HWND
,a
,LPRECT
,b
)
1908 Fb(void,InvertRect
,HDC
,a
,LPRECT
,b
)
1909 Fb(void,MapDialogRect
,HWND
,a
,LPRECT
,b
)
1910 Fb(void,ProfSampRate
,int,a
,int,b
)
1911 Fb(void,ProfSetup
,int,a
,int,b
)
1912 Fb(void,ScreenToClient
,HWND
,a
,LPPOINT
,b
)
1913 Fb(void,SetCaretPos
,int,a
,int,b
)
1914 Fb(void,SetCursorPos
,int,a
,int,b
)
1915 Fb(void,SetWindowText
,HWND
,a
,LPSTR
,b
)
1916 Fb(void,ShowOwnedPopups
,HWND
,a
,BOOL
,b
)
1917 Fb(void,Throw
,LPCATCHBUF
,a
,int,b
)
1918 Fb(void,ValidateRect
,HWND
,a
,LPRECT
,b
)
1919 Fb(void,ValidateRgn
,HWND
,a
,HRGN
,b
)
1920 Fc(BOOL
,LineTo
,HDC
,a
,short,b
,short,c
)
1921 Fc(LONG
,_llseek
,int,a
,long,b
,int,c
)
1922 Fc(WORD
,_lread
,int,a
,LPSTR
,b
,int,c
)
1923 Fc(WORD
,_lwrite
,int,a
,LPSTR
,b
,int,c
)
1924 Fc(int,FillRect
,HDC
,a
,LPRECT
,b
,HBRUSH
,c
)
1925 Fc(DWORD
,MoveTo
,HDC
,a
,short,b
,short,c
)
1926 Fc(BOOL
,CheckMenuItem
,HMENU
,a
,WORD
,b
,WORD
,c
)
1927 Fc(BOOL
,DPtoLP
,HDC
,a
,LPPOINT
,b
,int,c
)
1928 Fc(BOOL
,DeleteMenu
,HMENU
,a
,WORD
,b
,WORD
,c
)
1929 Fc(BOOL
,DlgDirSelect
,HWND
,a
,LPSTR
,b
,int,c
)
1930 Fc(BOOL
,DlgDirSelectComboBox
,HWND
,a
,LPSTR
,b
,int,c
)
1931 Fc(BOOL
,EnableMenuItem
,HMENU
,a
,WORD
,b
,WORD
,c
)
1932 Fc(BOOL
,EnumChildWindows
,HWND
,a
,FARPROC
,b
,LONG
,c
)
1933 Fc(BOOL
,EnumTaskWindows
,HANDLE
,a
,FARPROC
,b
,LONG
,c
)
1934 Fc(BOOL
,FillRgn
,HDC
,a
,HRGN
,b
,HBRUSH
,c
)
1935 Fc(BOOL
,GetClassInfo
,HANDLE
,a
,LPSTR
,b
,LPWNDCLASS
,c
)
1936 Fc(BOOL
,GetUpdateRect
,HWND
,a
,LPRECT
,b
,BOOL
,c
)
1937 Fc(BOOL
,LPtoDP
,HDC
,a
,LPPOINT
,b
,int,c
)
1938 Fc(BOOL
,LocalInit
,WORD
,a
,WORD
,b
,WORD
,c
)
1939 Fc(BOOL
,Polygon
,HDC
,a
,LPPOINT
,b
,int,c
)
1940 Fc(BOOL
,Polyline
,HDC
,a
,LPPOINT
,b
,int,c
)
1941 Fc(BOOL
,PtInRegion
,HRGN
,a
,short,b
,short,c
)
1942 Fc(BOOL
,PtVisible
,HDC
,a
,short,b
,short,c
)
1943 Fc(BOOL
,RemoveMenu
,HMENU
,a
,WORD
,b
,WORD
,c
)
1944 Fc(BOOL
,SetProp
,HWND
,a
,LPSTR
,b
,HANDLE
,c
)
1945 Fc(BOOL
,WriteProfileString
,LPSTR
,a
,LPSTR
,b
,LPSTR
,c
)
1946 Fc(BOOL
,IntersectRect
,LPRECT
,a
,LPRECT
,b
,LPRECT
,c
)
1947 Fc(BOOL
,UnionRect
,LPRECT
,a
,LPRECT
,b
,LPRECT
,c
)
1948 Fc(BOOL
,SubtractRect
,LPRECT
,a
,LPRECT
,b
,LPRECT
,c
)
1949 Fc(DWORD
,GetPixel
,HDC
,a
,short,b
,short,c
)
1950 Fc(DWORD
,GetTextExtent
,HDC
,a
,LPSTR
,b
,short,c
)
1951 Fc(DWORD
,OffsetViewportOrg
,HDC
,a
,short,b
,short,c
)
1952 Fc(DWORD
,OffsetWindowOrg
,HDC
,a
,short,b
,short,c
)
1953 Fc(DWORD
,SetBitmapDimension
,HBITMAP
,a
,short,b
,short,c
)
1954 Fc(DWORD
,SetBrushOrg
,HDC
,a
,short,b
,short,c
)
1955 Fc(DWORD
,SetViewportExt
,HDC
,a
,short,b
,short,c
)
1956 Fc(DWORD
,SetViewportOrg
,HDC
,a
,short,b
,short,c
)
1957 Fc(DWORD
,SetWindowExt
,HDC
,a
,short,b
,short,c
)
1958 Fc(DWORD
,SetWindowOrg
,HDC
,a
,short,b
,short,c
)
1959 Fc(FARPROC
,SetResourceHandler
,HANDLE
,a
,LPSTR
,b
,FARPROC
,c
)
1960 Fc(HANDLE
,AllocResource
,HANDLE
,a
,HANDLE
,b
,DWORD
,c
)
1961 Fc(HANDLE
,FindResource
,HANDLE
,a
,LPSTR
,b
,LPSTR
,c
)
1962 Fc(HANDLE
,GlobalReAlloc
,HANDLE
,a
,DWORD
,b
,WORD
,c
)
1963 Fc(HANDLE
,LocalReAlloc
,HANDLE
,a
,WORD
,b
,WORD
,c
)
1964 Fc(HBITMAP
,CreateCompatibleBitmap
,HDC
,a
,short,b
,short,c
)
1965 Fc(HBITMAP
,CreateDiscardableBitmap
,HDC
,a
,short,b
,short,c
)
1966 Fc(HPALETTE
,SelectPalette
,HDC
,a
,HPALETTE
,b
,BOOL
,c
)
1967 Fc(HPEN
,CreatePen
,short,a
,short,b
,COLORREF
,c
)
1968 Fc(HRGN
,CreatePolygonRgn
,LPPOINT
,a
,short,b
,short,c
)
1969 Fc(HWND
,GetNextDlgGroupItem
,HWND
,a
,HWND
,b
,BOOL
,c
)
1970 Fc(HWND
,GetNextDlgTabItem
,HWND
,a
,HWND
,b
,BOOL
,c
)
1971 Fc(LONG
,GetBitmapBits
,HBITMAP
,a
,LONG
,b
,LPSTR
,c
)
1972 Fc(LONG
,SetBitmapBits
,HBITMAP
,a
,LONG
,b
,LPSTR
,c
)
1973 Fc(LONG
,SetClassLong
,HWND
,a
,short,b
,LONG
,c
)
1974 Fc(LONG
,SetWindowLong
,HWND
,a
,short,b
,LONG
,c
)
1975 Fc(WORD
,GetAtomName
,ATOM
,a
,LPSTR
,b
,short,c
)
1976 Fc(WORD
,GetMenuState
,HMENU
,a
,WORD
,b
,WORD
,c
)
1977 Fc(WORD
,GetProfileInt
,LPSTR
,a
,LPSTR
,b
,int,c
)
1978 Fc(WORD
,GlobalGetAtomName
,ATOM
,a
,LPSTR
,b
,short,c
)
1979 Fc(WORD
,SetClassWord
,HWND
,a
,short,b
,WORD
,c
)
1980 Fc(WORD
,SetWindowWord
,HWND
,a
,short,b
,WORD
,c
)
1981 Fb(WORD
,SetBkMode
,HDC
,a
,WORD
,b
)
1982 Fb(WORD
,SetMapMode
,HDC
,a
,WORD
,b
)
1983 Fb(WORD
,SetPolyFillMode
,HDC
,a
,WORD
,b
)
1984 Fb(WORD
,SetRelAbs
,HDC
,a
,WORD
,b
)
1985 Fb(WORD
,SetROP2
,HDC
,a
,WORD
,b
)
1986 Fb(WORD
,SetStretchBltMode
,HDC
,a
,WORD
,b
)
1987 Fc(int,FrameRect
,HDC
,a
,LPRECT
,b
,HBRUSH
,c
)
1988 Fc(int,GetClassName
,HWND
,a
,LPSTR
,b
,int,c
)
1989 Fc(int,GetClipboardFormatName
,WORD
,a
,LPSTR
,b
,int,c
)
1990 Fc(int,GetEnvironment
,LPSTR
,a
,LPSTR
,b
,WORD
,c
)
1991 Fc(int,GetInstanceData
,HANDLE
,a
,NPSTR
,b
,int,c
)
1992 Fc(int,GetKeyNameText
,LONG
,a
,LPSTR
,b
,int,c
)
1993 Fc(int,GetModuleFileName
,HANDLE
,a
,LPSTR
,b
,int,c
)
1994 Fc(int,GetObject
,HANDLE
,a
,int,b
,LPSTR
,c
)
1995 Fc(int,GetTextFace
,HDC
,a
,int,b
,LPSTR
,c
)
1996 Fc(int,GetUpdateRgn
,HWND
,a
,HRGN
,b
,BOOL
,c
)
1997 Fc(int,GetWindowText
,HWND
,a
,LPSTR
,b
,int,c
)
1998 Fc(int,MulDiv
,int,a
,int,b
,int,c
)
1999 Fc(int,OffsetClipRgn
,HDC
,a
,short,b
,short,c
)
2000 Fc(int,OffsetRgn
,HRGN
,a
,short,b
,short,c
)
2001 Fc(int,OpenComm
,LPSTR
,a
,WORD
,b
,WORD
,c
)
2002 Fc(int,OpenFile
,LPSTR
,a
,LPOFSTRUCT
,b
,WORD
,c
)
2003 Fc(int,ReadComm
,int,a
,LPSTR
,b
,int,c
)
2004 Fc(int,SetEnvironment
,LPSTR
,a
,LPSTR
,b
,WORD
,c
)
2005 Fc(int,SetVoiceEnvelope
,int,a
,int,b
,int,c
)
2006 Fc(int,SetVoiceSound
,int,a
,LONG
,b
,int,c
)
2007 Fc(int,TranslateAccelerator
,HWND
,a
,HANDLE
,b
,LPMSG
,c
)
2008 Fc(int,WriteComm
,int,a
,LPSTR
,b
,int,c
)
2009 Fc(int,wvsprintf
,LPSTR
,a
,LPSTR
,b
,LPSTR
,c
)
2010 Fc(short,SetTextJustification
,HDC
,a
,short,b
,short,c
)
2011 Fc(void,AdjustWindowRect
,LPRECT
,a
,DWORD
,b
,BOOL
,c
)
2012 Fc(void,AnsiToOemBuff
,LPSTR
,a
,LPSTR
,b
,int,c
)
2013 Fc(void,CheckDlgButton
,HWND
,a
,WORD
,b
,WORD
,c
)
2014 Fc(void,InflateRect
,LPRECT
,a
,short,b
,short,c
)
2015 Fc(void,InvalidateRect
,HWND
,a
,LPRECT
,b
,BOOL
,c
)
2016 Fc(void,InvalidateRgn
,HWND
,a
,HRGN
,b
,BOOL
,c
)
2017 Fc(void,OemToAnsiBuff
,LPSTR
,a
,LPSTR
,b
,int,c
)
2018 Fc(void,OffsetRect
,LPRECT
,a
,short,b
,short,c
)
2019 Fc(void,SetDlgItemText
,HWND
,a
,WORD
,b
,LPSTR
,c
)
2020 Fc(void,SetSysColors
,int,a
,LPINT
,b
,COLORREF
*,c
)
2021 Fc(void,ShowScrollBar
,HWND
,a
,WORD
,b
,BOOL
,c
)
2022 Fc(void,SwitchStackTo
,WORD
,a
,WORD
,b
,WORD
,c
)
2023 Fd(BOOL
,AppendMenu
,HMENU
,a
,WORD
,b
,WORD
,c
,LPSTR
,d
)
2024 Fd(BOOL
,PostMessage
,HWND
,a
,WORD
,b
,WORD
,c
,LONG
,d
)
2025 Fd(LONG
,SendMessage
,HWND
,a
,WORD
,b
,WORD
,c
,LONG
,d
)
2026 Fd(BOOL
,GetMessage
,LPMSG
,msg
,HWND
,b
,WORD
,c
,WORD
,d
)
2027 Fd(BOOL
,GetTextExtentPoint
,HDC
,a
,LPSTR
,b
,short,c
,LPSIZE
,d
)
2028 Fd(BOOL
,DrawIcon
,HDC
,a
,short,b
,short,c
,HICON
,d
)
2029 Fd(BOOL
,EnumMetaFile
,HDC
,a
,LOCALHANDLE
,b
,FARPROC
,c
,BYTE FAR
*,d
)
2030 Fd(BOOL
,FloodFill
,HDC
,a
,int,b
,int,c
,DWORD
,d
)
2031 Fd(BOOL
,GetCharWidth
,HDC
,a
,WORD
,b
,WORD
,c
,LPINT
,d
)
2032 Fd(BOOL
,HiliteMenuItem
,HWND
,a
,HMENU
,b
,WORD
,c
,WORD
,d
)
2033 Fd(BOOL
,MoveToEx
,HDC
,a
,short,b
,short,c
,LPPOINT
,d
)
2034 Fd(BOOL
,PolyPolygon
,HDC
,a
,LPPOINT
,b
,LPINT
,c
,int,d
)
2035 Fd(BOOL
,PostAppMessage
,HANDLE
,a
,WORD
,b
,WORD
,c
,LONG
,d
)
2036 Fd(BOOL
,SetBitmapDimensionEx
,HBITMAP
,a
,short,b
,short,c
,LPSIZE
,d
)
2037 Fd(BOOL
,WinHelp
,HWND
,hwndMain
,LPSTR
,lpszHelp
,WORD
,usCommand
,DWORD
,ulData
)
2038 Fd(BOOL
,WritePrivateProfileString
,LPSTR
,a
,LPSTR
,b
,LPSTR
,c
,LPSTR
,d
)
2039 Fd(DWORD
,DefHookProc
,int,a
,WORD
,b
,DWORD
,c
,FARPROC FAR
*,d
)
2040 Fd(COLORREF
,SetPixel
,HDC
,a
,short,b
,short,c
,COLORREF
,d
)
2041 Fd(HDC
,CreateDC
,LPSTR
,a
,LPSTR
,b
,LPSTR
,c
,LPSTR
,d
)
2042 Fd(HDC
,CreateIC
,LPSTR
,a
,LPSTR
,b
,LPSTR
,c
,LPSTR
,d
)
2043 Fd(HRGN
,CreateEllipticRgn
,short,a
,short,b
,short,c
,short,d
)
2044 Fd(HRGN
,CreatePolyPolygonRgn
,LPPOINT
,a
,LPINT
,b
,short,c
,short,d
)
2045 Fd(HRGN
,CreateRectRgn
,short,a
,short,b
,short,c
,short,d
)
2046 Fd(HWND
,CreateDialog
,HANDLE
,a
,LPCSTR
,b
,HWND
,c
,FARPROC
,d
)
2047 Fd(HWND
,CreateDialogIndirect
,HANDLE
,a
,LPCSTR
,b
,HWND
,c
,FARPROC
,d
)
2048 Fd(LONG
,DefDlgProc
,HWND
,a
,WORD
,b
,WORD
,c
,LONG
,d
)
2049 Fd(LONG
,DefMDIChildProc
,HWND
,a
,WORD
,b
,WORD
,c
,LONG
,d
)
2050 Fd(LONG
,DefWindowProc
,HWND
,a
,WORD
,b
,WORD
,c
,LONG
,d
)
2051 Fd(WORD
,GetDlgItemInt
,HWND
,a
,WORD
,b
,BOOL FAR
*,c
,BOOL
,d
)
2052 Fd(WORD
,GetPaletteEntries
,HPALETTE
,a
,WORD
,b
,WORD
,c
,LPPALETTEENTRY
,d
)
2053 Fd(WORD
,GetPrivateProfileInt
,LPSTR
,a
,LPSTR
,b
,short,c
,LPSTR
,d
)
2054 Fd(WORD
,GetSystemPaletteEntries
,HDC
,a
,WORD
,b
,WORD
,c
,LPPALETTEENTRY
,d
)
2055 Fd(WORD
,SetPaletteEntries
,HPALETTE
,a
,WORD
,b
,WORD
,c
,LPPALETTEENTRY
,d
)
2056 Fd(WORD
,SetTimer
,HWND
,a
,WORD
,d
,WORD
,b
,FARPROC
,c
)
2057 Fd(BOOL
,SetViewportExtEx
,HDC
,a
,short,b
,short,c
,LPSIZE
,d
)
2058 Fd(BOOL
,SetViewportOrgEx
,HDC
,a
,short,b
,short,c
,LPPOINT
,d
)
2059 Fd(BOOL
,SetWindowExtEx
,HDC
,a
,short,b
,short,c
,LPSIZE
,d
)
2060 Fd(BOOL
,SetWindowOrgEx
,HDC
,a
,short,b
,short,c
,LPPOINT
,d
)
2061 Fd(BOOL
,OffsetViewportOrgEx
,HDC
,a
,short,b
,short,c
,LPPOINT
,d
)
2062 Fd(BOOL
,OffsetWindowOrgEx
,HDC
,a
,short,b
,short,c
,LPPOINT
,d
)
2063 Fd(int,CombineRgn
,HRGN
,a
,HRGN
,b
,HRGN
,c
,short,d
)
2064 Fd(int,DialogBox
,HINSTANCE
,a
,LPCSTR
,b
,HWND
,c
,FARPROC
,d
)
2065 Fd(int,DialogBoxIndirect
,HANDLE
,a
,HANDLE
,b
,HWND
,c
,FARPROC
,d
)
2066 Fd(int,EnumFonts
,HDC
,a
,LPSTR
,b
,FARPROC
,c
,LPSTR
,d
)
2067 Fd(int,EnumObjects
,HDC
,a
,int,b
,FARPROC
,c
,LPSTR
,d
)
2068 Fd(int,GetDlgItemText
,HWND
,a
,WORD
,b
,LPSTR
,c
,WORD
,d
)
2069 Fd(int,GetTempFileName
,BYTE
,a
,LPSTR
,b
,WORD
,c
,LPSTR
,d
)
2070 Fd(int,LoadString
,HANDLE
,a
,WORD
,b
,LPSTR
,c
,int,d
)
2071 Fd(int,MessageBox
,HWND
,a
,LPSTR
,b
,LPSTR
,c
,WORD
,d
)
2072 Fd(int,SetScrollPos
,HWND
,a
,int,b
,int,c
,BOOL
,d
)
2073 Fd(int,SetVoiceNote
,int,a
,int,b
,int,c
,int,d
)
2074 Fd(void,AdjustWindowRectEx
,LPRECT
,a
,LONG
,b
,BOOL
,c
,DWORD
,d
)
2075 Fd(void,AnimatePalette
,HPALETTE
,a
,WORD
,b
,WORD
,c
,LPPALETTEENTRY
,d
)
2076 Fd(void,CheckRadioButton
,HWND
,a
,WORD
,b
,WORD
,c
,WORD
,d
)
2077 Fd(void,CreateCaret
,HWND
,a
,HBITMAP
,b
,int,c
,int,d
)
2078 Fd(void,FillWindow
,HWND
,a
,HWND
,b
,HDC
,c
,HBRUSH
,d
)
2079 Fd(void,GetScrollRange
,HWND
,a
,int,b
,LPINT
,c
,LPINT
,d
)
2080 Fd(void,PlayMetaFileRecord
,HDC
,a
,LPHANDLETABLE
,b
,LPMETARECORD
,c
,WORD
,d
)
2081 Fd(void,SetDlgItemInt
,HWND
,a
,WORD
,b
,WORD
,c
,BOOL
,d
)
2082 Fe(BOOL
,Rectangle
,HDC
,a
,int,xLeft
,int,yTop
,int,xRight
,int,yBottom
)
2083 Fe(int,DrawText
,HDC
,a
,LPSTR
,str
,int,c
,LPRECT
,d
,WORD
,flag
)
2084 Fe(BOOL
,PeekMessage
,LPMSG
,a
,HWND
,b
,WORD
,c
,WORD
,d
,WORD
,e
)
2085 Fe(LONG
,CallWindowProc
,FARPROC
,a
,HWND
,b
,WORD
,c
,WORD
,d
,LONG
,e
)
2086 Fe(BOOL
,ChangeMenu
,HMENU
,a
,WORD
,b
,LPSTR
,c
,WORD
,d
,WORD
,e
)
2087 Fe(BOOL
,Ellipse
,HDC
,a
,int,b
,int,c
,int,d
,int,e
)
2088 Fe(BOOL
,ExtFloodFill
,HDC
,a
,int,b
,int,c
,DWORD
,d
,WORD
,e
)
2089 Fe(BOOL
,FrameRgn
,HDC
,a
,HRGN
,b
,HBRUSH
,e
,int,c
,int,d
)
2090 Fe(BOOL
,InsertMenu
,HMENU
,a
,WORD
,b
,WORD
,c
,WORD
,d
,LPSTR
,e
)
2091 Fe(BOOL
,ModifyMenu
,HMENU
,a
,WORD
,b
,WORD
,c
,WORD
,d
,LPSTR
,e
)
2092 Fe(BOOL
,SetMenuItemBitmaps
,HMENU
,a
,WORD
,b
,WORD
,c
,HBITMAP
,d
,HBITMAP
,e
)
2093 Fe(BOOL
,TextOut
,HDC
,a
,short,b
,short,c
,LPSTR
,d
,short,e
)
2094 Fe(DWORD
,GetTabbedTextExtent
,HDC
,a
,LPSTR
,b
,int,c
,int,d
,LPINT
,e
)
2095 Fe(DWORD
,ScaleViewportExt
,HDC
,a
,short,b
,short,c
,short,d
,short,e
)
2096 Fe(DWORD
,ScaleWindowExt
,HDC
,a
,short,b
,short,c
,short,d
,short,e
)
2097 Fe(HBITMAP
,CreateBitmap
,short,a
,short,b
,BYTE
,c
,BYTE
,d
,LPSTR
,e
)
2098 Fe(HWND
,CreateDialogIndirectParam
,HANDLE
,a
,LPCSTR
,b
,HWND
,c
,FARPROC
,d
,LPARAM
,e
)
2099 Fe(HWND
,CreateDialogParam
,HANDLE
,a
,LPCSTR
,b
,HWND
,c
,FARPROC
,d
,LPARAM
,e
)
2100 Fe(LONG
,DefFrameProc
,HWND
,a
,HWND
,b
,WORD
,c
,WORD
,d
,LONG
,e
)
2101 Fe(LONG
,SendDlgItemMessage
,HWND
,a
,WORD
,b
,WORD
,c
,WORD
,d
,LONG
,e
)
2102 Fe(int,DialogBoxIndirectParam
,HANDLE
,a
,HANDLE
,b
,HWND
,c
,FARPROC
,d
,LONG
,e
)
2103 Fe(int,DialogBoxParam
,HANDLE
,a
,LPCSTR
,b
,HWND
,c
,FARPROC
,d
,LONG
,e
)
2104 Fe(int,DlgDirList
,HWND
,a
,LPSTR
,b
,int,c
,int,d
,WORD
,e
)
2105 Fe(int,DlgDirListComboBox
,HWND
,a
,LPSTR
,b
,int,c
,int,d
,WORD
,e
)
2106 Fe(int,Escape
,HDC
,a
,int,b
,int,c
,LPSTR
,d
,LPSTR
,e
)
2107 Fe(int,ExcludeClipRect
,HDC
,a
,short,b
,short,c
,short,d
,short,e
)
2108 Fe(int,ExcludeVisRect
,HDC
,a
,short,b
,short,c
,short,d
,short,e
)
2109 Fe(int,GetMenuString
,HMENU
,a
,WORD
,b
,LPSTR
,c
,int,d
,WORD
,e
)
2110 Fe(int,GetProfileString
,LPSTR
,a
,LPSTR
,b
,LPSTR
,c
,LPSTR
,d
,int,e
)
2111 Fe(int,IntersectClipRect
,HDC
,a
,short,b
,short,c
,short,d
,short,e
)
2112 Fe(int,IntersectVisRect
,HDC
,a
,short,b
,short,c
,short,d
,short,e
)
2113 Fe(int,SetVoiceAccent
,int,a
,int,b
,int,c
,int,d
,int,e
)
2114 Fe(int,ToAscii
,WORD
,wVirtKey
,WORD
,wScanCode
,LPSTR
,lpKeyState
,LPVOID
,lpChar
,WORD
,wFlags
)
2115 Fe(void,PaintRect
,HWND
,a
,HWND
,b
,HDC
,c
,HBRUSH
,d
,LPRECT
,e
)
2116 Fe(void,ScrollWindow
,HWND
,a
,short,b
,short,c
,LPRECT
,d
,LPRECT
,e
)
2117 Fe(void,SetRect
,LPRECT
,a
,short,b
,short,c
,short,d
,short,e
)
2118 Fe(void,SetRectRgn
,HRGN
,a
,short,b
,short,c
,short,d
,short,e
)
2119 Fe(void,SetScrollRange
,HWND
,a
,int,b
,int,c
,int,d
,BOOL
,e
)
2120 Ff(BOOL
,PatBlt
,HDC
,a
,short,b
,short,c
,short,d
,short,e
,DWORD
,f
)
2121 Ff(HBITMAP
,CreateDIBitmap
,HDC
,a
,LPBITMAPINFOHEADER
,b
,DWORD
,c
,LPSTR
,d
,LPBITMAPINFO
,e
,WORD
,f
)
2122 Ff(HRGN
,CreateRoundRectRgn
,short,a
,short,b
,short,c
,short,d
,short,e
,short,f
)
2123 Ff(short,GetPrivateProfileString
,LPSTR
,a
,LPSTR
,b
,LPSTR
,c
,LPSTR
,d
,short,e
,LPSTR
,f
)
2124 Ff(void,LineDDA
,short,a
,short,b
,short,c
,short,d
,FARPROC
,e
,long,f
)
2125 Ff(void,MoveWindow
,HWND
,a
,short,b
,short,c
,short,d
,short,e
,BOOL
,f
)
2126 Ff(BOOL
,ScaleViewportExtEx
,HDC
,a
,short,b
,short,c
,short,d
,short,e
,LPSIZE
,f
)
2127 Ff(BOOL
,ScaleWindowExtEx
,HDC
,a
,short,b
,short,c
,short,d
,short,e
,LPSIZE
,f
)
2128 Fg(BOOL
,RoundRect
,HDC
,a
,short,b
,short,c
,short,d
,short,e
,short,f
,short,g
)
2129 Fg(BOOL
,ScrollDC
,HDC
,a
,short,b
,short,c
,LPRECT
,d
,LPRECT
,e
,HRGN
,f
,LPRECT
,g
)
2130 Fg(BOOL
,TrackPopupMenu
,HMENU
,a
,WORD
,b
,int,c
,int,d
,int,e
,HWND
,f
,LPRECT
,g
)
2131 Fg(HCURSOR
,CreateCursor
,HANDLE
,a
,int,b
,int,c
,int,d
,int,e
,LPSTR
,f
,LPSTR
,g
)
2132 Fg(HICON
,CreateIcon
,HANDLE
,a
,int,b
,int,c
,BYTE
,d
,BYTE
,e
,LPSTR
,f
,LPSTR
,g
)
2133 Fg(int,GetDIBits
,HDC
,a
,HANDLE
,a2
,WORD
,b
,WORD
,c
,LPSTR
,d
,LPBITMAPINFO
,e
,WORD
,f
)
2134 Fg(int,SetDIBits
,HDC
,a
,HANDLE
,a2
,WORD
,b
,WORD
,c
,LPSTR
,d
,LPBITMAPINFO
,e
,WORD
,f
)
2135 Fg(void,SetWindowPos
,HWND
,a
,HWND
,b
,short,c
,short,d
,short,e
,short,f
,WORD
,g
)
2136 Fh(BOOL
,ExtTextOut
,HDC
,a
,int,b
,int,c
,WORD
,d
,LPRECT
,e
,LPSTR
,f
,WORD
,g
,LPINT
,h
)
2137 Fh(HANDLE
,DeferWindowPos
,HANDLE
,hWinPosInfo
,HWND
,hWnd
,HWND
,hWndInsertAfter
,int,x
,int,y
,int,cx
,int,cy
,WORD
,wFlags
)
2138 Fh(LONG
,TabbedTextOut
,HDC
,a
,int,b
,int,c
,LPSTR
,d
,int,e
,int,f
,LPINT
,g
,int,h
)
2139 Fh(int,ScrollWindowEx
,HWND
,a
,short,b
,short,c
,LPRECT
,d
,LPRECT
,e
,HRGN
,f
,LPRECT
,g
,WORD
,h
)
2140 Fi(BOOL
,Arc
,HDC
,a
,int,xLeft
,int,yTop
,int,xRight
,int,yBottom
,int,xStart
,int,yStart
,int,xEnd
,int,yEnd
)
2141 Fi(BOOL
,Chord
,HDC
,a
,int,xLeft
,int,yTop
,int,xRight
,int,yBottom
,int,xStart
,int,yStart
,int,xEnd
,int,yEnd
)
2142 Fi(BOOL
,BitBlt
,HDC
,a
,short,b
,short,c
,short,d
,short,e
,HDC
,f
,short,g
,short,h
,DWORD
,i
)
2143 Fi(BOOL
,GrayString
,HDC
,a
,HBRUSH
,b
,FARPROC
,c
,DWORD
,d
,int,e
,int,f
,int,g
,int,h
,int,i
)
2144 Fi(BOOL
,Pie
,HDC
,a
,int,xLeft
,int,yTop
,int,xRight
,int,yBottom
,int,xStart
,int,yStart
,int,xEnd
,int,yEnd
)
2145 Fk(HWND
,CreateWindow
,LPSTR
,szAppName
,LPSTR
,Label
,DWORD
,ol
,short,x
,short,y
,short,w
,short,h
,HWND
,d
,HMENU
,e
,,HANDLE i
,LPSTR
,g
)
2146 Fk(BOOL
,StretchBlt
,HDC
,a
,short,b
,short,c
,short,d
,short,e
,HDC
,f
,short,g
,short,h
,short,i
,short,j
,DWORD
,k
)
2147 Fl(HWND
,CreateWindowEx
,DWORD
,a
,LPSTR
,b
,LPSTR
,c
,DWORD
,d
,short,e
,short,f
,short,g
,short,h
,HWND
,i
,HMENU
,j
,HANDLE
,k
,LPSTR
,l
)
2148 Fl(int,SetDIBitsToDevice
,HDC
,a
,WORD
,b
,WORD
,c
,WORD
,d
,WORD
,e
,WORD
,f
,WORD
,g
,WORD
,h
,WORD
,i
,LPSTR
,j
,LPBITMAPINFO
,k
,WORD
,l
)
2149 Fm(int,StretchDIBits
,HDC
,a
,WORD
,b
,WORD
,c
,WORD
,d
,WORD
,e
,WORD
,f
,WORD
,g
,WORD
,h
,WORD
,i
,LPSTR
,j
,LPBITMAPINFO
,k
,WORD
,l
,DWORD
,m
)
2150 Fn(HFONT
,CreateFont
,int,a
,int,b
,int,c
,int,d
,int,e
,BYTE
,f
,BYTE
,g
,BYTE
,h
,BYTE
,i
,BYTE
,j
,BYTE
,k
,BYTE
,l
,BYTE
,m
,LPSTR
,n
)
2152 #endif /* WINDOWS_H */