VirtualBox

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

Last change on this file since 19678 was 19678, checked in by vboxsync, 16 years ago

opengl: update wine to 1.1.21, add d3d9.dll to build list

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