OleRevokeClientDoc

  OLESTATUS OleRevokeClientDoc(lhClientDoc)    
  LHCLIENTDOC lhClientDoc; /* handle to client document */

The OleRevokeClientDoc function informs the client library that a document is no longer open.

Parameters

lhClientDoc

Identifies the document that is no longer open.

Return Value

The return value is OLE_OK if the function is successful. Otherwise, it is an error value, which can be OLE_ERROR_HANDLE or OLE_ERROR_NOT_EMPTY.

Comments

The client application should delete all the objects in a document before calling the OleRevokeClientDoc function.

Client applications should register open documents with the library and notify the library when a document is renamed, closed, saved, or reverted to a changed state.

See Also

OleRegisterClientDoc, OleRenameClientDoc, OleRevertClientDoc, OleSavedClientDoc