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