ClassFactory::LockServer Method
Visual Studio 2015
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at ClassFactory::LockServer Method.
Increments or decrements the number of underlying objects that are tracked by the current ClassFactory object.
STDMETHOD( LockServer )(BOOL fLock);
Parameters
fLocktrue to increment the number of tracked objects. false to decrement the number of tracked objects.
S_OK if successful; otherwise, E_FAIL.
ClassFactory keeps track of objects in an underlying instance of the Module class.
Header: module.h
Namespace: Microsoft::WRL
Show: