IMFSensorDevice::GetStreamAttributesCount method (mfidl.h)
Gets the count of stream attribute stores for the sensor device. This number represents the number of total streams available for the device because every valid stream must have an attribute store that contains at least the stream ID and stream category.
Syntax
HRESULT GetStreamAttributesCount(
[in] MFSensorStreamType eType,
[out] DWORD *pdwCount
);
Parameters
[in] eType
A member of the MFSensorStreamType enumeration specifying whether the attribute store count is being requested for an input or output stream.
[out] pdwCount
The number of stream attributes available for this sensor device.
Return value
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
Return code | Description |
---|---|
|
The method succeeded. |
|
The pdwCount parameter is null. |
|
The sensor group has not been initialized. |
Remarks
The caller can use the number of stream attributes to indicate the number of streams provided by the sensor device.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 10, version 1607 [desktop apps only] |
Minimum supported server | None supported |
Target Platform | Windows |
Header | mfidl.h |
Library | Mfplat.lib; Mfplat.dll |