#include <ole.h> |
OLESTATUS OleRevertClientDoc(lhClientDoc) | |||||
LHCLIENTDOC lhClientDoc; | /* handle of client document | */ |
The OleRevertClientDoc function informs the library that a document has been restored to a previously saved condition.
lhClientDoc
Identifies the document that has been restored to its saved state.
The return value is OLE_OK if the function is successful. Otherwise, it is an error value, which may be OLE_ERROR_HANDLE.
A client application should call the OleRevertClientDoc function when it reloads a document without saving changes to the document.
Client applications should register open documents with the library and notify the library when a document is renamed, closed, saved, or restored to a saved state.
OleRegisterClientDoc, OleRenameClientDoc, OleRevokeClientDoc, OleSavedClientDoc