CComClassFactory::LockServer
Increments and decrements the module lock count by calling _Module::Lock and _Module::Unlock, respectively.
STDMETHOD(LockServer)(
BOOL fLock
);
Параметры
- fLock
[in] If TRUE, the lock count is incremented; otherwise, the lock count is decremented.
Возвращаемое значение
A standard HRESULT value.
Заметки
_Module refers to the global instance of CComModule or a class derived from it.
Calling LockServer allows a client to hold onto a class factory so that multiple objects can be created quickly.
Требования
Header: atlcom.h