Discards all changes that have been made to the storage object since the last commit.

HRESULT Revert(void);

Return Values


The revert operation was successful.


The revert operation could not be completed due to a lack of memory.


The revert operation could not be completed because there are too many open files.


The object has been invalidated by a revert operation above it in the transaction tree.


For storage objects opened in transacted mode, the IStorage::Revert method discards any uncommitted changes to this storage object or changes that have been committed to this storage object from nested elements.

After this method finishes, any existing elements that were opened from the reverted storage object are invalid and can no longer be used. The error STG_E_REVERTED is returned on all calls except IStorage::Release using these openings.

For storage objects opened in direct mode, this method has no effect.

See Also


Software for developers
Delphi Components
.Net Components
Software for Android Developers
More information resources
Unix Manual Pages
Delphi Examples
Databases for Amazon shops developers
Amazon Categories Database
Browse Nodes Database