CComClassFactory2::LockServer

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.

At a Glance

Header file: Atlcom.h
Windows CE versions: 2.0 and later
Complete documentation: Visual C++ documentation

Syntax

HRESULT LockServer( BOOL fLock );

See Also

CComModule::Lock, CComModule::Unlock