Share via


IDirectDrawSurface::IsLost (Windows Embedded CE 6.0)

1/6/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

See Also

Reference

IDirectDrawSurface
IDirectDrawSurface::Restore