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