IPersistMemory interface
Saves and loads objects from a stream.
Members
The IPersistMemory interface inherits from IPersist. IPersistMemory also has these types of members:
- Methods
Methods
The IPersistMemory interface has these methods.
Method | Description |
---|---|
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.
Requirements
Minimum supported client |
Windows XP |
Minimum supported server |
Windows 2000 Server |
Header |
Ocidl.h |
IDL |
Ocidl.idl |