IUrlAccessor::BindToStream method (searchapi.h)

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


HRESULT BindToStream(
  [out] IStream **ppStream


[out] ppStream

Type: IStream**

Receives the address of a pointer to the IStream that contains the item represented by the URL.

Return value


If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.


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.


Minimum supported client Windows XP with SP2, Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 with SP1 [desktop apps only]
Target Platform Windows
Header searchapi.h
Redistributable Windows Desktop Search (WDS) 3.0