IStream::Revert method
The Revert method discards all changes that have been made to a transacted stream since the last IStream::Commit call. On streams open in direct mode and streams using the COM compound file implementation of IStream::Revert, this method has no effect.
Syntax
HRESULT Revert();
Parameters
This method has no parameters.
Return value
This method can return one of these values.
- S_OK
-
The stream was successfully reverted to its previous version.
- E_PENDING
-
Asynchronous Storage only: Part or all of the stream's data is currently unavailable. For more information see IFillLockBytes and Asynchronous Storage.
Remarks
The Revert method discards changes made to a transacted stream since the last commit operation.
Requirements
|
Minimum supported client |
Windows 2000 Professional [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server |
Windows 2000 Server [desktop apps | Windows Store apps] |
|
Header |
|
|
IDL |
|
|
Library |
|
|
DLL |
|
|
IID |
IID_IStream is defined as 0000000C-0000-0000-C000-000000000046 |
See also