IPersistStreamInit interface (ocidl.h)
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.
Inheritance
The IPersistStreamInit interface inherits from IPersist. IPersistStreamInit also has these types of members:
Methods
The IPersistStreamInit interface has these methods.
IPersistStreamInit::GetSizeMax Retrieves the size of the stream needed to save the object. (IPersistStreamInit.GetSizeMax) |
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.IsDirty) |
IPersistStreamInit::Load Initializes an object from the stream where it was saved previously. (IPersistStreamInit.Load) |
IPersistStreamInit::Save Saves an object to the specified stream. (IPersistStreamInit.Save) |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | ocidl.h |