IStream::Revert  13UIRWJ

Discards all changes that have been made to a transacted stream since the last IStream::CommitKJ2IZT call. On streams open in direct mode and streams using the OLE compound file implementation of IStream::Revert, this method has no effect.

HRESULT Revert(void);

Return 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 IFillLockBytes194LHM2 and Asynchronous Storage27PL.UQ.

Remarks

This method discards changes made to a transacted stream since the last commit operation.

See Also

IStream - Compound File ImplementationAQSJQX, IStream::CommitKJ2IZT