This method of the IPersistStream interface loads an object from the stream where it was previously. The seek pointer is set as it was in the most recent IPersistStream.Save method. This method can seek and read from the stream, but cannot write to it.
On exit, the seek pointer should be left in the same position as it was on exit from Save, immediately past the end of the data.
public void Load(IStream pstm);
S_OK -- The object was successfully loaded.
E_OUTOFMEMORY -- The object was not loaded due to a lack of memory.
E_FAIL -- The object was not loaded due to some reason other than a lack of memory.
[in] pstm | The IStream pointer to the stream from which the object should be loaded. |