Previous in Contents Next in Contents

IPersistStreamInit::Load

The IPersistStreamInit::Load method loads an object from its associated stream. 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.

Syntax

HRESULT Load(
IStream *pStm// in
);

Parameter

pStm
Pointer to the IStream interface on the stream from which the object should be loaded.

Include File

<pipeline.h>
<pipecomp.h>

Return Value

The method returns an HRESULT value.


© 1997-2000 Microsoft Corporation. All rights reserved.