Share via


DrvDisableSurface (Compact 2013)

3/26/2014

This function notifies a driver that the surface created by the DrvEnableSurface function for the current device is no longer needed. The graphics device interface (GDI) uses this function to notify the driver.

Syntax

VOID DrvDisableSurface(
  DHPDEV dhpdev 
);

Parameters

  • dhpdev
    [in] Handle to the PDEV structure that describes the surface of the physical device to release.

Return Value

None.

Remarks

This function is required for graphics drivers.

The driver should free any memory and resources used by the surface associated with PDEV as soon as the physical device is disabled.

If the physical device has an enabled surface, the GDI calls this function before calling DrvDisablePDEV.

Requirements

Header

winddi.h

Library

Ddi_ati_lib.lib,
Ddi_flat_lib.lib,
Ddi_gx_lib.lib,
Ddi_mq200_lib.lib,
Ddi_nop_lib.lib,
Ddi_rflat_lib.lib,
Ddi_rgx_lib.lib,
Ddi_tvia5_lib.lib

See Also

Reference

Display Driver Functions
DrvDisablePDEV
DrvEnableSurface