|
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
Related LinksSoftware for Delphi and C++ Builder developers Software for Visual Studio .NET developers Software for Visual Basic 6 developers Delphi Tips&Tricks
MegaDetailed.NET
TMS Scripter Studio Pro components for Delphi/C++Builder
More Online Helps Win32 Programmer's Reference (win32.hlp) Win32 Multimedia Programmer's Reference (mmedia.hlp) Microsoft Windows Pen API Programmer's Reference (penapi.hlp) Microsoft Windows Sockets 2 Reference (sock2.hlp) Microsoft Windows Telephony API (TAPI) Programmer's Reference (sock2.hlp) Unix Manual Pages
|