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
);

Parameter

  • 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.

Rückgabewert

Ist Methode erfolgreich, wird "S_OK" zurückgegeben. Andernfalls wird ein HRESULT-Fehlercode zurückgegeben.

Hinweise

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

Anforderungen

Mindestens unterstützter Client

Windows Vista

Mindestens unterstützter Server

Windows Server 2008

Header

Mfidl.h

Bibliothek

Mfuuid.lib

Siehe auch

IMFPMPHost

PMP Media Session

Protected Media Path