Freigeben über


IDirect3DMobile::EnumAdapterModes (Windows CE 5.0)

Send Feedback

This method provides information for a specified display mode for a specified device

HRESULT EnumAdapterModes(  UINT Adapter,  UINT Mode,  D3DMDISPLAYMODE* pMode);

Parameters

  • Adapter
    [in] A value that indicates which device to provide information for. For possible values, see D3DMADAPTER Values.
  • Mode
    [in] A zero-base value that indicates which display mode to provide information for. To obtain the device's default display mode, set this value to 0. This value must be less than IDirect3DMobile::GetAdapterModeCount.
  • pMode
    [out] A pointer to a D3DMDISPLAYMODE structure containing information about specified display mode.

Return Values

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
  • E_OUTOFMEMORY

For more information, see D3DMERR Values.

Remarks

Windows CE display drivers only support a single display mode. Always set the Mode parameter to 0 to obtain information for this single default mode.

Requirements

OS Versions: Windows CE 5.0 and later.
Header: D3dm.h.
Link Library: D3dm.lib, D3dmguid.lib.

See Also

IDirect3DMobile | D3DMADAPTER Values | IDirect3DMobile::GetAdapterModeCount | D3DMDISPLAYMODE

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.