HRESULT LockServer( BOOL fLock );
Return Value
A standard HRESULT value.
Parameters
fLock
[in] If TRUE, the lock count is incremented; otherwise, the lock count is decremented.
Remarks
Increments and decrements the module lock count by calling _Module::Lock and _Module::Unlock, respectively. When using CComClassFactoryAutoThread, _Module typically refers to the global instance of CComAutoThreadModule.
Calling LockServer allows a client to hold onto a class factory so that multiple objects can be quickly created.
CComClassFactoryAutoThread Overview | Class Members
See Also CComAutoThreadModule::Lock, CComAutoThreadModule::Unlock