AtlComModuleRegisterClassObjects

 

This function is called to register class objects.

Important

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

Syntax

      ATLINLINE ATLAPI AtlComModuleRegisterClassObjects(
_ATL_COM_MODULE * pComModule,
DWORD dwClsContext,
DWORD dwFlags 
);

Parameters

  • pComModule
    Pointer to the COM module.

  • dwClsContext
    Specifies the context in which the class object is to be run. Possible values are CLSCTX_INPROC_SERVER, CLSCTX_INPROC_HANDLER, or CLSCTX_LOCAL_SERVER. See CLSCTX for more details.

  • dwFlags
    Determines the connection types to the class object. Possible values are REGCLS_SINGLEUSE, REGCLS_MULTIPLEUSE, or REGCLS_MULTI_SEPARATE. See REGCLS for more details.

Return Value

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

Remarks

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

Requirements

Header: atlbase.h

See Also

Server Registration Global Functions