IDirectDraw7::RestoreAllSurfaces method

Restores all the surfaces that were created for the DirectDraw object, in the order that they were created.

Syntax


HRESULT RestoreAllSurfaces();

Parameters

This method has no parameters.

Return value

If the method succeeds, the return value is DD_OK.

If it fails, the method can return one of the following error values:

  • DDERR_INVALIDOBJECT
  • DDERR_INVALIDPARAMS

Remarks

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

You must use LoadLibrary to explicitly link to Ddraw.dll and then use GetProcAddress to access the RestoreAllSurfaces method.

Requirements

Header

Ddraw.h

Library

Ddraw.dll

See also

IDirectDraw7

 

 

Community Additions

ADD
Show:
© 2014 Microsoft