OleRenameClientDoc

  OLESTATUS OleRenameClientDoc(lhClientDoc, lpszNewDocname)    
  LHCLIENTDOC lhClientDoc; /* handle to client document */
  LPCSTR lpszNewDocname; /* pointer to string for new document name */

The OleRenameClientDoc function informs the client library that a document has been renamed.

Parameters

lhClientDoc

Identifies the document that has been renamed.

lpszNewDocname

Points to a null-terminated string specifying the new name of the document.

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.

Comments

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, OleRevokeClientDoc, OleRevertClientDoc, OleSavedClientDoc