OleRevokeServer

3.1

  #include <ole.h>    

  OLESTATUS OleRevokeServer(lhServer)    
  LHSERVER lhServer; /* server handle, */  

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

Parameters

lhServer

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

Return Value

The return value is OLE_OK if the function is successful. Otherwise, it is an error value, which may be one of the following:

OLE_ERROR_HANDLE OLE_WAIT_FOR_RELEASE

Comments

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 library calls the server's Release function.

See Also

OleRegisterServer, OleRevokeObject, OleRevokeServerDoc