IMFSensorProfile::IsMediaTypeSupported method (mfidl.h)

Determines if a media stream supports the specified media type.

Syntax

HRESULT IsMediaTypeSupported(
  [in]  UINT32       StreamId,
  [in]  IMFMediaType *pMediaType,
  [out] BOOL         *pfSupported
);

Parameters

[in] StreamId

The ID of the stream to check.

[in] pMediaType

Pointer to an IMFMediaType describing the media type to check.

[out] pfSupported

Returns true if the media type is supported; otherwise, false.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Minimum supported client Windows 10, version 1803 [desktop apps only]
Minimum supported server Windows Server [desktop apps only]
Target Platform Windows
Header mfidl.h
Library Mfsensorgroup.lib
DLL Mfsensorgroup.dll

See also

IMFSensorProfile