6.3.5 Closing a Document

A client application should follow these steps to close a document:

1.For each object in the document, call the OleRelease function.

2.Use either the OleRevertClientDoc or the OleSavedClientDoc function to register the current state of the document with the library.

3.When the library confirms that all objects have been closed, call the OleRevokeClientDoc function.