Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Retrieves an IMFMediaType representing a supported media type for the sensor stream.
Syntax
HRESULT GetMediaType(
  [in]  DWORD        dwIndex,
  [out] IMFMediaType **ppMediaType
);
Parameters
[in] dwIndex
The 0-based index of the IMFMediaType to retrieve. This value must be between 0 and the value returned by GetMediaTypeCount - 1.
[out] ppMediaType
The retrieved media type.
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 ppMediaType parameter is null. | 
| 
 | The dwIndex is not in the allowed range. | 
Requirements
| Requirement | Value | 
|---|---|
| Minimum supported client | Windows 10, version 1703 [desktop apps only] | 
| Minimum supported server | None supported | 
| Target Platform | Windows | 
| Header | mfidl.h | 
| Library | Mfplat.lib; Mfplat.dll |