CPersistProperties

CPersistProperties(
DWORD dwVersion, 
DWORD dwStreamID = PERSIST_STREAM_ID);

Parameters

dwVersion

Stream version. Properties will not load if the persisted stream version is greater than the current version.

dwStreamID

Stream ID. Properties will not load if the persisted stream ID differs.

Comments

Constructs an instance of the object.

Increment the version number when the user buffer changes as a result of adding more properties, but existing property offsets have not been modified. This allows older streams to load. Change the stream ID if the user buffer has changed, where one or more previous property types have changed in relation to their offsets. This prevents erroneous stream loads.