功能:获取显卡显示模式
HRESULT GetAdapterDisplayMode(
UINT Adapter,
//指定显示卡序列号 D3DADAPTER_DEFAULT is always the primary display adapter.
);
注:
typedef struct _D3DDISPLAYMODE { UINT Width; UINT Height; UINT RefreshRate; D3DFORMAT Format; } D3DDISPLAYMODE;
Members
Width
- Screen width, in pixels.
Height- Screen height, in pixels.
RefreshRate- Refresh rate. The value of 0 indicates an adapter default.
Format- Member of the D3DFORMAT enumerated type, describing the surface format of the display mode.