MFCreateCollection

Creates an empty collection object.

Syntax

HRESULT MFCreateCollection(
         IMFCollection **ppIMFCollection
)  

Parameters

ppIMFCollection
Type: IMFCollection **

[out]

Receives a pointer to the collection object’s IMFCollection interface. The caller must release the interface.

Return value

Type: HRESULT 

The function returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return codes
Return code Description
S_OK The method succeeded.

Refer to Media Foundation return codes.

Requirements

Header: Declared in mfapi.h.

Library: Use Mfplat.lib.