IMMEndpoint::GetDataFlow method (mmdeviceapi.h)

The GetDataFlow method indicates whether the audio endpoint device is a rendering device or a capture device.

Syntax

HRESULT GetDataFlow(
  [out] EDataFlow *pDataFlow
);

Parameters

[out] pDataFlow

Pointer to a variable into which the method writes the data-flow direction of the endpoint device. The direction is indicated by one of the following EDataFlow enumeration constants:

  • eRender
  • eCapture

The data-flow direction for a rendering device is eRender. The data-flow direction for a capture device is eCapture.

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
Parameter ppDataFlow is NULL.

Requirements

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

See also

IMMEndpoint Interface