HRESULT IStream::Revert(void);
#include <windows.h>
#include <winbase.h>
#include <ole2.h>
IStream *pIStream;
...
if (pIStream->Reverse()!=S_OK)
{
...
}
...
if (pIStream->Commit(STGC_DEFAULT)!=S_OK)
{
...
}
...