IMFPMPHostApp::ActivateClassById method (mfidl.h)

Creates a Windows Runtime object in the protected media path (PMP) process.

Syntax

HRESULT ActivateClassById(
  [in]  LPCWSTR id,
  [in]  IStream *pStream,
  [in]  REFIID  riid,
  [out] void    **ppv
);

Parameters

[in] id

Id of object to create.

[in] pStream

Data to be passed to the object by way of a IPersistStream.

[in] riid

The interface identifier (IID) of the interface to retrieve.

[out] ppv

Receives a pointer to the created object.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

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 mfidl.h

See also

IMFPMPHostApp