ISearchProtocolThreadContext Interface

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.

ISearchProtocolThreadContext Members

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.
ThreadInit Initializes communication between the protocol handler and the protocol host.
ThreadShutdown Notifies the protocol handler that the thread is being shut down.

Interface Information

Inherits from IUnknown
Header and IDL files searchapi.h, urlacc.idl
Minimum operating systems Windows XP Service Pack 2 (SP2) with Windows Desktop Search (WDS) 3.0, Windows Server 2003, Windows Vista