Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
A version of this page is also available for
4/8/2010
This method provides information for the current display mode for a specified device.
Syntax
HRESULT GetAdapterDisplayMode( UINT Adapter, D3DMDISPLAYMODE* pMode ); |
Parameters
- Adapter
-
[in] A value that indicates which device to provide information for. For possible values, see D3DMADAPTER Values.
- pMode
-
[out] A pointer to a D3DMDISPLAYMODEstructure that contains information about specified display mode.
Return Value
If successful, this method returns D3DM_OK.
This method may return one of the following error values if it fails:
- D3DMERR_INVALIDCALL
- D3DMERR_INVALIDDEVICE
- D3DMERR_DRIVERINVALIDCALL
For more information, see D3DMERR Values.
Remarks
Calling this method is equivalent to calling IDirect3DMobile::EnumAdapterModesand passing the number of the current display mode in the Modeparameter.
Requirements
Header | d3dm.h |
Library | D3dm.lib, D3dmguid.lib |
Windows Embedded CE | Windows CE 5.0 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |