Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

IPersistMemory interface

Saves and loads objects from a stream.

Members

The IPersistMemory interface inherits from IPersist but does not have additional members.

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

 

 

Show:
© 2015 Microsoft