IRootStorage interface

The IRootStorage interface contains a single method that switches a storage object to a different underlying file and saves the storage object to that file. The save operation occurs even with low-memory conditions and uncommitted changes to the storage object. A subsequent call to IStorage::Commit is guaranteed to not consume additional memory.

Methods

The IRootStorage interface has these methods.

Method Description
IRootStorage::SwitchToFile The SwitchToFile method copies the current file associated with the storage object to a new file.

Requirements

   
Minimum supported client Windows 2000 Professional [desktop apps | UWP apps]
Minimum supported server Windows 2000 Server [desktop apps | UWP apps]
Target Platform Windows
Header objidl.h

See Also

IStorage

StgCreateDocfile