MFCreateSensorStream function
[Some information relates to pre-released product which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.]
Creates an instance of the IMFSensorStream interface.
Syntax
HRESULT WINAPI MFCreateSensorStream( DWORD StreamId, _In_opt_ IMFAttributes *pAttributes, _In_ IMFCollection *pMediaTypeCollection, _Out_ IMFSensorStream **ppStream );
Parameters
- StreamId
-
The identifier for the created stream. This is the same as setting the MF_DEVICESTREAM_STREAM_ID attribute. This value is used if pAttributes is null.
- pAttributes [in, optional]
-
The attribute store for the created stream.
- pMediaTypeCollection [in]
-
The collection of IMFMediaType objects specifying the media types supported by the stream.
- ppStream [out]
-
The created stream interface.
Return value
The function returns an HRESULT. Possible values include, but are not limited to, those in the following table.
| Return code | Description |
|---|---|
|
The method succeeded. |
|
The supplied IMFSensorGroup is null. |
|
The supplied LPCWSTR is null. |
Requirements
|
Minimum supported client |
Windows 10, version 1703 [desktop apps only] |
|---|---|
|
Minimum supported server |
None supported |
|
Header |
|