Partager via


IDirectDrawSurface::IsLost (Compact 2013)

3/26/2014

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

See Also

Reference

IDirectDrawSurface
DirectDraw Reference
DirectDraw Interfaces
IDirectDrawSurface::Restore

Other Resources

DirectDraw