DDI Functions

All Windows CE–based display drivers must implement the DDI functions listed here. However, only DrvEnableDriver must be exported from the display driver’s DLL, which means that only DrvEnableDriver must bear this exact name. You can customize the names for the other functions because they are exposed to the GDI through function pointers returned by DrvEnableDriver. Of course, no matter what names you give these functions, they must follow the prototypes in the Winddi.h header file.

Function
Description
DrvAnyBlt Bit block transfer, with stretching or transparency.
DrvBitBlt General bit block transfer, with clipping and masking.
DrvContrastControl Enables software adjustment of the display hardware’s contrast.
DrvCopyBits Sends a GDI-created print band to a printer driver.
DrvCreateDeviceBitmap Creates and manages bitmaps.
DrvDeleteDeviceBitmap Deletes a device bitmap.
DrvDisableDriver Notifies the display driver that the GDI no longer needs it and is ready to unload the driver.
DrvDisablePDEV Notifies the driver that the GDI no longer needs a particular display device.
DrvDisableSurface Notifies the driver that the GDI no longer needs a particular drawing surface.
DrvEnableDriver The initial entry point exposed by the driver, which returns pointers to the other DDI functions to the GDI.
DrvEnablePDEV Returns a PDEV structure, a logical representation of a physical display device, to the GDI.
DrvEnableSurface Creates a drawing surface and associates it with a PDEV.
DrvEndDoc Sends any control information needed to finish printing a document.
DrvEscape Used for retrieving information from a device that is not available in a device-independent DDI. This function is the same as in Windows NT, except that Windows CE does not support the DrvDrawEscape function.
DrvFillPath Fills a drawing path with a brush.
DrvGetMasks Gets the color masks for the display device’s current mode.
DrvGetModes Lists the display modes supported by the display device
DrvMovePointer Moves the pointer with a guarantee that the GDI will not interfere with the operation.
DrvPaint Paints a specified region with a brush.
DrvPowerHandler Called to handle POWER_UP and POWER_DOWN notifications.
DrvQueryFont Gets font metric information.
DrvRealizeBrush Creates a brush with parameters specified by the GDI.
DrvRealizeColor Maps an RGB color onto the closest available color supported by the device.
DrvSetPalette Sets the display device’s palette.
DrvSetPointerShape Sets the pointer to a new shape and updates the display.
DrvStartDoc Sends any control information needed to start printing a document.
DrvStartPage Sends any control information needed to start printing a new page.
DrvStrokePath Renders a drawing path.
DrvTransparentBlt Bit block transfer, with transparency.
DrvUnrealizeColor Maps a color in the display device’s format onto an RGB value.