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.
lhClientDoc
Identifies the document that has been renamed.
lpszNewDocname
Points to a null-terminated string specifying the new name of the document.
The return value is OLE_OK if the function is successful. Otherwise, it is an error value, which can be OLE_ERROR_HANDLE.
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.
OleRegisterClientDoc, OleRevokeClientDoc, OleRevertClientDoc, OleSavedClientDoc