The GetDataFlow method indicates whether the audio endpoint device is a rendering device or a capture device.
public:
HRESULT GetDataFlow(
EDataFlow *pDataFlow
)
pDataFlow
Type: EDataFlow *
[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.
Type: HRESULT
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. |
Refer to WASAPI error codes.
Header: Declared in mmdeviceapi.h.
Library: Use MMDevApi.lib.