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


AtlComModuleGetClassObject

This function is called to return the class factory.

ATLINLINE ATLAPI AtlComModuleGetClassObject(
   _ATL_COM_MODULE * pComModule,
   REFCLSID rclsid,
   REFIID riid,
   LPVOID* ppv 
);

Параметры

  • pComModule
    Pointer to the COM module.

  • rclsid
    The CLSID of the object to be created.

  • riid
    The IID of the requested interface.

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

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

Returns S_OK on success, or an error HRESULT on failure.

Заметки

This helper function is utilized by CComModule::GetClassObject (obsolete in ATL 7.0) and CAtlDllModuleT::GetClassObject.

Требования

Header: atlbase.h

См. также

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

Server Registration Global Functions