MFCreateMediaExtensionActivate function (mfapi.h)

Creates an activation object for a Windows Runtime class.

Syntax

HRESULT MFCreateMediaExtensionActivate(
  [in]  PCWSTR   szActivatableClassId,
  [in]  IUnknown *pConfiguration,
  [in]  REFIID   riid,
  [out] LPVOID   *ppvObject
);

Parameters

[in] szActivatableClassId

The class identifier that is associated with the activatable runtime class.

[in] pConfiguration

A pointer to an optional IPropertySet object, which is used to configure the Windows Runtime class. This parameter can be NULL.

[in] riid

The interface identifier (IID) of the interface being requested. The activation object created by this function supports the following interfaces:

[out] ppvObject

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.

Remarks

To create the Windows Runtime object, call IMFActivate::ActivateObject or IClassFactory::CreateInstance.

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 mfapi.h
Library Mfplat.lib
DLL Mfplat.dll

See also

Media Foundation Functions