| DirectX SDK | 
The DirectDraw7.RestoreDisplayMode method resets the mode of the display device hardware for the primary surface to what it was before the DirectDraw7.SetDisplayMode method was called. Exclusive-level access is required to use this method.
object.RestoreDisplayMode()
If the method fails, it raises an error, and Err.Number can be set to one of the following values:
| DDERR_GENERIC | 
| DDERR_INVALIDOBJECT | 
| DDERR_INVALIDPARAMS | 
| DDERR_LOCKEDSURFACES | 
| DDERR_NOEXCLUSIVEMODE | 
DirectDraw7.SetDisplayMode, DirectDrawEnumModes, DirectDraw7.SetCooperativeLevel