OleRevertClientDoc

3.1

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

Parameters

lhClientDoc

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

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.

See Also

OleRegisterClientDoc, OleRenameClientDoc, OleRevokeClientDoc, OleSavedClientDoc