Required Graphics Driver Functions

All graphics drivers must support the entry points that GDI calls to enable and disable the driver, the PDEV, and the surface associated with each PDEV. The following table lists the needed functions in the order in which they are typically called.

Entry Point

Description

DrvEnableDriver

As the initial driver entry point, provides GDI with the driver version number and entry points of optional functions supported.

DrvGetModes

Lists the modes supported by a specified video hardware device. (This function is required of display drivers only.)

DrvEnablePDEV

Enables a PDEV.

DrvCompletePDEV

Informs the driver upon completion of device installation.

DrvEnableSurface

Creates a surface for a specified hardware device.

DrvDisableSurface

Informs the driver that the surface created for the current device is no longer needed.

DrvDisablePDEV

When the hardware is no longer needed, frees memory and resources used by the device and any surface created, but not yet deleted.

DrvDisableDriver

Frees all allocated resources for the driver and returns the device to its state when initially loaded.

DrvAssertMode

Resets the video mode for a specified hardware device. (This function is required of display drivers only.)