The GetChannelCount method gets a count of the channels in the audio stream that enters or leaves the audio endpoint device.
HRESULT GetChannelCount( UINT *pnChannelCount );
[out] Pointer to a UINT variable into which the method writes the channel count.
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.
|E_POINTER||Parameter pnChannelCount is NULL.|
Client: Windows Vista
Header: Include Endpointvolume.h.