VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Wine/include/wingdi.h@ 33281

Last change on this file since 33281 was 23571, checked in by vboxsync, 15 years ago

crOpenGL: update to wine 1.1.30

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

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette