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