ISearchProtocolThreadContext interface (searchapi.h)

This optional interface enables the protocol handler to perform an action on the thread used for filtering in the protocol host. When the protocol host starts, it first initializes all the protocol handlers, and then it creates the filtering thread(s). The methods on this interface enable protocol handlers to manage their resources that are used by a filtering thread.

Inheritance

The ISearchProtocolThreadContext interface inherits from the IUnknown interface. ISearchProtocolThreadContext also has these types of members:

Methods

The ISearchProtocolThreadContext interface has these methods.

 
ISearchProtocolThreadContext::ThreadIdle

Notifies the protocol handler that the filtering thread is idle, so that the protocol handler can clean up any cache it might have built up.
ISearchProtocolThreadContext::ThreadInit

Initializes communication between the protocol handler and the protocol host.
ISearchProtocolThreadContext::ThreadShutdown

Notifies the protocol handler that the thread is being shut down.

Requirements

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