This method of the IStream Interface ensures that any changes made to a stream object opened in transacted mode are reflected in the parent storage object.
public void Commit(int grfCommitFlags);
grfCommitFlags | Flags that indicate conditions for the commit operation; the value must be STGC_DEFAULT or some combination of the following: STGC_OVERWRITE, STGC_ONLYIFCURRENT, and STGC_DANGEROUSLYCOMMITMERELYTODISKCACHE. |