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