Serial Framework C++ Edition

◆ Commit()

virtual HRESULT STDMETHODCALLTYPE Commit ( DWORD  grfCommitFlags)
overridevirtual

The method ensures that any changes made to a stream object open in transacted mode are reflected in the parent storage. If the stream object is open in direct mode, Commit has no effect other than flushing all memory buffers to the next-level storage object. The COM compound file implementation of streams does not support opening streams in transacted mode.

Parameters
grfCommitFlagsControls how the changes for the stream object are committed.
Returns
S_OK if operation completed with success.