IMFPMPHost::CreateObjectByCLSID method (mfidl.h)

Creates an object in the protect media path (PMP) process, from a CLSID.

Syntax

HRESULT CreateObjectByCLSID(
  [in]  REFCLSID clsid,
  [in]  IStream  *pStream,
  [in]  REFIID   riid,
  [out] void     **ppv
);

Parameters

[in] clsid

The CLSID of the object to create.

[in] pStream

A pointer to the IStream interface. This parameter can be NULL. If this parameter is not NULL, the PMP host queries the created object for the IPersistStream interface and calls IPersistStream::Load, passing in the pStream pointer.

[in] riid

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

[out] ppv

Receives a pointer to the requested interface. The caller must release the interface.

Return value

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

Remarks

You can use the pStream parameter to initialize the object after it is created.

Requirements

   
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header mfidl.h
Library Mfuuid.lib

See also

IMFPMPHost

PMP Media Session

Protected Media Path