A replacement for IPersistStream that adds an initialization method.
This interface is not derived from IPersistStream; it is mutually exclusive with IPersistStream. An object chooses to support only one of the two interfaces, based on whether it requires the InitNew method.
The IPersistStreamInit interface inherits from IPersist. IPersistStreamInit also has these types of members:
The IPersistStreamInit interface has these methods.
|IPersistStreamInit::GetSizeMax||Retrieves the size of the stream needed to save the object.|
|IPersistStreamInit::InitNew||Initializes an object to a default state. This method is to be called instead of IPersistStreamInit::Load.|
|IPersistStreamInit::IsDirty||Determines whether an object has changed since it was last saved to its stream.|
|IPersistStreamInit::Load||Initializes an object from the stream where it was saved previously.|
|IPersistStreamInit::Save||Saves an object to the specified stream.|
|Minimum supported client||Windows 2000 Professional [desktop apps only]|
|Minimum supported server||Windows 2000 Server [desktop apps only]|