Microsoft DirectX 8.1 (C++) |
Retrieves the current display mode of the adapter.
HRESULT GetAdapterDisplayMode( UINT Adapter, D3DDISPLAYMODE* pMode );
If the method succeeds, the return value is D3D_OK.
If Adapter is out of range or pMode is invalid, this method returns D3DERR_INVALIDCALL.
Note that a device that represents an adapter may have been reset into a particular mode, but this may not be the actual mode of the adapter. A device reset to a particular mode may be lost, and therefore it cannot determine the current mode of the adapter. This function returns the adapter mode, not any particular device's desired mode.
Header: Declared in D3d8.h.
Import Library: Use D3d8.lib.