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