IStream::Revert
A version of this page is also available for
4/8/2010
This method discards all changes that have been made to a transacted stream since the last IStream::Commit call. This method has no effect on streams open in direct mode and streams using the OLE compound file implementation of IStream::Revert.
Syntax
HRESULT Revert(void);
Parameters
None.
Return Value
The following table shows the return values for this method.
Value | Description |
---|---|
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. |
Remarks
This method discards changes made to a transacted stream since the last commit operation.
To determine whether the platform supports this interface, see Determining Supported COM APIs.
Requirements
Header | objidl.h, objidl.idl |
Library | ole32.lib, uuid.lib |
Windows Embedded CE | Windows CE 2.0 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |