ATL Global Variables
_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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for