Share via


ClassFactory::LockServer Method

Increments or decrements the number of underlying objects that are tracked by the current ClassFactory object.

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

Reference

ClassFactory Class