OleSavedServerDoc

3.1

  #include <ole.h>    

  OLESTATUS OleSavedServerDoc(lhDoc)    
  LHSERVERDOC lhDoc; /* handle of document */

The OleSavedServerDoc function informs the server library that a document has been saved.

Parameters

lhDoc

Identifies the document that has been saved.

Return Value

The return value is OLE_OK if the function is successful. Otherwise, it is an error value, which may be one of the following:

OLE_ERROR_CANT_UPDATE_CLIENT OLE_ERROR_HANDLE

Comments

The OleSavedServerDoc function has the same effect as sending the OLE_SAVED notification to the client application's callback function. The server application calls this function when saving a document or when updating an embedded object without closing the document.

When a server application receives OLE_ERROR_CANT_UPDATE_CLIENT as an error value, it should display a message box indicating that the user cannot update the document until the server terminates.

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, OleRevertServerDoc, OleRevokeServerDoc