5.6 Managing Documents

A client application should notify the client DLL when it opens, closes, saves, or renames a document, or reverts a document to a previously saved state. A client application can use the following functions to accomplish these tasks:

Function Description

OleRegisterClientDoc Registers an opened document with the client DLL.
OleRenameClientDoc Informs the client DLL that a document has been renamed.
OleRevertClientDoc Informs the client DLL that a document has reverted to a previously saved state.
OleRevokeClientDoc Informs the client DLL that a document should be closed or no longer exists.
OleSavedClientDoc Informs the client DLL that a document has been saved.

Note When saving an object, the client application must store a persistent name for that object in its document file; this name uniquely identifies the object. The application must retain the name until the object is explicitly renamed with the OleRename function or until the object is deleted with the OleDelete function. Since this name is used to locate the object, it should be stored separate from the object itself.