MFCreatePropertiesFromMediaType function (mfidl.h)

Creates properties from a IMFMediaType.

Syntax

HRESULT MFCreatePropertiesFromMediaType(
  [in]  IMFMediaType *pMediaType,
  [in]  REFIID       riid,
  [out] void         **ppv
);

Parameters

[in] pMediaType

A pointer to the IMFMediaType interface.

[in] riid

The interface identifier (IID) of the interface being requested.

[out] ppv

Receives a pointer to the requested interface. The caller must release the interface.

Return value

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

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 [desktop apps | UWP apps]
Target Platform Windows
Header mfidl.h
Library Mfplat.lib
DLL Mfplat.dll

See also

Media Foundation Functions