Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This method restores all the surfaces created for the DirectDrawobject, in the order they were created.

Syntax

HRESULT RestoreAllSurfaces(); 

Parameters

None.

Return Value

The return value is DD_OK.

Remarks

DirectDraw surfaces may be lost when the display orientation is changed (through ChangeDisplaySettingsEx) or when the current process or a different process enters the fullscreen cooperative level. When a DirectDraw surface is lost, many methods will return DDERR_SURFACELOST and perform no other function.

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

See Also