OLESTATUS OleRevokeClientDoc(lhClientDoc) | |||||
LHCLIENTDOC lhClientDoc; | /* handle to 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.
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_ERROR_NOT_EMPTY.
The client application should delete all the objects in a document before calling the OleRevokeClientDoc function.
Client applications should register open documents with the library and notify the library when a document is renamed, closed, saved, or reverted to a changed state.
OleRegisterClientDoc, OleRenameClientDoc, OleRevertClientDoc, OleSavedClientDoc