IStorage::Revert
Discards all changes that have been made to the storage object since the last
commit.
HRESULT Revert(void);
Return Values
S_OK
The revert operation was successful.
STG_E_INSUFFICIENTMEMORY
The revert operation could not be completed due to a lack of memory.
STG_E_TOOMANYOPENFILES
The revert operation could not be completed because there are too many open
files.
STG_E_REVERTED
The object has been invalidated by a revert operation above it in the
transaction tree.
Comments
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
IStorage::Commit
- Software for developers
-
Delphi Components
.Net Components
Software for Android Developers
- More information resources
-
MegaDetailed.Net
Unix Manual Pages
Delphi Examples
- Databases for Amazon shops developers
-
Amazon Categories Database
Browse Nodes Database