MFCreateMediaType

Creates an empty media type.

Syntax

HRESULT MFCreateMediaType(
         IMFMediaType **ppMFType
)  

Parameters

ppMFType
Type: IMFMediaType **

[out] Receives a pointer to the IMFMediaType 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.

Remarks

The media type is created without any attributes.

Requirements

Header: Declared in mfapi.h.

Library: Use Mfplat.lib.