Microsoft Windows CE 3.0  

DrvDisableSurface

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.

This function is used by the GDI to notify a driver that the surface created by the DrvEnableSurfacefunction for the current device is no longer needed.

VOID DrvDisableSurface(
IN DHPDEV
dhpdev
);

Parameters

dhpdev
Handle to the PDEVstructure that describes the physical device whose surface is to be released.

Remarks

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

If the driver has been disabled by a call to the DrvAssertModefunction, the driver cannot access the hardware during a call to the DrvDisablePDEVfunction because another active PDEVmight be in use. Any necessary hardware changes should have been performed during the call to DrvAssertMode. A driver should keep track of whether or not it has been disabled by DrvAssertModeso that it can perform proper cleanup operations in DrvDisablePDEV.

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

This function is required for graphics drivers.

Requirements

Runs on Versions Defined in Include Link to
Windows CE OS 1.0 and later      
Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

See Also

DrvDisablePDEV



 Last updated on Tuesday, July 13, 2004

© 2004 Microsoft Corporation. All rights reserved.