OLESTATUS OleUnlockServer(hServer) | |||||
LHSERVER hServer; | /* handle of server to unlock | */ |
The OleUnlockServer function unlocks a server that was locked by calling the OleLockServer function. The OleUnlockServer function releases the server from memory.
hServer
Identifies the server to release from memory. This handle was retrieved by a call to the OleLockServer function.
The return value is OLE_OK if the function is successful. Otherwise, it is an error value, which can be OLE_ERROR_HANDLE or OLE_WAIT_FOR_RELEASE.
When the OleLockServer function is called more than once for a given server, the server's lock count is increased. Each call to the OleUnlockServer function decrements the lock count. The server remains locked until the lock count is zero.
OleLockServer