Microsoft SDK for Java

LockServer

This method of the IClassFactory Interface locks the object's server in memory, allowing new objects to be created more quickly.

Syntax

public void LockServer(boolean fLock);

Return Values

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).

Parameters

[in]fLock If TRUE, increments the lock count; if FALSE, decrements the lock count.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.