Skip to content

Latest commit

 

History

History
29 lines (16 loc) · 1008 Bytes

TPJIStreamWrapper-Commit.md

File metadata and controls

29 lines (16 loc) · 1008 Bytes

Commit method

Project: Stream Extension Classes

Unit: PJIStreams

Classes: TPJIStreamWrapper, TPJHandleIStreamWrapper, TPJFileIStream

Applies to: ~>3.0

function Commit(grfCommitFlags: Longint): HResult; virtual; stdcall;

Description

Does nothing.

In theory, this method commits any changes made to a stream opened in transacted mode. In direct mode it should simply flush any memory buffers into the underlying storage object.

Since wrapped streams do not support transacted mode and TPJIStreamWrapper maintains no data buffers, this method does nothing in this implementation.

Parameters:

  • grfCommitFlags -- Flags from the STGC specify how the changes are committed. All flags are ignored in this implementation.

Returns:

  • S_OK on all occasions.