Microsoft DirectX 9.0

IDirectDraw::RestoreDisplayMode

The RestoreDisplayMode method resets the mode of the display device hardware for the primary surface to what it was before the SetDisplayMode method was called to change it. Exclusive level access is required to use this method.

Syntax

HRESULT RestoreDisplayMode();

Parameters

This method takes no parameters.

Return Values

Value Description
DD_OK The method succeeded.
DDERR_INVALIDOBJECT DirectDraw received a pointer that was an invalid DirectDraw object.
DDERR_INVALIDPARAMS One or more of the input parameters is invalid.
DDERR_LOCKEDSURFACES Operation could not be carried out because one or more surfaces are locked.
DDERR_GENERIC Generic failure.
DDERR_EXCLUSIVEMODENOTOWNED The application does not have exclusive mode.

See Also