MFCreatePropertiesFromMediaType

Creates properties from a IMFMediaType.

Syntax

HRESULT MFCreatePropertiesFromMediaType(
         IMFMediaType *pMediaType,
         REFIID riid,
         _Outptr_ void **ppv
)  

Parameters

pMediaType
Type: IMFMediaType *

A pointer to the IMFMediaType interface.

riid
Type: REFIID 

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

ppv
Type: Outptr void **

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

Return value

Type: HRESULT 

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

Refer to Media Foundation return codes.

Requirements

Header: Declared in mfidl.h.

Library: Use Mfplat.lib.