다음을 통해 공유


AtlComModuleGetClassObject

This function is called to return the class factory.

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

Parameters

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

Return Value

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

Remarks

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

Requirements

Header: atlbase.h

See Also

Concepts

Server Registration Global Functions