IMFPMPHost::CreateObjectByCLSID method

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

clsid [in]

The CLSID of the object to create.

pStream [in]

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.

riid [in]

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

ppv [out]

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]

Header

Mfidl.h

Library

Mfuuid.lib

See also

IMFPMPHost
PMP Media Session
Protected Media Path

 

 

Community Additions

ADD
Show:
© 2014 Microsoft