#include <ole.h> |
OLESTATUS OleRevertServerDoc(lhDoc) | |||||
LHSERVERDOC lhDoc; | /* handle of document | */ |
The OleRevertServerDoc function informs the server library that the server has restored a document to its saved state without closing it.
lhDoc
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.
Server applications should register open documents with the server library and notify the library when a document is renamed, closed, saved, or restored to a saved state.
OleRegisterServerDoc, OleRenameServerDoc, OleRevokeServerDoc, OleSavedServerDoc