Microsoft Windows CE 3.0  

DDI Functions

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

All Windows CE–based display drivers must implement the DDI functions listed in the following table. However, only DrvEnableDriver must be exported from the display driver's DLL, which means that only DrvEnableDrivermust bear this exact name. You can customize the names for the other functions because they are exposed to the GDI through function pointers that are 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 that is exposed by the driver, which returns pointers to the other DDI functions to the GDI.
DrvEnablePDEV Returns a PDEVstructure, which is 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 that is 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 DrvDrawEscapefunction.
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 that are 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 that are specified by the GDI.
DrvRealizeColor Maps an RGB color onto the closest available color that is 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 that is needed to start printing a document.
DrvStartPage Sends any control information that is 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.


 Last updated on Tuesday, July 13, 2004

© 2004 Microsoft Corporation. All rights reserved.