IDirectDrawSurface::IsLost
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
Send Feedback on this topic to the authors