| DirectX SDK | 
The ID3DXContext::RestoreSurfaces method restores surfaces in case data has been lost.
HRESULT RestoreSurfaces();
If the method succeeds, the return value is S_OK.
If the method fails, the return value may be one of the following values:
| DDERR_GENERIC | 
| DDERR_IMPLICITLYCREATED | 
| DDERR_INCOMPATIBLEPRIMARY | 
| DDERR_INVALIDOBJECT | 
| DDERR_INVALIDPARAMS | 
| DDERR_NOEXCLUSIVEMODE | 
| DDERR_OUTOFMEMORY | 
| DDERR_UNSUPPORTED | 
| DDERR_WRONGMODE | 
This method restores the primary (front buffer) surface, the back buffer surface, and the z-buffer surface.
  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Windows CE: Unsupported.
  Version: Requires DirectX 7.0.
  Header: Declared in d3dxcore.h.
  Library: Use d3dx.lib.