| description | Learn more about: ATL Global Variables | ||
|---|---|---|---|
| title | ATL Global Variables | ||
| ms.date | 12/06/2017 | ||
| f1_keywords |
|
||
| helpviewer_keywords |
|
||
| ms.assetid | e881a319-99ca-4f5d-8a0b-34b3dcd0f37f |
A global variable storing a pointer to the current module.
__declspec(selectany) CAtlModule * _pAtlModuleMethods on this global variable can be used to provide the functionality that the (now obsolete) class CComModule provided in Visual C++ 6.0.
LONG lLocks = _pAtlModule->GetLockCount();Header: atlbase.h