Share via


CComModule::GetClassObject

As of ATL 7.0, CComModule is obsolete: see ATL Module Classes for more details.

HRESULT GetClassObject( 
   REFCLSID rclsid, 
   REFIID riid, 
   LPVOID* ppv  
) throw( );

Parameters

  • rclsid
    [in] The CLSID of the object to be created.

  • riid
    [in] The IID of the requested interface.

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

Return Value

A standard HRESULT value.

Remarks

Creates an object of the specified CLSID and retrieves an interface pointer to this object.

GetClassObject is only available to DLLs.

Requirements

Header: atlbase.h

See Also

Reference

CComModule Class