IRootStorage interface (objidl.h)

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.

Inheritance

The IRootStorage interface inherits from the IUnknown interface. IRootStorage also has these types of members:

Methods

The IRootStorage interface has these methods.

 
IRootStorage::SwitchToFile

The SwitchToFile method copies the current file associated with the storage object to a new file.

Requirements

Requirement Value
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