IMMEndpoint::GetDataFlow Method

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

Syntax

public:
HRESULT GetDataFlow(
         EDataFlow *pDataFlow
)  

Parameters

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.

Return value

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 codes
Return code Description
E_POINTER Parameter ppDataFlow is NULL.

Refer to WASAPI error codes.

Requirements

Header: Declared in mmdeviceapi.h.

Library: Use MMDevApi.lib.

See also

IMMEndpoint

IMMEndpoint Members