ISearchProtocolThreadContext::ThreadShutdown Method
When the protocol host is shutdown it will call ThreadShutdown as the last operation before the filtering thread is terminated. Depending on the protocol handler it may have some per thread context, for example a logon session, which protocol handler has to clean up.
Syntax
HRESULT ThreadShutdown(VOID);
Return Value
Returns S_OK if successful, or an error value otherwise.