IPersistStreamInit::Load
This method should load object data from the specified stream.
Definition
HRESULT Load(LPSTREAMpStm);
Parameters
pStm
[in] A pointer to the stream from which to load the object data.
Return Values
This method must return the HRESULT value S_OK to indicate success, and should generally return one of the standard COM error values to indicate failure.
Remarks
The seek pointer is set as it was in the most recent IPersistStreamInit::Save method. This method can seek and read from the stream, but cannot write to it.
On exit, the seek pointer must be in the same position it was in on entry, immediately past the end of the data.