DirectX SDK

DirectDraw7.RestoreAllSurfaces

The DirectDraw7.RestoreAllSurfaces method restores all the surfaces created for the DirectDraw object, in the order that they were created.

object.RestoreAllSurfaces()

Parameters

object
Object expression that resolves to a DirectDraw7 object.

Error Codes

If the method fails, it raises an error, and Err.Number can be set to one of the following values:

DDERR_INVALIDOBJECT
DDERR_INVALIDPARAMS

Remarks

This method is provided for convenience. Effectively, this method calls the DirectDrawSurface7.Restore method for each surface created by this DirectDraw object.

See Also

DirectDrawSurface7.Restore, Losing and Restoring Surfaces