Specify the conditions for performing the commit operation in the IStorage::Commit and IStream::Commit methods.
Namespace:
ShellBoost.Core.Utilities
Assembly:
ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax [FlagsAttribute]
public enum STGC
Members
| Member name | Value | Description |
---|
| STGC_DEFAULT | 0 |
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_OVERWRITE | 1 |
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_ONLYIFCURRENT | 2 |
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_DANGEROUSLYCOMMITMERELYTODISKCACHE | 4 |
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_CONSOLIDATE | 8 |
Indicates that a storage should be consolidated after it is committed, resulting in a smaller file on disk.
|
See Also