IMMEndpoint::GetDataFlow method
The GetDataFlow method indicates whether the audio endpoint device is a rendering device or a capture device.
Syntax
HRESULT GetDataFlow( [out] 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 |
|---|---|
|
Parameter ppDataFlow is NULL. |
Requirements
|
Minimum supported client |
Windows Vista [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2008 [desktop apps only] |
|
Header |
|
See also