Partager via


DrvDisablePDEV (Compact 2013)

3/26/2014

This function notifies a driver that the specified PDEV structure is no longer needed. MGDI uses this function to notify the driver.

Syntax

VOID DrvDisablePDEV(
  DHPDEV dhpdev 
);

Parameters

  • dhpdev
    [in] Pointer to the PDEV that describes the physical device to disable. This value is the handle returned by the DrvEnablePDEV function.

Return Value

None.

Remarks

This function is required for graphics drivers.

If a call to the DrvEnablePDEV function disabled the driver, the driver cannot access the hardware during a call to the DrvDisableSurface function because another active surface might be in use.

If the physical device has an enabled surface, the graphics device interface (GDI) calls this function after calling DrvDisableSurface. The driver should free any memory and resources used by the PDEV.

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
DrvDisableSurface
DrvEnablePDEV