Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

AtlComModuleGetClassObject

 

This function is called to return the class factory.

System_CAPS_importantImportant

This function cannot be used in applications that execute in the Windows Runtime.


      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.

Requirements

Header: atlbase.h

Show: