#include <ole.h> |
OLESTATUS OleRevokeClientDoc(lhClientDoc) | |||||
LHCLIENTDOC lhClientDoc; | /* handle of client document | */ |
The OleRevokeClientDoc function informs the client library that a document is no longer open.
lhClientDoc
Identifies the document that is no longer open. This handle is invalid following the call to OleRevokeClientDoc.
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_ERROR_NOT_EMPTY
The client application should delete all the objects in a document before calling OleRevokeClientDoc.
Client applications should register open documents with the library and notify the library when a document is renamed, closed, saved, or restored to a changed state.
OleRegisterClientDoc, OleRenameClientDoc, OleRevertClientDoc, OleSavedClientDoc