IDirectDraw2::RestoreDisplayMode

HRESULT RestoreDisplayMode();

Resets the mode of the display device hardware for the primary surface to what it was before the IDirectDraw2::SetDisplayMode method was called. Exclusive-level access is required to use this method.

·Returns DD_OK if successful, or one of the following error values otherwise:

DDERR_GENERIC

DDERR_INVALIDOBJECT

DDERR_INVALIDPARAMS

DDERR_LOCKEDSURFACES

DDERR_NOEXCLUSIVEMODE