Creates an activation object for a Windows Runtime class.
HRESULT MFCreateMediaExtensionActivate(
PCWSTR szActivatableClassId,
IUnknown *pConfiguration,
REFIID riid,
LPVOID *ppvObject
)
szActivatableClassId
Type: PCWSTR
[in] The class identifier that is associated with the activatable runtime class.
pConfiguration
Type: IUnknown *
[in, optional] A pointer to an optional IPropertySet object, which is used to configure the Windows Runtime class. This parameter can be NULL.
riid
Type: REFIID
[in] The interface identifier (IID) of the interface being requested. The activation object created by this function supports the following interfaces:
ppvObject
Type: LPVOID *
[out] Receives a pointer to the requested interface. The caller must release the interface.
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Refer to Media Foundation return codes.
To create the Windows Runtime object, call IMFActivate::ActivateObject or IClassFactory::CreateInstance.
Header: Declared in mfapi.h.
Library: Use Mfplat.lib.