OleRevertServerDoc

  OLESTATUS OleRevertServerDoc(lhDoc)    
  LHSERVERDOC lhDoc; /* handle to document */

The OleRevertServerDoc function informs the server library that the server has reset a document to its saved state without closing it.

Parameters

lhDoc

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

Return Value

The return value is OLE_OK if the function is successful. Otherwise, it is an error value, which can 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 reset to a saved state.

See Also

OleRegisterServerDoc, OleRevokeServerDoc, OleRenameServerDoc, OleSavedServerDoc