ReactOS  0.4.13-dev-479-gec9c8fd
wingdi.h
Go to the documentation of this file.
1 #ifndef _WINGDI_H
2 #define _WINGDI_H
3 #define _WINGDI_
4 
5 #ifndef NOGDI
6 
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
10 
11 #ifdef _MSC_VER
12 #pragma warning(push)
13 #pragma warning(disable:4201)
14 #pragma warning(disable:4820)
15 #endif
16 
17 /* Get/SetSystemPaletteUse() values */
18 #define SYSPAL_ERROR 0
19 #define SYSPAL_STATIC 1
20 #define SYSPAL_NOSTATIC 2
21 #define SYSPAL_NOSTATIC256 3
22 
23 #define WINGDIAPI
24 
25 #define NTM_NONNEGATIVE_AC 0x00010000
26 #define NTM_PS_OPENTYPE 0x00020000
27 #define NTM_TT_OPENTYPE 0x00040000
28 #define NTM_MULTIPLEMASTER 0x00080000
29 #define NTM_TYPE1 0x00100000
30 #define NTM_DSIG 0x00200000
31 
32 #define AC_SRC_OVER 0
33 #define AC_SRC_ALPHA 1
34 #define BI_RGB 0
35 #define BI_RLE8 1
36 #define BI_RLE4 2
37 #define BI_BITFIELDS 3
38 #define BI_JPEG 4
39 #define BI_PNG 5
40 #define LF_FACESIZE 32
41 #define LF_FULLFACESIZE 64
42 #define CA_NEGATIVE 1
43 #define CA_LOG_FILTER 2
44 #define ILLUMINANT_DEVICE_DEFAULT 0
45 #define ILLUMINANT_A 1
46 #define ILLUMINANT_B 2
47 #define ILLUMINANT_C 3
48 #define ILLUMINANT_D50 4
49 #define ILLUMINANT_D55 5
50 #define ILLUMINANT_D65 6
51 #define ILLUMINANT_D75 7
52 #define ILLUMINANT_F2 8
53 #define ILLUMINANT_MAX_INDEX ILLUMINANT_F2
54 #define ILLUMINANT_TUNGSTEN ILLUMINANT_A
55 #define ILLUMINANT_DAYLIGHT ILLUMINANT_C
56 #define ILLUMINANT_FLUORESCENT ILLUMINANT_F2
57 #define ILLUMINANT_NTSC ILLUMINANT_C
58 #define RGB_GAMMA_MIN 2500
59 #define RGB_GAMMA_MAX 65000
60 #define REFERENCE_WHITE_MIN 6000
61 #define REFERENCE_WHITE_MAX 10000
62 #define REFERENCE_BLACK_MIN 0
63 #define REFERENCE_BLACK_MAX 4000
64 #define COLOR_ADJ_MIN (-100)
65 #define COLOR_ADJ_MAX 100
66 #define CCHDEVICENAME 32
67 #define CCHFORMNAME 32
68 #define DI_COMPAT 4
69 #define DI_DEFAULTSIZE 8
70 #define DI_IMAGE 2
71 #define DI_MASK 1
72 #define DI_NORMAL 3
73 #define DI_APPBANDING 1
74 #define DI_NOMIRROR 16
75 #define EMR_HEADER 1
76 #define EMR_POLYBEZIER 2
77 #define EMR_POLYGON 3
78 #define EMR_POLYLINE 4
79 #define EMR_POLYBEZIERTO 5
80 #define EMR_POLYLINETO 6
81 #define EMR_POLYPOLYLINE 7
82 #define EMR_POLYPOLYGON 8
83 #define EMR_SETWINDOWEXTEX 9
84 #define EMR_SETWINDOWORGEX 10
85 #define EMR_SETVIEWPORTEXTEX 11
86 #define EMR_SETVIEWPORTORGEX 12
87 #define EMR_SETBRUSHORGEX 13
88 #define EMR_EOF 14
89 #define EMR_SETPIXELV 15
90 #define EMR_SETMAPPERFLAGS 16
91 #define EMR_SETMAPMODE 17
92 #define EMR_SETBKMODE 18
93 #define EMR_SETPOLYFILLMODE 19
94 #define EMR_SETROP2 20
95 #define EMR_SETSTRETCHBLTMODE 21
96 #define EMR_SETTEXTALIGN 22
97 #define EMR_SETCOLORADJUSTMENT 23
98 #define EMR_SETTEXTCOLOR 24
99 #define EMR_SETBKCOLOR 25
100 #define EMR_OFFSETCLIPRGN 26
101 #define EMR_MOVETOEX 27
102 #define EMR_SETMETARGN 28
103 #define EMR_EXCLUDECLIPRECT 29
104 #define EMR_INTERSECTCLIPRECT 30
105 #define EMR_SCALEVIEWPORTEXTEX 31
106 #define EMR_SCALEWINDOWEXTEX 32
107 #define EMR_SAVEDC 33
108 #define EMR_RESTOREDC 34
109 #define EMR_SETWORLDTRANSFORM 35
110 #define EMR_MODIFYWORLDTRANSFORM 36
111 #define EMR_SELECTOBJECT 37
112 #define EMR_CREATEPEN 38
113 #define EMR_CREATEBRUSHINDIRECT 39
114 #define EMR_DELETEOBJECT 40
115 #define EMR_ANGLEARC 41
116 #define EMR_ELLIPSE 42
117 #define EMR_RECTANGLE 43
118 #define EMR_ROUNDRECT 44
119 #define EMR_ARC 45
120 #define EMR_CHORD 46
121 #define EMR_PIE 47
122 #define EMR_SELECTPALETTE 48
123 #define EMR_CREATEPALETTE 49
124 #define EMR_SETPALETTEENTRIES 50
125 #define EMR_RESIZEPALETTE 51
126 #define EMR_REALIZEPALETTE 52
127 #define EMR_EXTFLOODFILL 53
128 #define EMR_LINETO 54
129 #define EMR_ARCTO 55
130 #define EMR_POLYDRAW 56
131 #define EMR_SETARCDIRECTION 57
132 #define EMR_SETMITERLIMIT 58
133 #define EMR_BEGINPATH 59
134 #define EMR_ENDPATH 60
135 #define EMR_CLOSEFIGURE 61
136 #define EMR_FILLPATH 62
137 #define EMR_STROKEANDFILLPATH 63
138 #define EMR_STROKEPATH 64
139 #define EMR_FLATTENPATH 65
140 #define EMR_WIDENPATH 66
141 #define EMR_SELECTCLIPPATH 67
142 #define EMR_ABORTPATH 68
143 #define EMR_GDICOMMENT 70
144 #define EMR_FILLRGN 71
145 #define EMR_FRAMERGN 72
146 #define EMR_INVERTRGN 73
147 #define EMR_PAINTRGN 74
148 #define EMR_EXTSELECTCLIPRGN 75
149 #define EMR_BITBLT 76
150 #define EMR_STRETCHBLT 77
151 #define EMR_MASKBLT 78
152 #define EMR_PLGBLT 79
153 #define EMR_SETDIBITSTODEVICE 80
154 #define EMR_STRETCHDIBITS 81
155 #define EMR_EXTCREATEFONTINDIRECTW 82
156 #define EMR_EXTTEXTOUTA 83
157 #define EMR_EXTTEXTOUTW 84
158 #define EMR_POLYBEZIER16 85
159 #define EMR_POLYGON16 86
160 #define EMR_POLYLINE16 87
161 #define EMR_POLYBEZIERTO16 88
162 #define EMR_POLYLINETO16 89
163 #define EMR_POLYPOLYLINE16 90
164 #define EMR_POLYPOLYGON16 91
165 #define EMR_POLYDRAW16 92
166 #define EMR_CREATEMONOBRUSH 93
167 #define EMR_CREATEDIBPATTERNBRUSHPT 94
168 #define EMR_EXTCREATEPEN 95
169 #define EMR_POLYTEXTOUTA 96
170 #define EMR_POLYTEXTOUTW 97
171 #define EMR_SETICMMODE 98
172 #define EMR_CREATECOLORSPACE 99
173 #define EMR_SETCOLORSPACE 100
174 #define EMR_DELETECOLORSPACE 101
175 #define EMR_GLSRECORD 102
176 #define EMR_GLSBOUNDEDRECORD 103
177 #define EMR_PIXELFORMAT 104
178 #if (_WIN32_WINNT >= 0x0500)
179 #define EMR_DRAWESCAPE 105
180 #define EMR_EXTESCAPE 106
181 #define EMR_STARTDOC 107
182 #define EMR_SMALLTEXTOUT 108
183 #define EMR_FORCEUFIMAPPING 109
184 #define EMR_NAMEDESCAPE 110
185 #define EMR_COLORCORRECTPALETTE 111
186 #define EMR_SETICMPROFILEA 112
187 #define EMR_SETICMPROFILEW 113
188 #define EMR_ALPHABLEND 114
189 #define EMR_ALPHADIBBLEND 115
190 #define EMR_SETLAYOUT 115
191 #define EMR_TRANSPARENTBLT 116
192 #define EMR_TRANSPARENTDIB 117
193 #define EMR_RESERVED_117 117
194 #define EMR_GRADIENTFILL 118
195 #define EMR_SETLINKEDUFIS 119
196 #define EMR_SETTEXTJUSTIFICATION 120
197 #define EMR_COLORMATCHTOTARGETW 121
198 #define EMR_CREATECOLORSPACEW 122
199 
200 #define EMR_MIN 1
201 #define EMR_MAX 122
202 
203 #endif
204 #define ENHMETA_SIGNATURE 1179469088
205 #define EPS_SIGNATURE 0x46535045
206 #if (_WIN32_WINNT >= 0x0500)
207 #define FR_PRIVATE 0x10
208 #define FR_NOT_ENUM 0x20
209 #endif
210 #define META_SETBKCOLOR 0x201
211 #define META_SETBKMODE 0x102
212 #define META_SETMAPMODE 0x103
213 #define META_SETROP2 0x104
214 #define META_SETRELABS 0x105
215 #define META_SETPOLYFILLMODE 0x106
216 #define META_SETSTRETCHBLTMODE 0x107
217 #define META_SETTEXTCHAREXTRA 0x108
218 #define META_SETTEXTCOLOR 0x209
219 #define META_SETTEXTJUSTIFICATION 0x20A
220 #define META_SETWINDOWORG 0x20B
221 #define META_SETWINDOWEXT 0x20C
222 #define META_SETVIEWPORTORG 0x20D
223 #define META_SETVIEWPORTEXT 0x20E
224 #define META_OFFSETWINDOWORG 0x20F
225 #define META_SCALEWINDOWEXT 0x410
226 #define META_OFFSETVIEWPORTORG 0x211
227 #define META_SCALEVIEWPORTEXT 0x412
228 #define META_LINETO 0x213
229 #define META_MOVETO 0x214
230 #define META_EXCLUDECLIPRECT 0x415
231 #define META_INTERSECTCLIPRECT 0x416
232 #define META_ARC 0x817
233 #define META_ELLIPSE 0x418
234 #define META_FLOODFILL 0x419
235 #define META_PIE 0x81A
236 #define META_RECTANGLE 0x41B
237 #define META_ROUNDRECT 0x61C
238 #define META_PATBLT 0x61D
239 #define META_SAVEDC 0x1E
240 #define META_SETPIXEL 0x41F
241 #define META_OFFSETCLIPRGN 0x220
242 #define META_TEXTOUT 0x521
243 #define META_BITBLT 0x922
244 #define META_STRETCHBLT 0xB23
245 #define META_POLYGON 0x324
246 #define META_POLYLINE 0x325
247 #define META_ESCAPE 0x626
248 #define META_RESTOREDC 0x127
249 #define META_FILLREGION 0x228
250 #define META_FRAMEREGION 0x429
251 #define META_INVERTREGION 0x12A
252 #define META_PAINTREGION 0x12B
253 #define META_SELECTCLIPREGION 0x12C
254 #define META_SELECTOBJECT 0x12D
255 #define META_SETTEXTALIGN 0x12E
256 #define META_CHORD 0x830
257 #define META_SETMAPPERFLAGS 0x231
258 #define META_EXTTEXTOUT 0xa32
259 #define META_SETDIBTODEV 0xd33
260 #define META_SELECTPALETTE 0x234
261 #define META_REALIZEPALETTE 0x35
262 #define META_ANIMATEPALETTE 0x436
263 #define META_SETPALENTRIES 0x37
264 #define META_POLYPOLYGON 0x538
265 #define META_RESIZEPALETTE 0x139
266 #define META_DIBBITBLT 0x940
267 #define META_DIBSTRETCHBLT 0xb41
268 #define META_DIBCREATEPATTERNBRUSH 0x142
269 #define META_STRETCHDIB 0xf43
270 #define META_EXTFLOODFILL 0x548
271 #define META_DELETEOBJECT 0x1f0
272 #define META_CREATEPALETTE 0xf7
273 #define META_CREATEPATTERNBRUSH 0x1F9
274 #define META_CREATEPENINDIRECT 0x2FA
275 #define META_CREATEFONTINDIRECT 0x2FB
276 #define META_CREATEBRUSHINDIRECT 0x2FC
277 #define META_CREATEREGION 0x6FF
278 #define META_DRAWTEXT 0x062F
279 #define META_RESETDC 0x014C
280 #define META_STARTDOC 0x014D
281 #define META_STARTPAGE 0x004F
282 #define META_ENDPAGE 0x0050
283 #define META_ABORTDOC 0x0052
284 #define META_ENDDOC 0x005E
285 #define META_CREATEBRUSH 0x00F8
286 #define META_CREATEBITMAPINDIRECT 0x02FD
287 #define META_CREATEBITMAP 0x06FE
288 #define PT_MOVETO 6
289 #define PT_LINETO 2
290 #define PT_BEZIERTO 4
291 #define PT_CLOSEFIGURE 1
292 #define ELF_VENDOR_SIZE 4
293 #define ELF_VERSION 0
294 #define ELF_CULTURE_LATIN 0
295 #define PFD_TYPE_RGBA 0
296 #define PFD_TYPE_COLORINDEX 1
297 #define PFD_MAIN_PLANE 0
298 #define PFD_OVERLAY_PLANE 1
299 #define PFD_UNDERLAY_PLANE (-1)
300 #define PFD_DOUBLEBUFFER 1
301 #define PFD_STEREO 2
302 #define PFD_DRAW_TO_WINDOW 4
303 #define PFD_DRAW_TO_BITMAP 8
304 #define PFD_SUPPORT_GDI 16
305 #define PFD_SUPPORT_OPENGL 32
306 #define PFD_GENERIC_FORMAT 64
307 #define PFD_NEED_PALETTE 128
308 #define PFD_NEED_SYSTEM_PALETTE 0x00000100
309 #define PFD_SWAP_EXCHANGE 0x00000200
310 #define PFD_SWAP_COPY 0x00000400
311 #define PFD_SWAP_LAYER_BUFFERS 0x00000800
312 #define PFD_GENERIC_ACCELERATED 0x00001000
313 #define PFD_SUPPORT_COMPOSITION 0x00008000
314 #define PFD_DEPTH_DONTCARE 0x20000000
315 #define PFD_DOUBLEBUFFER_DONTCARE 0x40000000
316 #define PFD_STEREO_DONTCARE 0x80000000
317 #define SP_ERROR (-1)
318 #define SP_OUTOFDISK (-4)
319 #define SP_OUTOFMEMORY (-5)
320 #define SP_USERABORT (-3)
321 #define SP_APPABORT (-2)
322 #define BLACKNESS 0x42
323 #define NOTSRCERASE 0x1100A6
324 #define NOTSRCCOPY 0x330008
325 #define SRCERASE 0x440328
326 #define DSTINVERT 0x550009
327 #define PATINVERT 0x5A0049
328 #define SRCINVERT 0x660046
329 #define SRCAND 0x8800C6
330 #define MERGEPAINT 0xBB0226
331 #define MERGECOPY 0xC000CA
332 #define SRCCOPY 0xCC0020
333 #define SRCPAINT 0xEE0086
334 #define PATCOPY 0xF00021
335 #define PATPAINT 0xFB0A09
336 #define WHITENESS 0xFF0062
337 #define R2_BLACK 1
338 #define R2_COPYPEN 13
339 #define R2_MASKNOTPEN 3
340 #define R2_MASKPEN 9
341 #define R2_MASKPENNOT 5
342 #define R2_MERGENOTPEN 12
343 #define R2_MERGEPEN 15
344 #define R2_MERGEPENNOT 14
345 #define R2_NOP 11
346 #define R2_NOT 6
347 #define R2_NOTCOPYPEN 4
348 #define R2_NOTMASKPEN 8
349 #define R2_NOTMERGEPEN 2
350 #define R2_NOTXORPEN 10
351 #define R2_WHITE 16
352 #define R2_XORPEN 7
353 #define CM_OUT_OF_GAMUT 255
354 #define CM_IN_GAMUT 0
355 #define RGN_AND 1
356 #define RGN_COPY 5
357 #define RGN_DIFF 4
358 #define RGN_OR 2
359 #define RGN_XOR 3
360 #define NULLREGION 1
361 #define SIMPLEREGION 2
362 #define COMPLEXREGION 3
363 #define ERROR 0
364 #define CBM_INIT 4
365 #define DIB_PAL_COLORS 1
366 #define DIB_RGB_COLORS 0
367 #define FW_DONTCARE 0
368 #define FW_THIN 100
369 #define FW_EXTRALIGHT 200
370 #define FW_ULTRALIGHT FW_EXTRALIGHT
371 #define FW_LIGHT 300
372 #define FW_NORMAL 400
373 #define FW_REGULAR 400
374 #define FW_MEDIUM 500
375 #define FW_SEMIBOLD 600
376 #define FW_DEMIBOLD FW_SEMIBOLD
377 #define FW_BOLD 700
378 #define FW_EXTRABOLD 800
379 #define FW_ULTRABOLD FW_EXTRABOLD
380 #define FW_HEAVY 900
381 #define FW_BLACK FW_HEAVY
382 #define ANSI_CHARSET 0
383 #define DEFAULT_CHARSET 1
384 #define SYMBOL_CHARSET 2
385 #define SHIFTJIS_CHARSET 128
386 #define HANGEUL_CHARSET 129
387 #define HANGUL_CHARSET 129
388 #define GB2312_CHARSET 134
389 #define CHINESEBIG5_CHARSET 136
390 #define GREEK_CHARSET 161
391 #define TURKISH_CHARSET 162
392 #define HEBREW_CHARSET 177
393 #define ARABIC_CHARSET 178
394 #define BALTIC_CHARSET 186
395 #define RUSSIAN_CHARSET 204
396 #define THAI_CHARSET 222
397 #define EE_CHARSET 238
398 #define EASTEUROPE_CHARSET 238
399 #define OEM_CHARSET 255
400 #define JOHAB_CHARSET 130
401 #define VIETNAMESE_CHARSET 163
402 #define MAC_CHARSET 77
403 /* I don't know if the values of *_CHARSET macros are defined in Windows
404  * or if we can choose them as we want. -- srtxg
405  */
406 #define VISCII_CHARSET (BYTE)240 /* viscii1.1-1 */
407 #define TCVN_CHARSET (BYTE)241 /* tcvn-0 */
408 #define KOI8_CHARSET (BYTE)242 /* koi8-{r,u,ru} */
409 #define ISO3_CHARSET (BYTE)243 /* iso8859-3 */
410 #define ISO4_CHARSET (BYTE)244 /* iso8859-4 */
411 #define ISO10_CHARSET (BYTE)245 /* iso8859-10 */
412 #define CELTIC_CHARSET (BYTE)246 /* iso8859-14 */
413 
414 #define OUT_DEFAULT_PRECIS 0
415 #define OUT_STRING_PRECIS 1
416 #define OUT_CHARACTER_PRECIS 2
417 #define OUT_STROKE_PRECIS 3
418 #define OUT_TT_PRECIS 4
419 #define OUT_DEVICE_PRECIS 5
420 #define OUT_RASTER_PRECIS 6
421 #define OUT_TT_ONLY_PRECIS 7
422 #define OUT_OUTLINE_PRECIS 8
423 #define OUT_SCREEN_OUTLINE_PRECIS 9
424 #define OUT_PS_ONLY_PRECIS 10
425 #define CLIP_DEFAULT_PRECIS 0
426 #define CLIP_CHARACTER_PRECIS 1
427 #define CLIP_STROKE_PRECIS 2
428 #define CLIP_MASK 15
429 #define CLIP_LH_ANGLES 16
430 #define CLIP_TT_ALWAYS 32
431 #if (_WIN32_WINNT >= _WIN32_WINNT_LONGHORN)
432 #define CLIP_DFA_DISABLE 64
433 #endif
434 #define CLIP_EMBEDDED 128
435 #define DEFAULT_QUALITY 0
436 #define DRAFT_QUALITY 1
437 #define PROOF_QUALITY 2
438 #define NONANTIALIASED_QUALITY 3
439 #define ANTIALIASED_QUALITY 4
440 #define CLEARTYPE_QUALITY 5
441 #define CLEARTYPE_NATURAL_QUALITY 6
442 #define DEFAULT_PITCH 0
443 #define FIXED_PITCH 1
444 #define VARIABLE_PITCH 2
445 #define MONO_FONT 8
446 #define FF_DECORATIVE 80
447 #define FF_DONTCARE 0
448 #define FF_MODERN 48
449 #define FF_ROMAN 16
450 #define FF_SCRIPT 64
451 #define FF_SWISS 32
452 #define PANOSE_COUNT 10
453 #define PAN_FAMILYTYPE_INDEX 0
454 #define PAN_SERIFSTYLE_INDEX 1
455 #define PAN_WEIGHT_INDEX 2
456 #define PAN_PROPORTION_INDEX 3
457 #define PAN_CONTRAST_INDEX 4
458 #define PAN_STROKEVARIATION_INDEX 5
459 #define PAN_ARMSTYLE_INDEX 6
460 #define PAN_LETTERFORM_INDEX 7
461 #define PAN_MIDLINE_INDEX 8
462 #define PAN_XHEIGHT_INDEX 9
463 #define PAN_CULTURE_LATIN 0
464 #define PAN_ANY 0
465 #define PAN_NO_FIT 1
466 #define PAN_FAMILY_TEXT_DISPLAY 2
467 #define PAN_FAMILY_SCRIPT 3
468 #define PAN_FAMILY_DECORATIVE 4
469 #define PAN_FAMILY_PICTORIAL 5
470 #define PAN_SERIF_COVE 2
471 #define PAN_SERIF_OBTUSE_COVE 3
472 #define PAN_SERIF_SQUARE_COVE 4
473 #define PAN_SERIF_OBTUSE_SQUARE_COVE 5
474 #define PAN_SERIF_SQUARE 6
475 #define PAN_SERIF_THIN 7
476 #define PAN_SERIF_BONE 8
477 #define PAN_SERIF_EXAGGERATED 9
478 #define PAN_SERIF_TRIANGLE 10
479 #define PAN_SERIF_NORMAL_SANS 11
480 #define PAN_SERIF_OBTUSE_SANS 12
481 #define PAN_SERIF_PERP_SANS 13
482 #define PAN_SERIF_FLARED 14
483 #define PAN_SERIF_ROUNDED 15
484 #define PAN_WEIGHT_VERY_LIGHT 2
485 #define PAN_WEIGHT_LIGHT 3
486 #define PAN_WEIGHT_THIN 4
487 #define PAN_WEIGHT_BOOK 5
488 #define PAN_WEIGHT_MEDIUM 6
489 #define PAN_WEIGHT_DEMI 7
490 #define PAN_WEIGHT_BOLD 8
491 #define PAN_WEIGHT_HEAVY 9
492 #define PAN_WEIGHT_BLACK 10
493 #define PAN_WEIGHT_NORD 11
494 #define PAN_PROP_OLD_STYLE 2
495 #define PAN_PROP_MODERN 3
496 #define PAN_PROP_EVEN_WIDTH 4
497 #define PAN_PROP_EXPANDED 5
498 #define PAN_PROP_CONDENSED 6
499 #define PAN_PROP_VERY_EXPANDED 7
500 #define PAN_PROP_VERY_CONDENSED 8
501 #define PAN_PROP_MONOSPACED 9
502 #define PAN_CONTRAST_NONE 2
503 #define PAN_CONTRAST_VERY_LOW 3
504 #define PAN_CONTRAST_LOW 4
505 #define PAN_CONTRAST_MEDIUM_LOW 5
506 #define PAN_CONTRAST_MEDIUM 6
507 #define PAN_CONTRAST_MEDIUM_HIGH 7
508 #define PAN_CONTRAST_HIGH 8
509 #define PAN_CONTRAST_VERY_HIGH 9
510 #define PAN_STROKE_GRADUAL_DIAG 2
511 #define PAN_STROKE_GRADUAL_TRAN 3
512 #define PAN_STROKE_GRADUAL_VERT 4
513 #define PAN_STROKE_GRADUAL_HORZ 5
514 #define PAN_STROKE_RAPID_VERT 6
515 #define PAN_STROKE_RAPID_HORZ 7
516 #define PAN_STROKE_INSTANT_VERT 8
517 #define PAN_STRAIGHT_ARMS_HORZ 2
518 #define PAN_STRAIGHT_ARMS_WEDGE 3
519 #define PAN_STRAIGHT_ARMS_VERT 4
520 #define PAN_STRAIGHT_ARMS_SINGLE_SERIF 5
521 #define PAN_STRAIGHT_ARMS_DOUBLE_SERIF 6
522 #define PAN_BENT_ARMS_HORZ 7
523 #define PAN_BENT_ARMS_WEDGE 8
524 #define PAN_BENT_ARMS_VERT 9
525 #define PAN_BENT_ARMS_SINGLE_SERIF 10
526 #define PAN_BENT_ARMS_DOUBLE_SERIF 11
527 #define PAN_LETT_NORMAL_CONTACT 2
528 #define PAN_LETT_NORMAL_WEIGHTED 3
529 #define PAN_LETT_NORMAL_BOXED 4
530 #define PAN_LETT_NORMAL_FLATTENED 5
531 #define PAN_LETT_NORMAL_ROUNDED 6
532 #define PAN_LETT_NORMAL_OFF_CENTER 7
533 #define PAN_LETT_NORMAL_SQUARE 8
534 #define PAN_LETT_OBLIQUE_CONTACT 9
535 #define PAN_LETT_OBLIQUE_WEIGHTED 10
536 #define PAN_LETT_OBLIQUE_BOXED 11
537 #define PAN_LETT_OBLIQUE_FLATTENED 12
538 #define PAN_LETT_OBLIQUE_ROUNDED 13
539 #define PAN_LETT_OBLIQUE_OFF_CENTER 14
540 #define PAN_LETT_OBLIQUE_SQUARE 15
541 #define PAN_MIDLINE_STANDARD_TRIMMED 2
542 #define PAN_MIDLINE_STANDARD_POINTED 3
543 #define PAN_MIDLINE_STANDARD_SERIFED 4
544 #define PAN_MIDLINE_HIGH_TRIMMED 5
545 #define PAN_MIDLINE_HIGH_POINTED 6
546 #define PAN_MIDLINE_HIGH_SERIFED 7
547 #define PAN_MIDLINE_CONSTANT_TRIMMED 8
548 #define PAN_MIDLINE_CONSTANT_POINTED 9
549 #define PAN_MIDLINE_CONSTANT_SERIFED 10
550 #define PAN_MIDLINE_LOW_TRIMMED 11
551 #define PAN_MIDLINE_LOW_POINTED 12
552 #define PAN_MIDLINE_LOW_SERIFED 13
553 #define PAN_XHEIGHT_CONSTANT_SMALL 2
554 #define PAN_XHEIGHT_CONSTANT_STD 3
555 #define PAN_XHEIGHT_CONSTANT_LARGE 4
556 #define PAN_XHEIGHT_DUCKING_SMALL 5
557 #define PAN_XHEIGHT_DUCKING_STD 6
558 #define PAN_XHEIGHT_DUCKING_LARGE 7
559 #define FS_LATIN1 1
560 #define FS_LATIN2 2
561 #define FS_CYRILLIC 4
562 #define FS_GREEK 8
563 #define FS_TURKISH 16
564 #define FS_HEBREW 32
565 #define FS_ARABIC 64
566 #define FS_BALTIC 128
567 #define FS_VIETNAMESE 256
568 #define FS_THAI 0x10000
569 #define FS_JISJAPAN 0x20000
570 #define FS_CHINESESIMP 0x40000
571 #define FS_WANSUNG 0x80000
572 #define FS_CHINESETRAD 0x100000
573 #define FS_JOHAB 0x200000
574 #define FS_SYMBOL 0x80000000
575 #define HS_BDIAGONAL 3
576 #define HS_CROSS 4
577 #define HS_DIAGCROSS 5
578 #define HS_FDIAGONAL 2
579 #define HS_HORIZONTAL 0
580 #define HS_VERTICAL 1
581 #define HS_API_MAX 12
582 #define PS_GEOMETRIC 65536
583 #define PS_COSMETIC 0
584 #define PS_ALTERNATE 8
585 #define PS_SOLID 0
586 #define PS_DASH 1
587 #define PS_DOT 2
588 #define PS_DASHDOT 3
589 #define PS_DASHDOTDOT 4
590 #define PS_NULL 5
591 #define PS_USERSTYLE 7
592 #define PS_INSIDEFRAME 6
593 #define PS_ENDCAP_ROUND 0
594 #define PS_ENDCAP_SQUARE 256
595 #define PS_ENDCAP_FLAT 512
596 #define PS_JOIN_BEVEL 4096
597 #define PS_JOIN_MITER 8192
598 #define PS_JOIN_ROUND 0
599 #define PS_JOIN_MASK 0x0000F000
600 #define PS_STYLE_MASK 15
601 #define PS_ENDCAP_MASK 3840
602 #define PS_TYPE_MASK 983040
603 #define ALTERNATE 1
604 #define WINDING 2
605 #define POLYFILL_LAST 2
606 #define DC_BINNAMES 12
607 #define DC_BINS 6
608 #define DC_COPIES 18
609 #define DC_DRIVER 11
610 #define DC_DATATYPE_PRODUCED 21
611 #define DC_DUPLEX 7
612 #define DC_EMF_COMPLIANT 20
613 #define DC_ENUMRESOLUTIONS 13
614 #define DC_EXTRA 9
615 #define DC_FIELDS 1
616 #define DC_FILEDEPENDENCIES 14
617 #define DC_MAXEXTENT 5
618 #define DC_MINEXTENT 4
619 #define DC_ORIENTATION 17
620 #define DC_PAPERNAMES 16
621 #define DC_PAPERS 2
622 #define DC_PAPERSIZE 3
623 #define DC_SIZE 8
624 #define DC_TRUETYPE 15
625 #define DCTT_BITMAP 1
626 #define DCTT_DOWNLOAD 2
627 #define DCTT_SUBDEV 4
628 #define DCTT_DOWNLOAD_OUTLINE 8
629 #define DC_VERSION 10
630 #define DC_BINADJUST 19
631 #define DC_EMF_COMPLIANT 20
632 #define DC_DATATYPE_PRODUCED 21
633 #define DC_MANUFACTURER 23
634 #define DC_MODEL 24
635 #define DCBA_FACEUPNONE 0
636 #define DCBA_FACEUPCENTER 1
637 #define DCBA_FACEUPLEFT 2
638 #define DCBA_FACEUPRIGHT 3
639 #define DCBA_FACEDOWNNONE 256
640 #define DCBA_FACEDOWNCENTER 257
641 #define DCBA_FACEDOWNLEFT 258
642 #define DCBA_FACEDOWNRIGHT 259
643 #define FLOODFILLBORDER 0
644 #define FLOODFILLSURFACE 1
645 #define ETO_GRAYED 0x00001
646 #define ETO_OPAQUE 0x00002
647 #define ETO_CLIPPED 0x00004
648 #if (WINVER >= 0x0400)
649 #define ETO_GLYPH_INDEX 0x00010
650 #define ETO_RTLREADING 0x00080
651 #define ETO_NUMERICSLOCAL 0x00400
652 #define ETO_NUMERICSLATIN 0x00800
653 #define ETO_IGNORELANGUAGE 0x01000
654 #endif
655 #if (_WIN32_WINNT >= _WIN32_WINNT_WIN2K)
656 #define ETO_PDY 0x02000
657 #endif
658 #if (_WIN32_WINNT >= _WIN32_WINNT_LONGHORN)
659 #define ETO_REVERSE_INDEX_MAP 0x10000
660 #endif
661 #define GDICOMMENT_WINDOWS_METAFILE (-2147483647)
662 #define GDICOMMENT_BEGINGROUP 2
663 #define GDICOMMENT_ENDGROUP 3
664 #define GDICOMMENT_MULTIFORMATS 1073741828
665 #define GDICOMMENT_IDENTIFIER 1128875079
666 #define AD_COUNTERCLOCKWISE 1
667 #define AD_CLOCKWISE 2
668 #define RDH_RECTANGLES 1
669 #define GCPCLASS_LATIN 1
670 #define GCPCLASS_HEBREW 2
671 #define GCPCLASS_ARABIC 2
672 #define GCPCLASS_NEUTRAL 3
673 #define GCPCLASS_LOCALNUMBER 4
674 #define GCPCLASS_LATINNUMBER 5
675 #define GCPCLASS_LATINNUMERICTERMINATOR 6
676 #define GCPCLASS_LATINNUMERICSEPARATOR 7
677 #define GCPCLASS_NUMERICSEPARATOR 8
678 #define GCPCLASS_PREBOUNDLTR 128
679 #define GCPCLASS_PREBOUNDRTL 64
680 #define GCPCLASS_POSTBOUNDLTR 32
681 #define GCPCLASS_POSTBOUNDRTL 16
682 #define GCPGLYPH_LINKBEFORE 0x8000
683 #define GCPGLYPH_LINKAFTER 0x4000
684 #define DCB_DISABLE 8
685 #define DCB_ENABLE 4
686 #define DCB_RESET 1
687 #define DCB_SET 3
688 #define DCB_ACCUMULATE 2
689 #define DCB_DIRTY 2
690 #define OBJ_BRUSH 2
691 #define OBJ_PEN 1
692 #define OBJ_PAL 5
693 #define OBJ_FONT 6
694 #define OBJ_BITMAP 7
695 #define OBJ_EXTPEN 11
696 #define OBJ_REGION 8
697 #define OBJ_DC 3
698 #define OBJ_MEMDC 10
699 #define OBJ_METAFILE 9
700 #define OBJ_METADC 4
701 #define OBJ_ENHMETAFILE 13
702 #define OBJ_ENHMETADC 12
703 #define OBJ_COLORSPACE 14
704 #define DRIVERVERSION 0
705 #define TECHNOLOGY 2
706 #define DT_PLOTTER 0
707 #define DT_RASDISPLAY 1
708 #define DT_RASPRINTER 2
709 #define DT_RASCAMERA 3
710 #define DT_CHARSTREAM 4
711 #define DT_METAFILE 5
712 #define DT_DISPFILE 6
713 #define HORZSIZE 4
714 #define VERTSIZE 6
715 #define HORZRES 8
716 #define VERTRES 10
717 #define LOGPIXELSX 88
718 #define LOGPIXELSY 90
719 #define BITSPIXEL 12
720 #define PLANES 14
721 #define NUMBRUSHES 16
722 #define NUMPENS 18
723 #define NUMFONTS 22
724 #define NUMCOLORS 24
725 #define NUMMARKERS 20
726 #define ASPECTX 40
727 #define ASPECTY 42
728 #define ASPECTXY 44
729 #define PDEVICESIZE 26
730 #define CLIPCAPS 36
731 #define SIZEPALETTE 104
732 #define NUMRESERVED 106
733 #define COLORRES 108
734 #define PHYSICALWIDTH 110
735 #define PHYSICALHEIGHT 111
736 #define PHYSICALOFFSETX 112
737 #define PHYSICALOFFSETY 113
738 #define SCALINGFACTORX 114
739 #define SCALINGFACTORY 115
740 #define VREFRESH 116
741 #define DESKTOPHORZRES 118
742 #define DESKTOPVERTRES 117
743 #define BLTALIGNMENT 119
744 #define RASTERCAPS 38
745 #define RC_BANDING 2
746 #define RC_BITBLT 1
747 #define RC_BITMAP64 8
748 #define RC_DI_BITMAP 128
749 #define RC_DIBTODEV 512
750 #define RC_FLOODFILL 4096
751 #define RC_GDI20_OUTPUT 16
752 #define RC_PALETTE 256
753 #define RC_SCALING 4
754 #define RC_STRETCHBLT 2048
755 #define RC_STRETCHDIB 8192
756 #define RC_DEVBITS 0x8000
757 #define RC_OP_DX_OUTPUT 0x4000
758 #define CURVECAPS 28
759 #define CC_NONE 0
760 #define CC_CIRCLES 1
761 #define CC_PIE 2
762 #define CC_CHORD 4
763 #define CC_ELLIPSES 8
764 #define CC_WIDE 16
765 #define CC_STYLED 32
766 #define CC_WIDESTYLED 64
767 #define CC_INTERIORS 128
768 #define CC_ROUNDRECT 256
769 #define LINECAPS 30
770 #define LC_NONE 0
771 #define LC_POLYLINE 2
772 #define LC_MARKER 4
773 #define LC_POLYMARKER 8
774 #define LC_WIDE 16
775 #define LC_STYLED 32
776 #define LC_WIDESTYLED 64
777 #define LC_INTERIORS 128
778 #define POLYGONALCAPS 32
779 #define RC_BANDING 2
780 #define RC_BIGFONT 1024
781 #define RC_BITBLT 1
782 #define RC_BITMAP64 8
783 #define RC_DEVBITS 0x8000
784 #define RC_DI_BITMAP 128
785 #define RC_GDI20_OUTPUT 16
786 #define RC_GDI20_STATE 32
787 #define RC_NONE 0
788 #define RC_OP_DX_OUTPUT 0x4000
789 #define RC_PALETTE 256
790 #define RC_SAVEBITMAP 64
791 #define RC_SCALING 4
792 #define PC_NONE 0
793 #define PC_POLYGON 1
794 #define PC_POLYPOLYGON 256
795 #define PC_PATHS 512
796 #define PC_RECTANGLE 2
797 #define PC_WINDPOLYGON 4
798 #define PC_SCANLINE 8
799 #define PC_TRAPEZOID 4
800 #define PC_WIDE 16
801 #define PC_STYLED 32
802 #define PC_WIDESTYLED 64
803 #define PC_INTERIORS 128
804 #define PC_PATHS 512
805 #define TEXTCAPS 34
806 #define TC_OP_CHARACTER 1
807 #define TC_OP_STROKE 2
808 #define TC_CP_STROKE 4
809 #define TC_CR_90 8
810 #define TC_CR_ANY 16
811 #define TC_SF_X_YINDEP 32
812 #define TC_SA_DOUBLE 64
813 #define TC_SA_INTEGER 128
814 #define TC_SA_CONTIN 256
815 #define TC_EA_DOUBLE 512
816 #define TC_IA_ABLE 1024
817 #define TC_UA_ABLE 2048
818 #define TC_SO_ABLE 4096
819 #define TC_RA_ABLE 8192
820 #define TC_VA_ABLE 16384
821 #define TC_RESERVED 32768
822 #define TC_SCROLLBLT 65536
823 /* CLIPCAPS */
824 #define CP_NONE 0
825 #define CP_RECTANGLE 1
826 #define CP_REGION 2
827 #define GCP_DBCS 1
828 #define GCP_ERROR 0x8000
829 #define GCP_CLASSIN 0x80000
830 #define GCP_DIACRITIC 256
831 #define GCP_DISPLAYZWG 0x400000
832 #define GCP_GLYPHSHAPE 16
833 #define GCP_JUSTIFY 0x10000
834 #define GCP_JUSTIFYIN 0x200000
835 #define GCP_KASHIDA 1024
836 #define GCP_LIGATE 32
837 #define GCP_MAXEXTENT 0x100000
838 #define GCP_NEUTRALOVERRIDE 0x2000000
839 #define GCP_NUMERICOVERRIDE 0x1000000
840 #define GCP_NUMERICSLATIN 0x4000000
841 #define GCP_NUMERICSLOCAL 0x8000000
842 #define GCP_REORDER 2
843 #define GCP_SYMSWAPOFF 0x800000
844 #define GCP_USEKERNING 8
845 #define FLI_GLYPHS 0x40000
846 #define FLI_MASK 0x103b
847 #define GGO_METRICS 0
848 #define GGO_BITMAP 1
849 #define GGO_NATIVE 2
850 #define GGO_BEZIER 3
851 #define GGO_GRAY2_BITMAP 4
852 #define GGO_GRAY4_BITMAP 5
853 #define GGO_GRAY8_BITMAP 6
854 #define GGO_GLYPH_INDEX 128
855 #define GGO_UNHINTED 256
856 #ifdef __WINESRC__
857 #define WINE_GGO_GRAY16_BITMAP 0x10
858 #define WINE_GGO_HRGB_BITMAP 0x11
859 #define WINE_GGO_HBGR_BITMAP 0x12
860 #define WINE_GGO_VRGB_BITMAP 0x13
861 #define WINE_GGO_VBGR_BITMAP 0x14
862 #endif
863 #define GM_COMPATIBLE 1
864 #define GM_ADVANCED 2
865 #define GM_LAST 2
866 #define MM_ANISOTROPIC 8
867 #define MM_HIENGLISH 5
868 #define MM_HIMETRIC 3
869 #define MM_ISOTROPIC 7
870 #define MM_LOENGLISH 4
871 #define MM_LOMETRIC 2
872 #define MM_TEXT 1
873 #define MM_TWIPS 6
874 #define MM_MAX_FIXEDSCALE MM_TWIPS
875 #define MM_MIN MM_TEXT
876 #define MM_MAX MM_ANISOTROPIC
877 #define ABSOLUTE 1
878 #define RELATIVE 2
879 #define PC_EXPLICIT 2
880 #define PC_NOCOLLAPSE 4
881 #define PC_RESERVED 1
882 #define CLR_INVALID 0xFFFFFFFF
883 #define PT_MOVETO 6
884 #define PT_LINETO 2
885 #define PT_BEZIERTO 4
886 #define PT_CLOSEFIGURE 1
887 #define TT_AVAILABLE 1
888 #define TT_ENABLED 2
889 
890 #ifdef __WINESRC__
891 #define WINE_TT_SUBPIXEL_RENDERING_ENABLED 0x4000
892 #define WINE_TT_HINTER_ENABLED 0x8000
893 #endif
894 
895 #define BLACK_BRUSH 4
896 #define DKGRAY_BRUSH 3
897 #define GRAY_BRUSH 2
898 #define HOLLOW_BRUSH 5
899 #define LTGRAY_BRUSH 1
900 #define NULL_BRUSH 5
901 #define WHITE_BRUSH 0
902 #define BLACK_PEN 7
903 #define NULL_PEN 8
904 #define WHITE_PEN 6
905 #define ANSI_FIXED_FONT 11
906 #define ANSI_VAR_FONT 12
907 #define DEVICE_DEFAULT_FONT 14
908 #define DEFAULT_GUI_FONT 17
909 #define OEM_FIXED_FONT 10
910 #define SYSTEM_FONT 13
911 #define SYSTEM_FIXED_FONT 16
912 #define DEFAULT_PALETTE 15
913 #if (_WIN32_WINNT >= 0x0500)
914 #define DC_BRUSH 18
915 #define DC_PEN 19
916 #endif
917 #if (_WIN32_WINNT >= 0x0500)
918 #define STOCK_LAST 19
919 #elif (WINVER >= 0x0400)
920 #define STOCK_LAST 17
921 #else
922 #define STOCK_LAST 16
923 #endif
924 #define SYSPAL_NOSTATIC 2
925 #define SYSPAL_STATIC 1
926 #define SYSPAL_ERROR 0
927 #define TA_BASELINE 24
928 #define TA_BOTTOM 8
929 #define TA_TOP 0
930 #define TA_CENTER 6
931 #define TA_LEFT 0
932 #define TA_RIGHT 2
933 #define TA_RTLREADING 256
934 #define TA_NOUPDATECP 0
935 #define TA_UPDATECP 1
936 #define TA_MASK (TA_BASELINE+TA_CENTER+TA_UPDATECP+TA_RTLREADING)
937 #define VTA_BASELINE 24
938 #define VTA_CENTER 6
939 #define VTA_LEFT TA_BOTTOM
940 #define VTA_RIGHT TA_TOP
941 #define VTA_BOTTOM TA_RIGHT
942 #define VTA_TOP TA_LEFT
943 #define MWT_IDENTITY 1
944 #define MWT_LEFTMULTIPLY 2
945 #define MWT_RIGHTMULTIPLY 3
946 #define MWT_MIN MWT_IDENTITY
947 #define MWT_MAX MWT_RIGHTMULTIPLY
948 #define OPAQUE 2
949 #define TRANSPARENT 1
950 #define BKMODE_LAST 2
951 #define BLACKONWHITE 1
952 #define WHITEONBLACK 2
953 #define COLORONCOLOR 3
954 #define HALFTONE 4
955 #define MAXSTRETCHBLTMODE 4
956 #define STRETCH_ANDSCANS 1
957 #define STRETCH_DELETESCANS 3
958 #define STRETCH_HALFTONE 4
959 #define STRETCH_ORSCANS 2
960 #define TCI_SRCCHARSET 1
961 #define TCI_SRCCODEPAGE 2
962 #define TCI_SRCFONTSIG 3
963 #define TCI_SRCLOCALE 4096
964 #if (_WIN32_WINNT >= 0x0500)
965 #define SHADEBLENDCAPS 120
966 #define COLORMGMTCAPS 121
967 /* SHADEBLENDCAPS */
968 #define SB_NONE 0x00000000
969 #define SB_CONST_ALPHA 0x00000001
970 #define SB_PIXEL_ALPHA 0x00000002
971 #define SB_PREMULT_ALPHA 0x00000004
972 #define SB_GRAD_RECT 0x00000010
973 #define SB_GRAD_TRI 0x00000020
974 /* Color Management caps */
975 #define CM_NONE 0x00000000
976 #define CM_DEVICE_ICM 0x00000001
977 #define CM_GAMMA_RAMP 0x00000002
978 #define CM_CMYK_COLOR 0x00000004
979 #endif
980 #define ICM_ON 2
981 #define ICM_OFF 1
982 #define ICM_QUERY 3
983 #define NEWFRAME 1
984 #define ABORTDOC 2
985 #define NEXTBAND 3
986 #define SETCOLORTABLE 4
987 #define GETCOLORTABLE 5
988 #define FLUSHOUTPUT 6
989 #define DRAFTMODE 7
990 #define QUERYESCSUPPORT 8
991 #define SETABORTPROC 9
992 #define STARTDOC 10
993 #define ENDDOC 11
994 #define GETPHYSPAGESIZE 12
995 #define GETPRINTINGOFFSET 13
996 #define GETSCALINGFACTOR 14
997 #define MFCOMMENT 15
998 #define GETPENWIDTH 16
999 #define SETCOPYCOUNT 17
1000 #define SELECTPAPERSOURCE 18
1001 #define DEVICEDATA 19
1002 #define PASSTHROUGH 19
1003 #define GETTECHNOLGY 20
1004 #define GETTECHNOLOGY 20
1005 #define SETLINECAP 21
1006 #define SETLINEJOIN 22
1007 #define SETMITERLIMIT 23
1008 #define BANDINFO 24
1009 #define DRAWPATTERNRECT 25
1010 #define GETVECTORPENSIZE 26
1011 #define GETVECTORBRUSHSIZE 27
1012 #define ENABLEDUPLEX 28
1013 #define GETSETPAPERBINS 29
1014 #define GETSETPRINTORIENT 30
1015 #define ENUMPAPERBINS 31
1016 #define SETDIBSCALING 32
1017 #define EPSPRINTING 33
1018 #define ENUMPAPERMETRICS 34
1019 #define GETSETPAPERMETRICS 35
1020 #define POSTSCRIPT_DATA 37
1021 #define POSTSCRIPT_IGNORE 38
1022 #define MOUSETRAILS 39
1023 #define GETDEVICEUNITS 42
1024 #define GETEXTENDEDTEXTMETRICS 256
1025 #define GETEXTENTTABLE 257
1026 #define GETPAIRKERNTABLE 258
1027 #define GETTRACKKERNTABLE 259
1028 #define EXTTEXTOUT 512
1029 #define GETFACENAME 513
1030 #define DOWNLOADFACE 514
1031 #define ENABLERELATIVEWIDTHS 768
1032 #define ENABLEPAIRKERNING 769
1033 #define SETKERNTRACK 770
1034 #define SETALLJUSTVALUES 771
1035 #define SETCHARSET 772
1036 #define STRETCHBLT 2048
1037 #define GETSETSCREENPARAMS 3072
1038 #define QUERYDIBSUPPORT 3073
1039 #define BEGIN_PATH 4096
1040 #define CLIP_TO_PATH 4097
1041 #define END_PATH 4098
1042 #define EXT_DEVICE_CAPS 4099
1043 #define RESTORE_CTM 4100
1044 #define SAVE_CTM 4101
1045 #define SET_ARC_DIRECTION 4102
1046 #define SET_BACKGROUND_COLOR 4103
1047 #define SET_POLY_MODE 4104
1048 #define SET_SCREEN_ANGLE 4105
1049 #define SET_SPREAD 4106
1050 #define TRANSFORM_CTM 4107
1051 #define SET_CLIP_BOX 4108
1052 #define SET_BOUNDS 4109
1053 #define SET_MIRROR_MODE 4110
1054 #define OPENCHANNEL 4110
1055 #define DOWNLOADHEADER 4111
1056 #define CLOSECHANNEL 4112
1057 #define POSTSCRIPT_PASSTHROUGH 4115
1058 #define ENCAPSULATED_POSTSCRIPT 4116
1059 #define QDI_SETDIBITS 1
1060 #define QDI_GETDIBITS 2
1061 #define QDI_DIBTOSCREEN 4
1062 #define QDI_STRETCHDIB 8
1063 #define SP_NOTREPORTED 0x4000
1064 #define PR_JOBSTATUS 0
1065 #define ASPECT_FILTERING 1
1066 #define GS_8BIT_INDICES 0x00000001
1067 #define GGI_MARK_NONEXISTING_GLYPHS 0X0001
1068 #define BS_SOLID 0
1069 #define BS_NULL 1
1070 #define BS_HOLLOW 1
1071 #define BS_HATCHED 2
1072 #define BS_PATTERN 3
1073 #define BS_INDEXED 4
1074 #define BS_DIBPATTERN 5
1075 #define BS_DIBPATTERNPT 6
1076 #define BS_PATTERN8X8 7
1077 #define BS_DIBPATTERN8X8 8
1078 #define BS_MONOPATTERN 9
1079 #define LCS_CALIBRATED_RGB 0
1080 #define LCS_DEVICE_RGB 1
1081 #define LCS_DEVICE_CMYK 2
1082 #define LCS_GM_BUSINESS 1
1083 #define LCS_GM_GRAPHICS 2
1084 #define LCS_GM_IMAGES 4
1085 #define LCS_GM_ABS_COLORIMETRIC 8
1086 #define LCS_SIGNATURE 0x50534F43 // 'PSOC'
1087 #define LCS_sRGB 'sRGB'
1088 #define LCS_WINDOWS_COLOR_SPACE 'Win '
1089 #define RASTER_FONTTYPE 1
1090 #define DEVICE_FONTTYPE 2
1091 #define TRUETYPE_FONTTYPE 4
1092 #define DMORIENT_PORTRAIT 1
1093 #define DMORIENT_LANDSCAPE 2
1094 #define DMPAPER_FIRST 1
1095 #define DMPAPER_LETTER 1
1096 #define DMPAPER_LETTERSMALL 2
1097 #define DMPAPER_TABLOID 3
1098 #define DMPAPER_LEDGER 4
1099 #define DMPAPER_LEGAL 5
1100 #define DMPAPER_STATEMENT 6
1101 #define DMPAPER_EXECUTIVE 7
1102 #define DMPAPER_A3 8
1103 #define DMPAPER_A4 9
1104 #define DMPAPER_A4SMALL 10
1105 #define DMPAPER_A5 11
1106 #define DMPAPER_B4 12
1107 #define DMPAPER_B5 13
1108 #define DMPAPER_FOLIO 14
1109 #define DMPAPER_QUARTO 15
1110 #define DMPAPER_10X14 16
1111 #define DMPAPER_11X17 17
1112 #define DMPAPER_NOTE 18
1113 #define DMPAPER_ENV_9 19
1114 #define DMPAPER_ENV_10 20
1115 #define DMPAPER_ENV_11 21
1116 #define DMPAPER_ENV_12 22
1117 #define DMPAPER_ENV_14 23
1118 #define DMPAPER_CSHEET 24
1119 #define DMPAPER_DSHEET 25
1120 #define DMPAPER_ESHEET 26
1121 #define DMPAPER_ENV_DL 27
1122 #define DMPAPER_ENV_C5 28
1123 #define DMPAPER_ENV_C3 29
1124 #define DMPAPER_ENV_C4 30
1125 #define DMPAPER_ENV_C6 31
1126 #define DMPAPER_ENV_C65 32
1127 #define DMPAPER_ENV_B4 33
1128 #define DMPAPER_ENV_B5 34
1129 #define DMPAPER_ENV_B6 35
1130 #define DMPAPER_ENV_ITALY 36
1131 #define DMPAPER_ENV_MONARCH 37
1132 #define DMPAPER_ENV_PERSONAL 38
1133 #define DMPAPER_FANFOLD_US 39
1134 #define DMPAPER_FANFOLD_STD_GERMAN 40
1135 #define DMPAPER_FANFOLD_LGL_GERMAN 41
1136 #define DMPAPER_ISO_B4 42
1137 #define DMPAPER_JAPANESE_POSTCARD 43
1138 #define DMPAPER_9X11 44
1139 #define DMPAPER_10X11 45
1140 #define DMPAPER_15X11 46
1141 #define DMPAPER_ENV_INVITE 47
1142 #define DMPAPER_RESERVED_48 48
1143 #define DMPAPER_RESERVED_49 49
1144 #define DMPAPER_LETTER_EXTRA 50
1145 #define DMPAPER_LEGAL_EXTRA 51
1146 #define DMPAPER_TABLOID_EXTRA 52
1147 #define DMPAPER_A4_EXTRA 53
1148 #define DMPAPER_LETTER_TRANSVERSE 54
1149 #define DMPAPER_A4_TRANSVERSE 55
1150 #define DMPAPER_LETTER_EXTRA_TRANSVERSE 56
1151 #define DMPAPER_A_PLUS 57
1152 #define DMPAPER_B_PLUS 58
1153 #define DMPAPER_LETTER_PLUS 59
1154 #define DMPAPER_A4_PLUS 60
1155 #define DMPAPER_A5_TRANSVERSE 61
1156 #define DMPAPER_B5_TRANSVERSE 62
1157 #define DMPAPER_A3_EXTRA 63
1158 #define DMPAPER_A5_EXTRA 64
1159 #define DMPAPER_B5_EXTRA 65
1160 #define DMPAPER_A2 66
1161 #define DMPAPER_A3_TRANSVERSE 67
1162 #define DMPAPER_A3_EXTRA_TRANSVERSE 68
1163 #define DMPAPER_LAST 68
1164 #define DMPAPER_USER 256
1165 #define DMBIN_FIRST 1
1166 #define DMBIN_UPPER 1
1167 #define DMBIN_ONLYONE 1
1168 #define DMBIN_LOWER 2
1169 #define DMBIN_MIDDLE 3
1170 #define DMBIN_MANUAL 4
1171 #define DMBIN_ENVELOPE 5
1172 #define DMBIN_ENVMANUAL 6
1173 #define DMBIN_AUTO 7
1174 #define DMBIN_TRACTOR 8
1175 #define DMBIN_SMALLFMT 9
1176 #define DMBIN_LARGEFMT 10
1177 #define DMBIN_LARGECAPACITY 11
1178 #define DMBIN_CASSETTE 14
1179 #define DMBIN_FORMSOURCE 15
1180 #define DMBIN_LAST 15
1181 #define DMBIN_USER 256
1182 #define DMRES_DRAFT (-1)
1183 #define DMRES_LOW (-2)
1184 #define DMRES_MEDIUM (-3)
1185 #define DMRES_HIGH (-4)
1186 #define DMCOLOR_MONOCHROME 1
1187 #define DMCOLOR_COLOR 2
1188 #define DMDUP_SIMPLEX 1
1189 #define DMDUP_VERTICAL 2
1190 #define DMDUP_HORIZONTAL 3
1191 #define DMTT_BITMAP 1
1192 #define DMTT_DOWNLOAD 2
1193 #define DMTT_SUBDEV 3
1194 #define DMTT_DOWNLOAD_OUTLINE 4
1195 #define DMCOLLATE_FALSE 0
1196 #define DMCOLLATE_TRUE 1
1197 
1198 
1199 #define DMDO_DEFAULT 0
1200 #define DMDO_90 1
1201 #define DMDO_180 2
1202 #define DMDO_270 3
1203 
1204 #define DMDFO_DEFAULT 0
1205 #define DMDFO_STRETCH 1
1206 #define DMDFO_CENTER 2
1207 
1208 
1209 #define DM_GRAYSCALE 0x00000001
1210 #define DM_INTERLACED 0x00000002
1211 #define DMDISPLAYFLAGS_TEXTMODE 0x00000004
1212 
1213 
1214 #define DM_UPDATE 1
1215 #define DM_COPY 2
1216 #define DM_PROMPT 4
1217 #define DM_MODIFY 8
1218 #define DM_IN_BUFFER DM_MODIFY
1219 #define DM_IN_PROMPT DM_PROMPT
1220 #define DM_OUT_BUFFER DM_COPY
1221 #define DM_OUT_DEFAULT DM_UPDATE
1222 
1223 
1224 #if (WINVER >= 0x0500) || (_WIN32_WINNT >= _WIN32_WINNT_NT4)
1225 #define DM_SPECVERSION 0x0401
1226 #elif (WINVER >= 0x0400)
1227 #define DM_SPECVERSION 0x0400
1228 #else
1229 #define DM_SPECVERSION 0x0320
1230 #endif
1231 
1232 #define DM_ORIENTATION 0x00000001
1233 #define DM_PAPERSIZE 0x00000002
1234 #define DM_PAPERLENGTH 0x00000004
1235 #define DM_PAPERWIDTH 0x00000008
1236 #define DM_SCALE 0x00000010
1237 #define DM_POSITION 0x00000020
1238 #define DM_NUP 0x00000040
1239 #define DM_DISPLAYORIENTATION 0x00000080
1240 #define DM_COPIES 0x00000100
1241 #define DM_DEFAULTSOURCE 0x00000200
1242 #define DM_PRINTQUALITY 0x00000400
1243 #define DM_COLOR 0x00000800
1244 #define DM_DUPLEX 0x00001000
1245 #define DM_YRESOLUTION 0x00002000
1246 #define DM_TTOPTION 0x00004000
1247 #define DM_COLLATE 0x00008000
1248 #define DM_FORMNAME 0x00010000
1249 #define DM_LOGPIXELS 0x00020000
1250 #define DM_BITSPERPEL 0x00040000
1251 #define DM_PELSWIDTH 0x00080000
1252 #define DM_PELSHEIGHT 0x00100000
1253 #define DM_DISPLAYFLAGS 0x00200000
1254 #define DM_DISPLAYFREQUENCY 0x00400000
1255 #define DM_ICMMETHOD 0x00800000
1256 #define DM_ICMINTENT 0x01000000
1257 #define DM_MEDIATYPE 0x02000000
1258 #define DM_DITHERTYPE 0x04000000
1259 #define DM_PANNINGWIDTH 0x08000000
1260 #define DM_PANNINGHEIGHT 0x10000000
1261 #if (WINVER >= 0x0501)
1262 #define DM_DISPLAYFIXEDOUTPUT 0x20000000
1263 #endif
1264 
1265 #define QDC_ALL_PATHS 0x00000001
1266 
1267 #define DMICMMETHOD_NONE 1
1268 #define DMICMMETHOD_SYSTEM 2
1269 #define DMICMMETHOD_DRIVER 3
1270 #define DMICMMETHOD_DEVICE 4
1271 #define DMICMMETHOD_USER 256
1272 #define DMICM_SATURATE 1
1273 #define DMICM_CONTRAST 2
1274 #define DMICM_COLORMETRIC 3
1275 #define DMICM_USER 256
1276 #define DMMEDIA_STANDARD 1
1277 #define DMMEDIA_TRANSPARENCY 2
1278 #define DMMEDIA_GLOSSY 3
1279 #define DMMEDIA_USER 256
1280 #define DMDITHER_NONE 1
1281 #define DMDITHER_COARSE 2
1282 #define DMDITHER_FINE 3
1283 #define DMDITHER_LINEART 4
1284 #define DMDITHER_ERRORDIFFUSION 5
1285 #define DMDITHER_RESERVED6 6
1286 #define DMDITHER_RESERVED7 7
1287 #define DMDITHER_RESERVED8 8
1288 #define DMDITHER_RESERVED9 9
1289 #define DMDITHER_GRAYSCALE 10
1290 #define DMDITHER_USER 256
1291 #define GDI_ERROR 0xFFFFFFFF
1292 #define HGDI_ERROR ((HANDLE)GDI_ERROR)
1293 #define TMPF_FIXED_PITCH 1
1294 #define TMPF_VECTOR 2
1295 #define TMPF_TRUETYPE 4
1296 #define TMPF_DEVICE 8
1297 #define NTM_ITALIC 1
1298 #define NTM_BOLD 32
1299 #define NTM_REGULAR 64
1300 #define TT_POLYGON_TYPE 24
1301 #define TT_PRIM_LINE 1
1302 #define TT_PRIM_QSPLINE 2
1303 #define TT_PRIM_CSPLINE 3
1304 #define FONTMAPPER_MAX 10
1305 #define ENHMETA_STOCK_OBJECT 0x80000000
1306 #define WGL_FONT_LINES 0
1307 #define WGL_FONT_POLYGONS 1
1308 #define LPD_DOUBLEBUFFER 1
1309 #define LPD_STEREO 2
1310 #define LPD_SUPPORT_GDI 16
1311 #define LPD_SUPPORT_OPENGL 32
1312 #define LPD_SHARE_DEPTH 64
1313 #define LPD_SHARE_STENCIL 128
1314 #define LPD_SHARE_ACCUM 256
1315 #define LPD_SWAP_EXCHANGE 512
1316 #define LPD_SWAP_COPY 1024
1317 #define LPD_TRANSPARENT 4096
1318 #define LPD_TYPE_RGBA 0
1319 #define LPD_TYPE_COLORINDEX 1
1320 #define WGL_SWAP_MAIN_PLANE 1
1321 #define WGL_SWAP_OVERLAY1 2
1322 #define WGL_SWAP_OVERLAY2 4
1323 #define WGL_SWAP_OVERLAY3 8
1324 #define WGL_SWAP_OVERLAY4 16
1325 #define WGL_SWAP_OVERLAY5 32
1326 #define WGL_SWAP_OVERLAY6 64
1327 #define WGL_SWAP_OVERLAY7 128
1328 #define WGL_SWAP_OVERLAY8 256
1329 #define WGL_SWAP_OVERLAY9 512
1330 #define WGL_SWAP_OVERLAY10 1024
1331 #define WGL_SWAP_OVERLAY11 2048
1332 #define WGL_SWAP_OVERLAY12 4096
1333 #define WGL_SWAP_OVERLAY13 8192
1334 #define WGL_SWAP_OVERLAY14 16384
1335 #define WGL_SWAP_OVERLAY15 32768
1336 #define WGL_SWAP_UNDERLAY1 65536
1337 #define WGL_SWAP_UNDERLAY2 0x20000
1338 #define WGL_SWAP_UNDERLAY3 0x40000
1339 #define WGL_SWAP_UNDERLAY4 0x80000
1340 #define WGL_SWAP_UNDERLAY5 0x100000
1341 #define WGL_SWAP_UNDERLAY6 0x200000
1342 #define WGL_SWAP_UNDERLAY7 0x400000
1343 #define WGL_SWAP_UNDERLAY8 0x800000
1344 #define WGL_SWAP_UNDERLAY9 0x1000000
1345 #define WGL_SWAP_UNDERLAY10 0x2000000
1346 #define WGL_SWAP_UNDERLAY11 0x4000000
1347 #define WGL_SWAP_UNDERLAY12 0x8000000
1348 #define WGL_SWAP_UNDERLAY13 0x10000000
1349 #define WGL_SWAP_UNDERLAY14 0x20000000
1350 #define WGL_SWAP_UNDERLAY15 0x40000000
1351 #define AC_SRC_OVER 0
1352 #define LAYOUT_LTR 0
1353 #define LAYOUT_RTL 1 // Right to left
1354 #define LAYOUT_BTT 2 // Bottom to top
1355 #define LAYOUT_VBH 4 // Vertical before horizontal
1356 #define LAYOUT_ORIENTATIONMASK (LAYOUT_RTL | LAYOUT_BTT | LAYOUT_VBH)
1357 #define LAYOUT_BITMAPORIENTATIONPRESERVED 8
1358 #define CAPTUREBLT 0x40000000
1359 #define NOMIRRORBITMAP 0x80000000
1360 #if (WINVER > 0x400)
1361 #define CS_ENABLE 0x00000001
1362 #define CS_DISABLE 0x00000002
1363 #define CS_DELETE_TRANSFORM 0x00000003
1364 #endif
1365 
1366 
1367 
1368 #if (WINVER > 0x500)
1369 #define GRADIENT_FILL_RECT_H 0x00
1370 #define GRADIENT_FILL_RECT_V 0x01
1371 #define GRADIENT_FILL_TRIANGLE 0x02
1372 #define GRADIENT_FILL_OP_FLAG 0xff
1373 #define COLORMATCHTOTARGET_EMBEDED 0x00000001
1374 #define CREATECOLORSPACE_EMBEDED 0x00000001
1375 #define SETICMPROFILE_EMBEDED 0x00000001
1376 #endif
1377 
1378 #define DISPLAY_DEVICE_ATTACHED_TO_DESKTOP 0x00000001
1379 #define DISPLAY_DEVICE_MULTI_DRIVER 0x00000002
1380 #define DISPLAY_DEVICE_PRIMARY_DEVICE 0x00000004
1381 #define DISPLAY_DEVICE_MIRRORING_DRIVER 0x00000008
1382 #define DISPLAY_DEVICE_VGA_COMPATIBLE 0x00000010
1383 #define DISPLAY_DEVICE_REMOVABLE 0x00000020
1384 #define DISPLAY_DEVICE_DISCONNECT 0x02000000
1385 #define DISPLAY_DEVICE_REMOTE 0x04000000
1386 #define DISPLAY_DEVICE_MODESPRUNED 0x08000000
1387 #ifndef RC_INVOKED
1388 typedef struct _ABC {
1389  int abcA;
1391  int abcC;
1392 } ABC, *PABC, *LPABC;
1393 typedef struct _ABCFLOAT {
1398 typedef struct tagBITMAP {
1406 } BITMAP,*PBITMAP,*LPBITMAP;
1407 typedef struct tagBITMAPCOREHEADER {
1414 #include "pshpack1.h"
1415 typedef struct tagRGBTRIPLE {
1420 #include "poppack.h"
1421 #include "pshpack2.h"
1422 typedef struct tagBITMAPFILEHEADER {
1429 #include "poppack.h"
1430 typedef struct _BITMAPCOREINFO {
1434 typedef struct tagBITMAPINFOHEADER{
1436  LONG biWidth;
1437  LONG biHeight;
1447 typedef struct tagRGBQUAD {
1452 } RGBQUAD,*LPRGBQUAD;
1453 typedef struct tagBITMAPINFO {
1458 typedef long FXPT2DOT30,*LPFXPT2DOT30;
1459 typedef struct tagCIEXYZ {
1463 } CIEXYZ,*LPCIEXYZ;
1464 typedef struct tagCIEXYZTRIPLE {
1469 typedef struct {
1491 #if (WINVER >= 0x500)
1492 typedef struct {
1493  DWORD bV5Size;
1494  LONG bV5Width;
1495  LONG bV5Height;
1496  WORD bV5Planes;
1497  WORD bV5BitCount;
1498  DWORD bV5Compression;
1499  DWORD bV5SizeImage;
1500  LONG bV5XPelsPerMeter;
1501  LONG bV5YPelsPerMeter;
1502  DWORD bV5ClrUsed;
1503  DWORD bV5ClrImportant;
1504  DWORD bV5RedMask;
1505  DWORD bV5GreenMask;
1506  DWORD bV5BlueMask;
1507  DWORD bV5AlphaMask;
1508  DWORD bV5CSType;
1509  CIEXYZTRIPLE bV5Endpoints;
1510  DWORD bV5GammaRed;
1511  DWORD bV5GammaGreen;
1512  DWORD bV5GammaBlue;
1513  DWORD bV5Intent;
1514  DWORD bV5ProfileData;
1515  DWORD bV5ProfileSize;
1516  DWORD bV5Reserved;
1517 } BITMAPV5HEADER,*LPBITMAPV5HEADER,*PBITMAPV5HEADER;
1518 #endif
1519 typedef struct tagFONTSIGNATURE {
1523 typedef struct tagCHARSETINFO {
1528 typedef struct tagCOLORADJUSTMENT {
1542 typedef struct _devicemodeA {
1549  _ANONYMOUS_UNION union {
1550  _ANONYMOUS_STRUCT struct {
1555  short dmScale;
1556  short dmCopies;
1559  } DUMMYSTRUCTNAME1;
1560  struct {
1564  } DUMMYSTRUCTNAME2;
1565  } DUMMYUNIONNAME1;
1566  short dmColor;
1567  short dmDuplex;
1569  short dmTTOption;
1570  short dmCollate;
1576  _ANONYMOUS_UNION union {
1579  } DUMMYUNIONNAME2;
1581 #if(WINVER >= 0x0400)
1582  DWORD dmICMMethod;
1583  DWORD dmICMIntent;
1584  DWORD dmMediaType;
1585  DWORD dmDitherType;
1586  DWORD dmReserved1;
1587  DWORD dmReserved2;
1588 #if (WINVER >= 0x0500) || (_WIN32_WINNT >= 0x0400)
1589  DWORD dmPanningWidth;
1590  DWORD dmPanningHeight;
1591 #endif
1592 #endif /* WINVER >= 0x0400 */
1594 typedef struct _devicemodeW {
1601  _ANONYMOUS_UNION union {
1602  _ANONYMOUS_STRUCT struct {
1607  short dmScale;
1608  short dmCopies;
1611  } DUMMYSTRUCTNAME1;
1612  struct {
1616  } DUMMYSTRUCTNAME2;
1617  } DUMMYUNIONNAME1;
1618  short dmColor;
1619  short dmDuplex;
1621  short dmTTOption;
1622  short dmCollate;
1628  _ANONYMOUS_UNION union {
1631  } DUMMYUNIONNAME2;
1633 #if(WINVER >= 0x0400)
1634  DWORD dmICMMethod;
1635  DWORD dmICMIntent;
1636  DWORD dmMediaType;
1637  DWORD dmDitherType;
1638  DWORD dmReserved1;
1639  DWORD dmReserved2;
1640 #if (WINVER >= 0x0500) || (_WIN32_WINNT >= 0x0400)
1641  DWORD dmPanningWidth;
1642  DWORD dmPanningHeight;
1643 #endif
1644 #endif /* WINVER >= 0x0400 */
1646 typedef struct tagDIBSECTION {
1653 typedef struct _DOCINFOA {
1654  int cbSize;
1659 } DOCINFOA,*LPDOCINFOA;
1660 typedef struct _DOCINFOW {
1661  int cbSize;
1666 } DOCINFOW,*LPDOCINFOW;
1667 typedef struct tagEMR {
1670 } EMR,*PEMR;
1671 
1672 #if(WINVER >= 0x0400)
1673 typedef struct tagEMRGLSRECORD {
1674  EMR emr;
1675  DWORD cbData;
1676  BYTE Data[1];
1677 } EMRGLSRECORD, *PEMRGLSRECORD;
1678 typedef struct tagEMRGLSBOUNDEDRECORD {
1679  EMR emr;
1680  RECTL rclBounds;
1681  DWORD cbData;
1682  BYTE Data[1];
1683 } EMRGLSBOUNDEDRECORD, *PEMRGLSBOUNDEDRECORD;
1684 #endif
1685 typedef struct tagEMRANGLEARC {
1692 typedef struct tagEMRARC {
1698 typedef struct _XFORM {
1705 } XFORM,*PXFORM,*LPXFORM;
1706 typedef struct tagEMRBITBLT {
1724 typedef struct tagLOGBRUSH {
1730 typedef struct tagLOGBRUSH32 {
1740 typedef LONG LCSCSTYPE;
1742 typedef struct tagLOGCOLORSPACEA {
1754 typedef struct tagLOGCOLORSPACEW {
1766 typedef struct tagEMRCREATECOLORSPACEW {
1774 typedef struct tagEMRCREATECOLORSPACE {
1788 typedef struct tagEMRCREATEMONOBRUSH {
1797 
1798 #ifndef _PALETTEENTRY_DEFINED
1799 #define _PALETTEENTRY_DEFINED
1800 typedef struct tagPALETTEENTRY {
1806 #endif
1807 
1808 #ifndef _LOGPALETTE_DEFINED
1809 #define _LOGPALETTE_DEFINED
1810 typedef struct tagLOGPALETTE {
1815 #endif
1816 
1817 typedef struct tagEMRCREATEPALETTE {
1822 typedef struct tagLOGPEN {
1826 } LOGPEN,*PLOGPEN,*LPLOGPEN;
1827 typedef struct tagEMRCREATEPEN {
1832 typedef struct tagEMRELLIPSE {
1836 typedef struct tagEMREOF {
1841 } EMREOF,*PEMREOF;
1842 typedef struct tagEMREXCLUDECLIPRECT {
1846 typedef struct tagPANOSE {
1857 } PANOSE, *LPPANOSE;
1858 typedef struct tagLOGFONTA {
1874 typedef struct tagLOGFONTW {
1890 typedef struct tagEXTLOGFONTA {
1902 typedef struct tagEXTLOGFONTW {
1919 typedef struct tagEXTLOGPEN {
1928 typedef struct tagEMREXTCREATEPEN {
1937 typedef struct tagEMREXTFLOODFILL {
1943 typedef struct tagEMREXTSELECTCLIPRGN {
1949 typedef struct tagEMRTEXT {
1956 } EMRTEXT,*PEMRTEXT;
1957 typedef struct tagEMREXTTEXTOUTA {
1965 typedef struct tagEMRFILLPATH {
1969 typedef struct tagEMRFILLRGN {
1976 typedef struct tagEMRFORMAT {
1981 } EMRFORMAT, *PEMRFORMAT;
1982 
1983 
1984 typedef struct tagEMRSETCOLORSPACE
1985 {
1990 
1991 typedef struct tagEMRFRAMERGN {
1999 typedef struct tagEMRGDICOMMENT {
2004 typedef struct tagEMRINVERTRGN {
2010 typedef struct tagEMRLINETO {
2014 typedef struct tagEMRMASKBLT {
2044 typedef struct tagEMROFFSETCLIPRGN {
2048 typedef struct tagEMRPLGBLT {
2071 typedef struct tagEMRPOLYDRAW {
2078 typedef struct tagEMRPOLYDRAW16 {
2085 typedef struct tagEMRPOLYLINE {
2091 typedef struct tagEMRPOLYLINE16 {
2097 typedef struct tagEMRPOLYPOLYLINE {
2105 typedef struct tagEMRPOLYPOLYLINE16 {
2113 typedef struct tagEMRPOLYTEXTOUTA {
2122 typedef struct tagEMRRESIZEPALETTE {
2127 typedef struct tagEMRRESTOREDC {
2131 typedef struct tagEMRROUNDRECT {
2143 
2144 
2145 typedef struct tagEMRSELECTOBJECT {
2149 typedef struct tagEMRSELECTPALETTE {
2153 typedef struct tagEMRSETARCDIRECTION {
2157 typedef struct tagEMRSETTEXTCOLOR {
2165 typedef struct tagEMRSETDIBITSTODEVICE {
2182 typedef struct tagEMRSETMAPPERFLAGS {
2186 typedef struct tagEMRSETMITERLIMIT {
2190 typedef struct tagEMRSETPALETTEENTRIES {
2197 typedef struct tagEMRSETPIXELV {
2202 typedef struct tagEMRSETVIEWPORTEXTEX {
2206 typedef struct tagEMRSETVIEWPORTORGEX {
2210 typedef struct tagEMRSETWORLDTRANSFORM {
2214 typedef struct tagEMRSTRETCHBLT {
2234 typedef struct tagEMRALPHABLEND {
2254 typedef struct tagEMRSTRETCHDIBITS {
2272 typedef struct tagABORTPATH {
2275 typedef struct tagEMRSELECTCLIPPATH {
2281 #if(WINVER >= 0x0500)
2282  EMRSETLAYOUT, *PEMRSETLAYOUT,
2283 #endif
2285 
2286 #include "pshpack2.h"
2287 typedef struct tagMETAHEADER {
2296 #include "poppack.h"
2297 typedef struct tagENHMETAHEADER {
2313 #if (WINVER >= 0x0400)
2314  DWORD cbPixelFormat;
2315  DWORD offPixelFormat;
2316  DWORD bOpenGL;
2317 #endif
2318 #if (WINVER >= 0x0500)
2319  SIZEL szlMicrometers;
2320 #endif
2322 typedef struct tagMETARECORD {
2327 typedef struct tagENHMETARECORD {
2332 typedef struct tagHANDLETABLE {
2335 
2336 #ifndef _TEXTMETRIC_DEFINED
2337 #define _TEXTMETRIC_DEFINED
2338 typedef struct tagTEXTMETRICA {
2360 typedef struct tagTEXTMETRICW {
2382 #endif
2383 
2384 typedef struct _RGNDATAHEADER {
2385  DWORD dwSize;
2386  DWORD iType;
2387  DWORD nCount;
2388  DWORD nRgnSize;
2389  RECT rcBound;
2391 typedef struct _RGNDATA {
2393  char Buffer[1];
2395 /* for GetRandomRgn */
2396 #define SYSRGN 4
2397 typedef struct tagGCP_RESULTSA {
2408 typedef struct tagGCP_RESULTSW {
2419 typedef struct _GLYPHMETRICS {
2423  short gmCellIncX;
2424  short gmCellIncY;
2426 #if (_WIN32_WINNT >= 0x0500)
2427 typedef struct tagWCRANGE
2428 {
2429  WCHAR wcLow;
2430  USHORT cGlyphs;
2431 } WCRANGE, *PWCRANGE, *LPWCRANGE;
2432 typedef struct tagGLYPHSET
2433 {
2434  DWORD cbThis;
2435  DWORD flAccel;
2436  DWORD cGlyphsSupported;
2437  DWORD cRanges;
2438  WCRANGE ranges[1];
2439 } GLYPHSET, *PGLYPHSET, *LPGLYPHSET;
2440 #endif
2441 typedef struct tagKERNINGPAIR {
2446 typedef struct _FIXED {
2448  short value;
2449 } FIXED;
2450 typedef struct _MAT2 {
2455 } MAT2,*LPMAT2;
2456 typedef struct _OUTLINETEXTMETRICA {
2490 typedef struct _OUTLINETEXTMETRICW {
2524 typedef struct _RASTERIZER_STATUS {
2525  short nSize;
2526  short wFlags;
2529 typedef struct _POLYTEXTA {
2530  int x;
2531  int y;
2536  int *pdx;
2538 typedef struct _POLYTEXTW {
2539  int x;
2540  int y;
2545  int *pdx;
2575 
2576 typedef struct tagEMRPIXELFORMAT
2577 {
2581 
2582 typedef struct tagMETAFILEPICT {
2586  HMETAFILE hMF;
2588 typedef struct tagLOCALESIGNATURE {
2593 typedef LONG LCSTYPE;
2594 #include "pshpack4.h"
2595 typedef struct tagNEWTEXTMETRICA {
2621 typedef struct tagNEWTEXTMETRICW {
2647 #include "poppack.h"
2648 typedef struct tagNEWTEXTMETRICEXA {
2652 typedef struct tagNEWTEXTMETRICEXW {
2656 typedef struct tagPELARRAY {
2663 typedef struct tagENUMLOGFONTA {
2668 typedef struct tagENUMLOGFONTW {
2673 typedef struct tagENUMLOGFONTEXA {
2679 typedef struct tagENUMLOGFONTEXW {
2685 typedef struct tagPOINTFX {
2688 } POINTFX,*LPPOINTFX;
2689 typedef struct tagTTPOLYCURVE {
2694 typedef struct tagTTPOLYGONHEADER {
2699 typedef struct _POINTFLOAT {
2703 typedef struct _GLYPHMETRICSFLOAT {
2710 typedef struct tagLAYERPLANEDESCRIPTOR {
2736 typedef struct _BLENDFUNCTION {
2742 #define STAMP_DESIGNVECTOR (0x8000000 + 'd' + ('v' << 8))
2743 #define STAMP_AXESLIST (0x8000000 + 'a' + ('l' << 8))
2744 #define MM_MAX_NUMAXES 16
2745 typedef struct _DESIGNVECTOR {
2750 typedef struct tagENUMLOGFONTEXDVA
2751 {
2755 typedef struct tagENUMLOGFONTEXDVW
2756 {
2760 typedef USHORT COLOR16;
2761 typedef struct _TRIVERTEX {
2769 typedef struct tagEMRGRADIENTFILL {
2777 typedef struct _GRADIENT_TRIANGLE {
2782 typedef struct _GRADIENT_RECT {
2786 typedef struct _DISPLAY_DEVICEA {
2794 typedef struct _DISPLAY_DEVICEW {
2802 #define MM_MAX_AXES_NAMELEN 16
2803 typedef struct _AXISINFOA
2804 {
2809 typedef struct _AXISINFOW
2810 {
2815 typedef struct _AXESLISTA
2816 {
2821 typedef struct _AXESLISTW
2822 {
2827 typedef struct _ENUMTEXTMETRICA
2828 {
2832 typedef struct _ENUMTEXTMETRICW
2833 {
2837 
2838 
2839 #if defined(STRICT)
2840 
2841 #if !defined(NOTEXTMETRIC)
2842 
2843 typedef int (CALLBACK *OLDFONTENUMPROCA)(CONST LOGFONTA *, CONST TEXTMETRICA *, DWORD, LPARAM);
2844 typedef int (CALLBACK *OLDFONTENUMPROCW)(CONST LOGFONTW *, CONST TEXTMETRICW *, DWORD, LPARAM);
2845 
2846 #else
2847 
2848 typedef int (CALLBACK* OLDFONTENUMPROCA)(CONST LOGFONTA *, CONST VOID *, DWORD, LPARAM);
2849 typedef int (CALLBACK* OLDFONTENUMPROCW)(CONST LOGFONTW *, CONST VOID *, DWORD, LPARAM);
2850 
2851 #endif
2852 
2853 #ifdef UNICODE
2854 #define OLDFONTENUMPROC OLDFONTENUMPROCW
2855 #else
2856 #define OLDFONTENUMPROC OLDFONTENUMPROCA
2857 #endif
2858 
2859 typedef OLDFONTENUMPROCA FONTENUMPROCA;
2860 typedef OLDFONTENUMPROCW FONTENUMPROCW;
2861 
2862 #ifdef UNICODE
2863 typedef FONTENUMPROCW FONTENUMPROC;
2864 #else
2865 typedef FONTENUMPROCA FONTENUMPROC;
2866 #endif
2867 
2868 typedef INT (CALLBACK *GOBJENUMPROC)(LPVOID, LPARAM);
2869 typedef VOID (CALLBACK *LINEDDAPROC)(INT, INT, LPARAM);
2870 
2871 #else // defined(STRICT)
2872 
2876 
2877 #ifdef UNICODE
2878 typedef FONTENUMPROCW FONTENUMPROC;
2879 #else
2881 #endif
2882 
2885 
2886 #endif
2887 
2888 
2890 
2891 typedef int
2893  _In_ HDC hdc,
2894  _In_reads_(nObj) HANDLETABLE FAR* lpht,
2895  _In_ METARECORD FAR* lpMR,
2896  _In_ int nObj,
2898 
2899 typedef int
2901  _In_ HDC hdc,
2902  _In_reads_(nHandles) HANDLETABLE FAR* lpht,
2903  _In_ CONST ENHMETARECORD * lpmr,
2904  _In_ int nHandles,
2905  _In_opt_ LPARAM data);
2906 
2911 
2912 
2913 #define GetRValue(rgb) ((BYTE)(rgb))
2914 #define GetGValue(rgb) ((BYTE)(((WORD)(rgb)) >> 8))
2915 #define GetBValue(rgb) ((BYTE)((rgb)>>16))
2916 #define GetAValue(rgb) ((BYTE)((rgb)>>24))
2917 
2918 #define RGB(r,g,b) ((COLORREF)(((BYTE)(r)|((WORD)((BYTE)(g))<<8))|(((DWORD)(BYTE)(b))<<16)))
2919 #define RGBA(r,g,b,a) ((COLORREF)((((DWORD)(BYTE)(a))<<24) | RGB(r,g,b)))
2920 #define PALETTERGB(r,g,b) (0x02000000 | RGB(r,g,b))
2921 #define PALETTEINDEX(i) ((COLORREF)(0x01000000 | (DWORD)(WORD)(i)))
2922 
2923 #define MAKEPOINTS(l) (*((POINTS*)&(l)))
2924 #define MAKEROP4(f,b) (DWORD)((((b)<<8)&0xFF000000)|(f))
2925 
2926 INT
2927 WINAPI
2928 AbortDoc(
2929  _In_ HDC hdc);
2930 
2931 BOOL
2932 WINAPI
2933 AbortPath(
2934  _In_ HDC hdc);
2935 
2936 int
2937 WINAPI
2939  _In_ LPCSTR pszFilename);
2940 
2941 int
2942 WINAPI
2944  _In_ LPCWSTR pszFilename);
2945 
2946 HANDLE
2947 WINAPI
2949  _In_reads_bytes_(cjSize) PVOID pvFileView,
2950  _In_ DWORD cjSize,
2951  _Reserved_ PVOID pvResrved,
2952  _In_ DWORD* pNumFonts);
2953 
2954 INT
2955 WINAPI
2957  _In_ LPCSTR pszFilename,
2958  _In_ DWORD fl,
2960 
2961 INT
2962 WINAPI
2964  _In_ LPCWSTR pszFilename,
2965  _In_ DWORD fl,
2967 
2968 BOOL
2969 WINAPI
2970 AngleArc(
2971  _In_ HDC hdc,
2972  _In_ INT x,
2973  _In_ INT y,
2974  _In_ DWORD dwRadius,
2975  _In_ FLOAT eStartAngle,
2976  _In_ FLOAT eSweepAngle);
2977 
2978 BOOL
2979 WINAPI
2981  _In_ HPALETTE hPal,
2982  _In_ UINT iStartIndex,
2983  _In_ UINT cEntries,
2985 
2986 BOOL
2987 WINAPI
2988 Arc(
2989  _In_ HDC hdc,
2990  _In_ INT xLeft,
2991  _In_ INT yTop,
2992  _In_ INT xRight,
2993  _In_ INT yBottom,
2994  _In_ INT xStartArc,
2995  _In_ INT yStartArc,
2996  _In_ INT xEndArc,
2997  _In_ INT yEndArc);
2998 
2999 BOOL
3000 WINAPI
3001 ArcTo(
3002  _In_ HDC hdc,
3003  _In_ INT xLeft,
3004  _In_ INT yTop,
3005  _In_ INT xRight,
3006  _In_ INT yBottom,
3007  _In_ INT xRadial1,
3008  _In_ INT yRadial1,
3009  _In_ INT xRadial2,
3010  _In_ INT yRadial2);
3011 
3012 BOOL
3013 WINAPI
3014 BeginPath(
3015  _In_ HDC hdc);
3016 
3017 BOOL
3018 WINAPI
3019 BitBlt(
3020  _In_ HDC hdcDest,
3021  _In_ INT xDest,
3022  _In_ INT yDest,
3023  _In_ INT cxDest,
3024  _In_ INT cyDest,
3026  _In_ INT xSrc,
3027  _In_ INT ySrc,
3028  _In_ DWORD dwRop);
3029 
3030 BOOL
3031 WINAPI
3032 CancelDC(
3033  _In_ HDC hdc);
3034 
3035 BOOL
3036 WINAPI
3038  _In_ HDC hdc,
3039  _In_reads_(nCount) LPVOID pRGBTriple,
3040  _Out_writes_bytes_(nCount) LPVOID pvBuffer,
3041  _In_ DWORD nCount);
3042 
3043 BOOL
3044 WINAPI
3045 Chord(
3046  _In_ HDC hdc,
3047  _In_ INT xLeft,
3048  _In_ INT yTop,
3049  _In_ INT xRight,
3050  _In_ INT yBottom,
3051  _In_ INT xRadial1,
3052  _In_ INT yRadial1,
3053  _In_ INT xRadial2,
3054  _In_ INT yRadial2);
3055 
3056 int
3057 WINAPI
3059  _In_ HDC hdc,
3061 
3062 HENHMETAFILE
3063 WINAPI
3065  _In_ HDC hdc);
3066 
3067 BOOL
3068 WINAPI
3069 CloseFigure(
3070  _In_ HDC hdc);
3071 
3072 HMETAFILE
3073 WINAPI
3075  _In_ HDC hdc);
3076 
3077 BOOL
3078 WINAPI
3080  _In_ HDC hdc,
3081  _In_ HDC hdcTarget,
3082  _In_ DWORD uAction);
3083 
3084 int
3085 WINAPI
3086 CombineRgn(
3087  _In_opt_ HRGN hrgnDest,
3088  _In_opt_ HRGN hrgnSrc1,
3089  _In_opt_ HRGN hrgnSrc2,
3090  _In_ int fnCombineMode);
3091 
3092 BOOL
3093 WINAPI
3095  _Out_ LPXFORM pxformResult,
3096  _In_ const XFORM* pxform1,
3097  _In_ const XFORM* pxform2);
3098 
3099 HENHMETAFILE
3100 WINAPI
3102  _In_ HENHMETAFILE hemfSrc,
3103  _In_opt_ LPCSTR pszFile);
3104 
3105 HENHMETAFILE
3106 WINAPI
3108  _In_ HENHMETAFILE hemfSrc,
3109  _In_opt_ LPCWSTR pszFile);
3110 
3111 HMETAFILE
3112 WINAPI
3114  _In_ HMETAFILE hmfSrc,
3115  _In_opt_ LPCSTR pszFile);
3116 
3117 HMETAFILE
3118 WINAPI
3120  _In_ HMETAFILE hmfSrc,
3121  _In_opt_ LPCWSTR pszFile);
3122 
3123 HBITMAP
3124 WINAPI
3125 CreateBitmap(
3126  _In_ INT cx,
3127  _In_ INT cy,
3128  _In_ UINT cPlanes,
3129  _In_ UINT cBitsPerPel,
3130  _In_opt_ const VOID* pvBits);
3131 
3132 HBITMAP
3133 WINAPI
3135  _In_ const BITMAP* pbm);
3136 
3137 HBRUSH
3138 WINAPI
3140  _In_ const LOGBRUSH* plb);
3141 
3142 HCOLORSPACE
3143 WINAPI
3146 
3147 HCOLORSPACE
3148 WINAPI
3151 
3152 HBITMAP
3153 WINAPI
3155  _In_ HDC hdc,
3156  _In_ INT cx,
3157  _In_ INT cy);
3158 
3159 HDC
3160 WINAPI
3162  _In_opt_ HDC hdc);
3163 
3164 HDC
3165 WINAPI
3166 CreateDCA(
3167  _In_opt_ LPCSTR pszDriver,
3168  _In_opt_ LPCSTR pszDevice,
3169  _In_opt_ LPCSTR pszOutput,
3170  _In_opt_ const DEVMODEA* pdmInit);
3171 
3172 HDC
3173 WINAPI
3174 CreateDCW(
3175  _In_opt_ LPCWSTR pszDriver,
3176  _In_opt_ LPCWSTR pszDevice,
3177  _In_opt_ LPCWSTR psz,
3178  _In_opt_ const DEVMODEW* pdmInit);
3179 
3180 HBITMAP
3181 WINAPI
3183  _In_ HDC hdc,
3184  _In_opt_ const BITMAPINFOHEADER* pbmih,
3185  _In_ DWORD fdwInit,
3186  _In_opt_ const VOID* pvInit,
3187  _In_opt_ const BITMAPINFO* pbmi,
3188  _In_ UINT uUsage);
3189 
3190 HBRUSH
3191 WINAPI
3193  _In_ HGLOBAL hglbDIBPacked,
3194  _In_ UINT uUsage);
3195 
3196 HBRUSH
3197 WINAPI
3199  _In_ const VOID* pvPackedDIB,
3200  _In_ UINT uUsage);
3201 
3202 #define GDI_WIDTHBYTES(bits) ((DWORD)(((bits) + 31) & (~31)) / 8)
3203 #define GDI_DIBWIDTHBYTES(bi) (DWORD)GDI_WIDTHBYTES((DWORD)(bi).biWidth * (DWORD)(bi).biBitCount)
3204 #define GDI__DIBSIZE(bi) (GDI_DIBWIDTHBYTES(bi) * (DWORD)(bi).biHeight)
3205 #define GDI_DIBSIZE(bi) ((bi).biHeight < 0 ? (-1) * (GDI__DIBSIZE(bi)) : GDI__DIBSIZE(bi))
3206 
3207 _Success_(return != NULL)
3208 HBITMAP
3209 WINAPI
3211  _In_opt_ HDC hdc,
3213  _In_ UINT usage,
3216  VOID **ppvBits,
3218  _In_ DWORD offset);
3219 
3221 HRGN WINAPI CreateEllipticRgn(_In_ int, _In_ int, _In_ int, _In_ int);
3237 
3238 HPALETTE
3239 WINAPI
3241  _In_reads_(_Inexpressible_(2*sizeof(WORD) + plpal->palNumEntries * sizeof(PALETTEENTRY))) const LOGPALETTE*);
3242 
3244 HPEN WINAPI CreatePen(_In_ int, _In_ int, _In_ COLORREF);
3245 HPEN WINAPI CreatePenIndirect(_In_ const LOGPEN*);
3246 
3247 HRGN
3248 WINAPI
3250  _In_reads_(cPoint) const POINT *pptl,
3251  _In_ int cPoint,
3252  _In_ int iMode);
3253 
3254 HRGN
3255 WINAPI
3257  _In_ const POINT *pptl,
3258  _In_reads_(cPoly) const INT *pc,
3259  _In_ int cPoly,
3260  _In_ int iMode);
3261 
3262 HRGN WINAPI CreateRectRgn(_In_ int, _In_ int, _In_ int, _In_ int);
3264 HRGN WINAPI CreateRoundRectRgn(_In_ int, _In_ int, _In_ int, _In_ int, _In_ int, _In_ int);
3268 BOOL WINAPI DeleteColorSpace(_In_ HCOLORSPACE);
3270 BOOL WINAPI DeleteEnhMetaFile(_In_opt_ HENHMETAFILE);
3271 BOOL WINAPI DeleteMetaFile(_In_ HMETAFILE);
3273 
3274 int
3275 WINAPI
3277  _In_ HDC hdc,
3278  _In_ int iPixelFormat,
3279  _In_ UINT nBytes,
3281 
3282 DWORD
3283 WINAPI
3285  _In_ LPCSTR pDevice,
3286  _In_opt_ LPCSTR pPort,
3287  _In_ WORD fwCapability,
3288  _Out_writes_opt_(_Inexpressible_(1)) LPSTR pOutput,
3289  _In_opt_ const DEVMODEA *pDevMode);
3290 
3291 DWORD
3292 WINAPI
3294  _In_ LPCWSTR pDevice,
3295  _In_opt_ LPCWSTR pPort,
3296  _In_ WORD fwCapability,
3297  _Out_writes_opt_(_Inexpressible_(1)) LPWSTR pOutput,
3298  _In_opt_ const DEVMODEW *pDevMode);
3299 
3300 BOOL
3301 WINAPI
3302 DPtoLP(
3303  _In_ HDC hdc,
3304  _Inout_updates_(c) LPPOINT lppt,
3305  _In_ int c);
3306 
3307 int
3308 WINAPI
3309 DrawEscape(
3310  _In_ HDC hdc,
3311  _In_ int iEscape,
3312  _In_ int cjIn,
3314 
3315 BOOL WINAPI Ellipse(_In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int);
3316 int WINAPI EndDoc(_In_ HDC);
3317 int WINAPI EndPage(_In_ HDC);
3330 BOOL WINAPI EqualRgn(_In_ HRGN, _In_ HRGN);
3331 
3332 int
3333 WINAPI
3334 Escape(
3335  _In_ HDC hdc,
3336  _In_ int iEscape,
3337  _In_ int cjIn,
3339  _Out_opt_ LPVOID pvOut);
3340 
3341 int WINAPI ExcludeClipRect(_In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int);
3343 
3344 HPEN
3345 WINAPI
3346 ExtCreatePen(
3347  _In_ DWORD iPenStyle,
3348  _In_ DWORD cWidth,
3349  _In_ const LOGBRUSH *plbrush,
3350  _In_ DWORD cStyle,
3351  _In_reads_opt_(cStyle) const DWORD *pstyle);
3352 
3353 HRGN
3354 WINAPI
3356  _In_opt_ const XFORM *lpx,
3357  _In_ DWORD nCount,
3358  _In_reads_bytes_(nCount) const RGNDATA *lpData);
3359 
3360 int
3361 WINAPI
3362 ExtEscape(
3363  _In_ HDC hdc,
3364  _In_ int iEscape,
3365  _In_ int cjInput,
3366  _In_reads_bytes_opt_(cjInput) LPCSTR lpInData,
3367  _In_ int cjOutput,
3368  _Out_writes_bytes_opt_(cjOutput) LPSTR lpOutData);
3369 
3371 int WINAPI ExtSelectClipRgn(_In_ HDC, _In_opt_ HRGN, _In_ int);
3372 
3373 BOOL
3374 WINAPI
3375 ExtTextOutA(
3376  _In_ HDC hdc,
3377  _In_ int x,
3378  _In_ int y,
3379  _In_ UINT options,
3380  _In_opt_ const RECT *lprect,
3381  _In_reads_opt_(c) LPCSTR lpString,
3382  _In_ UINT c,
3383  _In_reads_opt_(c) const INT *lpDx);
3384 
3385 BOOL
3386 WINAPI
3387 ExtTextOutW(
3388  _In_ HDC hdc,
3389  _In_ int x,
3390  _In_ int y,
3391  _In_ UINT options,
3392  _In_opt_ const RECT *lprect,
3393  _In_reads_opt_(c) LPCWSTR lpString,
3394  _In_ UINT c,
3395  _In_reads_opt_(c) const INT *lpDx);
3396 
3398 int WINAPI FillRect(HDC,LPCRECT,HBRUSH);
3399 int WINAPI FillRgn(_In_ HDC, _In_ HRGN, _In_ HBRUSH);
3403 BOOL WINAPI FrameRgn(_In_ HDC, _In_ HRGN, _In_ HBRUSH, _In_ int, _In_ int);
3404 BOOL WINAPI GdiAlphaBlend(_In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int, _In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int, _In_ BLENDFUNCTION);
3405 
3406 BOOL
3407 WINAPI
3408 GdiComment(
3409  _In_ HDC hdc,
3410  _In_ UINT nSize,
3411  _In_reads_bytes_(nSize) const BYTE *lpData);
3412 
3414 BOOL WINAPI GdiFlush(void);
3419 
3420 BOOL
3421 WINAPI
3423  _In_ HDC hdc,
3425  _In_ ULONG nVertex,
3426  _In_ PVOID pMesh,
3427  _In_ ULONG nCount,
3428  _In_ ULONG ulMode);
3429 
3430 BOOL WINAPI GdiTransparentBlt(_In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int, _In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT);
3432 
3433 #define GetKValue(cmyk) ((BYTE)(cmyk))
3434 #define GetYValue(cmyk) ((BYTE)((cmyk)>> 8))
3435 #define GetMValue(cmyk) ((BYTE)((cmyk)>>16))
3436 #define GetCValue(cmyk) ((BYTE)((cmyk)>>24))
3437 #define CMYK(c,m,y,k) ((COLORREF)((((BYTE)(k)|((WORD)((BYTE)(y))<<8))|(((DWORD)(BYTE)(m))<<16))|(((DWORD)(BYTE)(c))<<24)))
3438 
3441 
3442 LONG
3443 WINAPI
3445  _In_ HBITMAP hbit,
3446  _In_ LONG cb,
3447  _Out_writes_bytes_(cb) LPVOID lpvBits);
3448 
3451 int WINAPI GetBkMode(_In_ HDC);
3454 
3455