Click or drag to resize

STGC Enumeration

Specify the conditions for performing the commit operation in the IStorage::Commit and IStream::Commit methods.

Namespace:  callback.ShellBoost.Core.Utilities
Assembly:  callback.CBFSShell (in callback.CBFSShell.dll) Version: 22.0.0.0
Syntax
C#
[FlagsAttribute]
public enum STGC
Members
  Member nameValueDescription
STGC_DEFAULT0 You can specify this condition with STGC_CONSOLIDATE, or some combination of the other three flags in this list of elements. Use this value to increase the readability of code.
STGC_OVERWRITE1 The commit operation can overwrite existing data to reduce overall space requirements. This value is not recommended for typical usage because it is not as robust as the default value.
STGC_ONLYIFCURRENT2 Prevents multiple users of a storage object from overwriting each other's changes. The commit operation occurs only if there have been no changes to the saved storage object because the user most recently opened it.
STGC_DANGEROUSLYCOMMITMERELYTODISKCACHE4 Commits the changes to a write-behind disk cache, but does not save the cache to the disk. In a write-behind disk cache, the operation that writes to disk actually writes to a disk cache, thus increasing performance.
STGC_CONSOLIDATE8 Indicates that a storage should be consolidated after it is committed, resulting in a smaller file on disk.
See Also