Microsoft DirectX 9.0 |
The GetDisplayMode method returns the current display mode. An application should not save this mode in order to restore the display mode on clean up. The mode restoration on clean up should be done with RestoreDisplayMode to avoid mode setting conflicts that can arise in a multi-process environment.
Syntax
HRESULT GetDisplayMode(
LPDDSURFACEDESC lpDDSurfaceDesc
);
Parameters
lpDDSurfaceDesc
Points to a DDSURFACEDESC structure that will be filled in with a description of the surface.
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. |
See Also