Edit

Share via


ATL Global Variables

Note

The Active Template Library (ATL) continues to be supported. However, we're no longer adding features or updating the documentation.

_pAtlModule

A global variable storing a pointer to the current module.

__declspec(selectany) CAtlModule * _pAtlModule

Remarks

Methods on this global variable can be used to provide the functionality that the (now obsolete) class CComModule provided in Visual C++ 6.0.

Example

LONG lLocks = _pAtlModule->GetLockCount();

Requirements

Header: atlbase.h