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