Поделиться через


CComClassFactorySingleton::CreateInstance

Calls QueryInterface through m_spObj to retrieve an interface pointer.

STDMETHOD(CreateInstance)(
   LPUNKNOWN pUnkOuter,
   REFIID riid,
   void** ppvObj 
);

Параметры

  • pUnkOuter
    [in] If the object is being created as part of an aggregate, then pUnkOuter must be the outer unknown. Otherwise, pUnkOuter must be NULL.

  • riid
    [in] The IID of the requested interface. If pUnkOuter is non-NULL, riid must be IID_IUnknown.

  • ppvObj
    [out] A pointer to the interface pointer identified by riid. If the object does not support this interface, ppvObj is set to NULL.

Возвращаемое значение

A standard HRESULT value.

Требования

Header: atlcom.h

См. также

Основные понятия

CComClassFactorySingleton Class

CComClassFactorySingleton Members

CoCreateInstance

CoGetClassObject