Partager via


ClassFactory::LockServer Method

 

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.

Syntax

STDMETHOD(  
   LockServer  
)(BOOL fLock);  

Parameters

fLock
true to increment the number of tracked objects. false to decrement the number of tracked objects.

Return Value

S_OK if successful; otherwise, E_FAIL.

Remarks

ClassFactory keeps track of objects in an underlying instance of the Module class.

Requirements

Header: module.h

Namespace: Microsoft::WRL

See Also

ClassFactory Class