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.

Syntax

HRESULT BindToStream(
  [out] IStream **ppStream
);

Parameters

[out] ppStream

Type: IStream**

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

Return value

Type: HRESULT

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

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.

Requirements

Requirement Value
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