OLESTATUS OleSavedServerDoc(lhDoc)
LHSERVERDOC lhDoc;
The OleSavedServerDoc function informs the server DLL that a document has been saved.
Parameter | Description |
lhDoc | Identifies the document that has been saved. |
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 the OLE_ERROR_CANT_UPDATE_CLIENT error value, it should display a message box indicating that the user cannot update the document until the server terminates or the server document is closed.
Server applications should register open documents with the server DLL and notify the DLL when a document is renamed, closed, saved, or reverted to a saved state.
The return value is OLE_OK if successful; otherwise, it could be one of the following:
OLE_ERROR_CANT_UPDATE_CLIENT
OLE_ERROR_HANDLE
See AlsoOleRegisterServerDoc, OleRevokeServerDoc, OleRenameServerDoc