Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

MFCreateMediaExtensionActivate function

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

szActivatableClassId [in]

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

pConfiguration [in]

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

riid [in]

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

ppvObject [out]

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

Minimum supported client

Windows 8 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 [desktop apps | Windows Store apps]

Minimum supported phone

Windows Phone 8.1

Header

Mfapi.h

Library

Mfplat.lib

DLL

Mfplat.dll

See also

Media Foundation Functions

 

 

Show:
© 2016 Microsoft