IAudioChannelConfig::GetChannelConfig method (devicetopology.h)

The GetChannelConfig method gets the current channel-configuration mask from a channel-configuration control.

Syntax

HRESULT GetChannelConfig(
  [out] DWORD *pdwConfig
);

Parameters

[out] pdwConfig

Pointer to a DWORD variable into which the method writes the current channel-configuration mask value.

Return value

If the method succeeds, it returns S_OK. If it fails, possible return codes include, but are not limited to, the values shown in the following table.

Return code Description
E_POINTER
Pointer pdwConfig is NULL.

Remarks

For information about channel-configuration masks, see the discussion of the KSPROPERTY_AUDIO_CHANNEL_CONFIG property in the Windows DDK documentation.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header devicetopology.h

See also

IAudioChannelConfig Interface

IAudioChannelConfig::SetChannelConfig