IDirectDrawSurface::IsLost
A version of this page is also available for
4/8/2010
This method determines if the surface memory associated with a DirectDrawSurface object has been freed.
Syntax
HRESULT IsLost();
Parameters
None.
Return Value
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
Header | ddraw.h |
Library | ddraw.lib |
Windows Embedded CE | Windows Embedded CE 6.0 and later |
Windows Mobile | Pocket PC for Windows Mobile Version 5.0 and later, Smartphone for Windows Mobile Version 5.0 and later |