Share via


IPersistStreamInit::Load Method

This method should load object data from the specified stream.

HRESULT Load(
    LPSTREAM pStm
);

Parameters

  • pStm
    [in] A pointer to the stream from which to load the object data.

Return Value

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.

See Also

Other Resources

IPersistStreamInit Interface

IPersistStreamInit::Save Method