[BCRYPT] Sync with Wine Staging 1.7.55. CORE-10536
[reactos.git] / reactos / win32ss / include / ntgdityp.h
1 /*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS Win32 Graphical Subsystem (WIN32K)
4 * FILE: win32ss/include/ntgdityp.h
5 * PURPOSE: Win32 Shared GDI Types for NtGdi*
6 * PROGRAMMER: Alex Ionescu (alex@relsoft.net)
7 */
8
9 /* INCLUDES ******************************************************************/
10
11 #ifndef _NTGDITYP_
12 #define _NTGDITYP_
13
14 #include "ntwin32.h"
15
16 /* ENUMERATIONS **************************************************************/
17
18 typedef enum _ARCTYPE
19 {
20 GdiTypeArc,
21 GdiTypeArcTo,
22 GdiTypeChord,
23 GdiTypePie,
24 } ARCTYPE, *PARCTYPE;
25
26 typedef enum _PALFUNCTYPE
27 {
28 GdiPalAnimate,
29 GdiPalSetEntries,
30 GdiPalGetEntries,
31 GdiPalGetSystemEntries,
32 GdiPalSetColorTable,
33 GdiPalGetColorTable,
34 } PALFUNCTYPE, *PPALFUNCTYPE;
35
36 typedef enum _POLYFUNCTYPE
37 {
38 GdiPolyPolygon = 1,
39 GdiPolyPolyLine,
40 GdiPolyBezier,
41 GdiPolyLineTo,
42 GdiPolyBezierTo,
43 GdiPolyPolyRgn,
44 } POLYFUNCTYPE, *PPOLYFUNCTYPE;
45
46 typedef enum _GETDCDWORD
47 {
48 GdiGetJournal,
49 GdiGetRelAbs,
50 GdiGetBreakExtra,
51 GdiGerCharBreak,
52 GdiGetArcDirection,
53 GdiGetEMFRestorDc,
54 GdiGetFontLanguageInfo,
55 GdiGetIsMemDc,
56 GdiGetMapMode,
57 GdiGetTextCharExtra,
58 } GETDCDWORD, *PGETDCDWORD;
59
60 typedef enum _GETSETDCDWORD
61 {
62 GdiGetSetCopyCount = 2,
63 GdiGetSetTextAlign,
64 GdiGetSetRelAbs,
65 GdiGetSetTextCharExtra,
66 GdiGetSetSelectFont,
67 GdiGetSetMapperFlagsInternal,
68 GdiGetSetMapMode,
69 GdiGetSetArcDirection,
70 } GETSETDCDWORD, *PGETSETDCDWORD;
71
72 typedef enum _GETDCPOINT
73 {
74 GdiGetViewPortExt = 1,
75 GdiGetWindowExt,
76 GdiGetViewPortOrg,
77 GdiGetWindowOrg,
78 GdiGetAspectRatioFilter,
79 GdiGetDCOrg = 6,
80 } GETDCPOINT, *PGETDCPOINT;
81
82
83 typedef enum _GDIBATCHCMD
84 {
85 GdiBCPatBlt,
86 GdiBCPolyPatBlt,
87 GdiBCTextOut,
88 GdiBCExtTextOut,
89 GdiBCSetBrushOrg,
90 GdiBCExtSelClipRgn,
91 GdiBCSelObj,
92 GdiBCDelObj,
93 GdiBCDelRgn,
94 } GDIBATCHCMD, *PGDIBATCHCMD;
95
96 typedef enum _TRANSFORMTYPE
97 {
98 GdiDpToLp,
99 GdiLpToDp,
100 } TRANSFORMTYPE, *PTRANSFORMTYPE;
101
102 /* MATRIX flAccel flags */
103 enum
104 {
105 XFORM_SCALE = 1,
106 XFORM_UNITY = 2,
107 XFORM_Y_NEG = 4,
108 XFORM_FORMAT_LTOFX = 8,
109 XFORM_FORMAT_FXTOL = 0x10,
110 XFORM_FORMAT_LTOL = 0x20,
111 XFORM_NO_TRANSLATION = 0x40,
112
113 /* ReactOS specific */
114 XFORM_INTEGER = 0x1000,
115 };
116
117 typedef enum GDIObjType
118 {
119 GDIObjType_DEF_TYPE = 0x00,
120 GDIObjType_DC_TYPE = 0x01,
121 GDIObjType_UNUSED1_TYPE = 0x02,
122 GDIObjType_UNUSED2_TYPE = 0x03,
123 GDIObjType_RGN_TYPE = 0x04,
124 GDIObjType_SURF_TYPE = 0x05,
125 GDIObjType_CLIENTOBJ_TYPE = 0x06,
126 GDIObjType_PATH_TYPE = 0x07,
127 GDIObjType_PAL_TYPE = 0x08,
128 GDIObjType_ICMLCS_TYPE = 0x09,
129 GDIObjType_LFONT_TYPE = 0x0a,
130 GDIObjType_RFONT_TYPE = 0x0b,
131 GDIObjType_PFE_TYPE = 0x0c,
132 GDIObjType_PFT_TYPE = 0x0d,
133 GDIObjType_ICMCXF_TYPE = 0x0e,
134 GDIObjType_SPRITE_TYPE = 0x0f,
135 GDIObjType_BRUSH_TYPE = 0x10,
136 GDIObjType_UMPD_TYPE = 0x11,
137 GDIObjType_UNUSED4_TYPE = 0x12,
138 GDIObjType_SPACE_TYPE = 0x13,
139 GDIObjType_UNUSED5_TYPE = 0x14,
140 GDIObjType_META_TYPE = 0x15,
141 GDIObjType_EFSTATE_TYPE = 0x16,
142 GDIObjType_BMFD_TYPE = 0x17,
143 GDIObjType_VTFD_TYPE = 0x18,
144 GDIObjType_TTFD_TYPE = 0x19,
145 GDIObjType_RC_TYPE = 0x1a,
146 GDIObjType_TEMP_TYPE = 0x1b,
147 GDIObjType_DRVOBJ_TYPE = 0x1c,
148 GDIObjType_DCIOBJ_TYPE = 0x1d,
149 GDIObjType_SPOOL_TYPE = 0x1e,
150 GDIObjType_MAX_TYPE = 0x1e,
151 GDIObjTypeTotal = 0x1f,
152 } GDIOBJTYPE, *PGDIOBJTYPE;
153
154 typedef enum GDILoObjType
155 {
156 GDILoObjType_LO_BRUSH_TYPE = 0x100000,
157 GDILoObjType_LO_DC_TYPE = 0x10000,
158 GDILoObjType_LO_BITMAP_TYPE = 0x50000,
159 GDILoObjType_LO_PALETTE_TYPE = 0x80000,
160 GDILoObjType_LO_FONT_TYPE = 0xa0000,
161 GDILoObjType_LO_REGION_TYPE = 0x40000,
162 GDILoObjType_LO_ICMLCS_TYPE = 0x90000,
163 GDILoObjType_LO_CLIENTOBJ_TYPE = 0x60000,
164 GDILoObjType_LO_ALTDC_TYPE = 0x210000,
165 GDILoObjType_LO_PEN_TYPE = 0x300000,
166 GDILoObjType_LO_EXTPEN_TYPE = 0x500000,
167 GDILoObjType_LO_DIBSECTION_TYPE = 0x250000,
168 GDILoObjType_LO_METAFILE16_TYPE = 0x260000,
169 GDILoObjType_LO_METAFILE_TYPE = 0x460000,
170 GDILoObjType_LO_METADC16_TYPE = 0x660000
171 } GDILOOBJTYPE, *PGDILOOBJTYPE;
172
173 #define GdiWorldSpaceToPageSpace 0x203
174 #define GdiWorldSpaceToDeviceSpace 0x204
175 #define GdiPageSpaceToDeviceSpace 0x304
176 #define GdiDeviceSpaceToWorldSpace 0x402
177
178 /* FIXME: Unknown */
179 typedef DWORD FULLSCREENCONTROL;
180 typedef DWORD LFTYPE;
181
182 /* Public LAST_STOCK = 19, plus 2 more internal entries */
183 #define NB_STOCK_OBJECTS 22
184
185 /* extra stock object: default 1x1 bitmap for memory DCs */
186 #define DEFAULT_BITMAP (21)
187
188
189 /* DEFINES *******************************************************************/
190
191 #define GDIBATCHBUFSIZE 0x136*4
192 #define GDI_BATCH_LIMIT 20
193
194 // NtGdiGetCharWidthW Flags
195 #define GCW_WIN32 0x0001
196 #define GCW_NOFLOAT 0x0002
197 #define GCW_INDICES 0x0008
198
199 // NtGdiGetCharABCWidthW Flags
200 #define GCABCW_NOFLOAT 0x0001
201 #define GCABCW_INDICES 0x0002
202
203 // NtGdiGetTextExtent* flags (reactos own)
204 #define GTEF_INDICES 0x1
205
206 /* CAPS1 support */
207 #define CAPS1 94
208 //#define C1_TRANSPARENT 0x0001
209 #define TC_TT_ABLE 0x0002
210 #define C1_TT_CR_ANY 0x0004
211 #define C1_EMF_COMPLIANT 0x0008
212 #define C1_DIBENGINE 0x0010
213 #define C1_GAMMA_RAMP 0x0040
214 #define C1_REINIT_ABLE 0x0080
215 #define C1_GLYPH_INDEX 0x0100
216 #define C1_BIT_PACKED 0x0200
217 #define C1_BYTE_PACKED 0x0400
218 #define C1_COLORCURSOR 0x0800
219 #define C1_CMYK_ABLE 0x1000
220 #define C1_SLOW_CARD 0x2000
221 #define C1_MIRRORING 0X4000
222
223 // NtGdiGetRandomRgn iCodes
224 #define CLIPRGN 1 // GetClipRgn
225 #define METARGN 2 // GetMetaRgn
226 #define APIRGN 3
227
228 /* New flag for fdwInit in CreateDIBitmap. See support.microsoft.com/kb/kbview/108497*/
229 #define CBM_CREATDIB 2
230
231 /* New color use parameter. See support.microsoft.com/kb/kbview/108497 */
232 #define DIB_PAL_INDICES 2
233
234
235 /* TYPES *********************************************************************/
236
237 typedef PVOID KERNEL_PVOID;
238 typedef PVOID PUMDHPDEV;
239 typedef D3DNTHAL_CONTEXTCREATEDATA D3DNTHAL_CONTEXTCREATEI;
240 #if !defined(_WINDDI_)
241 typedef LONG FIX;
242 #endif
243
244 typedef struct _CHWIDTHINFO // Based on FD_DEVICEMETRICS
245 {
246 LONG lMinA;
247 LONG lMinC;
248 LONG lMinD;
249 } CHWIDTHINFO, *PCHWIDTHINFO;
250
251 typedef struct _UNIVERSAL_FONT_ID
252 {
253 ULONG CheckSum;
254 ULONG Index;
255 } UNIVERSAL_FONT_ID, *PUNIVERSAL_FONT_ID;
256
257 #define RI_TECH_BITMAP 1
258 #define RI_TECH_FIXED 2
259 #define RI_TECH_SCALABLE 3
260
261 typedef struct _REALIZATION_INFO
262 {
263 DWORD iTechnology;
264 DWORD iUniq;
265 DWORD dwUnknown;
266 } REALIZATION_INFO, *PREALIZATION_INFO;
267
268 typedef struct _WIDTHDATA
269 {
270 USHORT sOverhang;
271 USHORT sHeight;
272 USHORT sCharInc;
273 USHORT sBreak;
274 BYTE jFirst;
275 BYTE jLast;
276 BYTE jBreak;
277 BYTE jDefault;
278 USHORT sDBCSInc;
279 USHORT sDefaultInc;
280 } WIDTHDATA, *PWIDTHDATA;
281
282 typedef struct _DEVCAPS // Very similar to GDIINFO
283 {
284 ULONG ulVersion;
285 ULONG ulTechnology;
286 ULONG ulHorzSizeM;
287 ULONG ulVertSizeM;
288 ULONG ulHorzSize;
289 ULONG ulVertSize;
290 ULONG ulHorzRes;
291 ULONG ulVertRes;
292 ULONG ulBitsPixel;
293 ULONG ulPlanes;
294 ULONG ulNumPens;
295 ULONG ulNumFonts;
296 ULONG ulNumColors;
297 ULONG ulRasterCaps;
298 ULONG ulAspectX;
299 ULONG ulAspectY;
300 ULONG ulAspectXY;
301 ULONG ulLogPixelsX;
302 ULONG ulLogPixelsY;
303 ULONG ulSizePalette;
304 ULONG ulColorRes;
305 ULONG ulPhysicalWidth;
306 ULONG ulPhysicalHeight;
307 ULONG ulPhysicalOffsetX;
308 ULONG ulPhysicalOffsetY;
309 ULONG ulTextCaps;
310 ULONG ulVRefresh;
311 ULONG ulDesktopHorzRes;
312 ULONG ulDesktopVertRes;
313 ULONG ulBltAlignment;
314 ULONG ulPanningHorzRes;
315 ULONG ulPanningVertRes;
316 ULONG xPanningAlignment;
317 ULONG yPanningAlignment;
318 ULONG ulShadeBlend;
319 ULONG ulColorMgmtCaps;
320 } DEVCAPS, *PDEVCAPS;
321
322 /* Gdi Handle Cache Types and Structures */
323 #define GDI_CACHED_HANDLE_TYPES 4
324 #define CACHE_BRUSH_ENTRIES 10
325 #define CACHE_PEN_ENTRIES 8
326 #define CACHE_REGION_ENTRIES 8
327 #define CACHE_LFONT_ENTRIES 1
328
329 typedef enum _HANDLECACHETYPE
330 {
331 hctBrushHandle,
332 hctPenHandle,
333 hctRegionHandle,
334 hctLFontHandle
335 } HANDLECACHETYPE,*PHANDLECACHETYPE;
336
337 typedef struct _GDIHANDLECACHE
338 {
339 ULONG ulLock;
340 ULONG ulNumHandles[GDI_CACHED_HANDLE_TYPES];
341 HANDLE Handle[CACHE_BRUSH_ENTRIES+CACHE_PEN_ENTRIES+CACHE_REGION_ENTRIES+CACHE_LFONT_ENTRIES];
342 } GDIHANDLECACHE, *PGDIHANDLECACHE;
343
344 /* Font Structures */
345 typedef struct _TMDIFF
346 {
347 ULONG cjotma;
348 CHAR chFirst;
349 CHAR chLast;
350 CHAR ChDefault;
351 CHAR ChBreak;
352 } TMDIFF, *PTMDIFF;
353
354 typedef struct _TMW_INTERNAL
355 {
356 TEXTMETRICW TextMetric;
357 TMDIFF Diff;
358 } TMW_INTERNAL, *PTMW_INTERNAL;
359
360 typedef struct _NTMW_INTERNAL
361 {
362 TMDIFF tmd;
363 NEWTEXTMETRICEXW ntmw;
364 } NTMW_INTERNAL, *PNTMW_INTERNAL;
365
366 typedef struct _ENUMFONTDATAW
367 {
368 ULONG cbSize;
369 ULONG ulNtmwiOffset;
370 DWORD dwFontType;
371 ENUMLOGFONTEXDVW elfexdv; /* variable size! */
372 /* NTMW_INTERNAL ntmwi; use ulNtwmOffset */
373 } ENUMFONTDATAW, *PENUMFONTDATAW;
374
375 /* Number Representation */
376 typedef struct _EFLOAT_S
377 {
378 LONG lMant;
379 LONG lExp;
380 } EFLOAT_S;
381
382 /* XFORM Structures */
383 typedef struct _MATRIX_S
384 {
385 EFLOAT_S efM11;
386 EFLOAT_S efM12;
387 EFLOAT_S efM21;
388 EFLOAT_S efM22;
389 EFLOAT_S efDx;
390 EFLOAT_S efDy;
391 FIX fxDx;
392 FIX fxDy;
393 FLONG flAccel;
394 } MATRIX_S;
395
396 typedef struct _MATRIX
397 {
398 FLOATOBJ efM11;
399 FLOATOBJ efM12;
400 FLOATOBJ efM21;
401 FLOATOBJ efM22;
402 FLOATOBJ efDx;
403 FLOATOBJ efDy;
404 FIX fxDx;
405 FIX fxDy;
406 FLONG flAccel;
407 } MATRIX, *PMATRIX;
408
409 /* Gdi XForm storage union */
410 typedef union
411 {
412 FLOAT f;
413 ULONG l;
414 } gxf_long;
415
416 #define CFONT_REALIZATION 0x0080
417
418 typedef struct _CFONT
419 {
420 struct _CFONT *pcfNext;
421 HFONT hf;
422 ULONG cRef; // Count of all pointers to this CFONT.
423 FLONG fl;
424 LONG lHeight; // Precomputed logical height.
425 HDC hdc; // HDC of realization. 0 for display.
426 EFLOAT_S efM11; // efM11 of WtoD of DC of realization
427 EFLOAT_S efM22; // efM22 of WtoD of DC of realization
428 EFLOAT_S efDtoWBaseline; // Precomputed back transform. (FXtoL)
429 EFLOAT_S efDtoWAscent; // Precomputed back transform. (FXtoL)
430 WIDTHDATA wd;
431 FLONG flInfo;
432 USHORT sWidth[256]; // Widths in pels.
433 ULONG ulAveWidth; // bogus average used by USER
434 TMW_INTERNAL tmw; // cached metrics
435 DWORD iTechnology;
436 DWORD iUniq;
437 DWORD dwUnknown;
438 DWORD dwCFCount;
439 } CFONT, *PCFONT;
440
441 /* GDI Batch structures. */
442 typedef struct _GDIBATCHHDR
443 {
444 SHORT Size;
445 SHORT Cmd;
446 } GDIBATCHHDR, *PGDIBATCHHDR;
447
448 typedef struct _GDIBSPATBLT
449 {
450 GDIBATCHHDR gbHdr;
451 int nXLeft;
452 int nYLeft;
453 int nWidth;
454 int nHeight;
455 HANDLE hbrush;
456 DWORD dwRop;
457 COLORREF crForegroundClr;
458 COLORREF crBackgroundClr;
459 COLORREF crBrushClr;
460 INT IcmBrushColor;
461 POINTL ptlViewportOrg;
462 ULONG ulForegroundClr;
463 ULONG ulBackgroundClr;
464 ULONG ulBrushClr;
465 } GDIBSPATBLT, *PGDIBSPATBLT;
466
467 /* FIXME: this should go to some "public" GDI32 header */
468 typedef struct _PATRECT
469 {
470 RECT r;
471 HBRUSH hBrush;
472 } PATRECT, * PPATRECT;
473
474 typedef struct _GDIBSPPATBLT
475 {
476 GDIBATCHHDR gbHdr;
477 DWORD rop4;
478 DWORD Mode;
479 DWORD Count;
480 COLORREF crForegroundClr;
481 COLORREF crBackgroundClr;
482 COLORREF crBrushClr;
483 ULONG ulForegroundClr;
484 ULONG ulBackgroundClr;
485 ULONG ulBrushClr;
486 POINTL ptlViewportOrg;
487 PATRECT pRect[1]; // POLYPATBLT
488 } GDIBSPPATBLT, *PGDIBSPPATBLT;
489
490 typedef struct _GDIBSTEXTOUT
491 {
492 GDIBATCHHDR gbHdr;
493 COLORREF crForegroundClr;
494 COLORREF crBackgroundClr;
495 LONG lmBkMode;
496 ULONG ulForegroundClr;
497 ULONG ulBackgroundClr;
498 int x;
499 int y;
500 UINT Options;
501 RECT Rect;
502 DWORD iCS_CP;
503 UINT cbCount;
504 UINT Size;
505 HANDLE hlfntNew;
506 FLONG flTextAlign;
507 POINTL ptlViewportOrg;
508 WCHAR String[2];
509 } GDIBSTEXTOUT, *PGDIBSTEXTOUT;
510
511 typedef struct _GDIBSEXTTEXTOUT
512 {
513 GDIBATCHHDR gbHdr;
514 UINT Count;
515 UINT Options;
516 RECT Rect;
517 POINTL ptlViewportOrg;
518 ULONG ulBackgroundClr;
519 } GDIBSEXTTEXTOUT, *PGDIBSEXTTEXTOUT;
520
521 typedef struct _GDIBSSETBRHORG
522 {
523 GDIBATCHHDR gbHdr;
524 POINTL ptlBrushOrigin;
525 } GDIBSSETBRHORG, *PGDIBSSETBRHORG;
526
527 typedef struct _GDIBSEXTSELCLPRGN
528 {
529 GDIBATCHHDR gbHdr;
530 int fnMode;
531 RECTL rcl;
532 } GDIBSEXTSELCLPRGN, *PGDIBSEXTSELCLPRGN;
533
534 /* Use with GdiBCSelObj, GdiBCDelObj and GdiBCDelRgn. */
535 typedef struct _GDIBSOBJECT
536 {
537 GDIBATCHHDR gbHdr;
538 HGDIOBJ hgdiobj;
539 } GDIBSOBJECT, *PGDIBSOBJECT;
540
541 /* Declaration missing in ddk/winddi.h */
542 typedef VOID (APIENTRY *PFN_DrvMovePanning)(LONG, LONG, FLONG);
543
544 /* Most of these are defined in ddk/winddi.h */
545 typedef struct _DRIVER_FUNCTIONS
546 {
547 PFN_DrvEnablePDEV EnablePDEV;
548 PFN_DrvCompletePDEV CompletePDEV;
549 PFN_DrvDisablePDEV DisablePDEV;
550 PFN_DrvEnableSurface EnableSurface;
551 PFN_DrvDisableSurface DisableSurface;
552 PFN_DrvAssertMode AssertMode;
553 PFN_DrvOffset Offset;
554 PFN_DrvResetDevice ResetPDEV;
555 PFN_DrvDisableDriver DisableDriver;
556 PVOID Unknown1;
557 PFN_DrvCreateDeviceBitmap CreateDeviceBitmap;
558 PFN_DrvDeleteDeviceBitmap DeleteDeviceBitmap;
559 PFN_DrvRealizeBrush RealizeBrush;
560 PFN_DrvDitherColor DitherColor;
561 PFN_DrvStrokePath StrokePath;
562 PFN_DrvFillPath FillPath;
563 PFN_DrvStrokeAndFillPath StrokeAndFillPath;
564 PFN_DrvPaint Paint;
565 PFN_DrvBitBlt BitBlt;
566 PFN_DrvCopyBits CopyBits;
567 PFN_DrvStretchBlt StretchBlt;
568 PVOID Unknown2;
569 PFN_DrvSetPalette SetPalette;
570 PFN_DrvTextOut TextOut;
571 PFN_DrvEscape Escape;
572 PFN_DrvDrawEscape DrawEscape;
573 PFN_DrvQueryFont QueryFont;
574 PFN_DrvQueryFontTree QueryFontTree;
575 PFN_DrvQueryFontData QueryFontData;
576 PFN_DrvSetPointerShape SetPointerShape;
577 PFN_DrvMovePointer MovePointer;
578 PFN_DrvLineTo LineTo;
579 PFN_DrvSendPage SendPage;
580 PFN_DrvStartPage StartPage;
581 PFN_DrvEndDoc EndDoc;
582 PFN_DrvStartDoc StartDoc;
583 PVOID Unknown3;
584 PFN_DrvGetGlyphMode GetGlyphMode;
585 PFN_DrvSynchronize Synchronize;
586 PVOID Unknown4;
587 PFN_DrvSaveScreenBits SaveScreenBits;
588 PFN_DrvGetModes GetModes;
589 PFN_DrvFree Free;
590 PFN_DrvDestroyFont DestroyFont;
591 PFN_DrvQueryFontCaps QueryFontCaps;
592 PFN_DrvLoadFontFile LoadFontFile;
593 PFN_DrvUnloadFontFile UnloadFontFile;
594 PFN_DrvFontManagement FontManagement;
595 PFN_DrvQueryTrueTypeTable QueryTrueTypeTable;
596 PFN_DrvQueryTrueTypeOutline QueryTrueTypeOutline;
597 PFN_DrvGetTrueTypeFile GetTrueTypeFile;
598 PFN_DrvQueryFontFile QueryFontFile;
599 PFN_DrvMovePanning MovePanning;
600 PFN_DrvQueryAdvanceWidths QueryAdvanceWidths;
601 PFN_DrvSetPixelFormat SetPixelFormat;
602 PFN_DrvDescribePixelFormat DescribePixelFormat;
603 PFN_DrvSwapBuffers SwapBuffers;
604 PFN_DrvStartBanding StartBanding;
605 PFN_DrvNextBand NextBand;
606 PFN_DrvGetDirectDrawInfo GetDirectDrawInfo;
607 PFN_DrvEnableDirectDraw EnableDirectDraw;
608 PFN_DrvDisableDirectDraw DisableDirectDraw;
609 PFN_DrvQuerySpoolType QuerySpoolType;
610 PVOID Unknown5;
611 PFN_DrvIcmCreateColorTransform IcmCreateColorTransform;
612 PFN_DrvIcmDeleteColorTransform IcmDeleteColorTransform;
613 PFN_DrvIcmCheckBitmapBits IcmCheckBitmapBits;
614 PFN_DrvIcmSetDeviceGammaRamp IcmSetDeviceGammaRamp;
615 PFN_DrvGradientFill GradientFill;
616 PFN_DrvStretchBltROP StretchBltROP;
617 PFN_DrvPlgBlt PlgBlt;
618 PFN_DrvAlphaBlend AlphaBlend;
619 PVOID SynthesizeFont;
620 PVOID GetSynthesizedFontFiles;
621 PFN_DrvTransparentBlt TransparentBlt;
622 PFN_DrvQueryPerBandInfo QueryPerBandInfo;
623 PFN_DrvQueryDeviceSupport QueryDeviceSupport;
624 PVOID Reserved1;
625 PVOID Reserved2;
626 PVOID Reserved3;
627 PVOID Reserved4;
628 PVOID Reserved5;
629 PVOID Reserved6;
630 PVOID Reserved7;
631 PVOID Reserved8;
632 PFN_DrvDeriveSurface DeriveSurface;
633 PFN_DrvQueryGlyphAttrs QueryGlyphAttrs;
634 PFN_DrvNotify Notify;
635 PFN_DrvSynchronizeSurface SynchronizeSurface;
636 PFN_DrvResetDevice ResetDevice;
637 PVOID Reserved9;
638 PVOID Reserved10;
639 PVOID Reserved11; /* 92 */
640
641 /* ReactOS specify */
642 PFN_DrvEnableDriver EnableDriver; //ReactOS Extra
643 } DRIVER_FUNCTIONS, *PDRIVER_FUNCTIONS;
644
645 #define ASSERT_PFN(pfn) \
646 C_ASSERT(FIELD_OFFSET(DRIVER_FUNCTIONS, pfn) == sizeof(PVOID) * INDEX_Drv##pfn)
647
648 ASSERT_PFN(EnablePDEV);
649 ASSERT_PFN(CompletePDEV);
650 ASSERT_PFN(DisablePDEV);
651 ASSERT_PFN(EnableSurface);
652 ASSERT_PFN(DisableSurface);
653 ASSERT_PFN(AssertMode);
654 ASSERT_PFN(Offset);
655 ASSERT_PFN(ResetPDEV);
656 ASSERT_PFN(DisableDriver);
657 ASSERT_PFN(CreateDeviceBitmap);
658 ASSERT_PFN(DeleteDeviceBitmap);
659 ASSERT_PFN(RealizeBrush);
660 ASSERT_PFN(DitherColor);
661 ASSERT_PFN(StrokePath);
662 ASSERT_PFN(FillPath);
663 ASSERT_PFN(StrokeAndFillPath);
664 ASSERT_PFN(Paint);
665 ASSERT_PFN(BitBlt);
666 ASSERT_PFN(CopyBits);
667 ASSERT_PFN(StretchBlt);
668 ASSERT_PFN(SetPalette);
669 ASSERT_PFN(TextOut);
670 ASSERT_PFN(Escape);
671 ASSERT_PFN(DrawEscape);
672 ASSERT_PFN(QueryFont);
673 ASSERT_PFN(QueryFontTree);
674 ASSERT_PFN(QueryFontData);
675 ASSERT_PFN(SetPointerShape);
676 ASSERT_PFN(MovePointer);
677 ASSERT_PFN(LineTo);
678 ASSERT_PFN(SendPage);
679 ASSERT_PFN(StartPage);
680 ASSERT_PFN(EndDoc);
681 ASSERT_PFN(StartDoc);
682 ASSERT_PFN(GetGlyphMode);
683 ASSERT_PFN(Synchronize);
684 ASSERT_PFN(SaveScreenBits);
685 ASSERT_PFN(GetModes);
686 ASSERT_PFN(Free);
687 ASSERT_PFN(DestroyFont);
688 ASSERT_PFN(QueryFontCaps);
689 ASSERT_PFN(LoadFontFile);
690 ASSERT_PFN(UnloadFontFile);
691 ASSERT_PFN(FontManagement);
692 ASSERT_PFN(QueryTrueTypeTable);
693 ASSERT_PFN(QueryTrueTypeOutline);
694 ASSERT_PFN(GetTrueTypeFile);
695 ASSERT_PFN(QueryFontFile);
696 ASSERT_PFN(MovePanning);
697 ASSERT_PFN(QueryAdvanceWidths);
698 ASSERT_PFN(SetPixelFormat);
699 ASSERT_PFN(DescribePixelFormat);
700 ASSERT_PFN(SwapBuffers);
701 ASSERT_PFN(StartBanding);
702 ASSERT_PFN(NextBand);
703 ASSERT_PFN(GetDirectDrawInfo);
704 ASSERT_PFN(EnableDirectDraw);
705 ASSERT_PFN(DisableDirectDraw);
706 ASSERT_PFN(QuerySpoolType);
707 ASSERT_PFN(IcmCreateColorTransform);
708 ASSERT_PFN(IcmDeleteColorTransform);
709 ASSERT_PFN(IcmCheckBitmapBits);
710 ASSERT_PFN(IcmSetDeviceGammaRamp);
711 ASSERT_PFN(GradientFill);
712 ASSERT_PFN(StretchBltROP);
713 ASSERT_PFN(PlgBlt);
714 ASSERT_PFN(AlphaBlend);
715 ASSERT_PFN(SynthesizeFont);
716 ASSERT_PFN(GetSynthesizedFontFiles);
717 ASSERT_PFN(TransparentBlt);
718 ASSERT_PFN(QueryPerBandInfo);
719 ASSERT_PFN(QueryDeviceSupport);
720 ASSERT_PFN(Reserved1);
721 ASSERT_PFN(Reserved2);
722 ASSERT_PFN(Reserved3);
723 ASSERT_PFN(Reserved4);
724 ASSERT_PFN(Reserved5);
725 ASSERT_PFN(Reserved6);
726 ASSERT_PFN(Reserved7);
727 ASSERT_PFN(Reserved8);
728 ASSERT_PFN(DeriveSurface);
729 ASSERT_PFN(QueryGlyphAttrs);
730 ASSERT_PFN(Notify);
731 ASSERT_PFN(SynchronizeSurface);
732 ASSERT_PFN(ResetDevice);
733
734 #endif