DRVENABLEDATA
This structure contains function pointers to the display driver entry points.
typedef struct tagDrvEnableData
{
// Version control of this structure is performed by incrementing
// DDI_DRIVER_VERSION whenever alterations are made.
DHPDEV (* DrvEnablePDEV )(
DEVMODEW* pdm,
LPWSTR pwszLogAddress,
ULONG cPat,
HSURF* phsurfPatterns,
ULONG cjCaps,
ULONG* pdevcaps,
ULONG cjDevInfo,
DEVINFO* pdi,
HDEV hdev,
LPWSTR pwszDeviceName,
HANDLE hDriver
);
VOID (* DrvDisablePDEV )(
DHPDEV dhpdev
);
HSURF (* DrvEnableSurface )(
DHPDEV dhpdev
);
VOID (* DrvDisableSurface )(
DHPDEV dhpdev
);
HBITMAP (* DrvCreateDeviceBitmap )(
DHPDEV dhpdev,
SIZEL sizl,
ULONG iFormat
);
VOID (* DrvDeleteDeviceBitmap )(
DHSURF dhsurf
);
BOOL (* DrvRealizeBrush )(
BRUSHOBJ* pbo,
SURFOBJ* psoTarget,
SURFOBJ* psoPattern,
SURFOBJ* psoMask,
XLATEOBJ* pxlo,
ULONG iHatch
);
BOOL (* DrvStrokePath )(
SURFOBJ* pso,
PATHOBJ* ppo,
CLIPOBJ* pco,
XFORMOBJ* pxo,
BRUSHOBJ* pbo,
POINTL* pptlBrushOrg,
LINEATTRS* plineattrs,
MIX mix
);
BOOL (* DrvFillPath )(
SURFOBJ* pso,
PATHOBJ* ppo,
CLIPOBJ* pco,
BRUSHOBJ* pbo,
POINTL* pptlBrushOrg,
MIX mix,
FLONG flOptions
);
BOOL (* DrvPaint )(
SURFOBJ* pso,
CLIPOBJ* pco,
BRUSHOBJ* pbo,
POINTL* pptlBrushOrg,
MIX mix
);
BOOL (* DrvBitBlt )(
SURFOBJ* psoTrg,
SURFOBJ* psoSrc,
SURFOBJ* psoMask,
CLIPOBJ* pco,
XLATEOBJ* pxlo,
RECTL* prclTrg,
POINTL* pptlSrc,
POINTL* pptlMask,
BRUSHOBJ* pbo,
POINTL* pptlBrush,
ROP4 rop4
);
BOOL (* DrvCopyBits )(
SURFOBJ* psoDest,
SURFOBJ* psoSrc,
CLIPOBJ* pco,
XLATEOBJ* pxlo,
RECTL* prclDest,
POINTL* pptlSrc
);
BOOL (* DrvAnyBlt )(
SURFOBJ* psoDest,
SURFOBJ* psoSrc,
SURFOBJ* psoMask,
CLIPOBJ* pco,
XLATEOBJ* pxlo,
POINTL* pptlHTOrg,
RECTL* prclDest,
RECTL* prclSrc,
POINTL* pptlMask,
BRUSHOBJ* pbo,
POINTL* pptlBrush,
ROP4 rop4,
ULONG iMode,
ULONG bltFlags
);
BOOL (* DrvTransparentBlt )(
SURFOBJ* psoDest,
SURFOBJ* psoSrc,
CLIPOBJ* pco,
XLATEOBJ* pxlo,
RECTL* prclDest,
RECTL* prclSrc,
ULONG TransColor
);
BOOL (* DrvSetPalette )(
DHPDEV dhpdev,
PALOBJ* ppalo,
FLONG fl,
ULONG iStart,
ULONG cColors
);
ULONG (* DrvSetPointerShape)(
SURFOBJ* pso,
SURFOBJ* psoMask,
SURFOBJ* psoColor,
XLATEOBJ* pxlo,
LONG xHot,
LONG yHot,
LONG x,
LONG y,
RECTL* prcl,
FLONG fl
);
VOID (* DrvMovePointer)(
SURFOBJ* pso,
LONG x,
LONG y,
RECTL* prcl
);
ULONG (* DrvGetModes)(
HANDLE hDriver,
ULONG cjSize,
DEVMODEW* pdm
);
ULONG (* DrvRealizeColor )(
USHORT iDstType,
ULONG cEntries,
ULONG* pPalette,
ULONG rgbColor
);
ULONG* (* DrvGetMasks )(
DHPDEV dhpdev
);
ULONG (* DrvUnrealizeColor )(
USHORT iSrcType,
ULONG cEntries,
ULONG* pPalette,
ULONG iRealizedColor
);
BOOL (* DrvContrastControl)(
DHPDEV dhpdev,
ULONG cmd,
ULONG* pValue
);
VOID (* DrvPowerHandler)(
DHPDEV dhpdev,
BOOL bOff
);
BOOL (* DrvEndDoc )(
IN SURFOBJ* pso,
IN FLONG fl
);
BOOL (* DrvStartDoc )(
IN SURFOBJ* pso,
IN PWSTR pwszDocName,
IN DWORD dwJobId
);
BOOL (* DrvStartPage )(
IN SURFOBJ* pso
);
ULONG (* DrvEscape )(
IN DHPDEV dhpdev,
IN SURFOBJ* pso,
IN ULONG iEsc,
IN ULONG cjIn,
IN PVOID pvIn,
OUT ULONG cjOut,
OUT PVOID pvOut
);
BOOL (* DrvGradientFill)(
SURFOBJ* pso,
CLIPOBJ* pco,
XLATEOBJ* pxlo,
TRIVERTEX* pVertex,
ULONG nVertex,
PVOID pMesh,
ULONG nMesh,
RECTL* prclExtents,
POINTL* pptlDitherOrg,
ULONG ulMode
);
} DRVENABLEDATA,* PDRVENABLEDATA;
Members
- DrvEnablePDEV
Pointer to a function that returns a PDEV structure, which is a logical representation of a physical display device, to the GDI. - DrvDisablePDEV
Pointer to a function that notifies the driver that the GDI no longer needs a particular display device. - DrvEnableSurface
Pointer to a function that creates a drawing surface and associates it with a PDEV. - DrvDisableSurface
Pointer to a function that notifies the driver that the GDI no longer needs a particular drawing surface. - DrvCreateDeviceBitmap
Pointer to a function that creates and manages bitmaps. - DrvDeleteDeviceBitmap
Pointer to a function that deletes a device bitmap. - DrvRealizeBrush
Pointer to a function that creates a brush with parameters that are specified by the GDI. - DrvStrokePath
Pointer to a function that renders a drawing path. - DrvFillPath
Pointer to a function that fills a drawing path with a brush. - DrvPaint
Pointer to a function that paints a specified region with a brush. - DrvBitBlt
Pointer to a function that performs general bit-block transfer, with clipping and masking. - DrvCopyBits
Pointer to a function that sends a GDI-created print band to a printer driver. - DrvAnyBlt
Pointer to a function that performs bit-block transfer, with stretching or transparency. - DrvTransparentBlt
Pointer to a function that performs bit-block transfer, with transparency. - DrvSetPalette
Pointer to a function that sets the display device's palette. - DrvSetPointerShape
Pointer to a function that sets the pointer to a new shape and updates the display. - DrvMovePointer
Pointer to a function that moves the pointer with a guarantee that the GDI will not interfere with the operation. - DrvGetModes
Pointer to a function that lists the display modes that are supported by the display device. - DrvRealizeColor
Pointer to a function that maps an RGB color onto the closest available color that is supported by the device. - DrvGetMasks
Pointer to a function that gets the color masks for the display device's current mode. - DrvUnrealizeColor
Pointer to a function that maps a color in the display device's format onto an RGB value. - DrvContrastControl
Pointer to a function that enables software adjustment of the display hardware's contrast. - DrvPowerHandler
Pointer to a function that handles POWER_UP and POWER_DOWN notifications. - DrvEndDoc
Pointer to a function that sends any control information that is needed to finish printing a document. - DrvStartDoc
Pointer to a function that sends any control information that is needed to start printing a document. - DrvStartPage
Pointer to a function that sends any control information that is needed to start printing a new page. - DrvEscape
Pointer to a function that retrieves information from a device that is not available in a device-independent DDI. This function is the same as Windows-based desktop platforms, except that Windows CE does not support the DrvDrawEscape function. - DrvGradientFill
Pointer to a function that fills a rectangular region with a background color that is interpolated from color values specified at the vertices.
Requirements
OS Versions: Windows CE 1.0 and later.
Header: Winddi.h.
See Also
Display Drivers | DDI Functions | DrvEnableDriver | GPEEnableDriver
Last updated on Tuesday, May 18, 2004
© 1992-2003 Microsoft Corporation. All rights reserved.