Partager via


CAtlModule Class

This class provides methods used by several ATL module classes.

class ATL_NO_VTABLE CAtlModule : 
   public _ATL_MODULE

Members

Public Constructors

Name

Description

CAtlModule::CAtlModule

The constructor.

CAtlModule::~CAtlModule

The destructor.

Public Methods

Name

Description

CAtlModule::AddCommonRGSReplacements

Override this method to add parameters to the ATL Registry Component (Registrar) replacement map.

CAtlModule::AddTermFunc

Adds a new function to be called when the module terminates.

CAtlModule::GetGITPtr

Returns the Global Interface Pointer.

CAtlModule::GetLockCount

Returns the lock count.

CAtlModule::Lock

Increments the lock count.

CAtlModule::Term

Releases all data members.

CAtlModule::Unlock

Decrements the lock count.

CAtlModule::UpdateRegistryFromResourceD

Runs the script contained in a specified resource to register or unregister an object.

CAtlModule::UpdateRegistryFromResourceDHelper

This method is called by UpdateRegistryFromResourceD to perform the registry update.

CAtlModule::UpdateRegistryFromResourceS

Runs the script contained in a specified resource to register or unregister an object. This method statically links to the ATL Registry Component.

Public Data Members

Name

Description

CAtlModule::m_libid

Contains the GUID of the current module.

CAtlModule::m_pGIT

Pointer to the Global Interface Table.

Remarks

This class is used by CAtlDllModuleT Class, CAtlExeModuleT Class, and CAtlServiceModuleT Class to provide support for DLL applications, EXE applications, and Windows services, respectively.

For more information on modules in ATL, see ATL Module Classes.

This class replaces the obsolete CComModule Class used in earlier versions of ATL.

Inheritance Hierarchy

_ATL_MODULE

CAtlModule

Requirements

Header: atlbase.h

See Also

Reference

_ATL_MODULE

ATL Module Classes

Other Resources

ATL Class Overview

ATL Registry Component (Registrar)