OleRevertServerDoc

3.1

  #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.

Parameters

lhDoc

Identifies the document that has been restored to its saved state.

Return Value

The return value is OLE_OK if the function is successful. Otherwise, it is an error value, which may be OLE_ERROR_HANDLE.

Comments

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.

See Also

OleRegisterServerDoc, OleRenameServerDoc, OleRevokeServerDoc, OleSavedServerDoc