IPersistStreamInit
The IPersistStreamInit
interface is defined as a replacement for IPersistStream
When to Implement
Implement
this interface on any object that needs to support initialized stream-based
persistence, regardless of whatever else the object does. The presence of the InitNew
method requires some changes to other methods that are common to IPersistStream,
as noted in the method descriptions.
When to Use
Use this
interface to initialize a stream-based object and to save that object to a
stream.
Methods in Vtable Order
IUnknown
Methods |
Description |
QueryInterface |
Returns
pointers to supported interfaces. |
AddRef |
Increments
reference count. |
Release |
Decrements
reference count. |
IPersistStreamInit
Methods |
Description |
IsDirty |
Checks the
object for changes since it was last saved. |
Load |
Initializes
an object from the stream where it was previously saved. |
Save |
Saves an
object into the specified stream and indicates whether the object should
reset its dirty flag. |
GetSizeMax |
Return the
size in bytes of the stream needed to save the object. |
InitNew |
Initializes
an object to a default state. |
See Also