Partager via


IDirectDrawSurface::IsLost

Send Feedback

This method determines if the surface memory associated with a DirectDrawSurface object has been freed.

HRESULT IsLost(); 

Parameters

None.

Return Values

The return value is DD_OK if the surface is not lost, and DDERR_SURFACELOST if the surface needs to be restored.

Remarks

Some surfaces can be lost when the display is rotated or another process calls IDirectDraw::SetCooperativeLevel with DDSCL_FULLSCREEN.

Surfaces can be restored by using IDirectDrawSurface::Restore.

Requirements

Pocket PC: Windows Mobile 5.0 and later
Smartphone: Windows Mobile 5.0 and later
OS Versions: Windows CE 5.01 and later
Header: Ddraw.h.
Library: Ddraw.lib.

See Also

IDirectDrawSurface::Restore

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.