The RenameElement method renames the specified substorage or stream in this storage object.
HRESULT RenameElement( const OLECHAR *pwcsOldName, const OLECHAR *pwcsNewName );
Pointer to a wide character null-terminated Unicode string that contains the name of the substorage or stream to be changed.
Pointer to a wide character null-terminated unicode string that contains the new name for the specified substorage or stream.
This method can return one of these values.
IStorage::RenameElement renames the specified substorage or stream in this storage object. An element in a storage object cannot be renamed while it is open. The rename operation is subject to committing the changes if the storage is open in transacted mode.
The IStorage::RenameElement method is not guaranteed to work in low memory with storage objects open in transacted mode. It may work in direct mode.
|Minimum supported client||Windows 2000 Professional [desktop apps | UWP apps]|
|Minimum supported server||Windows 2000 Server [desktop apps | UWP apps]|