Export (0) Print
Expand All

IPersistMemory Interface

Saves and loads objects from a stream.

IPersistMemory Members

GetSizeMax Returns the size, in bytes, of the stream required to save the object.
InitNew Initializes the object to a default state.
IsDirty Checks the object for changes since it was last saved.
Load Instructs the object to load its persistent data from memory.
Save Instructs the object to save its persistent data to memory.

Remarks

The IPersistMemory interface operates the same as the interface; except that IPersistMemory allows the caller to provide a fixed-size memory block that is identified with a void * , and IPersistStreamInit uses an arbitrarily expandable IStream.

The cbSize argument to Load and Save indicates the amount of memory accessible through the pvMem pointer.

The IsDirty member, the GetSizeMax member, and the InitNew member are semantically and syntactically identical to those members in the IPersistStreamInit interface.

Interface Information

Stock Implementation None
Custom Implementation Yes
Inherits from IPersist
Header and IDL files Ocidl.h, Ocidl.idl
Minimum availability Internet Explorer 4.0
Minimum operating systems Windows 95, Windows NT 4.0

Community Additions

ADD
Show:
© 2014 Microsoft