Share via


IUrlAccessor::BindToStream Method

Binds the item being processed to an IStream interface [Structured Storage] data stream and retrieves a pointer to that stream.

Syntax

HRESULT BindToStream(      
    IStream **ppStream
);

Parameters

  • ppStream
    [out]  Receives the address of a pointer to the IStream that contains the item represented by the URL.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

Using the information returned by the IUrlAccessor::GetFileName, IUrlAccessor::GetCLSID, and IUrlAccessor::GetDocFormat methods, the appropriate content IFilter object is created and passed to this stream by the IPersistStream interface.