IMMEndpoint::GetDataFlow

Previous Next

IMMEndpoint::GetDataFlow

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

HRESULT GetDataFlow(
  EDataFlow  *pDataFlow
);

Parameters

pDataFlow

[out]  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

Client: Windows Vista

Header: Include Mmdeviceapi.h.

See Also

Previous Next