source: trunk/include/win/wingdi.h@ 10010

Last change on this file since 10010 was 9973, checked in by sandervl, 22 years ago

YD: Header updates

File size: 95.4 KB
Line 
1#ifndef __WINE_WINGDI_H
2#define __WINE_WINGDI_H
3
4#include "windef.h"
5
6#ifdef __cplusplus
7extern "C" {
8#endif
9
10#define WINGDIAPI
11
12#define _WINGDI_
13
14#include "pshpack1.h"
15
16typedef struct _ABCFLOAT {
17 FLOAT abcfA;
18 FLOAT abcfB;
19 FLOAT abcfC;
20} ABCFLOAT, *PABCFLOAT, *LPABCFLOAT;
21
22typedef struct
23{
24 WORD wFirst;
25 WORD wSecond;
26 INT iKernAmount;
27} KERNINGPAIR, *LPKERNINGPAIR;
28
29
30typedef struct
31{
32 HDC hdc;
33 BOOL fErase;
34 RECT rcPaint;
35 BOOL fRestore;
36 BOOL fIncUpdate;
37 BYTE rgbReserved[32];
38} PAINTSTRUCT, *PPAINTSTRUCT, *LPPAINTSTRUCT;
39
40
41
42typedef struct tagPIXELFORMATDESCRIPTOR {
43 WORD nSize;
44 WORD nVersion;
45 DWORD dwFlags;
46 BYTE iPixelType;
47 BYTE cColorBits;
48 BYTE cRedBits;
49 BYTE cRedShift;
50 BYTE cGreenBits;
51 BYTE cGreenShift;
52 BYTE cBlueBits;
53 BYTE cBlueShift;
54 BYTE cAlphaBits;
55 BYTE cAlphaShift;
56 BYTE cAccumBits;
57 BYTE cAccumRedBits;
58 BYTE cAccumGreenBits;
59 BYTE cAccumBlueBits;
60 BYTE cAccumAlphaBits;
61 BYTE cDepthBits;
62 BYTE cStencilBits;
63 BYTE cAuxBuffers;
64 BYTE iLayerType;
65 BYTE bReserved;
66 DWORD dwLayerMask;
67 DWORD dwVisibleMask;
68 DWORD dwDamageMask;
69} PIXELFORMATDESCRIPTOR, *LPPIXELFORMATDESCRIPTOR;
70
71#define PFD_TYPE_RGBA 0
72#define PFD_TYPE_COLORINDEX 1
73
74#define PFD_MAIN_PLANE 0
75#define PFD_OVERLAY_PLANE 1
76#define PFD_UNDERLAY_PLANE (-1)
77
78#define PFD_DOUBLEBUFFER 0x00000001
79#define PFD_STEREO 0x00000002
80#define PFD_DRAW_TO_WINDOW 0x00000004
81#define PFD_DRAW_TO_BITMAP 0x00000008
82#define PFD_SUPPORT_GDI 0x00000010
83#define PFD_SUPPORT_OPENGL 0x00000020
84#define PFD_GENERIC_FORMAT 0x00000040
85#define PFD_NEED_PALETTE 0x00000080
86#define PFD_NEED_SYSTEM_PALETTE 0x00000100
87#define PFD_SWAP_EXCHANGE 0x00000200
88#define PFD_SWAP_COPY 0x00000400
89#define PFD_SWAP_LAYER_BUFFERS 0x00000800
90#define PFD_GENERIC_ACCELERATED 0x00001000
91
92#define PFD_DEPTH_DONTCARE 0x20000000
93#define PFD_DOUBLEBUFFER_DONTCARE 0x40000000
94#define PFD_STEREO_DONTCARE 0x80000000
95
96typedef struct tagCOLORADJUSTMENT
97{
98 WORD caSize;
99 WORD caFlags;
100 WORD caIlluminantIndex;
101 WORD caRedGamma;
102 WORD caGreenGamma;
103 WORD caBlueGamma;
104 WORD caReferenceBlack;
105 WORD caReferenceWhite;
106 SHORT caContrast;
107 SHORT caBrightness;
108 SHORT caColorfulness;
109 SHORT caRedGreenTint;
110} COLORADJUSTMENT, *PCOLORADJUSTMENT, *LPCOLORADJUSTMENT;
111
112typedef LONG FXPT16DOT16, *LPFXPT16DOT16;
113typedef LONG FXPT2DOT30, *LPFXPT2DOT30;
114typedef LONG LCSCSTYPE;
115typedef LONG LCSGAMUTMATCH;
116
117typedef struct tagCIEXYZ
118{
119 FXPT2DOT30 ciexyzX;
120 FXPT2DOT30 ciexyzY;
121 FXPT2DOT30 ciexyzZ;
122} CIEXYZ, *LPCIEXYZ;
123
124typedef struct tagCIEXYZTRIPLE
125{
126 CIEXYZ ciexyzRed;
127 CIEXYZ ciexyzGreen;
128 CIEXYZ ciexyzBlue;
129} CIEXYZTRIPLE, *LPCIEXYZTRIPLE;
130
131typedef struct tagLOGCOLORSPACEA
132{
133 DWORD lcsSignature;
134 DWORD lcsVersion;
135 DWORD lcsSize;
136 LCSCSTYPE lcsCSType;
137 LCSGAMUTMATCH lcsIntent;
138 CIEXYZTRIPLE lcsEndpoints;
139 DWORD lcsGammaRed;
140 DWORD lcsGammaGreen;
141 DWORD lcsGammaBlue;
142 CHAR lcsFilename[_MAX_PATH];
143} LOGCOLORSPACEA, *LPLOGCOLORSPACEA;
144
145 typedef struct tagLOGCOLORSPACEW
146{
147 DWORD lcsSignature;
148 DWORD lcsVersion;
149 DWORD lcsSize;
150 LCSCSTYPE lcsCSType;
151 LCSGAMUTMATCH lcsIntent;
152 CIEXYZTRIPLE lcsEndpoints;
153 DWORD lcsGammaRed;
154 DWORD lcsGammaGreen;
155 DWORD lcsGammaBlue;
156 WCHAR lcsFilename[_MAX_PATH];
157} LOGCOLORSPACEW, *LPLOGCOLORSPACEW;
158
159DECL_WINELIB_TYPE_AW(LPLOGCOLORSPACE)
160DECL_WINELIB_TYPE_AW(LOGCOLORSPACE)
161
162#define DC_FIELDS 1
163#define DC_PAPERS 2
164#define DC_PAPERSIZE 3
165#define DC_MINEXTENT 4
166#define DC_MAXEXTENT 5
167#define DC_BINS 6
168#define DC_DUPLEX 7
169#define DC_SIZE 8
170#define DC_EXTRA 9
171#define DC_VERSION 10
172#define DC_DRIVER 11
173#define DC_BINNAMES 12
174#define DC_ENUMRESOLUTIONS 13
175#define DC_FILEDEPENDENCIES 14
176#define DC_TRUETYPE 15
177#define DC_PAPERNAMES 16
178#define DC_ORIENTATION 17
179#define DC_COPIES 18
180#define DC_BINADJUST 19
181#define DC_EMF_COMPLIANT 20
182#define DC_DATATYPE_PRODUCED 21
183#define DC_COLLATE 22
184#define DC_MANUFACTURER 23
185#define DC_MODEL 24
186
187/* Flag returned from Escape QUERYDIBSUPPORT */
188#define QDI_SETDIBITS 1
189#define QDI_GETDIBITS 2
190#define QDI_DIBTOSCREEN 4
191#define QDI_STRETCHDIB 8
192
193
194#define PR_JOBSTATUS 0x0000
195
196
197/* GDI Escape commands */
198#define NEWFRAME 1
199#define ABORTDOC 2
200#define NEXTBAND 3
201#define SETCOLORTABLE 4
202#define GETCOLORTABLE 5
203#define FLUSHOUTPUT 6
204#define DRAFTMODE 7
205#define QUERYESCSUPPORT 8
206#define SETABORTPROC 9
207#define STARTDOC 10
208#define ENDDOC 11
209#define GETPHYSPAGESIZE 12
210#define GETPRINTINGOFFSET 13
211#define GETSCALINGFACTOR 14
212#define MFCOMMENT 15
213#define GETPENWIDTH 16
214#define SETCOPYCOUNT 17
215#define SELECTPAPERSOURCE 18
216#define DEVICEDATA 19
217#define PASSTHROUGH 19
218#define GETTECHNOLGY 20
219#define GETTECHNOLOGY 20 /* yes, both of them */
220#define SETLINECAP 21
221#define SETLINEJOIN 22
222#define SETMITERLIMIT 23
223#define BANDINFO 24
224#define DRAWPATTERNRECT 25
225#define GETVECTORPENSIZE 26
226#define GETVECTORBRUSHSIZE 27
227#define ENABLEDUPLEX 28
228#define GETSETPAPERBINS 29
229#define GETSETPRINTORIENT 30
230#define ENUMPAPERBINS 31
231#define SETDIBSCALING 32
232#define EPSPRINTING 33
233#define ENUMPAPERMETRICS 34
234#define GETSETPAPERMETRICS 35
235#define POSTSCRIPT_DATA 37
236#define POSTSCRIPT_IGNORE 38
237#define MOUSETRAILS 39
238#define GETDEVICEUNITS 42
239
240#define DESKTOPVERTRES 117
241#define DESKTOPHORZRES 118
242
243#define GETEXTENDEDTEXTMETRICS 256
244#define GETEXTENTTABLE 257
245#define GETPAIRKERNTABLE 258
246#define GETTRACKKERNTABLE 259
247#define EXTTEXTOUT 512
248#define GETFACENAME 513
249#define DOWNLOADFACE 514
250#define ENABLERELATIVEWIDTHS 768
251#define ENABLEPAIRKERNING 769
252#define SETKERNTRACK 770
253#define SETALLJUSTVALUES 771
254#define SETCHARSET 772
255
256#define STRETCHBLT 2048
257#define GETSETSCREENPARAMS 3072
258#define QUERYDIBSUPPORT 3073
259#define BEGIN_PATH 4096
260#define CLIP_TO_PATH 4097
261#define END_PATH 4098
262#define EXT_DEVICE_CAPS 4099
263#define RESTORE_CTM 4100
264#define SAVE_CTM 4101
265#define SET_ARC_DIRECTION 4102
266#define SET_BACKGROUND_COLOR 4103
267#define SET_POLY_MODE 4104
268#define SET_SCREEN_ANGLE 4105
269#define SET_SPREAD 4106
270#define TRANSFORM_CTM 4107
271#define SET_CLIP_BOX 4108
272#define SET_BOUNDS 4109
273#define SET_MIRROR_MODE 4110
274#define OPENCHANNEL 4110
275#define DOWNLOADHEADER 4111
276#define CLOSECHANNEL 4112
277#define POSTSCRIPT_PASSTHROUGH 4115
278#define ENCAPSULATED_POSTSCRIPT 4116
279
280/* Spooler Error Codes */
281#define SP_NOTREPORTED 0x4000
282#define SP_ERROR (-1)
283#define SP_APPABORT (-2)
284#define SP_USERABORT (-3)
285#define SP_OUTOFDISK (-4)
286#define SP_OUTOFMEMORY (-5)
287
288
289 /* Raster operations */
290
291#define R2_BLACK 1
292#define R2_NOTMERGEPEN 2
293#define R2_MASKNOTPEN 3
294#define R2_NOTCOPYPEN 4
295#define R2_MASKPENNOT 5
296#define R2_NOT 6
297#define R2_XORPEN 7
298#define R2_NOTMASKPEN 8
299#define R2_MASKPEN 9
300#define R2_NOTXORPEN 10
301#define R2_NOP 11
302#define R2_MERGENOTPEN 12
303#define R2_COPYPEN 13
304#define R2_MERGEPENNOT 14
305#define R2_MERGEPEN 15
306#define R2_WHITE 16
307
308#define SRCCOPY 0xcc0020
309#define SRCPAINT 0xee0086
310#define SRCAND 0x8800c6
311#define SRCINVERT 0x660046
312#define SRCERASE 0x440328
313#define NOTSRCCOPY 0x330008
314#define NOTSRCERASE 0x1100a6
315#define MERGECOPY 0xc000ca
316#define MERGEPAINT 0xbb0226
317#define PATCOPY 0xf00021
318#define PATPAINT 0xfb0a09
319#define PATINVERT 0x5a0049
320#define DSTINVERT 0x550009
321#define BLACKNESS 0x000042
322#define WHITENESS 0xff0062
323
324 /* StretchBlt() modes */
325#define BLACKONWHITE 1
326#define WHITEONBLACK 2
327#define COLORONCOLOR 3
328#define HALFTONE 4
329#define MAXSTRETCHBLTMODE 4
330
331#define STRETCH_ANDSCANS BLACKONWHITE
332#define STRETCH_ORSCANS WHITEONBLACK
333#define STRETCH_DELETESCANS COLORONCOLOR
334#define STRETCH_HALFTONE HALFTONE
335
336 /* Colors */
337
338typedef DWORD COLORREF, *LPCOLORREF;
339
340#define RGB(r,g,b) ((COLORREF)((r) | ((g) << 8) | ((b) << 16)))
341#define PALETTERGB(r,g,b) (0x02000000 | RGB(r,g,b))
342#define PALETTEINDEX(i) ((COLORREF)(0x01000000 | (WORD)(i)))
343
344#define GetRValue(rgb) ((rgb) & 0xff)
345#define GetGValue(rgb) (((rgb) >> 8) & 0xff)
346#define GetBValue(rgb) (((rgb) >> 16) & 0xff)
347
348#define COLOR_SCROLLBAR 0
349#define COLOR_BACKGROUND 1
350#define COLOR_ACTIVECAPTION 2
351#define COLOR_INACTIVECAPTION 3
352#define COLOR_MENU 4
353#define COLOR_WINDOW 5
354#define COLOR_WINDOWFRAME 6
355#define COLOR_MENUTEXT 7
356#define COLOR_WINDOWTEXT 8
357#define COLOR_CAPTIONTEXT 9
358#define COLOR_ACTIVEBORDER 10
359#define COLOR_INACTIVEBORDER 11
360#define COLOR_APPWORKSPACE 12
361#define COLOR_HIGHLIGHT 13
362#define COLOR_HIGHLIGHTTEXT 14
363#define COLOR_BTNFACE 15
364#define COLOR_BTNSHADOW 16
365#define COLOR_GRAYTEXT 17
366#define COLOR_BTNTEXT 18
367#define COLOR_INACTIVECAPTIONTEXT 19
368#define COLOR_BTNHIGHLIGHT 20
369/* win95 colors */
370#define COLOR_3DDKSHADOW 21
371#define COLOR_3DLIGHT 22
372#define COLOR_INFOTEXT 23
373#define COLOR_INFOBK 24
374#define COLOR_DESKTOP COLOR_BACKGROUND
375#define COLOR_3DFACE COLOR_BTNFACE
376#define COLOR_3DSHADOW COLOR_BTNSHADOW
377#define COLOR_3DHIGHLIGHT COLOR_BTNHIGHLIGHT
378#define COLOR_3DHILIGHT COLOR_BTNHIGHLIGHT
379#define COLOR_BTNHILIGHT COLOR_BTNHIGHLIGHT
380/* win98 colors */
381#define COLOR_ALTERNATEBTNFACE 25 /* undocumented, constant's name unknown */
382#define COLOR_HOTLIGHT 26
383#define COLOR_GRADIENTACTIVECAPTION 27
384#define COLOR_GRADIENTINACTIVECAPTION 28
385
386 /* WM_CTLCOLOR values */
387#define CTLCOLOR_MSGBOX 0
388#define CTLCOLOR_EDIT 1
389#define CTLCOLOR_LISTBOX 2
390#define CTLCOLOR_BTN 3
391#define CTLCOLOR_DLG 4
392#define CTLCOLOR_SCROLLBAR 5
393#define CTLCOLOR_STATIC 6
394
395#define ICM_OFF 1
396#define ICM_ON 2
397#define ICM_QUERY 3
398
399 /* Bounds Accumulation APIs */
400#define DCB_RESET 0x0001
401#define DCB_ACCUMULATE 0x0002
402#define DCB_DIRTY DCB_ACCUMULATE
403#define DCB_SET (DCB_RESET | DCB_ACCUMULATE)
404#define DCB_ENABLE 0x0004
405#define DCB_DISABLE 0x0008
406
407 /* Bitmaps */
408typedef struct
409{
410 INT bmType;
411 INT bmWidth;
412 INT bmHeight;
413 INT bmWidthBytes;
414 WORD bmPlanes;
415 WORD bmBitsPixel;
416 LPVOID bmBits WINE_PACKED;
417} BITMAP, *LPBITMAP;
418
419
420 /* Brushes */
421typedef struct
422{
423 UINT lbStyle;
424 COLORREF lbColor;
425 INT lbHatch;
426} LOGBRUSH, *LPLOGBRUSH;
427
428
429 /* Brush styles */
430#define BS_SOLID 0
431#define BS_NULL 1
432#define BS_HOLLOW 1
433#define BS_HATCHED 2
434#define BS_PATTERN 3
435#define BS_INDEXED 4
436#define BS_DIBPATTERN 5
437#define BS_DIBPATTERNPT 6
438#define BS_PATTERN8X8 7
439#define BS_DIBPATTERN8X8 8
440#define BS_MONOPATTERN 9
441
442 /* Hatch styles */
443#define HS_HORIZONTAL 0
444#define HS_VERTICAL 1
445#define HS_FDIAGONAL 2
446#define HS_BDIAGONAL 3
447#define HS_CROSS 4
448#define HS_DIAGCROSS 5
449
450 /* Fonts */
451
452#define LF_FACESIZE 32
453#define LF_FULLFACESIZE 64
454
455#define RASTER_FONTTYPE 0x0001
456#define DEVICE_FONTTYPE 0x0002
457#define TRUETYPE_FONTTYPE 0x0004
458
459typedef struct
460{
461 INT lfHeight;
462 INT lfWidth;
463 INT lfEscapement;
464 INT lfOrientation;
465 INT lfWeight;
466 BYTE lfItalic;
467 BYTE lfUnderline;
468 BYTE lfStrikeOut;
469 BYTE lfCharSet;
470 BYTE lfOutPrecision;
471 BYTE lfClipPrecision;
472 BYTE lfQuality;
473 BYTE lfPitchAndFamily;
474 CHAR lfFaceName[LF_FACESIZE];
475} LOGFONTA, *PLOGFONTA, *LPLOGFONTA;
476
477typedef struct
478{
479 INT lfHeight;
480 INT lfWidth;
481 INT lfEscapement;
482 INT lfOrientation;
483 INT lfWeight;
484 BYTE lfItalic;
485 BYTE lfUnderline;
486 BYTE lfStrikeOut;
487 BYTE lfCharSet;
488 BYTE lfOutPrecision;
489 BYTE lfClipPrecision;
490 BYTE lfQuality;
491 BYTE lfPitchAndFamily;
492 WCHAR lfFaceName[LF_FACESIZE];
493} LOGFONTW, *PLOGFONTW, *LPLOGFONTW;
494
495DECL_WINELIB_TYPE_AW(LOGFONT)
496DECL_WINELIB_TYPE_AW(PLOGFONT)
497DECL_WINELIB_TYPE_AW(LPLOGFONT)
498
499typedef struct
500{
501 LOGFONTA elfLogFont;
502 BYTE elfFullName[LF_FULLFACESIZE] WINE_PACKED;
503 BYTE elfStyle[LF_FACESIZE] WINE_PACKED;
504} ENUMLOGFONTA, *LPENUMLOGFONTA;
505
506typedef struct
507{
508 LOGFONTW elfLogFont;
509 WCHAR elfFullName[LF_FULLFACESIZE] WINE_PACKED;
510 WCHAR elfStyle[LF_FACESIZE] WINE_PACKED;
511} ENUMLOGFONTW, *LPENUMLOGFONTW;
512
513typedef struct
514{
515 LOGFONTA elfLogFont;
516 BYTE elfFullName[LF_FULLFACESIZE] WINE_PACKED;
517 BYTE elfStyle[LF_FACESIZE] WINE_PACKED;
518 BYTE elfScript[LF_FACESIZE] WINE_PACKED;
519} ENUMLOGFONTEXA,*LPENUMLOGFONTEXA;
520
521typedef struct
522{
523 LOGFONTW elfLogFont;
524 WCHAR elfFullName[LF_FULLFACESIZE] WINE_PACKED;
525 WCHAR elfStyle[LF_FACESIZE] WINE_PACKED;
526 WCHAR elfScript[LF_FACESIZE] WINE_PACKED;
527} ENUMLOGFONTEXW,*LPENUMLOGFONTEXW;
528
529DECL_WINELIB_TYPE_AW(ENUMLOGFONT)
530DECL_WINELIB_TYPE_AW(ENUMLOGFONTEX)
531DECL_WINELIB_TYPE_AW(LPENUMLOGFONT)
532DECL_WINELIB_TYPE_AW(LPENUMLOGFONTEX)
533
534/*
535 * The FONTSIGNATURE tells which Unicode ranges and which code pages
536 * have glyphs in a font.
537 *
538 * fsUsb 128-bit bitmap. The most significant bits are 10 (magic number).
539 * The remaining 126 bits map the Unicode ISO 10646 subranges
540 * for which the font provides glyphs.
541 *
542 * fsCsb 64-bit bitmap. The low 32 bits map the Windows codepages for
543 * which the font provides glyphs. The high 32 bits are for
544 * non Windows codepages.
545 */
546typedef struct
547{
548 DWORD fsUsb[4];
549 DWORD fsCsb[2];
550} FONTSIGNATURE,*LPFONTSIGNATURE;
551
552typedef struct
553{
554 UINT ciCharset; /* character set */
555 UINT ciACP; /* ANSI code page */
556 FONTSIGNATURE fs;
557} CHARSETINFO,*LPCHARSETINFO;
558
559/* Flags for TranslateCharsetInfo */
560#define TCI_SRCCHARSET 1
561#define TCI_SRCCODEPAGE 2
562#define TCI_SRCFONTSIG 3
563
564/* Flags for ModifyWorldTransform */
565#define MWT_IDENTITY 1
566#define MWT_LEFTMULTIPLY 2
567#define MWT_RIGHTMULTIPLY 3
568
569/* Object Definitions for EnumObjects() */
570#define OBJ_PEN 1
571#define OBJ_BRUSH 2
572#define OBJ_DC 3
573#define OBJ_METADC 4
574#define OBJ_PAL 5
575#define OBJ_FONT 6
576#define OBJ_BITMAP 7
577#define OBJ_REGION 8
578#define OBJ_METAFILE 9
579#define OBJ_MEMDC 10
580#define OBJ_EXTPEN 11
581#define OBJ_ENHMETADC 12
582#define OBJ_ENHMETAFILE 13
583
584
585typedef struct
586{
587 FLOAT eM11;
588 FLOAT eM12;
589 FLOAT eM21;
590 FLOAT eM22;
591 FLOAT eDx;
592 FLOAT eDy;
593} XFORM, *LPXFORM;
594
595 /* lfWeight values */
596#define FW_DONTCARE 0
597#define FW_THIN 100
598#define FW_EXTRALIGHT 200
599#define FW_ULTRALIGHT 200
600#define FW_LIGHT 300
601#define FW_NORMAL 400
602#define FW_REGULAR 400
603#define FW_MEDIUM 500
604#define FW_SEMIBOLD 600
605#define FW_DEMIBOLD 600
606#define FW_BOLD 700
607#define FW_EXTRABOLD 800
608#define FW_ULTRABOLD 800
609#define FW_HEAVY 900
610#define FW_BLACK 900
611
612 /* lfCharSet values */
613#define ANSI_CHARSET (BYTE)0 /* CP1252, ansi-0, iso8859-{1,15} */
614#define DEFAULT_CHARSET (BYTE)1
615#define SYMBOL_CHARSET (BYTE)2
616#define SHIFTJIS_CHARSET (BYTE)128 /* CP932 */
617#define HANGEUL_CHARSET (BYTE)129 /* CP949, ksc5601.1987-0 */
618#define HANGUL_CHARSET HANGEUL_CHARSET
619#define GB2312_CHARSET (BYTE)134 /* CP936, gb2312.1980-0 */
620#define CHINESEBIG5_CHARSET (BYTE)136 /* CP950, big5.et-0 */
621#define GREEK_CHARSET (BYTE)161 /* CP1253 */
622#define TURKISH_CHARSET (BYTE)162 /* CP1254, -iso8859-9 */
623#define HEBREW_CHARSET (BYTE)177 /* CP1255, -iso8859-8 */
624#define ARABIC_CHARSET (BYTE)178 /* CP1256, -iso8859-6 */
625#define BALTIC_CHARSET (BYTE)186 /* CP1257, -iso8859-10 */
626#define RUSSIAN_CHARSET (BYTE)204 /* CP1251, -iso8859-5 */
627#define EE_CHARSET (BYTE)238 /* CP1250, -iso8859-2 */
628#define EASTEUROPE_CHARSET EE_CHARSET
629#define THAI_CHARSET (BYTE)222 /* CP874, iso8859-11, tis620 */
630#define JOHAB_CHARSET (BYTE)130 /* korean (johab) CP1361 */
631#define OEM_CHARSET (BYTE)255
632/* I don't know if the values of *_CHARSET macros are defined in Windows
633 * or if we can choose them as we want. -- srtxg
634 */
635#define VISCII_CHARSET (BYTE)240 /* viscii1.1-1 */
636#define TCVN_CHARSET (BYTE)241 /* tcvn-0 */
637#define KOI8_CHARSET (BYTE)242 /* koi8-{r,u,ru} */
638#define ISO3_CHARSET (BYTE)243 /* iso8859-3 */
639#define ISO4_CHARSET (BYTE)244 /* iso8859-4 */
640
641 /* lfOutPrecision values */
642#define OUT_DEFAULT_PRECIS 0
643#define OUT_STRING_PRECIS 1
644#define OUT_CHARACTER_PRECIS 2
645#define OUT_STROKE_PRECIS 3
646#define OUT_TT_PRECIS 4
647#define OUT_DEVICE_PRECIS 5
648#define OUT_RASTER_PRECIS 6
649#define OUT_TT_ONLY_PRECIS 7
650
651 /* lfClipPrecision values */
652#define CLIP_DEFAULT_PRECIS 0x00
653#define CLIP_CHARACTER_PRECIS 0x01
654#define CLIP_STROKE_PRECIS 0x02
655#define CLIP_MASK 0x0F
656#define CLIP_LH_ANGLES 0x10
657#define CLIP_TT_ALWAYS 0x20
658#define CLIP_EMBEDDED 0x80
659
660 /* lfQuality values */
661#define DEFAULT_QUALITY 0
662#define DRAFT_QUALITY 1
663#define PROOF_QUALITY 2
664
665 /* lfPitchAndFamily pitch values */
666#define DEFAULT_PITCH 0x00
667#define FIXED_PITCH 0x01
668#define VARIABLE_PITCH 0x02
669#define FF_DONTCARE 0x00
670#define FF_ROMAN 0x10
671#define FF_SWISS 0x20
672#define FF_MODERN 0x30
673#define FF_SCRIPT 0x40
674#define FF_DECORATIVE 0x50
675
676typedef struct
677{
678 INT tmHeight;
679 INT tmAscent;
680 INT tmDescent;
681 INT tmInternalLeading;
682 INT tmExternalLeading;
683 INT tmAveCharWidth;
684 INT tmMaxCharWidth;
685 INT tmWeight;
686 INT tmOverhang;
687 INT tmDigitizedAspectX;
688 INT tmDigitizedAspectY;
689 BYTE tmFirstChar;
690 BYTE tmLastChar;
691 BYTE tmDefaultChar;
692 BYTE tmBreakChar;
693 BYTE tmItalic;
694 BYTE tmUnderlined;
695 BYTE tmStruckOut;
696 BYTE tmPitchAndFamily;
697 BYTE tmCharSet;
698} TEXTMETRICA, *LPTEXTMETRICA;
699
700typedef struct
701{
702 INT tmHeight;
703 INT tmAscent;
704 INT tmDescent;
705 INT tmInternalLeading;
706 INT tmExternalLeading;
707 INT tmAveCharWidth;
708 INT tmMaxCharWidth;
709 INT tmWeight;
710 INT tmOverhang;
711 INT tmDigitizedAspectX;
712 INT tmDigitizedAspectY;
713 WCHAR tmFirstChar;
714 WCHAR tmLastChar;
715 WCHAR tmDefaultChar;
716 WCHAR tmBreakChar;
717 BYTE tmItalic;
718 BYTE tmUnderlined;
719 BYTE tmStruckOut;
720 BYTE tmPitchAndFamily;
721 BYTE tmCharSet;
722} TEXTMETRICW, *LPTEXTMETRICW;
723
724DECL_WINELIB_TYPE_AW(TEXTMETRIC)
725DECL_WINELIB_TYPE_AW(LPTEXTMETRIC)
726
727
728typedef struct tagPANOSE
729{
730 BYTE bFamilyType;
731 BYTE bSerifStyle;
732 BYTE bWeight;
733 BYTE bProportion;
734 BYTE bContrast;
735 BYTE bStrokeVariation;
736 BYTE bArmStyle;
737 BYTE bLetterform;
738 BYTE bMidline;
739 BYTE bXHeight;
740} PANOSE;
741
742#define PAN_CULTURE_LATIN 0
743
744#define PAN_ANY 0
745#define PAN_NO_FIT 1
746
747#define PAN_FAMILY_TEXT_DISPLAY 2
748#define PAN_FAMILY_SCRIPT 3
749#define PAN_FAMILY_DECORATIVE 4
750#define PAN_FAMILY_PICTORIAL 5
751
752#define PAN_SERIF_COVE 2
753#define PAN_SERIF_OBTUSE_COVE 3
754#define PAN_SERIF_SQUARE_COVE 4
755#define PAN_SERIF_OBTUSE_SQUARE_COVE 5
756#define PAN_SERIF_SQUARE 6
757#define PAN_SERIF_THIN 7
758#define PAN_SERIF_BONE 8
759#define PAN_SERIF_EXAGGERATED 9
760#define PAN_SERIF_TRIANGLE 10
761#define PAN_SERIF_NORMAL_SANS 11
762#define PAN_SERIF_OBTUSE_SANS 12
763#define PAN_SERIF_PERP_SANS 13
764#define PAN_SERIF_FLARED 14
765#define PAN_SERIF_ROUNDED 15
766
767#define PAN_WEIGHT_VERY_LIGHT 2
768#define PAN_WEIGHT_LIGHT 3
769#define PAN_WEIGHT_THIN 4
770#define PAN_WEIGHT_BOOK 5
771#define PAN_WEIGHT_MEDIUM 6
772#define PAN_WEIGHT_DEMI 7
773#define PAN_WEIGHT_BOLD 8
774#define PAN_WEIGHT_HEAVY 9
775#define PAN_WEIGHT_BLACK 10
776#define PAN_WEIGHT_NORD 11
777
778#define PAN_PROP_OLD_STYLE 2
779#define PAN_PROP_MODERN 3
780#define PAN_PROP_EVEN_WIDTH 4
781#define PAN_PROP_EXPANDED 5
782#define PAN_PROP_CONDENSED 6
783#define PAN_PROP_VERY_EXPANDED 7
784#define PAN_PROP_VERY_CONDENSED 8
785#define PAN_PROP_MONOSPACED 9
786
787#define PAN_CONTRAST_NONE 2
788#define PAN_CONTRAST_VERY_LOW 3
789#define PAN_CONTRAST_LOW 4
790#define PAN_CONTRAST_MEDIUM_LOW 5
791#define PAN_CONTRAST_MEDIUM 6
792#define PAN_CONTRAST_MEDIUM_HIGH 7
793#define PAN_CONTRAST_HIGH 8
794#define PAN_CONTRAST_VERY_HIGH 9
795
796#define PAN_STROKE_GRADUAL_DIAG 2
797#define PAN_STROKE_GRADUAL_TRAN 3
798#define PAN_STROKE_GRADUAL_VERT 4
799#define PAN_STROKE_GRADUAL_HORZ 5
800#define PAN_STROKE_RAPID_VERT 6
801#define PAN_STROKE_RAPID_HORZ 7
802#define PAN_STROKE_INSTANT_VERT 8
803
804#define PAN_STRAIGHT_ARMS_HORZ 2
805#define PAN_STRAIGHT_ARMS_WEDGE 3
806#define PAN_STRAIGHT_ARMS_VERT 4
807#define PAN_STRAIGHT_ARMS_SINGLE_SERIF 5
808#define PAN_STRAIGHT_ARMS_DOUBLE_SERIF 6
809#define PAN_BENT_ARMS_HORZ 7
810#define PAN_BENT_ARMS_WEDGE 8
811#define PAN_BENT_ARMS_VERT 9
812#define PAN_BENT_ARMS_SINGLE_SERIF 10
813#define PAN_BENT_ARMS_DOUBLE_SERIF 11
814
815#define PAN_LETT_NORMAL_COMPACT 2
816#define PAN_LETT_NORMAL_WEIGHTED 3
817#define PAN_LETT_NORMAL_BOXED 4
818#define PAN_LETT_NORMAL_FLATTENED 5
819#define PAN_LETT_NORMAL_ROUNDED 6
820#define PAN_LETT_NORMAL_OFF_CENTER 7
821#define PAN_LETT_NORMAL_SQUARE 8
822#define PAN_LETT_OBLIQUE_COMPACT 9
823#define PAN_LETT_OBLIQUE_WEIGHTED 10
824#define PAN_LETT_OBLIQUE_BOXED 11
825#define PAN_LETT_OBLIQUE_FLATTENED 12
826#define PAN_LETT_OBLIQUE_ROUNDED 13
827#define PAN_LETT_OBLIQUE_OFF_CENTER 14
828#define PAN_LETT_OBLIQUE_SQUARE 15
829
830#define PAN_MIDLINE_STANDARD_TRIMMED 2
831#define PAN_MIDLINE_STANDARD_POINTED 3
832#define PAN_MIDLINE_STANDARD_SERIFED 4
833#define PAN_MIDLINE_HIGH_TRIMMED 5
834#define PAN_MIDLINE_HIGH_POINTED 6
835#define PAN_MIDLINE_HIGH_SERIFED 7
836#define PAN_MIDLINE_CONSTANT_TRIMMED 8
837#define PAN_MIDLINE_CONSTANT_POINTED 9
838#define PAN_MIDLINE_CONSTANT_SERIFED 10
839#define PAN_MIDLINE_LOW_TRIMMED 11
840#define PAN_MIDLINE_LOW_POINTED 12
841#define PAN_MIDLINE_LOW_SERIFED 13
842
843#define PAN_XHEIGHT_CONSTANT_SMALL 2
844#define PAN_XHEIGHT_CONSTANT_STANDARD 3
845#define PAN_XHEIGHT_CONSTANT_LARGE 4
846#define PAN_XHEIGHT_DUCKING_SMALL 5
847#define PAN_XHEIGHT_DUCKING_STANDARD 6
848#define PAN_XHEIGHT_DUCKING_LARGE 7
849
850#define ELF_VENDOR_SIZE 4
851typedef struct
852{
853 LOGFONTA elfLogFont;
854 BYTE elfFullName[LF_FULLFACESIZE];
855 BYTE elfStyle[LF_FACESIZE];
856 DWORD elfVersion;
857 DWORD elfStyleSize;
858 DWORD elfMatch;
859 DWORD elfReserved;
860 BYTE elfVendorId[ELF_VENDOR_SIZE];
861 DWORD elfCulture;
862 PANOSE elfPanose;
863} EXTLOGFONTA, *PEXTLOGFONTA;
864
865typedef struct
866{
867 LOGFONTW elfLogFont;
868 WCHAR elfFullName[LF_FULLFACESIZE];
869 WCHAR elfStyle[LF_FACESIZE];
870 DWORD elfVersion;
871 DWORD elfStyleSize;
872 DWORD elfMatch;
873 DWORD elfReserved;
874 BYTE elfVendorId[ELF_VENDOR_SIZE];
875 DWORD elfCulture;
876 PANOSE elfPanose;
877} EXTLOGFONTW, *PEXTLOGFONTW;
878
879DECL_WINELIB_TYPE_AW(EXTLOGFONT)
880DECL_WINELIB_TYPE_AW(PEXTLOGFONT)
881
882typedef struct _OUTLINETEXTMETRICA
883{
884 UINT otmSize;
885 TEXTMETRICA otmTextMetrics;
886 BYTE otmFilter;
887 PANOSE otmPanoseNumber;
888 UINT otmfsSelection;
889 UINT otmfsType;
890 INT otmsCharSlopeRise;
891 INT otmsCharSlopeRun;
892 INT otmItalicAngle;
893 UINT otmEMSquare;
894 INT otmAscent;
895 INT otmDescent;
896 UINT otmLineGap;
897 UINT otmsCapEmHeight;
898 UINT otmsXHeight;
899 RECT otmrcFontBox;
900 INT otmMacAscent;
901 INT otmMacDescent;
902 UINT otmMacLineGap;
903 UINT otmusMinimumPPEM;
904 POINT otmptSubscriptSize;
905 POINT otmptSubscriptOffset;
906 POINT otmptSuperscriptSize;
907 POINT otmptSuperscriptOffset;
908 UINT otmsStrikeoutSize;
909 INT otmsStrikeoutPosition;
910 INT otmsUnderscoreSize;
911 INT otmsUnderscorePosition;
912 LPSTR otmpFamilyName;
913 LPSTR otmpFaceName;
914 LPSTR otmpStyleName;
915 LPSTR otmpFullName;
916} OUTLINETEXTMETRICA, *LPOUTLINETEXTMETRICA;
917
918typedef struct _OUTLINETEXTMETRICW
919{
920 UINT otmSize;
921 TEXTMETRICW otmTextMetrics;
922 BYTE otmFilter;
923 PANOSE otmPanoseNumber;
924 UINT otmfsSelection;
925 UINT otmfsType;
926 INT otmsCharSlopeRise;
927 INT otmsCharSlopeRun;
928 INT otmItalicAngle;
929 UINT otmEMSquare;
930 INT otmAscent;
931 INT otmDescent;
932 UINT otmLineGap;
933 UINT otmsCapEmHeight;
934 UINT otmsXHeight;
935 RECT otmrcFontBox;
936 INT otmMacAscent;
937 INT otmMacDescent;
938 UINT otmMacLineGap;
939 UINT otmusMinimumPPEM;
940 POINT otmptSubscriptSize;
941 POINT otmptSubscriptOffset;
942 POINT otmptSuperscriptSize;
943 POINT otmptSuperscriptOffset;
944 UINT otmsStrikeoutSize;
945 INT otmsStrikeoutPosition;
946 INT otmsUnderscoreSize;
947 INT otmsUnderscorePosition;
948 LPSTR otmpFamilyName;
949 LPSTR otmpFaceName;
950 LPSTR otmpStyleName;
951 LPSTR otmpFullName;
952} OUTLINETEXTMETRICW, *LPOUTLINETEXTMETRICW;
953
954DECL_WINELIB_TYPE_AW(OUTLINETEXTMETRIC)
955DECL_WINELIB_TYPE_AW(LPOUTLINETEXTMETRIC)
956
957
958typedef struct
959{
960 INT x;
961 INT y;
962 UINT n;
963 LPCSTR lpstr;
964 UINT uiFlags;
965 RECT rcl;
966 INT *pdx;
967} POLYTEXTA, *PPOLYTEXTA, *LPPOLYTEXTA;
968
969typedef struct
970{
971 INT x;
972 INT y;
973 UINT n;
974 LPCWSTR lpstr;
975 UINT uiFlags;
976 RECT rcl;
977 INT *pdx;
978} POLYTEXTW, *PPOLYTEXTW, *LPPOLYTEXTW;
979
980DECL_WINELIB_TYPE_AW(POLYTEXT)
981DECL_WINELIB_TYPE_AW(PPOLYTEXT)
982DECL_WINELIB_TYPE_AW(LPPOLYTEXT)
983
984
985/* ntmFlags field flags */
986#define NTM_REGULAR 0x00000040L
987#define NTM_BOLD 0x00000020L
988#define NTM_ITALIC 0x00000001L
989
990typedef struct
991{
992 INT tmHeight;
993 INT tmAscent;
994 INT tmDescent;
995 INT tmInternalLeading;
996 INT tmExternalLeading;
997 INT tmAveCharWidth;
998 INT tmMaxCharWidth;
999 INT tmWeight;
1000 INT tmOverhang;
1001 INT tmDigitizedAspectX;
1002 INT tmDigitizedAspectY;
1003 BYTE tmFirstChar;
1004 BYTE tmLastChar;
1005 BYTE tmDefaultChar;
1006 BYTE tmBreakChar;
1007 BYTE tmItalic;
1008 BYTE tmUnderlined;
1009 BYTE tmStruckOut;
1010 BYTE tmPitchAndFamily;
1011 BYTE tmCharSet;
1012 DWORD ntmFlags;
1013 UINT ntmSizeEM;
1014 UINT ntmCellHeight;
1015 UINT ntmAvgWidth;
1016} NEWTEXTMETRICA, *LPNEWTEXTMETRICA;
1017
1018typedef struct
1019{
1020 INT tmHeight;
1021 INT tmAscent;
1022 INT tmDescent;
1023 INT tmInternalLeading;
1024 INT tmExternalLeading;
1025 INT tmAveCharWidth;
1026 INT tmMaxCharWidth;
1027 INT tmWeight;
1028 INT tmOverhang;
1029 INT tmDigitizedAspectX;
1030 INT tmDigitizedAspectY;
1031 WCHAR tmFirstChar;
1032 WCHAR tmLastChar;
1033 WCHAR tmDefaultChar;
1034 WCHAR tmBreakChar;
1035 BYTE tmItalic;
1036 BYTE tmUnderlined;
1037 BYTE tmStruckOut;
1038 BYTE tmPitchAndFamily;
1039 BYTE tmCharSet;
1040 DWORD ntmFlags;
1041 UINT ntmSizeEM;
1042 UINT ntmCellHeight;
1043 UINT ntmAvgWidth;
1044} NEWTEXTMETRICW, *LPNEWTEXTMETRICW;
1045
1046DECL_WINELIB_TYPE_AW(NEWTEXTMETRIC)
1047DECL_WINELIB_TYPE_AW(LPNEWTEXTMETRIC)
1048
1049typedef struct
1050{
1051 NEWTEXTMETRICA ntmTm;
1052 FONTSIGNATURE ntmFontSig;
1053} NEWTEXTMETRICEXA,*LPNEWTEXTMETRICEXA;
1054
1055typedef struct
1056{
1057 NEWTEXTMETRICW ntmTm;
1058 FONTSIGNATURE ntmFontSig;
1059} NEWTEXTMETRICEXW,*LPNEWTEXTMETRICEXW;
1060
1061DECL_WINELIB_TYPE_AW(NEWTEXTMETRICEX)
1062DECL_WINELIB_TYPE_AW(LPNEWTEXTMETRICEX)
1063
1064typedef INT (* CALLBACK FONTENUMPROCA)(CONST ENUMLOGFONTA *, CONST NEWTEXTMETRICA *,
1065 UINT,LPARAM);
1066typedef INT (* CALLBACK FONTENUMPROCW)(CONST ENUMLOGFONTW *, CONST NEWTEXTMETRICW *,
1067 UINT,LPARAM);
1068DECL_WINELIB_TYPE_AW(FONTENUMPROC)
1069
1070typedef INT (* CALLBACK FONTENUMPROCEXA)(CONST ENUMLOGFONTEXA *, CONST NEWTEXTMETRICEXA *,UINT,LPARAM);
1071typedef INT (* CALLBACK FONTENUMPROCEXW)(CONST ENUMLOGFONTEXW *, CONST NEWTEXTMETRICEXW *,UINT,LPARAM);
1072DECL_WINELIB_TYPE_AW(FONTENUMPROCEX)
1073
1074 /* tmPitchAndFamily bits */
1075#define TMPF_FIXED_PITCH 1 /* means variable pitch */
1076#define TMPF_VECTOR 2
1077#define TMPF_TRUETYPE 4
1078#define TMPF_DEVICE 8
1079
1080 /* Text alignment */
1081#define TA_NOUPDATECP 0x00
1082#define TA_UPDATECP 0x01
1083#define TA_LEFT 0x00
1084#define TA_RIGHT 0x02
1085#define TA_CENTER 0x06
1086#define TA_TOP 0x00
1087#define TA_BOTTOM 0x08
1088#define TA_BASELINE 0x18
1089
1090 /* ExtTextOut() parameters */
1091#define ETO_GRAYED 0x0001
1092#define ETO_OPAQUE 0x0002
1093#define ETO_CLIPPED 0x0004
1094#define ETO_GLYPH_INDEX 0x0010
1095#define ETO_RTLREADING 0x0080
1096#define ETO_IGNORELANGUAGE 0x1000
1097
1098#define ASPECT_FILTERING 0x0001
1099
1100typedef struct
1101{
1102 UINT gmBlackBoxX;
1103 UINT gmBlackBoxY;
1104 POINT gmptGlyphOrigin;
1105 INT16 gmCellIncX;
1106 INT16 gmCellIncY;
1107} GLYPHMETRICS, *LPGLYPHMETRICS;
1108
1109
1110#define GGO_METRICS 0
1111#define GGO_BITMAP 1
1112#define GGO_NATIVE 2
1113
1114typedef struct
1115{
1116 UINT16 fract;
1117 INT16 value;
1118} FIXED;
1119
1120typedef struct tagPOINTFX
1121{
1122 FIXED x;
1123 FIXED y;
1124} POINTFX, *LPPOINTFX;
1125
1126typedef struct tagTTPOLYCURVE
1127{
1128 WORD wType;
1129 WORD cpfx;
1130 POINTFX apfx[1];
1131} TTPOLYCURVE, *LPTTPOLYCURVE;
1132
1133typedef struct tagTTPOLYGONHEADER
1134{
1135 DWORD cb;
1136 DWORD dwType;
1137 POINTFX pfxStart;
1138} TTPOLYGONHEADER, *LPTTPOLYGONHEADER;
1139
1140typedef struct
1141{
1142 FIXED eM11;
1143 FIXED eM12;
1144 FIXED eM21;
1145 FIXED eM22;
1146} MAT2, *LPMAT2;
1147
1148 /* for GetCharABCWidths() */
1149typedef struct
1150{
1151 INT abcA;
1152 UINT abcB;
1153 INT abcC;
1154} ABC, *LPABC;
1155
1156
1157 /* for GetCharacterPlacement () */
1158typedef struct tagGCP_RESULTSA
1159{
1160 DWORD lStructSize;
1161 LPSTR lpOutString;
1162 UINT *lpOrder;
1163 INT *lpDx;
1164 INT *lpCaretPos;
1165 LPSTR lpClass;
1166 UINT *lpGlyphs;
1167 UINT nGlyphs;
1168 UINT nMaxFit;
1169} GCP_RESULTSA, *LPGCP_RESULTSA;
1170
1171typedef struct tagGCP_RESULTSW
1172{
1173 DWORD lStructSize;
1174 LPWSTR lpOutString;
1175 UINT *lpOrder;
1176 INT *lpDx;
1177 INT *lpCaretPos;
1178 LPWSTR lpClass;
1179 UINT *lpGlyphs;
1180 UINT nGlyphs;
1181 UINT nMaxFit;
1182} GCP_RESULTSW, *LPGCP_RESULTSW;
1183
1184DECL_WINELIB_TYPE_AW(GCP_RESULTS)
1185
1186 /* Rasterizer status */
1187typedef struct
1188{
1189 INT16 nSize;
1190 INT16 wFlags;
1191 INT16 nLanguageID;
1192} RASTERIZER_STATUS, *LPRASTERIZER_STATUS;
1193
1194#define TT_AVAILABLE 0x0001
1195#define TT_ENABLED 0x0002
1196
1197#define TT_PRIM_LINE 1
1198#define TT_PRIM_QSPLINE 2
1199#define TT_POLYGON_TYPE 24
1200
1201/* Get/SetSystemPaletteUse() values */
1202#define SYSPAL_STATIC 1
1203#define SYSPAL_NOSTATIC 2
1204
1205typedef struct tagPALETTEENTRY
1206{
1207 BYTE peRed, peGreen, peBlue, peFlags;
1208} PALETTEENTRY, *PPALETTEENTRY, *LPPALETTEENTRY;
1209
1210/* Logical palette entry flags */
1211#define PC_RESERVED 0x01
1212#define PC_EXPLICIT 0x02
1213#define PC_NOCOLLAPSE 0x04
1214
1215typedef struct
1216{
1217 WORD palVersion;
1218 WORD palNumEntries;
1219 PALETTEENTRY palPalEntry[1] WINE_PACKED;
1220} LOGPALETTE, *PLOGPALETTE, *LPLOGPALETTE;
1221
1222 /* Pens */
1223typedef struct
1224{
1225 UINT lopnStyle;
1226 POINT lopnWidth WINE_PACKED;
1227 COLORREF lopnColor WINE_PACKED;
1228} LOGPEN, *LPLOGPEN;
1229
1230
1231typedef struct tagEXTLOGPEN
1232{
1233 DWORD elpPenStyle;
1234 DWORD elpWidth;
1235 UINT elpBrushStyle;
1236 COLORREF elpColor;
1237 LONG elpHatch;
1238 DWORD elpNumEntries;
1239 DWORD elpStyleEntry[1];
1240} EXTLOGPEN, *PEXTLOGPEN, *NPEXTLOGPEN, *LPEXTLOGPEN;
1241
1242#define PS_SOLID 0x00000000
1243#define PS_DASH 0x00000001
1244#define PS_DOT 0x00000002
1245#define PS_DASHDOT 0x00000003
1246#define PS_DASHDOTDOT 0x00000004
1247#define PS_NULL 0x00000005
1248#define PS_INSIDEFRAME 0x00000006
1249#define PS_USERSTYLE 0x00000007
1250#define PS_ALTERNATE 0x00000008
1251#define PS_STYLE_MASK 0x0000000f
1252
1253#define PS_ENDCAP_ROUND 0x00000000
1254#define PS_ENDCAP_SQUARE 0x00000100
1255#define PS_ENDCAP_FLAT 0x00000200
1256#define PS_ENDCAP_MASK 0x00000f00
1257
1258#define PS_JOIN_ROUND 0x00000000
1259#define PS_JOIN_BEVEL 0x00001000
1260#define PS_JOIN_MITER 0x00002000
1261#define PS_JOIN_MASK 0x0000f000
1262
1263#define PS_COSMETIC 0x00000000
1264#define PS_GEOMETRIC 0x00010000
1265#define PS_TYPE_MASK 0x000f0000
1266
1267 /* Regions */
1268
1269#define ERROR 0
1270#define NULLREGION 1
1271#define SIMPLEREGION 2
1272#define COMPLEXREGION 3
1273
1274#define RGN_AND 1
1275#define RGN_OR 2
1276#define RGN_XOR 3
1277#define RGN_DIFF 4
1278#define RGN_COPY 5
1279
1280 /* Device contexts */
1281
1282/* GetDCEx flags */
1283#define DCX_WINDOW 0x00000001
1284#define DCX_CACHE 0x00000002
1285#define DCX_CLIPCHILDREN 0x00000008
1286#define DCX_CLIPSIBLINGS 0x00000010
1287#define DCX_PARENTCLIP 0x00000020
1288#define DCX_EXCLUDERGN 0x00000040
1289#define DCX_INTERSECTRGN 0x00000080
1290#define DCX_LOCKWINDOWUPDATE 0x00000400
1291#define DCX_USESTYLE 0x00010000
1292
1293 /* Polygon modes */
1294#define ALTERNATE 1
1295#define WINDING 2
1296
1297 /* Background modes */
1298#ifdef TRANSPARENT /*Apparently some broken svr4 includes define TRANSPARENT*/
1299#undef TRANSPARENT
1300#endif
1301#define TRANSPARENT 1
1302#define OPAQUE 2
1303
1304
1305 /* Graphics Modes */
1306#define GM_COMPATIBLE 1
1307#define GM_ADVANCED 2
1308#define GM_LAST 2
1309
1310 /* Arc direction modes */
1311#define AD_COUNTERCLOCKWISE 1
1312#define AD_CLOCKWISE 2
1313
1314 /* Map modes */
1315#define MM_TEXT 1
1316#define MM_LOMETRIC 2
1317#define MM_HIMETRIC 3
1318#define MM_LOENGLISH 4
1319#define MM_HIENGLISH 5
1320#define MM_TWIPS 6
1321#define MM_ISOTROPIC 7
1322#define MM_ANISOTROPIC 8
1323
1324 /* Coordinate modes */
1325#define ABSOLUTE 1
1326#define RELATIVE 2
1327
1328 /* Flood fill modes */
1329#define FLOODFILLBORDER 0
1330#define FLOODFILLSURFACE 1
1331
1332 /* Device parameters for GetDeviceCaps() */
1333#define DRIVERVERSION 0
1334#define TECHNOLOGY 2
1335#define HORZSIZE 4
1336#define VERTSIZE 6
1337#define HORZRES 8
1338#define VERTRES 10
1339#define BITSPIXEL 12
1340#define PLANES 14
1341#define NUMBRUSHES 16
1342#define NUMPENS 18
1343#define NUMMARKERS 20
1344#define NUMFONTS 22
1345#define NUMCOLORS 24
1346#define PDEVICESIZE 26
1347#define CURVECAPS 28
1348#define LINECAPS 30
1349#define POLYGONALCAPS 32
1350#define TEXTCAPS 34
1351#define CLIPCAPS 36
1352#define RASTERCAPS 38
1353#define ASPECTX 40
1354#define ASPECTY 42
1355#define ASPECTXY 44
1356#define LOGPIXELSX 88
1357#define LOGPIXELSY 90
1358#define SIZEPALETTE 104
1359#define NUMRESERVED 106
1360#define COLORRES 108
1361
1362#define PHYSICALWIDTH 110
1363#define PHYSICALHEIGHT 111
1364#define PHYSICALOFFSETX 112
1365#define PHYSICALOFFSETY 113
1366#define SCALINGFACTORX 114
1367#define SCALINGFACTORY 115
1368
1369/* TECHNOLOGY */
1370#define DT_PLOTTER 0
1371#define DT_RASDISPLAY 1
1372#define DT_RASPRINTER 2
1373#define DT_RASCAMERA 3
1374#define DT_CHARSTREAM 4
1375#define DT_METAFILE 5
1376#define DT_DISPFILE 6
1377
1378/* CURVECAPS */
1379#define CC_NONE 0x0000
1380#define CC_CIRCLES 0x0001
1381#define CC_PIE 0x0002
1382#define CC_CHORD 0x0004
1383#define CC_ELLIPSES 0x0008
1384#define CC_WIDE 0x0010
1385#define CC_STYLED 0x0020
1386#define CC_WIDESTYLED 0x0040
1387#define CC_INTERIORS 0x0080
1388#define CC_ROUNDRECT 0x0100
1389
1390/* LINECAPS */
1391#define LC_NONE 0x0000
1392#define LC_POLYLINE 0x0002
1393#define LC_MARKER 0x0004
1394#define LC_POLYMARKER 0x0008
1395#define LC_WIDE 0x0010
1396#define LC_STYLED 0x0020
1397#define LC_WIDESTYLED 0x0040
1398#define LC_INTERIORS 0x0080
1399
1400/* POLYGONALCAPS */
1401#define PC_NONE 0x0000
1402#define PC_POLYGON 0x0001
1403#define PC_RECTANGLE 0x0002
1404#define PC_WINDPOLYGON 0x0004
1405#define PC_SCANLINE 0x0008
1406#define PC_WIDE 0x0010
1407#define PC_STYLED 0x0020
1408#define PC_WIDESTYLED 0x0040
1409#define PC_INTERIORS 0x0080
1410
1411/* TEXTCAPS */
1412#define TC_OP_CHARACTER 0x0001
1413#define TC_OP_STROKE 0x0002
1414#define TC_CP_STROKE 0x0004
1415#define TC_CR_90 0x0008
1416#define TC_CR_ANY 0x0010
1417#define TC_SF_X_YINDEP 0x0020
1418#define TC_SA_DOUBLE 0x0040
1419#define TC_SA_INTEGER 0x0080
1420#define TC_SA_CONTIN 0x0100
1421#define TC_EA_DOUBLE 0x0200
1422#define TC_IA_ABLE 0x0400
1423#define TC_UA_ABLE 0x0800
1424#define TC_SO_ABLE 0x1000
1425#define TC_RA_ABLE 0x2000
1426#define TC_VA_ABLE 0x4000
1427#define TC_RESERVED 0x8000
1428
1429/* CLIPCAPS */
1430#define CP_NONE 0x0000
1431#define CP_RECTANGLE 0x0001
1432#define CP_REGION 0x0002
1433
1434/* RASTERCAPS */
1435#define RC_NONE 0x0000
1436#define RC_BITBLT 0x0001
1437#define RC_BANDING 0x0002
1438#define RC_SCALING 0x0004
1439#define RC_BITMAP64 0x0008
1440#define RC_GDI20_OUTPUT 0x0010
1441#define RC_GDI20_STATE 0x0020
1442#define RC_SAVEBITMAP 0x0040
1443#define RC_DI_BITMAP 0x0080
1444#define RC_PALETTE 0x0100
1445#define RC_DIBTODEV 0x0200
1446#define RC_BIGFONT 0x0400
1447#define RC_STRETCHBLT 0x0800
1448#define RC_FLOODFILL 0x1000
1449#define RC_STRETCHDIB 0x2000
1450#define RC_OP_DX_OUTPUT 0x4000
1451#define RC_DEVBITS 0x8000
1452
1453 /* GetSystemMetrics() codes */
1454#define SM_CXSCREEN 0
1455#define SM_CYSCREEN 1
1456#define SM_CXVSCROLL 2
1457#define SM_CYHSCROLL 3
1458#define SM_CYCAPTION 4
1459#define SM_CXBORDER 5
1460#define SM_CYBORDER 6
1461#define SM_CXDLGFRAME 7
1462#define SM_CYDLGFRAME 8
1463#define SM_CYVTHUMB 9
1464#define SM_CXHTHUMB 10
1465#define SM_CXICON 11
1466#define SM_CYICON 12
1467#define SM_CXCURSOR 13
1468#define SM_CYCURSOR 14
1469#define SM_CYMENU 15
1470#define SM_CXFULLSCREEN 16
1471#define SM_CYFULLSCREEN 17
1472#define SM_CYKANJIWINDOW 18
1473#define SM_MOUSEPRESENT 19
1474#define SM_CYVSCROLL 20
1475#define SM_CXHSCROLL 21
1476#define SM_DEBUG 22
1477#define SM_SWAPBUTTON 23
1478#define SM_RESERVED1 24
1479#define SM_RESERVED2 25
1480#define SM_RESERVED3 26
1481#define SM_RESERVED4 27
1482#define SM_CXMIN 28
1483#define SM_CYMIN 29
1484#define SM_CXSIZE 30
1485#define SM_CYSIZE 31
1486#define SM_CXFRAME 32
1487#define SM_CYFRAME 33
1488#define SM_CXMINTRACK 34
1489#define SM_CYMINTRACK 35
1490#define SM_CXDOUBLECLK 36
1491#define SM_CYDOUBLECLK 37
1492#define SM_CXICONSPACING 38
1493#define SM_CYICONSPACING 39
1494#define SM_MENUDROPALIGNMENT 40
1495#define SM_PENWINDOWS 41
1496#define SM_DBCSENABLED 42
1497#define SM_CMOUSEBUTTONS 43
1498#define SM_CXFIXEDFRAME SM_CXDLGFRAME
1499#define SM_CYFIXEDFRAME SM_CYDLGFRAME
1500#define SM_CXSIZEFRAME SM_CXFRAME
1501#define SM_CYSIZEFRAME SM_CYFRAME
1502#define SM_SECURE 44
1503#define SM_CXEDGE 45
1504#define SM_CYEDGE 46
1505#define SM_CXMINSPACING 47
1506#define SM_CYMINSPACING 48
1507#define SM_CXSMICON 49
1508#define SM_CYSMICON 50
1509#define SM_CYSMCAPTION 51
1510#define SM_CXSMSIZE 52
1511#define SM_CYSMSIZE 53
1512#define SM_CXMENUSIZE 54
1513#define SM_CYMENUSIZE 55
1514#define SM_ARRANGE 56
1515#define SM_CXMINIMIZED 57
1516#define SM_CYMINIMIZED 58
1517#define SM_CXMAXTRACK 59
1518#define SM_CYMAXTRACK 60
1519#define SM_CXMAXIMIZED 61
1520#define SM_CYMAXIMIZED 62
1521#define SM_NETWORK 63
1522#define SM_CLEANBOOT 67
1523#define SM_CXDRAG 68
1524#define SM_CYDRAG 69
1525#define SM_SHOWSOUNDS 70
1526#define SM_CXMENUCHECK 71
1527#define SM_CYMENUCHECK 72
1528#define SM_SLOWMACHINE 73
1529#define SM_MIDEASTENABLED 74
1530#define SM_MOUSEWHEELPRESENT 75
1531#define SM_XVIRTUALSCREEN 76
1532#define SM_YVIRTUALSCREEN 77
1533#define SM_CXVIRTUALSCREEN 78
1534#define SM_CYVIRTUALSCREEN 79
1535#define SM_CMONITORS 80
1536#define SM_SAMEDISPLAYFORMAT 81
1537#define SM_CMETRICS 83
1538
1539
1540 /* Device-independent bitmaps */
1541
1542typedef struct {
1543 BYTE rgbBlue;
1544 BYTE rgbGreen;
1545 BYTE rgbRed;
1546 BYTE rgbReserved;
1547} RGBQUAD, *LPRGBQUAD;
1548
1549typedef struct {
1550 BYTE rgbtBlue;
1551 BYTE rgbtGreen;
1552 BYTE rgbtRed;
1553} RGBTRIPLE;
1554
1555typedef struct
1556{
1557 UINT16 bfType;
1558 DWORD bfSize WINE_PACKED;
1559 UINT16 bfReserved1 WINE_PACKED;
1560 UINT16 bfReserved2 WINE_PACKED;
1561 DWORD bfOffBits WINE_PACKED;
1562} BITMAPFILEHEADER, *PBITMAPFILEHEADER, *LPBITMAPFILEHEADER;
1563
1564typedef struct
1565{
1566 DWORD biSize;
1567 LONG biWidth;
1568 LONG biHeight;
1569 WORD biPlanes;
1570 WORD biBitCount;
1571 DWORD biCompression;
1572 DWORD biSizeImage;
1573 LONG biXPelsPerMeter;
1574 LONG biYPelsPerMeter;
1575 DWORD biClrUsed;
1576 DWORD biClrImportant;
1577} BITMAPINFOHEADER, *PBITMAPINFOHEADER, *LPBITMAPINFOHEADER;
1578
1579typedef struct {
1580 DWORD bV4Size;
1581 LONG bV4Width;
1582 LONG bV4Height;
1583 WORD bV4Planes;
1584 WORD bV4BitCount;
1585 DWORD bV4V4Compression;
1586 DWORD bV4SizeImage;
1587 LONG bV4XPelsPerMeter;
1588 LONG bV4YPelsPerMeter;
1589 DWORD bV4ClrUsed;
1590 DWORD bV4ClrImportant;
1591 DWORD bV4RedMask;
1592 DWORD bV4GreenMask;
1593 DWORD bV4BlueMask;
1594 DWORD bV4AlphaMask;
1595 DWORD bV4CSType;
1596 CIEXYZTRIPLE bV4Endpoints;
1597 DWORD bV4GammaRed;
1598 DWORD bV4GammaGreen;
1599 DWORD bV4GammaBlue;
1600} BITMAPV4HEADER, *LPBITMAPV4HEADER, *PBITMAPV4HEADER;
1601
1602 /* biCompression */
1603#define BI_RGB 0
1604#define BI_RLE8 1
1605#define BI_RLE4 2
1606#define BI_BITFIELDS 3
1607
1608typedef struct {
1609 BITMAPINFOHEADER bmiHeader;
1610 RGBQUAD bmiColors[1];
1611} BITMAPINFO;
1612typedef BITMAPINFO *LPBITMAPINFO;
1613typedef BITMAPINFO *NPBITMAPINFO;
1614typedef BITMAPINFO *PBITMAPINFO;
1615
1616typedef struct
1617{
1618 DWORD bcSize;
1619 UINT16 bcWidth;
1620 UINT16 bcHeight;
1621 UINT16 bcPlanes;
1622 UINT16 bcBitCount;
1623} BITMAPCOREHEADER, *LPBITMAPCOREHEADER;
1624
1625typedef struct
1626{
1627 BITMAPCOREHEADER bmciHeader;
1628 RGBTRIPLE bmciColors[1];
1629} BITMAPCOREINFO, *LPBITMAPCOREINFO;
1630
1631#define DIB_RGB_COLORS 0
1632#define DIB_PAL_COLORS 1
1633#define CBM_INIT 4
1634
1635typedef struct
1636{
1637 BITMAP dsBm;
1638 BITMAPINFOHEADER dsBmih;
1639 DWORD dsBitfields[3];
1640 HANDLE dshSection;
1641 DWORD dsOffset;
1642} DIBSECTION,*LPDIBSECTION;
1643
1644 /* Stock GDI objects for GetStockObject() */
1645
1646#define WHITE_BRUSH 0
1647#define LTGRAY_BRUSH 1
1648#define GRAY_BRUSH 2
1649#define DKGRAY_BRUSH 3
1650#define BLACK_BRUSH 4
1651#define NULL_BRUSH 5
1652#define HOLLOW_BRUSH 5
1653#define WHITE_PEN 6
1654#define BLACK_PEN 7
1655#define NULL_PEN 8
1656#define OEM_FIXED_FONT 10
1657#define ANSI_FIXED_FONT 11
1658#define ANSI_VAR_FONT 12
1659#define SYSTEM_FONT 13
1660#define DEVICE_DEFAULT_FONT 14
1661#define DEFAULT_PALETTE 15
1662#define SYSTEM_FIXED_FONT 16
1663#define DEFAULT_GUI_FONT 17
1664
1665#define STOCK_LAST 17
1666
1667/* Metafile header structure */
1668typedef struct
1669{
1670 WORD mtType;
1671 WORD mtHeaderSize;
1672 WORD mtVersion;
1673 DWORD mtSize WINE_PACKED;
1674 WORD mtNoObjects;
1675 DWORD mtMaxRecord WINE_PACKED;
1676 WORD mtNoParameters;
1677} METAHEADER;
1678
1679/* Metafile typical record structure */
1680typedef struct
1681{
1682 DWORD rdSize;
1683 WORD rdFunction;
1684 WORD rdParm[1];
1685} METARECORD;
1686typedef METARECORD *PMETARECORD;
1687typedef METARECORD *LPMETARECORD;
1688
1689/* Handle table structure */
1690typedef struct
1691{
1692 HGDIOBJ objectHandle[1];
1693} HANDLETABLE, *LPHANDLETABLE;
1694
1695
1696/* Clipboard metafile picture structure */
1697typedef struct
1698{
1699 INT mm;
1700 INT xExt;
1701 INT yExt;
1702 HMETAFILE hMF;
1703} METAFILEPICT, *LPMETAFILEPICT;
1704
1705
1706/* Metafile functions */
1707#define META_SETBKCOLOR 0x0201
1708#define META_SETBKMODE 0x0102
1709#define META_SETMAPMODE 0x0103
1710#define META_SETROP2 0x0104
1711#define META_SETRELABS 0x0105
1712#define META_SETPOLYFILLMODE 0x0106
1713#define META_SETSTRETCHBLTMODE 0x0107
1714#define META_SETTEXTCHAREXTRA 0x0108
1715#define META_SETTEXTCOLOR 0x0209
1716#define META_SETTEXTJUSTIFICATION 0x020A
1717#define META_SETWINDOWORG 0x020B
1718#define META_SETWINDOWEXT 0x020C
1719#define META_SETVIEWPORTORG 0x020D
1720#define META_SETVIEWPORTEXT 0x020E
1721#define META_OFFSETWINDOWORG 0x020F
1722#define META_SCALEWINDOWEXT 0x0410
1723#define META_OFFSETVIEWPORTORG 0x0211
1724#define META_SCALEVIEWPORTEXT 0x0412
1725#define META_LINETO 0x0213
1726#define META_MOVETO 0x0214
1727#define META_EXCLUDECLIPRECT 0x0415
1728#define META_INTERSECTCLIPRECT 0x0416
1729#define META_ARC 0x0817
1730#define META_ELLIPSE 0x0418
1731#define META_FLOODFILL 0x0419
1732#define META_PIE 0x081A
1733#define META_RECTANGLE 0x041B
1734#define META_ROUNDRECT 0x061C
1735#define META_PATBLT 0x061D
1736#define META_SAVEDC 0x001E
1737#define META_SETPIXEL 0x041F
1738#define META_OFFSETCLIPRGN 0x0220
1739#define META_TEXTOUT 0x0521
1740#define META_BITBLT 0x0922
1741#define META_STRETCHBLT 0x0B23
1742#define META_POLYGON 0x0324
1743#define META_POLYLINE 0x0325
1744#define META_ESCAPE 0x0626
1745#define META_RESTOREDC 0x0127
1746#define META_FILLREGION 0x0228
1747#define META_FRAMEREGION 0x0429
1748#define META_INVERTREGION 0x012A
1749#define META_PAINTREGION 0x012B
1750#define META_SELECTCLIPREGION 0x012C
1751#define META_SELECTOBJECT 0x012D
1752#define META_SETTEXTALIGN 0x012E
1753#define META_DRAWTEXT 0x062F
1754#define META_CHORD 0x0830
1755#define META_SETMAPPERFLAGS 0x0231
1756#define META_EXTTEXTOUT 0x0A32
1757#define META_SETDIBTODEV 0x0D33
1758#define META_SELECTPALETTE 0x0234
1759#define META_REALIZEPALETTE 0x0035
1760#define META_ANIMATEPALETTE 0x0436
1761#define META_SETPALENTRIES 0x0037
1762#define META_POLYPOLYGON 0x0538
1763#define META_RESIZEPALETTE 0x0139
1764#define META_DIBBITBLT 0x0940
1765#define META_DIBSTRETCHBLT 0x0B41
1766#define META_DIBCREATEPATTERNBRUSH 0x0142
1767#define META_STRETCHDIB 0x0F43
1768#define META_EXTFLOODFILL 0x0548
1769#define META_RESETDC 0x014C
1770#define META_STARTDOC 0x014D
1771#define META_STARTPAGE 0x004F
1772#define META_ENDPAGE 0x0050
1773#define META_ABORTDOC 0x0052
1774#define META_ENDDOC 0x005E
1775#define META_DELETEOBJECT 0x01F0
1776#define META_CREATEPALETTE 0x00F7
1777#define META_CREATEBRUSH 0x00F8
1778#define META_CREATEPATTERNBRUSH 0x01F9
1779#define META_CREATEPENINDIRECT 0x02FA
1780#define META_CREATEFONTINDIRECT 0x02FB
1781#define META_CREATEBRUSHINDIRECT 0x02FC
1782#define META_CREATEBITMAPINDIRECT 0x02FD
1783#define META_CREATEBITMAP 0x06FE
1784#define META_CREATEREGION 0x06FF
1785#define META_UNKNOWN 0x0529 /* FIXME: unknown meta magic */
1786
1787typedef INT (* CALLBACK MFENUMPROC)(HDC,HANDLETABLE*,METARECORD*,
1788 INT,LPARAM);
1789
1790/* enhanced metafile structures and functions */
1791
1792/* note that ENHMETAHEADER is just a particular kind of ENHMETARECORD,
1793 ie. the header is just the first record in the metafile */
1794typedef struct {
1795 DWORD iType;
1796 DWORD nSize;
1797 RECTL rclBounds;
1798 RECTL rclFrame;
1799 DWORD dSignature;
1800 DWORD nVersion;
1801 DWORD nBytes;
1802 DWORD nRecords;
1803 WORD nHandles;
1804 WORD sReserved;
1805 DWORD nDescription;
1806 DWORD offDescription;
1807 DWORD nPalEntries;
1808 SIZEL szlDevice;
1809 SIZEL szlMillimeters;
1810 DWORD cbPixelFormat;
1811 DWORD offPixelFormat;
1812 DWORD bOpenGL;
1813} ENHMETAHEADER, *LPENHMETAHEADER;
1814
1815typedef struct {
1816 DWORD iType;
1817 DWORD nSize;
1818 DWORD dParm[1];
1819} ENHMETARECORD, *LPENHMETARECORD;
1820
1821typedef struct {
1822 DWORD iType;
1823 DWORD nSize;
1824} EMR, *PEMR;
1825
1826typedef struct {
1827 POINTL ptlReference;
1828 DWORD nChars;
1829 DWORD offString;
1830 DWORD fOptions;
1831 RECTL rcl;
1832 DWORD offDx;
1833} EMRTEXT, *PEMRTEXT;
1834
1835typedef struct {
1836 EMR emr;
1837} EMRABORTPATH, *PEMRABORTPATH,
1838 EMRBEGINPATH, *PEMRBEGINPATH,
1839 EMRENDPATH, *PEMRENDPATH,
1840 EMRCLOSEFIGURE, *PEMRCLOSEFIGURE,
1841 EMRFLATTENPATH, *PEMRFLATTENPATH,
1842 EMRWIDENPATH, *PEMRWIDENPATH,
1843 EMRSETMETARGN, *PEMRSETMETARGN,
1844 EMRSAVEDC, *PEMRSAVEDC,
1845 EMRREALIZEPALETTE, *PEMRREALIZEPALETTE;
1846
1847typedef struct {
1848 EMR emr;
1849 POINTL ptlCenter;
1850 DWORD nRadius;
1851 FLOAT eStartAngle;
1852 FLOAT eSweepAngle;
1853} EMRANGLEARC, *PEMRANGLEARC;
1854
1855typedef struct {
1856 EMR emr;
1857 RECTL rclBox;
1858 POINTL ptlStart;
1859 POINTL ptlEnd;
1860} EMRARC, *PEMRARC,
1861 EMRARCTO, *PEMRARCTO,
1862 EMRCHORD, *PEMRCHORD,
1863 EMRPIE, *PEMRPIE;
1864
1865typedef struct {
1866 EMR emr;
1867 RECTL rclBounds;
1868 LONG xDest;
1869 LONG yDest;
1870 LONG cxDest;
1871 LONG cyDest;
1872 DWORD dwRop;
1873 LONG xSrc;
1874 LONG ySrc;
1875 XFORM xformSrc;
1876 COLORREF crBkColorSrc;
1877 DWORD iUsageSrc;
1878 DWORD offBmiSrc;
1879 DWORD cbBmiSrc;
1880 DWORD offBitsSrc;
1881 DWORD cbBitsSrc;
1882} EMRBITBLT, *PEMRBITBLT;
1883
1884typedef struct {
1885 EMR emr;
1886 DWORD ihBrush;
1887 LOGBRUSH lb;
1888} EMRCREATEBRUSHINDIRECT, *PEMRCREATEBRUSHINDIRECT;
1889
1890typedef struct {
1891 EMR emr;
1892 DWORD ihCS;
1893 LOGCOLORSPACEW lcs;
1894} EMRCREATECOLORSPACE, *PEMRCREATECOLORSPACE;
1895
1896typedef struct {
1897 EMR emr;
1898 DWORD ihBrush;
1899 DWORD iUsage;
1900 DWORD offBmi;
1901 DWORD cbBmi;
1902 DWORD offBits;
1903 DWORD cbBits;
1904} EMRCREATEDIBPATTERNBRUSHPT, *PEMRCREATEDIBPATTERNBRUSHPT;
1905
1906typedef struct {
1907 EMR emr;
1908 DWORD ihBrush;
1909 DWORD iUsage;
1910 DWORD offBmi;
1911 DWORD cbBmi;
1912 DWORD offBits;
1913 DWORD cbBits;
1914} EMRCREATEMONOBRUSH, *PEMRCREATEMONOBRUSH;
1915
1916typedef struct {
1917 EMR emr;
1918 DWORD ihPal;
1919 LOGPALETTE lgpl;
1920} EMRCREATEPALETTE, *PEMRCREATEPALETTE;
1921
1922typedef struct {
1923 EMR emr;
1924 DWORD ihPen;
1925 LOGPEN lopn;
1926} EMRCREATEPEN, *PEMRCREATEPEN;
1927
1928typedef struct {
1929 EMR emr;
1930 DWORD ihCS;
1931} EMRDELETECOLORSPACE, *PEMRDELETECOLORSPACE,
1932 EMRSELECTCOLORSPACE, *PEMRSELECTCOLORSPACE,
1933 EMRSETCOLORSPACE, *PEMRSETCOLORSPACE;
1934
1935typedef struct {
1936 EMR emr;
1937 DWORD ihObject;
1938} EMRDELETEOBJECT, *PEMRDELETEOBJECT,
1939 EMRSELECTOBJECT, *PEMRSELECTOBJECT;
1940
1941typedef struct {
1942 EMR emr;
1943 RECTL rclBox;
1944} EMRELLIPSE, *PEMRELLIPSE,
1945 EMRRECTANGLE, *PEMRRECTANGLE;
1946
1947typedef struct {
1948 EMR emr;
1949 DWORD nPalEntries;
1950 DWORD offPalEntries;
1951 DWORD nSizeLast;
1952} EMREOF, *PEMREOF;
1953
1954typedef struct {
1955 EMR emr;
1956 RECTL rclClip;
1957} EMREXCLUDECLIPRECT, *PEMREXCLUDECLIPRECT,
1958 EMRINTERSECTCLIPRECT, *PEMRINTERSECTCLIPRECT;
1959
1960typedef struct {
1961 EMR emr;
1962 DWORD ihFont;
1963 EXTLOGFONTW elfw;
1964} EMREXTCREATEFONTINDIRECTW, *PEMREXTCREATEFONTINDIRECTW;
1965
1966typedef struct {
1967 EMR emr;
1968 DWORD ihPen;
1969 DWORD offBmi;
1970 DWORD cbBmi;
1971 DWORD offBits;
1972 DWORD cbBits;
1973 EXTLOGPEN elp;
1974} EMREXTCREATEPEN, *PEMREXTCREATEPEN;
1975
1976typedef struct {
1977 EMR emr;
1978 POINTL ptlStart;
1979 COLORREF crColor;
1980 DWORD iMode;
1981} EMREXTFLOODFILL, *PEMREXTFLOODFILL;
1982
1983typedef struct {
1984 EMR emr;
1985 DWORD cbRgnData;
1986 DWORD iMode;
1987 BYTE RgnData[1];
1988} EMREXTSELECTCLIPRGN, *PEMREXTSELECTCLIPRGN;
1989
1990typedef struct {
1991 EMR emr;
1992 RECTL rclBounds;
1993 DWORD iGraphicsMode;
1994 FLOAT exScale;
1995 FLOAT eyScale;
1996 EMRTEXT emrtext;
1997} EMREXTTEXTOUTA, *PEMREXTTEXTOUTA,
1998 EMREXTTEXTOUTW, *PEMREXTTEXTOUTW;
1999
2000typedef struct {
2001 EMR emr;
2002 RECTL rclBounds;
2003} EMRFILLPATH, *PEMRFILLPATH,
2004 EMRSTROKEANDFILLPATH, *PEMRSTROKEANDFILLPATH,
2005 EMRSTROKEPATH, *PEMRSTROKEPATH;
2006
2007typedef struct {
2008 EMR emr;
2009 RECTL rclBounds;
2010 DWORD cbRgnData;
2011 DWORD ihBrush;
2012 BYTE RgnData[1];
2013} EMRFILLRGN, *PEMRFILLRGN;
2014
2015typedef struct {
2016 DWORD signature;
2017 DWORD nVersion;
2018 DWORD cbData;
2019 DWORD offData;
2020} EMRFORMAT, *PEMRFORMAT;
2021
2022typedef struct {
2023 EMR emr;
2024 RECTL rclBounds;
2025 DWORD cbRgnData;
2026 DWORD ihBrush;
2027 SIZEL szlStroke;
2028 BYTE RgnData[1];
2029} EMRFRAMERGN, *PEMRFRAMERGN;
2030
2031typedef struct {
2032 EMR emr;
2033 DWORD cbData;
2034 BYTE Data[1];
2035} EMRGDICOMMENT, *PEMRGDICOMMENT;
2036
2037#if 0
2038typedef struct {
2039 EMR emr;
2040 RECTL rclBounds;
2041 DWORD nVer;
2042 DWORD nTri;
2043 ULONG ulMode;
2044 TRIVERTEX Ver[1];
2045} EMRGRADIENTFILL, *PEMRGRADIENTFILL;
2046#endif
2047
2048typedef struct {
2049 EMR emr;
2050 RECTL rclBounds;
2051 DWORD cbRgnData;
2052 BYTE RgnData[1];
2053} EMRINVERTRGN, *PEMRINVERTRGN,
2054 EMRPAINTRGN, *PEMRPAINTRGN;
2055
2056typedef struct {
2057 EMR emr;
2058 POINTL ptl;
2059} EMRLINETO, *PEMRLINETO,
2060 EMRMOVETOEX, *PEMRMOVETOEX;
2061
2062typedef struct {
2063 EMR emr;
2064 RECTL rclBounds;
2065 LONG xDest;
2066 LONG yDest;
2067 LONG cxDest;
2068 LONG cyDest;
2069 DWORD dwRop;
2070 LONG xSrc;
2071 LONG ySrc;
2072 XFORM xformSrc;
2073 COLORREF crBkColorSrc;
2074 DWORD iUsageSrc;
2075 DWORD offBmiSrc;
2076 DWORD cbBmiSrc;
2077 DWORD offBitsSrc;
2078 DWORD cbBitsSrc;
2079 LONG xMask;
2080 LONG yMask;
2081 DWORD iUsageMask;
2082 DWORD offBmiMask;
2083 DWORD cbBmiMask;
2084 DWORD offBitsMask;
2085 DWORD cbBitsMask;
2086} EMRMASKBLT, *PEMRMASKBLT;
2087
2088typedef struct {
2089 EMR emr;
2090 XFORM xform;
2091 DWORD iMode;
2092} EMRMODIFYWORLDTRANSFORM, *PEMRMODIFYWORLDTRANSFORM;
2093
2094typedef struct {
2095 EMR emr;
2096 POINTL ptlOffset;
2097} EMROFFSETCLIPRGN, *PEMROFFSETCLIPRGN;
2098
2099typedef struct {
2100 EMR emr;
2101 RECTL rclBounds;
2102 POINTL aptlDst[3];
2103 LONG xSrc;
2104 LONG ySrc;
2105 LONG cxSrc;
2106 LONG cySrc;
2107 XFORM xformSrc;
2108 COLORREF crBkColorSrc;
2109 DWORD iUsageSrc;
2110 DWORD offBmiSrc;
2111 DWORD cbBmiSrc;
2112 DWORD offBitsSrc;
2113 DWORD cbBitsSrc;
2114 LONG xMask;
2115 LONG yMask;
2116 DWORD iUsageMask;
2117 DWORD offBmiMask;
2118 DWORD cbBmiMask;
2119 DWORD offBitsMask;
2120 DWORD cbBitsMask;
2121} EMRPLGBLT, *PEMRPLGBLT;
2122
2123typedef struct {
2124 EMR emr;
2125 RECTL rclBounds;
2126 DWORD cptl;
2127 POINTL aptl[1];
2128} EMRPOLYLINE, *PEMRPOLYLINE,
2129 EMRPOLYBEZIER, *PEMRPOLYBEZIER,
2130 EMRPOLYGON, *PEMRPOLYGON,
2131 EMRPOLYBEZIERTO, *PEMRPOLYBEZIERTO,
2132 EMRPOLYLINETO, *PEMRPOLYLINETO;
2133
2134typedef struct {
2135 EMR emr;
2136 RECTL rclBounds;
2137 DWORD cptl;
2138 POINTL aptl[1];
2139 BYTE abTypes[1];
2140} EMRPOLYDRAW, *PEMRPOLYDRAW;
2141
2142typedef struct {
2143 EMR emr;
2144 RECTL rclBounds;
2145 DWORD nPolys;
2146 DWORD cptl;
2147 DWORD aPolyCounts[1];
2148 POINTL aptl[1];
2149} EMRPOLYPOLYLINE, *PEMRPOLYPOLYLINE,
2150 EMRPOLYPOLYGON, *PEMRPOLYPOLYGON;
2151
2152typedef struct {
2153 EMR emr;
2154 RECTL rclBounds;
2155 DWORD iGraphicsMode;
2156 FLOAT exScale;
2157 FLOAT eyScale;
2158 LONG cStrings;
2159 EMRTEXT aemrtext[1];
2160} EMRPOLYTEXTOUTA, *PEMRPOLYTEXTOUTA,
2161 EMRPOLYTEXTOUTW, *PEMRPOLYTEXTOUTW;
2162
2163typedef struct {
2164 EMR emr;
2165 DWORD ihPal;
2166 DWORD cEntries;
2167} EMRRESIZEPALETTE, *PEMRRESIZEPALETTE;
2168
2169typedef struct {
2170 EMR emr;
2171 LONG iRelative;
2172} EMRRESTOREDC, *PEMRRESTOREDC;
2173
2174typedef struct {
2175 EMR emr;
2176 RECTL rclBox;
2177 SIZEL szlCorner;
2178} EMRROUNDRECT, *PEMRROUNDRECT;
2179
2180typedef struct {
2181 EMR emr;
2182 LONG xNum;
2183 LONG xDenom;
2184 LONG yNum;
2185 LONG yDenom;
2186} EMRSCALEVIEWPORTEXTEX, *PEMRSCALEVIEWPORTEXTEX,
2187 EMRSCALEWINDOWEXTEX, *PEMRSCALEWINDOWEXTEX;
2188
2189typedef struct {
2190 EMR emr;
2191 DWORD iMode;
2192} EMRSELECTCLIPPATH, *PEMRSELECTCLIPPATH,
2193 EMRSETBKMODE, *PEMRSETBKMODE,
2194 EMRSETMAPMODE, *PEMRSETMAPMODE,
2195 EMRSETPOLYFILLMODE, *PEMRSETPOLYFILLMODE,
2196 EMRSETROP2, *PEMRSETROP2,
2197 EMRSETSTRETCHBLTMODE, *PEMRSETSTRETCHBLTMODE,
2198 EMRSETTEXTALIGN, *PEMRSETTEXTALIGN,
2199 EMRSETICMMODE, *PERMSETICMMODE,
2200 EMRSETLAYOUT, *PEMRSETLAYOUT;
2201
2202typedef struct {
2203 EMR emr;
2204 DWORD ihPal;
2205} EMRSELECTPALETTE, *PEMRSELECTPALETTE;
2206
2207typedef struct {
2208 EMR emr;
2209 DWORD iArcDirection;
2210} EMRSETARCDIRECTION, *PEMRSETARCDIRECTION;
2211
2212typedef struct {
2213 EMR emr;
2214 COLORREF crColor;
2215} EMRSETBKCOLOR, *PEMRSETBKCOLOR,
2216 EMRSETTEXTCOLOR, *PEMRSETTEXTCOLOR;
2217
2218typedef struct {
2219 EMR emr;
2220 POINTL ptlOrigin;
2221} EMRSETBRUSHORGEX, *PEMRSETBRUSHORGEX,
2222 EMRSETVIEWPORTORGEX, *PEMRSETVIEWPORTORGEX,
2223 EMRSETWINDOWORGEX, *PEMRSETWINDOWORGEX;
2224
2225typedef struct {
2226 EMR emr;
2227 COLORADJUSTMENT ColorAdjustment;
2228} EMRSETCOLORADJUSTMENT, *PEMRSETCOLORADJUSTMENT;
2229
2230typedef struct {
2231 EMR emr;
2232 RECTL rclBounds;
2233 LONG xDest;
2234 LONG yDest;
2235 LONG xSrc;
2236 LONG ySrc;
2237 LONG cxSrc;
2238 LONG cySrc;
2239 DWORD offBmiSrc;
2240 DWORD cbBmiSrc;
2241 DWORD offBitsSrc;
2242 DWORD cbBitsSrc;
2243 DWORD iUsageSrc;
2244 DWORD iStartScan;
2245 DWORD cScans;
2246} EMRSETDIBITSTODEIVCE, *PEMRSETDIBITSTODEVICE;
2247
2248typedef struct {
2249 EMR emr;
2250 DWORD dwFlags;
2251} EMRSETMAPPERFLAGS, *PEMRSETMAPPERFLAGS;
2252
2253typedef struct {
2254 EMR emr;
2255 FLOAT eMiterLimit;
2256} EMRSETMITERLIMIT, *PEMRSETMITERLIMIT;
2257
2258typedef struct {
2259 EMR emr;
2260 DWORD ihPal;
2261 DWORD iStart;
2262 DWORD cEntries;
2263 PALETTEENTRY aPalEntries[1];
2264} EMRSETPALETTEENTRIES, *PEMRSETPALETTEENTRIES;
2265
2266typedef struct {
2267 EMR emr;
2268 POINTL ptlPixel;
2269 COLORREF crColor;
2270} EMRSETPIXELV, *PEMRSETPIXELV;
2271
2272typedef struct {
2273 EMR emr;
2274 SIZEL szlExtent;
2275} EMRSETVIEWPORTEXTEX, *PEMRSETVIEWPORTEXTEX,
2276 EMRSETWINDOWEXTEX, *PEMRSETWINDOWEXTEX;
2277
2278typedef struct {
2279 EMR emr;
2280 XFORM xform;
2281} EMRSETWORLDTRANSFORM, *PEMRSETWORLDTRANSFORM;
2282
2283typedef struct {
2284 EMR emr;
2285 RECTL rclBounds;
2286 LONG xDest;
2287 LONG yDest;
2288 LONG cxDest;
2289 LONG cyDest;
2290 DWORD dwRop;
2291 LONG xSrc;
2292 LONG ySrc;
2293 XFORM xformSrc;
2294 COLORREF crBkColorSrc;
2295 DWORD iUsageSrc;
2296 DWORD offBmiSrc;
2297 DWORD cbBmiSrc;
2298 DWORD offBitsSrc;
2299 DWORD cbBitsSrc;
2300 LONG cxSrc;
2301 LONG cySrc;
2302} EMRSTRETCHBLT, *PEMRSTRETCHBLT;
2303
2304typedef struct {
2305 EMR emr;
2306 RECTL rclBounds;
2307 LONG xDest;
2308 LONG yDest;
2309 LONG xSrc;
2310 LONG ySrc;
2311 LONG cxSrc;
2312 LONG cySrc;
2313 DWORD offBmiSrc;
2314 DWORD cbBmiSrc;
2315 DWORD offBitsSrc;
2316 DWORD cbBitsSrc;
2317 DWORD iUsageSrc;
2318 DWORD dwRop;
2319 LONG cxDest;
2320 LONG cyDest;
2321} EMRSTRETCHDIBITS, *PEMRSTRETCHDIBITS;
2322
2323typedef struct {
2324 EMR emr;
2325 PIXELFORMATDESCRIPTOR pfd;
2326} EMRPIXELFORMAT, *PEMRPIXELFORMAT;
2327
2328typedef struct tagEMRGLSRECORD {
2329 EMR emr;
2330 DWORD cbData;
2331 BYTE Data[1];
2332} EMRGLSRECORD, *PEMRGLSRECORD;
2333
2334typedef struct {
2335 EMR emr;
2336 RECTL rclBounds;
2337 DWORD cbData;
2338 BYTE Data[1];
2339} EMRGLSBOUNDEDRECORD, *PEMRGLSBOUNDEDRECORD;
2340
2341typedef INT (* CALLBACK ENHMFENUMPROC)(HDC, LPHANDLETABLE,
2342 LPENHMETARECORD, INT, LPVOID);
2343
2344#define EMR_HEADER 1
2345#define EMR_POLYBEZIER 2
2346#define EMR_POLYGON 3
2347#define EMR_POLYLINE 4
2348#define EMR_POLYBEZIERTO 5
2349#define EMR_POLYLINETO 6
2350#define EMR_POLYPOLYLINE 7
2351#define EMR_POLYPOLYGON 8
2352#define EMR_SETWINDOWEXTEX 9
2353#define EMR_SETWINDOWORGEX 10
2354#define EMR_SETVIEWPORTEXTEX 11
2355#define EMR_SETVIEWPORTORGEX 12
2356#define EMR_SETBRUSHORGEX 13
2357#define EMR_EOF 14
2358#define EMR_SETPIXELV 15
2359#define EMR_SETMAPPERFLAGS 16
2360#define EMR_SETMAPMODE 17
2361#define EMR_SETBKMODE 18
2362#define EMR_SETPOLYFILLMODE 19
2363#define EMR_SETROP2 20
2364#define EMR_SETSTRETCHBLTMODE 21
2365#define EMR_SETTEXTALIGN 22
2366#define EMR_SETCOLORADJUSTMENT 23
2367#define EMR_SETTEXTCOLOR 24
2368#define EMR_SETBKCOLOR 25
2369#define EMR_OFFSETCLIPRGN 26
2370#define EMR_MOVETOEX 27
2371#define EMR_SETMETARGN 28
2372#define EMR_EXCLUDECLIPRECT 29
2373#define EMR_INTERSECTCLIPRECT 30
2374#define EMR_SCALEVIEWPORTEXTEX 31
2375#define EMR_SCALEWINDOWEXTEX 32
2376#define EMR_SAVEDC 33
2377#define EMR_RESTOREDC 34
2378#define EMR_SETWORLDTRANSFORM 35
2379#define EMR_MODIFYWORLDTRANSFORM 36
2380#define EMR_SELECTOBJECT 37
2381#define EMR_CREATEPEN 38
2382#define EMR_CREATEBRUSHINDIRECT 39
2383#define EMR_DELETEOBJECT 40
2384#define EMR_ANGLEARC 41
2385#define EMR_ELLIPSE 42
2386#define EMR_RECTANGLE 43
2387#define EMR_ROUNDRECT 44
2388#define EMR_ARC 45
2389#define EMR_CHORD 46
2390#define EMR_PIE 47
2391#define EMR_SELECTPALETTE 48
2392#define EMR_CREATEPALETTE 49
2393#define EMR_SETPALETTEENTRIES 50
2394#define EMR_RESIZEPALETTE 51
2395#define EMR_REALIZEPALETTE 52
2396#define EMR_EXTFLOODFILL 53
2397#define EMR_LINETO 54
2398#define EMR_ARCTO 55
2399#define EMR_POLYDRAW 56
2400#define EMR_SETARCDIRECTION 57
2401#define EMR_SETMITERLIMIT 58
2402#define EMR_BEGINPATH 59
2403#define EMR_ENDPATH 60
2404#define EMR_CLOSEFIGURE 61
2405#define EMR_FILLPATH 62
2406#define EMR_STROKEANDFILLPATH 63
2407#define EMR_STROKEPATH 64
2408#define EMR_FLATTENPATH 65
2409#define EMR_WIDENPATH 66
2410#define EMR_SELECTCLIPPATH 67
2411#define EMR_ABORTPATH 68
2412#define EMR_GDICOMMENT 70
2413#define EMR_FILLRGN 71
2414#define EMR_FRAMERGN 72
2415#define EMR_INVERTRGN 73
2416#define EMR_PAINTRGN 74
2417#define EMR_EXTSELECTCLIPRGN 75
2418#define EMR_BITBLT 76
2419#define EMR_STRETCHBLT 77
2420#define EMR_MASKBLT 78
2421#define EMR_PLGBLT 79
2422#define EMR_SETDIBITSTODEVICE 80
2423#define EMR_STRETCHDIBITS 81
2424#define EMR_EXTCREATEFONTINDIRECTW 82
2425#define EMR_EXTTEXTOUTA 83
2426#define EMR_EXTTEXTOUTW 84
2427#define EMR_POLYBEZIER16 85
2428#define EMR_POLYGON16 86
2429#define EMR_POLYLINE16 87
2430#define EMR_POLYBEZIERTO16 88
2431#define EMR_POLYLINETO16 89
2432#define EMR_POLYPOLYLINE16 90
2433#define EMR_POLYPOLYGON16 91
2434#define EMR_POLYDRAW16 92
2435#define EMR_CREATEMONOBRUSH 93
2436#define EMR_CREATEDIBPATTERNBRUSHPT 94
2437#define EMR_EXTCREATEPEN 95
2438#define EMR_POLYTEXTOUTA 96
2439#define EMR_POLYTEXTOUTW 97
2440#define EMR_SETICMMODE 98
2441#define EMR_CREATECOLORSPACE 99
2442#define EMR_SETCOLORSPACE 100
2443#define EMR_DELETECOLORSPACE 101
2444#define EMR_GLSRECORD 102
2445#define EMR_GLSBOUNDEDRECORD 103
2446#define EMR_PIXELFORMAT 104
2447
2448#define ENHMETA_SIGNATURE 1179469088
2449
2450#define CCHDEVICENAME 32
2451#define CCHFORMNAME 32
2452
2453typedef struct
2454{
2455 BYTE dmDeviceName[CCHDEVICENAME];
2456 WORD dmSpecVersion;
2457 WORD dmDriverVersion;
2458 WORD dmSize;
2459 WORD dmDriverExtra;
2460 DWORD dmFields;
2461 union {
2462 struct {
2463 SHORT dmOrientation;
2464 SHORT dmPaperSize;
2465 SHORT dmPaperLength;
2466 SHORT dmPaperWidth;
2467 } DUMMYSTRUCTNAME1;
2468 POINTL dmPosition;
2469 } DUMMYUNIONNAME1;
2470 SHORT dmScale;
2471 SHORT dmCopies;
2472 SHORT dmDefaultSource;
2473 SHORT dmPrintQuality;
2474 SHORT dmColor;
2475 SHORT dmDuplex;
2476 SHORT dmYResolution;
2477 SHORT dmTTOption;
2478 SHORT dmCollate;
2479 BYTE dmFormName[CCHFORMNAME];
2480 WORD dmLogPixels;
2481 DWORD dmBitsPerPel;
2482 DWORD dmPelsWidth;
2483 DWORD dmPelsHeight;
2484 DWORD dmDisplayFlags;
2485 DWORD dmDisplayFrequency;
2486 DWORD dmICMMethod;
2487 DWORD dmICMIntent;
2488 DWORD dmMediaType;
2489 DWORD dmDitherType;
2490 DWORD dmReserved1;
2491 DWORD dmReserved2;
2492 DWORD dmPanningWidth;
2493 DWORD dmPanningHeight;
2494} DEVMODEA, *PDEVMODEA, *LPDEVMODEA;
2495
2496typedef struct
2497{
2498 WCHAR dmDeviceName[CCHDEVICENAME];
2499 WORD dmSpecVersion;
2500 WORD dmDriverVersion;
2501 WORD dmSize;
2502 WORD dmDriverExtra;
2503 DWORD dmFields;
2504 union {
2505 struct {
2506 SHORT dmOrientation;
2507 SHORT dmPaperSize;
2508 SHORT dmPaperLength;
2509 SHORT dmPaperWidth;
2510 } DUMMYSTRUCTNAME1;
2511 POINTL dmPosition;
2512 } DUMMYUNIONNAME1;
2513 SHORT dmScale;
2514 SHORT dmCopies;
2515 SHORT dmDefaultSource;
2516 SHORT dmPrintQuality;
2517 SHORT dmColor;
2518 SHORT dmDuplex;
2519 SHORT dmYResolution;
2520 SHORT dmTTOption;
2521 SHORT dmCollate;
2522 WCHAR dmFormName[CCHFORMNAME];
2523 WORD dmLogPixels;
2524 DWORD dmBitsPerPel;
2525 DWORD dmPelsWidth;
2526 DWORD dmPelsHeight;
2527 DWORD dmDisplayFlags;
2528 DWORD dmDisplayFrequency;
2529 DWORD dmICMMethod;
2530 DWORD dmICMIntent;
2531 DWORD dmMediaType;
2532 DWORD dmDitherType;
2533 DWORD dmReserved1;
2534 DWORD dmReserved2;
2535 DWORD dmPanningWidth;
2536 DWORD dmPanningHeight;
2537} DEVMODEW, *PDEVMODEW, *LPDEVMODEW;
2538
2539DECL_WINELIB_TYPE_AW(DEVMODE)
2540DECL_WINELIB_TYPE_AW(PDEVMODE)
2541DECL_WINELIB_TYPE_AW(LPDEVMODE)
2542
2543#define DM_SPECVERSION 0x401
2544#define DM_UPDATE 1
2545#define DM_COPY 2
2546#define DM_PROMPT 4
2547#define DM_MODIFY 8
2548
2549#define DM_IN_BUFFER DM_MODIFY
2550#define DM_IN_PROMPT DM_PROMPT
2551#define DM_OUT_BUFFER DM_COPY
2552#define DM_OUT_DEFAULT DM_UPDATE
2553
2554#define DM_ORIENTATION 0x00000001L
2555#define DM_PAPERSIZE 0x00000002L
2556#define DM_PAPERLENGTH 0x00000004L
2557#define DM_PAPERWIDTH 0x00000008L
2558#define DM_SCALE 0x00000010L
2559#define DM_COPIES 0x00000100L
2560#define DM_DEFAULTSOURCE 0x00000200L
2561#define DM_PRINTQUALITY 0x00000400L
2562#define DM_COLOR 0x00000800L
2563#define DM_DUPLEX 0x00001000L
2564#define DM_YRESOLUTION 0x00002000L
2565#define DM_TTOPTION 0x00004000L
2566#define DM_COLLATE 0x00008000L
2567#define DM_BITSPERPEL 0x00040000L
2568#define DM_PELSWIDTH 0x00080000L
2569#define DM_PELSHEIGHT 0x00100000L
2570#define DM_DISPLAYFLAGS 0x00200000L
2571#define DM_DISPLAYFREQUENCY 0x00400000L
2572#define DM_ICMMETHOD 0x00800000L
2573#define DM_ICMINTENT 0x01000000L
2574#define DM_MEDIATYPE 0x02000000L
2575#define DM_DITHERTYPE 0x04000000L
2576#define DM_PANNINGWIDTH 0x08000000L
2577#define DM_PANNINGHEIGHT 0x10000000L
2578
2579#define DMORIENT_PORTRAIT 1
2580#define DMORIENT_LANDSCAPE 2
2581
2582#define DMPAPER_FIRST DMPAPER_LETTER
2583#define DMPAPER_LETTER 1
2584#define DMPAPER_LETTERSMALL 2
2585#define DMPAPER_TABLOID 3
2586#define DMPAPER_LEDGER 4
2587#define DMPAPER_LEGAL 5
2588#define DMPAPER_STATEMENT 6
2589#define DMPAPER_EXECUTIVE 7
2590#define DMPAPER_A3 8
2591#define DMPAPER_A4 9
2592#define DMPAPER_A4SMALL 10
2593#define DMPAPER_A5 11
2594#define DMPAPER_B4 12
2595#define DMPAPER_B5 13
2596#define DMPAPER_FOLIO 14
2597#define DMPAPER_QUARTO 15
2598#define DMPAPER_10X14 16
2599#define DMPAPER_11X17 17
2600#define DMPAPER_NOTE 18
2601#define DMPAPER_ENV_9 19
2602#define DMPAPER_ENV_10 20
2603#define DMPAPER_ENV_11 21
2604#define DMPAPER_ENV_12 22
2605#define DMPAPER_ENV_14 23
2606#define DMPAPER_CSHEET 24
2607#define DMPAPER_DSHEET 25
2608#define DMPAPER_ESHEET 26
2609#define DMPAPER_ENV_DL 27
2610#define DMPAPER_ENV_C5 28
2611#define DMPAPER_ENV_C3 29
2612#define DMPAPER_ENV_C4 30
2613#define DMPAPER_ENV_C6 31
2614#define DMPAPER_ENV_C65 32
2615#define DMPAPER_ENV_B4 33
2616#define DMPAPER_ENV_B5 34
2617#define DMPAPER_ENV_B6 35
2618#define DMPAPER_ENV_ITALY 36
2619#define DMPAPER_ENV_MONARCH 37
2620#define DMPAPER_ENV_PERSONAL 38
2621#define DMPAPER_FANFOLD_US 39
2622#define DMPAPER_FANFOLD_STD_GERMAN 40
2623#define DMPAPER_FANFOLD_LGL_GERMAN 41
2624#define DMPAPER_ISO_B4 42
2625#define DMPAPER_JAPANESE_POSTCARD 43
2626#define DMPAPER_9X11 44
2627#define DMPAPER_10X11 45
2628#define DMPAPER_15X11 46
2629#define DMPAPER_ENV_INVITE 47
2630#define DMPAPER_RESERVED_48 48
2631#define DMPAPER_RESERVED_49 49
2632#define DMPAPER_LETTER_EXTRA 50
2633#define DMPAPER_LEGAL_EXTRA 51
2634#define DMPAPER_TABLOID_EXTRA 52
2635#define DMPAPER_A4_EXTRA 53
2636#define DMPAPER_LETTER_TRANSVERSE 54
2637#define DMPAPER_A4_TRANSVERSE 55
2638#define DMPAPER_LETTER_EXTRA_TRANSVERSE 56
2639#define DMPAPER_A_PLUS 57
2640#define DMPAPER_B_PLUS 58
2641#define DMPAPER_LETTER_PLUS 59
2642#define DMPAPER_A4_PLUS 60
2643#define DMPAPER_A5_TRANSVERSE 61
2644#define DMPAPER_B5_TRANSVERSE 62
2645#define DMPAPER_A3_EXTRA 63
2646#define DMPAPER_A5_EXTRA 64
2647#define DMPAPER_B5_EXTRA 65
2648#define DMPAPER_A2 66
2649#define DMPAPER_A3_TRANSVERSE 67
2650#define DMPAPER_A3_EXTRA_TRANSVERSE 68
2651#define DMPAPER_DBL_JAPANESE_POSTCARD 69
2652#define DMPAPER_A6 70
2653#define DMPAPER_JENV_KAKU2 71
2654#define DMPAPER_JENV_KAKU3 72
2655#define DMPAPER_JENV_CHOU3 73
2656#define DMPAPER_JENV_CHOU4 74
2657#define DMPAPER_LETTER_ROTATED 75
2658#define DMPAPER_A3_ROTATED 76
2659#define DMPAPER_A4_ROTATED 77
2660#define DMPAPER_A5_ROTATED 78
2661#define DMPAPER_B4_JIS_ROTATED 79
2662#define DMPAPER_B5_JIS_ROTATED 80
2663#define DMPAPER_JAPANESE_POSTCARD_ROTATED 81
2664#define DMPAPER_DBL_JAPANESE_POSTCARD_ROTATED 82
2665#define DMPAPER_A6_ROTATED 83
2666#define DMPAPER_JENV_KAKU2_ROTATED 84
2667#define DMPAPER_JENV_KAKU3_ROTATED 85
2668#define DMPAPER_JENV_CHOU3_ROTATED 86
2669#define DMPAPER_JENV_CHOU4_ROTATED 87
2670#define DMPAPER_B6_JIS 88
2671#define DMPAPER_B6_JIS_ROTATED 89
2672#define DMPAPER_12X11 90
2673#define DMPAPER_JENV_YOU4 91
2674#define DMPAPER_JENV_YOU4_ROTATED 92
2675#define DMPAPER_P16K 93
2676#define DMPAPER_P32K 94
2677#define DMPAPER_P32KBIG 95
2678#define DMPAPER_PENV_1 96
2679#define DMPAPER_PENV_2 97
2680#define DMPAPER_PENV_3 98
2681#define DMPAPER_PENV_4 99
2682#define DMPAPER_PENV_5 100
2683#define DMPAPER_PENV_6 101
2684#define DMPAPER_PENV_7 102
2685#define DMPAPER_PENV_8 103
2686#define DMPAPER_PENV_9 104
2687#define DMPAPER_PENV_10 105
2688#define DMPAPER_P16K_ROTATED 106
2689#define DMPAPER_P32K_ROTATED 107
2690#define DMPAPER_P32KBIG_ROTATED 108
2691#define DMPAPER_PENV_1_ROTATED 109
2692#define DMPAPER_PENV_2_ROTATED 110
2693#define DMPAPER_PENV_3_ROTATED 111
2694#define DMPAPER_PENV_4_ROTATED 112
2695#define DMPAPER_PENV_5_ROTATED 113
2696#define DMPAPER_PENV_6_ROTATED 114
2697#define DMPAPER_PENV_7_ROTATED 115
2698#define DMPAPER_PENV_8_ROTATED 116
2699#define DMPAPER_PENV_9_ROTATED 117
2700#define DMPAPER_PENV_10_ROTATED 118
2701
2702#define DMPAPER_LAST DMPAPER_PENV_10_ROTATED
2703#define DMPAPER_USER 256
2704
2705#define DMBIN_FIRST DMBIN_UPPER
2706#define DMBIN_UPPER 1
2707#define DMBIN_ONLYONE 1
2708#define DMBIN_LOWER 2
2709#define DMBIN_MIDDLE 3
2710#define DMBIN_MANUAL 4
2711#define DMBIN_ENVELOPE 5
2712#define DMBIN_ENVMANUAL 6
2713#define DMBIN_AUTO 7
2714#define DMBIN_TRACTOR 8
2715#define DMBIN_SMALLFMT 9
2716#define DMBIN_LARGEFMT 10
2717#define DMBIN_LARGECAPACITY 11
2718#define DMBIN_CASSETTE 14
2719#define DMBIN_FORMSOURCE 15
2720#define DMBIN_LAST DMBIN_FORMSOURCE
2721#define DMBIN_USER 256
2722
2723#define DMRES_DRAFT (-1)
2724#define DMRES_LOW (-2)
2725#define DMRES_MEDIUM (-3)
2726#define DMRES_HIGH (-4)
2727
2728#define DMCOLOR_MONOCHROME 1
2729#define DMCOLOR_COLOR 2
2730
2731#define DMDUP_SIMPLEX 1
2732#define DMDUP_VERTICAL 2
2733#define DMDUP_HORIZONTAL 3
2734
2735#define DMTT_BITMAP 1
2736#define DMTT_DOWNLOAD 2
2737#define DMTT_SUBDEV 3
2738#define DMTT_DOWNLOAD_OUTLINE 4
2739
2740#define DMCOLLATE_FALSE 0
2741#define DMCOLLATE_TRUE 1
2742
2743#define DMICMMETHOD_NONE 1
2744#define DMICMMETHOD_SYSTEM 2
2745#define DMICMMETHOD_DRIVER 3
2746#define DMICMMETHOD_DEVICE 4
2747#define DMICMMETHOD_USER 256
2748
2749#define DMICM_SATURATE 1
2750#define DMICM_CONTRAST 2
2751#define DMICM_COLORMETRIC 3
2752#define DMICM_USER 256
2753
2754#define DMMEDIA_STANDARD 1
2755#define DMMEDIA_TRANSPARENCY 2
2756#define DMMEDIA_GLOSSY 3
2757#define DMMEDIA_USER 256
2758
2759#define DMDITHER_NONE 1
2760#define DMDITHER_COARSE 2
2761#define DMDITHER_FINE 3
2762#define DMDITHER_LINEART 4
2763#define DMDITHER_GRAYSCALE 5
2764#define DMDITHER_USER 256
2765
2766typedef struct
2767{
2768 INT cbSize;
2769 LPCSTR lpszDocName;
2770 LPCSTR lpszOutput;
2771 LPCSTR lpszDatatype;
2772 DWORD fwType;
2773} DOCINFOA, *LPDOCINFOA;
2774
2775typedef struct
2776{
2777 INT cbSize;
2778 LPCWSTR lpszDocName;
2779 LPCWSTR lpszOutput;
2780 LPCWSTR lpszDatatype;
2781 DWORD fwType;
2782} DOCINFOW, *LPDOCINFOW;
2783
2784DECL_WINELIB_TYPE_AW(DOCINFO)
2785DECL_WINELIB_TYPE_AW(LPDOCINFO)
2786
2787#define DI_APPBANDING 0x0001
2788
2789/* Flags for PolyDraw and GetPath */
2790#define PT_CLOSEFIGURE 0x0001
2791#define PT_LINETO 0x0002
2792#define PT_BEZIERTO 0x0004
2793#define PT_MOVETO 0x0006
2794
2795#define RDH_RECTANGLES 1
2796
2797typedef struct _RGNDATAHEADER {
2798 DWORD dwSize;
2799 DWORD iType;
2800 DWORD nCount;
2801 DWORD nRgnSize;
2802 RECT rcBound;
2803} RGNDATAHEADER,*LPRGNDATAHEADER;
2804
2805typedef struct _RGNDATA {
2806 RGNDATAHEADER rdh;
2807 char Buffer[1];
2808} RGNDATA,*PRGNDATA,*LPRGNDATA;
2809
2810typedef BOOL (* CALLBACK ABORTPROC)(HDC, INT);
2811
2812typedef struct {
2813 DWORD cb;
2814 BYTE DeviceName[32];
2815 BYTE DeviceString[128];
2816 DWORD StateFlags;
2817} DISPLAY_DEVICEA,*PDISPLAY_DEVICEA,*LPDISPLAY_DEVICEA;
2818
2819typedef struct {
2820 DWORD cb;
2821 WCHAR DeviceName[32];
2822 WCHAR DeviceString[128];
2823 DWORD StateFlags;
2824} DISPLAY_DEVICEW,*PDISPLAY_DEVICEW,*LPDISPLAY_DEVICEW;
2825DECL_WINELIB_TYPE_AW(DISPLAY_DEVICE)
2826DECL_WINELIB_TYPE_AW(PDISPLAY_DEVICE)
2827DECL_WINELIB_TYPE_AW(LPDISPLAY_DEVICE)
2828
2829/* DISPLAY_DEVICE.StateFlags (?)*/
2830#define DISPLAY_DEVICE_ATTACHED_TO_DESKTOP 0x00000001
2831#define DISPLAY_DEVICE_MULTI_DRIVER 0x00000002
2832#define DISPLAY_DEVICE_PRIMARY_DEVICE 0x00000004
2833#define DISPLAY_DEVICE_MIRRORING_DRIVER 0x00000008
2834#define DISPLAY_DEVICE_VGA_COMPATIBLE 0x00000010
2835
2836typedef struct _POINTFLOAT {
2837 FLOAT x;
2838 FLOAT y;
2839} POINTFLOAT, *PPOINTFLOAT;
2840
2841typedef struct _GLYPHMETRICSFLOAT {
2842 FLOAT gmfBlackBoxX;
2843 FLOAT gmfBlackBoxY;
2844 POINTFLOAT gmfptGlyphOrigin;
2845 FLOAT gmfCellIncX;
2846 FLOAT gmfCellIncY;
2847} GLYPHMETRICSFLOAT, *PGLYPHMETRICSFLOAT, *LPGLYPHMETRICSFLOAT;
2848
2849#define WGL_FONT_LINES 0
2850#define WGL_FONT_POLYGONS 1
2851
2852// Layer plane descriptor
2853typedef struct tagLAYERPLANEDESCRIPTOR {
2854 WORD nSize;
2855 WORD nVersion;
2856 DWORD dwFlags;
2857 BYTE iPixelType;
2858 BYTE cColorBits;
2859 BYTE cRedBits;
2860 BYTE cRedShift;
2861 BYTE cGreenBits;
2862 BYTE cGreenShift;
2863 BYTE cBlueBits;
2864 BYTE cBlueShift;
2865 BYTE cAlphaBits;
2866 BYTE cAlphaShift;
2867 BYTE cAccumBits;
2868 BYTE cAccumRedBits;
2869 BYTE cAccumGreenBits;
2870 BYTE cAccumBlueBits;
2871 BYTE cAccumAlphaBits;
2872 BYTE cDepthBits;
2873 BYTE cStencilBits;
2874 BYTE cAuxBuffers;
2875 BYTE iLayerPlane;
2876 BYTE bReserved;
2877 COLORREF crTransparent;
2878} LAYERPLANEDESCRIPTOR, *PLAYERPLANEDESCRIPTOR, *LPLAYERPLANEDESCRIPTOR;
2879
2880// LAYERPLANEDESCRIPTOR flags
2881#define LPD_DOUBLEBUFFER 0x00000001
2882#define LPD_STEREO 0x00000002
2883#define LPD_SUPPORT_GDI 0x00000010
2884#define LPD_SUPPORT_OPENGL 0x00000020
2885#define LPD_SHARE_DEPTH 0x00000040
2886#define LPD_SHARE_STENCIL 0x00000080
2887#define LPD_SHARE_ACCUM 0x00000100
2888#define LPD_SWAP_EXCHANGE 0x00000200
2889#define LPD_SWAP_COPY 0x00000400
2890#define LPD_TRANSPARENT 0x00001000
2891
2892#define LPD_TYPE_RGBA 0
2893#define LPD_TYPE_COLORINDEX 1
2894
2895// wglSwapLayerBuffers flags
2896#define WGL_SWAP_MAIN_PLANE 0x00000001
2897#define WGL_SWAP_OVERLAY1 0x00000002
2898#define WGL_SWAP_OVERLAY2 0x00000004
2899#define WGL_SWAP_OVERLAY3 0x00000008
2900#define WGL_SWAP_OVERLAY4 0x00000010
2901#define WGL_SWAP_OVERLAY5 0x00000020
2902#define WGL_SWAP_OVERLAY6 0x00000040
2903#define WGL_SWAP_OVERLAY7 0x00000080
2904#define WGL_SWAP_OVERLAY8 0x00000100
2905#define WGL_SWAP_OVERLAY9 0x00000200
2906#define WGL_SWAP_OVERLAY10 0x00000400
2907#define WGL_SWAP_OVERLAY11 0x00000800
2908#define WGL_SWAP_OVERLAY12 0x00001000
2909#define WGL_SWAP_OVERLAY13 0x00002000
2910#define WGL_SWAP_OVERLAY14 0x00004000
2911#define WGL_SWAP_OVERLAY15 0x00008000
2912#define WGL_SWAP_UNDERLAY1 0x00010000
2913#define WGL_SWAP_UNDERLAY2 0x00020000
2914#define WGL_SWAP_UNDERLAY3 0x00040000
2915#define WGL_SWAP_UNDERLAY4 0x00080000
2916#define WGL_SWAP_UNDERLAY5 0x00100000
2917#define WGL_SWAP_UNDERLAY6 0x00200000
2918#define WGL_SWAP_UNDERLAY7 0x00400000
2919#define WGL_SWAP_UNDERLAY8 0x00800000
2920#define WGL_SWAP_UNDERLAY9 0x01000000
2921#define WGL_SWAP_UNDERLAY10 0x02000000
2922#define WGL_SWAP_UNDERLAY11 0x04000000
2923#define WGL_SWAP_UNDERLAY12 0x08000000
2924#define WGL_SWAP_UNDERLAY13 0x10000000
2925#define WGL_SWAP_UNDERLAY14 0x20000000
2926#define WGL_SWAP_UNDERLAY15 0x40000000
2927
2928#include "poppack.h"
2929
2930
2931/* Declarations for functions that exist only in Win32 */
2932
2933BOOL WINAPI AngleArc(HDC, INT, INT, DWORD, FLOAT, FLOAT);
2934BOOL WINAPI ArcTo(HDC, INT, INT, INT, INT, INT, INT, INT, INT);
2935HENHMETAFILE WINAPI CloseEnhMetaFile(HDC);
2936HBRUSH WINAPI CreateDIBPatternBrushPt(const void*,UINT);
2937HDC WINAPI CreateEnhMetaFileA(HDC,LPCSTR,const RECT*,LPCSTR);
2938HDC WINAPI CreateEnhMetaFileW(HDC,LPCWSTR,const RECT*,LPCWSTR);
2939#define CreateEnhMetaFile WINELIB_NAME_AW(CreateEnhMetaFile)
2940INT WINAPI DrawEscape(HDC,INT,INT,LPCSTR);
2941BOOL WINAPI GdiComment(HDC,UINT,const BYTE *);
2942BOOL WINAPI GetCharABCWidthsFloatA(HDC,UINT,UINT,LPABCFLOAT);
2943BOOL WINAPI GetCharABCWidthsFloatW(HDC,UINT,UINT,LPABCFLOAT);
2944#define GetCharABCWidthsFloat WINELIB_NAME_AW(GetCharABCWidthsFloat)
2945BOOL WINAPI GetCharWidthFloatA(HDC,UINT,UINT,PFLOAT);
2946BOOL WINAPI GetCharWidthFloatW(HDC,UINT,UINT,PFLOAT);
2947#define GetCharWidthFloat WINELIB_NAME_AW(GetCharWidthFloat)
2948BOOL WINAPI GetColorAdjustment(HDC, LPCOLORADJUSTMENT);
2949DWORD WINAPI GetDCHook(HDC16,FARPROC16*);
2950BOOL WINAPI GetMiterLimit(HDC, PFLOAT);
2951BOOL WINAPI MaskBlt(HDC,INT,INT,INT,INT,HDC,INT,INT,HBITMAP,INT,INT,DWORD);
2952BOOL WINAPI PlgBlt(HDC,const POINT*,HDC,INT,INT,INT,INT,HBITMAP,INT,INT);
2953BOOL WINAPI PolyDraw(HDC,const POINT*,const BYTE*,DWORD);
2954BOOL WINAPI SetColorAdjustment(HDC,const COLORADJUSTMENT*);
2955HCOLORSPACE WINAPI SetColorSpace(HDC,HCOLORSPACE);
2956BOOL WINAPI SetDeviceGammaRamp(HDC,LPVOID);
2957BOOL WINAPI SetMiterLimit(HDC, FLOAT, PFLOAT);
2958BOOL WINAPI CombineTransform(LPXFORM,const XFORM *,const XFORM *);
2959HENHMETAFILE WINAPI CopyEnhMetaFileA(HENHMETAFILE,LPCSTR);
2960HENHMETAFILE WINAPI CopyEnhMetaFileW(HENHMETAFILE,LPCWSTR);
2961HPALETTE WINAPI CreateHalftonePalette(HDC);
2962BOOL WINAPI DeleteEnhMetaFile(HENHMETAFILE);
2963INT WINAPI ExtSelectClipRgn(HDC,HRGN,INT);
2964HRGN WINAPI ExtCreateRegion(const XFORM*,DWORD,const RGNDATA*);
2965INT WINAPI ExtEscape(HDC,INT,INT,LPCSTR,INT,LPSTR);
2966BOOL WINAPI FixBrushOrgEx(HDC,INT,INT,LPPOINT);
2967HANDLE WINAPI GetCurrentObject(HDC,UINT);
2968BOOL WINAPI GetDCOrgEx(HDC,LPPOINT);
2969HENHMETAFILE WINAPI GetEnhMetaFileA(LPCSTR);
2970HENHMETAFILE WINAPI GetEnhMetaFileW(LPCWSTR);
2971#define GetEnhMetaFile WINELIB_NAME_AW(GetEnhMetaFile)
2972UINT WINAPI GetEnhMetaFileBits(HENHMETAFILE,UINT,LPBYTE);
2973UINT WINAPI GetEnhMetaFileDescriptionA(HENHMETAFILE,UINT,LPSTR);
2974UINT WINAPI GetEnhMetaFileDescriptionW(HENHMETAFILE,UINT,LPWSTR);
2975#define GetEnhMetaFileDescription WINELIB_NAME_AW(GetEnhMetaFileDescription)
2976UINT WINAPI GetEnhMetaFileHeader(HENHMETAFILE,UINT,LPENHMETAHEADER);
2977UINT WINAPI GetEnhMetaFilePaletteEntries(HENHMETAFILE,UINT,LPPALETTEENTRY);
2978INT WINAPI GetGraphicsMode(HDC);
2979UINT WINAPI GetMetaFileBitsEx(HMETAFILE,UINT,LPVOID);
2980DWORD WINAPI GetObjectType(HANDLE);
2981UINT WINAPI GetTextCharsetInfo(HDC,LPFONTSIGNATURE,DWORD);
2982BOOL WINAPI GetTextExtentExPointA(HDC,LPCSTR,INT,INT,
2983 LPINT,LPINT,LPSIZE);
2984BOOL WINAPI GetTextExtentExPointW(HDC,LPCWSTR,INT,INT,
2985 LPINT,LPINT,LPSIZE);
2986#define GetTextExtentExPoint WINELIB_NAME_AW(GetTextExtentExPoint)
2987BOOL WINAPI GetWorldTransform(HDC,LPXFORM);
2988BOOL WINAPI ModifyWorldTransform(HDC,const XFORM *, DWORD);
2989BOOL WINAPI PlayEnhMetaFile(HDC,HENHMETAFILE,const RECT*);
2990BOOL WINAPI PlayEnhMetaFileRecord(HDC,LPHANDLETABLE,const ENHMETARECORD*,UINT);
2991BOOL WINAPI PolyPolyline(HDC,const POINT*,const DWORD*,DWORD);
2992BOOL WINAPI SetBrushOrgEx(HDC,INT,INT,LPPOINT);
2993HENHMETAFILE WINAPI SetEnhMetaFileBits(UINT,const BYTE *);
2994INT WINAPI SetGraphicsMode(HDC,INT);
2995HMETAFILE WINAPI SetMetaFileBitsEx(UINT,const BYTE*);
2996INT WINAPI SetMetaRgn(HDC);
2997BOOL WINAPI SetWorldTransform(HDC,const XFORM*);
2998BOOL WINAPI TranslateCharsetInfo(LPDWORD,LPCHARSETINFO,DWORD);
2999
3000/* Declarations for functions that change between Win16 and Win32 */
3001
3002INT WINAPI AbortDoc(HDC);
3003BOOL WINAPI AbortPath(HDC);
3004INT WINAPI AddFontResourceA(LPCSTR);
3005INT WINAPI AddFontResourceW(LPCWSTR);
3006#define AddFontResource WINELIB_NAME_AW(AddFontResource)
3007BOOL WINAPI AnimatePalette(HPALETTE,UINT,UINT,const PALETTEENTRY*);
3008BOOL WINAPI Arc(HDC,INT,INT,INT,INT,INT,INT,INT,INT);
3009BOOL WINAPI BeginPath(HDC);
3010BOOL WINAPI BitBlt(HDC,INT,INT,INT,INT,HDC,INT,INT,DWORD);
3011INT WINAPI ChoosePixelFormat(HDC,const PIXELFORMATDESCRIPTOR*);
3012BOOL WINAPI Chord(HDC,INT,INT,INT,INT,INT,INT,INT,INT);
3013BOOL WINAPI CloseFigure(HDC);
3014HMETAFILE WINAPI CloseMetaFile(HDC);
3015INT WINAPI CombineRgn(HRGN,HRGN,HRGN,INT);
3016HMETAFILE WINAPI CopyMetaFileA(HMETAFILE,LPCSTR);
3017HMETAFILE WINAPI CopyMetaFileW(HMETAFILE,LPCWSTR);
3018HBITMAP WINAPI CreateBitmap(INT,INT,UINT,UINT,LPCVOID);
3019HBITMAP WINAPI CreateBitmapIndirect(const BITMAP*);
3020HBRUSH WINAPI CreateBrushIndirect(const LOGBRUSH*);
3021HCOLORSPACE WINAPI CreateColorSpaceA(LPLOGCOLORSPACEA);
3022HCOLORSPACE WINAPI CreateColorSpaceW(LPLOGCOLORSPACEW);
3023#define CreateColorSpace WINELIB_NAME_AW(CreateColorSpace)
3024HBITMAP WINAPI CreateCompatibleBitmap(HDC,INT,INT);
3025HDC WINAPI CreateCompatibleDC(HDC);
3026HDC WINAPI CreateDCA(LPCSTR,LPCSTR,LPCSTR,const DEVMODEA*);
3027HDC WINAPI CreateDCW(LPCWSTR,LPCWSTR,LPCWSTR,const DEVMODEW*);
3028#define CreateDC WINELIB_NAME_AW(CreateDC)
3029HBITMAP WINAPI CreateDIBitmap(HDC,const BITMAPINFOHEADER*,DWORD,LPCVOID,const BITMAPINFO*,UINT);
3030HBRUSH WINAPI CreateDIBPatternBrush(HGLOBAL,UINT);
3031HBITMAP WINAPI CreateDIBSection (HDC, BITMAPINFO *, UINT,LPVOID *, HANDLE, DWORD offset);
3032HBITMAP WINAPI CreateDiscardableBitmap(HDC,INT,INT);
3033HRGN WINAPI CreateEllipticRgn(INT,INT,INT,INT);
3034HRGN WINAPI CreateEllipticRgnIndirect(const RECT *);
3035HFONT WINAPI CreateFontA(INT,INT,INT,INT,INT,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,LPCSTR);
3036HFONT WINAPI CreateFontW(INT,INT,INT,INT,INT,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,LPCWSTR);
3037#define CreateFont WINELIB_NAME_AW(CreateFont)
3038HFONT WINAPI CreateFontIndirectA(const LOGFONTA*);
3039HFONT WINAPI CreateFontIndirectW(const LOGFONTW*);
3040#define CreateFontIndirect WINELIB_NAME_AW(CreateFontIndirect)
3041
3042HBRUSH WINAPI CreateHatchBrush(INT,COLORREF);
3043HDC WINAPI CreateICA(LPCSTR,LPCSTR,LPCSTR,const DEVMODEA*);
3044HDC WINAPI CreateICW(LPCWSTR,LPCWSTR,LPCWSTR,const DEVMODEW*);
3045#define CreateIC WINELIB_NAME_AW(CreateIC)
3046
3047HDC WINAPI CreateMetaFileA(LPCSTR);
3048HDC WINAPI CreateMetaFileW(LPCWSTR);
3049#define CreateMetaFile WINELIB_NAME_AW(CreateMetaFile)
3050
3051HPALETTE WINAPI CreatePalette(const LOGPALETTE*);
3052HBRUSH WINAPI CreatePatternBrush(HBITMAP);
3053HPEN WINAPI CreatePen(INT,INT,COLORREF);
3054HPEN WINAPI CreatePenIndirect(const LOGPEN*);
3055HRGN WINAPI CreatePolyPolygonRgn(const POINT*,const INT*,INT,INT);
3056HRGN WINAPI CreatePolygonRgn(const POINT*,INT,INT);
3057HRGN WINAPI CreateRectRgn(INT,INT,INT,INT);
3058HRGN WINAPI CreateRectRgnIndirect(const RECT*);
3059HRGN WINAPI CreateRoundRectRgn(INT,INT,INT,INT,INT,INT);
3060BOOL WINAPI CreateScalableFontResourceA(DWORD,LPCSTR,LPCSTR,LPCSTR);
3061BOOL WINAPI CreateScalableFontResourceW(DWORD,LPCWSTR,LPCWSTR,LPCWSTR);
3062#define CreateScalableFontResource WINELIB_NAME_AW(CreateScalableFontResource)
3063
3064HBRUSH WINAPI CreateSolidBrush(COLORREF);
3065BOOL WINAPI DeleteDC(HDC);
3066BOOL WINAPI DeleteColorSpace(HCOLORSPACE);
3067BOOL WINAPI DeleteMetaFile(HMETAFILE);
3068BOOL WINAPI DeleteObject(HGDIOBJ);
3069INT WINAPI DescribePixelFormat(HDC,int,UINT,LPPIXELFORMATDESCRIPTOR);
3070BOOL WINAPI DPtoLP(HDC,LPPOINT,INT);
3071BOOL WINAPI Ellipse(HDC,INT,INT,INT,INT);
3072INT WINAPI EndDoc(HDC);
3073BOOL WINAPI EndPath(HDC);
3074BOOL WINAPI EnumEnhMetaFile(HDC,HENHMETAFILE,ENHMFENUMPROC,LPVOID,const RECT*);
3075INT WINAPI EnumFontFamiliesA(HDC,LPCSTR,FONTENUMPROCA,LPARAM);
3076INT WINAPI EnumFontFamiliesW(HDC,LPCWSTR,FONTENUMPROCW,LPARAM);
3077#define EnumFontFamilies WINELIB_NAME_AW(EnumFontFamilies)
3078
3079INT WINAPI EnumFontFamiliesExA(HDC,LPLOGFONTA,FONTENUMPROCEXA,LPARAM,DWORD);
3080INT WINAPI EnumFontFamiliesExW(HDC,LPLOGFONTW,FONTENUMPROCEXW,LPARAM,DWORD);
3081#define EnumFontFamiliesEx WINELIB_NAME_AW(EnumFontFamiliesEx)
3082
3083INT WINAPI EnumFontsA(HDC,LPCSTR,FONTENUMPROCA,LPARAM);
3084INT WINAPI EnumFontsW(HDC,LPCWSTR,FONTENUMPROCW,LPARAM);
3085#define EnumFonts WINELIB_NAME_AW(EnumFonts)
3086
3087BOOL WINAPI EnumMetaFile(HDC,HMETAFILE,MFENUMPROC,LPARAM);
3088INT WINAPI EnumObjects(HDC,INT,GOBJENUMPROC,LPARAM);
3089BOOL WINAPI EqualRgn(HRGN,HRGN);
3090INT WINAPI Escape(HDC,INT,INT,LPCSTR,LPVOID);
3091INT WINAPI ExcludeClipRect(HDC,INT,INT,INT,INT);
3092HPEN WINAPI ExtCreatePen(DWORD,DWORD,const LOGBRUSH*,DWORD,const DWORD*);
3093BOOL WINAPI ExtFloodFill(HDC,INT,INT,COLORREF,UINT);
3094BOOL WINAPI ExtTextOutA(HDC,INT,INT,UINT,const RECT*,LPCSTR,UINT,const INT*);
3095BOOL WINAPI ExtTextOutW(HDC,INT,INT,UINT,const RECT*,LPCWSTR,UINT,const INT*);
3096#define ExtTextOut WINELIB_NAME_AW(ExtTextOut)
3097
3098BOOL WINAPI FillPath(HDC);
3099BOOL WINAPI FillRgn(HDC,HRGN,HBRUSH);
3100BOOL WINAPI FlattenPath(HDC);
3101BOOL WINAPI FloodFill(HDC,INT,INT,COLORREF);
3102BOOL WINAPI FrameRgn(HDC,HRGN,HBRUSH,INT,INT);
3103BOOL WINAPI GdiFlush(void);
3104INT WINAPI GetArcDirection(HDC);
3105BOOL WINAPI GetAspectRatioFilterEx(HDC,LPSIZE);
3106LONG WINAPI GetBitmapBits(HBITMAP,LONG,LPVOID);
3107BOOL WINAPI GetBitmapDimensionEx(HBITMAP,LPSIZE);
3108BOOL WINAPI GetBrushOrgEx(HDC,LPPOINT);
3109COLORREF WINAPI GetBkColor(HDC);
3110INT WINAPI GetBkMode(HDC);
3111UINT WINAPI GetBoundsRect(HDC,LPRECT,UINT);
3112BOOL WINAPI GetCharABCWidthsA(HDC,UINT,UINT,LPABC);
3113BOOL WINAPI GetCharABCWidthsW(HDC,UINT,UINT,LPABC);
3114#define GetCharABCWidths WINELIB_NAME_AW(GetCharABCWidths)
3115#define GetCharWidthA GetCharWidth32A
3116#define GetCharWidthW GetCharWidth32W
3117
3118DWORD WINAPI GetCharacterPlacementA(HDC,LPCSTR,INT,INT,GCP_RESULTSA*,DWORD);
3119DWORD WINAPI GetCharacterPlacementW(HDC,LPCWSTR,INT,INT,GCP_RESULTSW*,DWORD);
3120#define GetCharacterPlacement WINELIB_NAME_AW(GetCharacterPlacement)
3121
3122BOOL WINAPI GetCharWidthA(HDC,UINT,UINT,LPINT);
3123BOOL WINAPI GetCharWidthW(HDC,UINT,UINT,LPINT);
3124#define GetCharWidth WINELIB_NAME_AW(GetCharWidth)
3125
3126INT WINAPI GetClipBox(HDC,LPRECT);
3127INT WINAPI GetClipRgn(HDC,HRGN);
3128BOOL WINAPI GetCurrentPositionEx(HDC,LPPOINT);
3129INT WINAPI GetDeviceCaps(HDC,INT);
3130UINT WINAPI GetDIBColorTable(HDC,UINT,UINT,RGBQUAD*);
3131INT WINAPI GetDIBits(HDC,HBITMAP,UINT,UINT,LPVOID,LPBITMAPINFO,UINT);
3132DWORD WINAPI GetFontData(HDC,DWORD,DWORD,LPVOID,DWORD);
3133DWORD WINAPI GetFontLanguageInfo(HDC);
3134DWORD WINAPI GetGlyphOutlineA(HDC,UINT,UINT,LPGLYPHMETRICS,DWORD,LPVOID,const MAT2*);
3135DWORD WINAPI GetGlyphOutlineW(HDC,UINT,UINT,LPGLYPHMETRICS,DWORD,LPVOID,const MAT2*);
3136#define GetGlyphOutline WINELIB_NAME_AW(GetGlyphOutline)
3137
3138DWORD WINAPI GetKerningPairsA(HDC,DWORD,LPKERNINGPAIR);
3139DWORD WINAPI GetKerningPairsW(HDC,DWORD,LPKERNINGPAIR);
3140#define GetKerningPairs WINELIB_NAME_AW(GetKerningPairs)
3141
3142INT WINAPI GetMapMode(HDC);
3143HMETAFILE WINAPI GetMetaFileA(LPCSTR);
3144HMETAFILE WINAPI GetMetaFileW(LPCWSTR);
3145DWORD WINAPI GetNearestColor(HDC,DWORD);
3146UINT WINAPI GetNearestPaletteIndex(HPALETTE,COLORREF);
3147INT WINAPI GetObjectA(HANDLE,INT,LPVOID);
3148INT WINAPI GetObjectW(HANDLE,INT,LPVOID);
3149#define GetObject WINELIB_NAME_AW(GetObject)
3150
3151UINT WINAPI GetOutlineTextMetricsA(HDC,UINT,LPOUTLINETEXTMETRICA);
3152UINT WINAPI GetOutlineTextMetricsW(HDC,UINT,LPOUTLINETEXTMETRICW);
3153#define GetOutlineTextMetrics WINELIB_NAME_AW(GetOutlineTextMetrics)
3154
3155UINT WINAPI GetPaletteEntries(HPALETTE,UINT,UINT,LPPALETTEENTRY);
3156INT WINAPI GetPath(HDC,LPPOINT,LPBYTE,INT);
3157COLORREF WINAPI GetPixel(HDC,INT,INT);
3158INT WINAPI GetPixelFormat(HDC);
3159INT WINAPI GetPolyFillMode(HDC);
3160BOOL WINAPI GetRasterizerCaps(LPRASTERIZER_STATUS,UINT);
3161DWORD WINAPI GetRegionData(HRGN,DWORD,LPRGNDATA);
3162INT WINAPI GetRelAbs(HDC);
3163INT WINAPI GetRgnBox(HRGN,LPRECT);
3164INT WINAPI GetROP2(HDC);
3165HGDIOBJ WINAPI GetStockObject(INT);
3166INT WINAPI GetStretchBltMode(HDC);
3167UINT WINAPI GetSystemPaletteEntries(HDC,UINT,UINT,LPPALETTEENTRY);
3168UINT WINAPI GetSystemPaletteUse(HDC);
3169UINT WINAPI GetTextAlign(HDC);
3170INT WINAPI GetTextCharacterExtra(HDC);
3171UINT WINAPI GetTextCharset(HDC);
3172COLORREF WINAPI GetTextColor(HDC);
3173BOOL WINAPI GetTextExtentPointA(HDC,LPCSTR,INT,LPSIZE);
3174BOOL WINAPI GetTextExtentPointW(HDC,LPCWSTR,INT,LPSIZE);
3175#define GetTextExtentPoint WINELIB_NAME_AW(GetTextExtentPoint)
3176
3177BOOL WINAPI GetTextExtentPoint32A(HDC,LPCSTR,INT,LPSIZE);
3178BOOL WINAPI GetTextExtentPoint32W(HDC,LPCWSTR,INT,LPSIZE);
3179#define GetTextExtentPoint32 WINELIB_NAME_AW(GetTextExtentPoint32)
3180
3181INT WINAPI GetTextFaceA(HDC,INT,LPSTR);
3182INT WINAPI GetTextFaceW(HDC,INT,LPWSTR);
3183#define GetTextFace WINELIB_NAME_AW(GetTextFace)
3184
3185BOOL WINAPI GetTextMetricsA(HDC,LPTEXTMETRICA);
3186BOOL WINAPI GetTextMetricsW(HDC,LPTEXTMETRICW);
3187#define GetTextMetrics WINELIB_NAME_AW(GetTextMetrics)
3188
3189BOOL WINAPI GetViewportExtEx(HDC,LPSIZE);
3190BOOL WINAPI GetViewportOrgEx(HDC,LPPOINT);
3191BOOL WINAPI GetWindowExtEx(HDC,LPSIZE);
3192BOOL WINAPI GetWindowOrgEx(HDC,LPPOINT);
3193INT WINAPI IntersectClipRect(HDC,INT,INT,INT,INT);
3194BOOL WINAPI InvertRgn(HDC,HRGN);
3195BOOL WINAPI LineDDA(INT,INT,INT,INT,LINEDDAPROC,LPARAM);
3196BOOL WINAPI LineTo(HDC,INT,INT);
3197BOOL WINAPI LPtoDP(HDC,LPPOINT,INT);
3198BOOL WINAPI MoveToEx(HDC,INT,INT,LPPOINT);
3199/* FIXME This is defined in kernel32.spec !?*/
3200INT WINAPI MulDiv(INT,INT,INT);
3201INT WINAPI OffsetClipRgn(HDC,INT,INT);
3202INT WINAPI OffsetRgn(HRGN,INT,INT);
3203BOOL WINAPI OffsetViewportOrgEx(HDC,INT,INT,LPPOINT);
3204BOOL WINAPI OffsetWindowOrgEx(HDC,INT,INT,LPPOINT);
3205BOOL WINAPI PaintRgn(HDC,HRGN);
3206BOOL WINAPI PatBlt(HDC,INT,INT,INT,INT,DWORD);
3207HRGN WINAPI PathToRegion(HDC);
3208BOOL WINAPI Pie(HDC,INT,INT,INT,INT,INT,INT,INT,INT);
3209BOOL WINAPI PlayMetaFile(HDC,HMETAFILE);
3210BOOL WINAPI PlayMetaFileRecord(HDC,LPHANDLETABLE,LPMETARECORD,UINT);
3211BOOL WINAPI PolyBezier(HDC,const POINT*,DWORD);
3212BOOL WINAPI PolyBezierTo(HDC,const POINT*,DWORD);
3213BOOL WINAPI PolyPolygon(HDC,const POINT*,const INT*,UINT);
3214BOOL WINAPI Polygon(HDC,const POINT*,INT);
3215BOOL WINAPI Polyline(HDC,const POINT*,INT);
3216BOOL WINAPI PolylineTo(HDC,const POINT*,DWORD);
3217BOOL WINAPI PtInRegion(HRGN,INT,INT);
3218BOOL WINAPI PtVisible(HDC,INT,INT);
3219/* FIXME This is defined in user.spec !? */
3220UINT WINAPI RealizePalette(HDC);
3221BOOL WINAPI Rectangle(HDC,INT,INT,INT,INT);
3222BOOL WINAPI RectInRegion(HRGN,const RECT *);
3223BOOL WINAPI RectVisible(HDC,const RECT*);
3224BOOL WINAPI RemoveFontResourceA(LPCSTR);
3225BOOL WINAPI RemoveFontResourceW(LPCWSTR);
3226#define RemoveFontResource WINELIB_NAME_AW(RemoveFontResource)
3227HDC WINAPI ResetDCA(HDC,const DEVMODEA *);
3228HDC WINAPI ResetDCW(HDC,const DEVMODEW *);
3229#define ResetDC WINELIB_NAME_AW(ResetDC)
3230BOOL WINAPI ResizePalette(HPALETTE,UINT);
3231BOOL WINAPI RestoreDC(HDC,INT);
3232BOOL WINAPI RoundRect(HDC,INT,INT,INT,INT,INT,INT);
3233INT WINAPI SaveDC(HDC);
3234BOOL WINAPI ScaleViewportExtEx(HDC,INT,INT,INT,INT,LPSIZE);
3235BOOL WINAPI ScaleWindowExtEx(HDC,INT,INT,INT,INT,LPSIZE);
3236BOOL WINAPI SelectClipPath(HDC,INT);
3237INT WINAPI SelectClipRgn(HDC,HRGN);
3238HGDIOBJ WINAPI SelectObject(HDC,HGDIOBJ);
3239/* FIXME This is defined in user.spec !? */
3240HPALETTE WINAPI SelectPalette(HDC,HPALETTE,BOOL);
3241INT WINAPI SetAbortProc(HDC,ABORTPROC);
3242INT WINAPI SetArcDirection(HDC,INT);
3243LONG WINAPI SetBitmapBits(HBITMAP,LONG,LPCVOID);
3244BOOL WINAPI SetBitmapDimensionEx(HBITMAP,INT,INT,LPSIZE);
3245COLORREF WINAPI SetBkColor(HDC,COLORREF);
3246INT WINAPI SetBkMode(HDC,INT);
3247UINT WINAPI SetBoundsRect(HDC,const RECT*,UINT);
3248UINT WINAPI SetDIBColorTable(HDC,UINT,UINT,RGBQUAD*);
3249INT WINAPI SetDIBits(HDC,HBITMAP,UINT,UINT,LPCVOID,const BITMAPINFO*,UINT);
3250INT WINAPI SetDIBitsToDevice(HDC,INT,INT,DWORD,DWORD,INT,INT,UINT,UINT,LPCVOID,const BITMAPINFO*,UINT);
3251INT WINAPI SetICMMode(HDC,INT);
3252DWORD WINAPI SetLayout(HDC,DWORD);
3253INT WINAPI SetMapMode(HDC,INT);
3254DWORD WINAPI SetMapperFlags(HDC,DWORD);
3255UINT WINAPI SetPaletteEntries(HPALETTE,UINT,UINT,LPPALETTEENTRY);
3256COLORREF WINAPI SetPixel(HDC,INT,INT,COLORREF);
3257BOOL WINAPI SetPixelV(HDC,INT,INT,COLORREF);
3258BOOL WINAPI SetPixelFormat(HDC,int,const PIXELFORMATDESCRIPTOR*);
3259INT WINAPI SetPolyFillMode(HDC,INT);
3260BOOL WINAPI SetRectRgn(HRGN,INT,INT,INT,INT);
3261INT WINAPI SetRelAbs(HDC,INT);
3262INT WINAPI SetROP2(HDC,INT);
3263INT WINAPI SetStretchBltMode(HDC,INT);
3264UINT WINAPI SetSystemPaletteUse(HDC,UINT);
3265UINT WINAPI SetTextAlign(HDC,UINT);
3266INT WINAPI SetTextCharacterExtra(HDC,INT);
3267COLORREF WINAPI SetTextColor(HDC,COLORREF);
3268BOOL WINAPI SetTextJustification(HDC,INT,INT);
3269BOOL WINAPI SetViewportExtEx(HDC,INT,INT,LPSIZE);
3270BOOL WINAPI SetViewportOrgEx(HDC,INT,INT,LPPOINT);
3271BOOL WINAPI SetWindowExtEx(HDC,INT,INT,LPSIZE);
3272BOOL WINAPI SetWindowOrgEx(HDC,INT,INT,LPPOINT);
3273HENHMETAFILE WINAPI SetWinMetaFileBits(UINT,CONST BYTE*,HDC,CONST METAFILEPICT *);
3274INT WINAPI StartDocA(HDC,const DOCINFOA*);
3275INT WINAPI StartDocW(HDC,const DOCINFOW*);
3276#define StartDoc WINELIB_NAME_AW(StartDoc)
3277INT WINAPI StartPage(HDC);
3278INT WINAPI EndPage(HDC);
3279BOOL WINAPI StretchBlt(HDC,INT,INT,INT,INT,HDC,INT,INT,INT,INT,DWORD);
3280INT WINAPI StretchDIBits(HDC,INT,INT,INT,INT,INT,INT,INT,INT,const VOID*,const BITMAPINFO*,UINT,DWORD);
3281BOOL WINAPI StrokeAndFillPath(HDC);
3282BOOL WINAPI StrokePath(HDC);
3283BOOL WINAPI SwapBuffers(HDC);
3284BOOL WINAPI TextOutA(HDC,INT,INT,LPCSTR,INT);
3285BOOL WINAPI TextOutW(HDC,INT,INT,LPCWSTR,INT);
3286#define TextOut WINELIB_NAME_AW(TextOut)
3287
3288BOOL WINAPI UnrealizeObject(HGDIOBJ);
3289BOOL WINAPI UpdateColors(HDC);
3290BOOL WINAPI WidenPath(HDC);
3291BOOL WINAPI PolyTextOutA(HDC,PPOLYTEXTA,INT);
3292BOOL WINAPI PolyTextOutW(HDC,PPOLYTEXTW,INT);
3293#define PolyTextOut WINELIB_NAME_AW(PolyTextOut)
3294
3295
3296typedef int (* CALLBACK ICMENUMPROCA)(LPSTR, LPARAM);
3297typedef int (* CALLBACK ICMENUMPROCW)(LPWSTR, LPARAM);
3298int WINAPI EnumICMProfilesA(HDC,ICMENUMPROCA,LPARAM);
3299int WINAPI EnumICMProfilesW(HDC,ICMENUMPROCW,LPARAM);
3300#define EnumICMProfiles WINELIB_NAME_AW(EnumICMProfiles)
3301
3302
3303// OpenGL wgl prototypes
3304
3305BOOL WINAPI wglCopyContext(HGLRC, HGLRC, UINT);
3306HGLRC WINAPI wglCreateContext(HDC);
3307HGLRC WINAPI wglCreateLayerContext(HDC, int);
3308BOOL WINAPI wglDeleteContext(HGLRC);
3309HGLRC WINAPI wglGetCurrentContext(VOID);
3310HDC WINAPI wglGetCurrentDC(VOID);
3311PROC WINAPI wglGetProcAddress(LPCSTR);
3312BOOL WINAPI wglMakeCurrent(HDC, HGLRC);
3313BOOL WINAPI wglShareLists(HGLRC, HGLRC);
3314BOOL WINAPI wglUseFontBitmapsA(HDC, DWORD, DWORD, DWORD);
3315BOOL WINAPI wglUseFontBitmapsW(HDC, DWORD, DWORD, DWORD);
3316#define wglUseFontBitmaps WINELIB_NAME_AW(wglUseFontBitmaps)
3317
3318
3319BOOL WINAPI wglDescribeLayerPlane(HDC, int, int, UINT, LPLAYERPLANEDESCRIPTOR);
3320int WINAPI wglSetLayerPaletteEntries(HDC, int, int, int, CONST COLORREF *);
3321int WINAPI wglGetLayerPaletteEntries(HDC, int, int, int, COLORREF *);
3322BOOL WINAPI wglRealizeLayerPalette(HDC, int, BOOL);
3323BOOL WINAPI wglSwapLayerBuffers(HDC, UINT);
3324BOOL WINAPI wglUseFontOutlinesA(HDC, DWORD, DWORD, DWORD, FLOAT,
3325 FLOAT, int, LPGLYPHMETRICSFLOAT);
3326BOOL WINAPI wglUseFontOutlinesW(HDC, DWORD, DWORD, DWORD, FLOAT,
3327 FLOAT, int, LPGLYPHMETRICSFLOAT);
3328
3329#define wglUseFontOutlines WINELIB_NAME_AW(wglUseFontOutlines)
3330
3331#ifdef __cplusplus
3332}
3333#endif
3334
3335#endif /* __WINE_WINGDI_H */
Note: See TracBrowser for help on using the repository browser.