This method of the IClassFactory Interface locks the object's server in memory, allowing new objects to be created more quickly.
public void LockServer(boolean fLock);
This method supports the standard return values E_FAIL, E_OUTOFMEMORY, and E_UNEXPECTED, as well as the following:
S_OK -- The specified object was either locked (fLock = TRUE) or unlocked from memory (fLock = FALSE).
[in]fLock | If TRUE, increments the lock count; if FALSE, decrements the lock count. |