This method increments and decrements the module lock count by calling _Module::Lock and _Module::Unlock, respectively. Calling LockServer allows a client to hold onto a class factory so that multiple objects can be quickly created.
HRESULT LockServer( BOOL fLock );
Header file: | Atlcom.h |
Platforms: | |
Versions: | 2.0 and later |
Complete documentation: | Visual C++ documentation |
CComClassFactory2 Overview, CComClassFactory2 Methods, CComModule::Lock, CComModule::Unlock