Partager via


CPersistStream::ReadFromStream

 
Microsoft DirectShow 9.0

CPersistStream::ReadFromStream

Reads the filter's data from the given stream.

Syntax

  virtual HRESULT ReadFromStream(
    IStream *pStream
);

Parameters

pStream

Pointer to an IStream interface from which data is to be read.

Return Value

Returns S_OK. The derived class should return a valid HRESULT value.

Remarks

The default version reads nothing; it can be overridden to read data specific to your class.

Requirements

**  Header:** Declared in Pstream.h; include Streams.h.

**  Library:** Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).

See Also