DrvDisableDirectDraw function (winddi.h)

The DrvDisableDirectDraw function disables hardware for DirectDraw use.

Syntax

void DrvDisableDirectDraw(
  DHPDEV dhpdev
);

Parameters

dhpdev

Handle to the PDEV that was returned by the driver's DrvEnablePDEV routine.

Return value

None

Remarks

GDI calls the driver's DrvDisableDirectDraw function when the last DirectDraw application has finished running. A driver's DrvDisableDirectDraw implementation should clean up any software resources and reclaim any hardware resources that the driver dedicated to DirectDraw in its DrvEnableDirectDraw function.

DrvDisableDirectDraw can be called with a disabled PDEV. A PDEV is disabled or enabled by calling the display driver's DrvAssertMode function. See Managing PDEVs for more information.

Requirements

Requirement Value
Target Platform Desktop
Header winddi.h (include Winddi.h)

See also

DrvEnableDirectDraw

DrvEnablePDEV