#include <ole.h> |
OLESTATUS OleRevokeServer(lhServer) | ||||
LHSERVER lhServer; | /* server handle, */ |
The OleRevokeServer function is called by a server application to close any registered documents.
lhServer
Identifies the server to revoke. A server application obtains this handle in a call to the OleRegisterServer function.
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
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.