IPersistMemory::LoadIPersistMemory::Load*
*Contents  *Index  *Topic Contents
*Previous Topic: The IPersistMemory Interface
*Next Topic: IPersistMemory::Save

IPersistMemory::Load

HRESULT IPersistMemory::Load([in] void *pvMem, 
		[in] ULONG cbSize);

Instructs the object to load its persistent data from the memory pointed to by pvMem where cbSize indicates the amount of memory at pvMem. The object must not read past the address (BYTE*)((BYTE *)pvMem+cbSize).

pvMem
[in] The address of the memory from which the object can read up to cbSize bytes of its data.
cbSize
[in] The amount of memory available at pvMem form which the object can read its data.

Any object that implements IPersistMemory has some information to load persistently; therefore, E_NOTIMPL is not a valid return code.


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.