IStream::Revert

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.

At a Glance

Header file: Objidl.h
Windows CE versions: 2.0 and later

Syntax

HRESULT Revert( void );

Return Values

One of the values described in the following table is returned.

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.