8.2.8 OleRevokeServer

OLESTATUS OleRevokeServer(lhServer)

LHSERVER lhServer;

The OleRevokeServer function is called by a server application to close any registered documents.

Parameter Description

lhServer Identifies the server to revoke. A server application obtains this handle in a call to the OleRegisterServer function.

The OleRevokeServer function returns OLE_WAIT_FOR_RELEASE if communications between clients and the server are in the process of terminating. In this case, the server application should continue to send and dispatch messages until the DLL calls the server's Release function.

The return value is OLE_OK if successful; otherwise, it could be one of the following:

OLE_ERROR_HANDLE

OLE_WAIT_FOR_RELEASE

See AlsoOleRegisterServer, OleRevokeServerDoc, OleRevokeObject