IMFPMPHostApp::ActivateClassById method

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

Syntax


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

Parameters

id [in]

Id of object to create.

pStream [in]

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

riid [in]

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

ppv [out]

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

Minimum supported client

Windows 8 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 [desktop apps | Windows Store apps]

Header

Mfidl.idl

See also

IMFPMPHostApp

 

 

Show: