ISearchProtocolThreadContext::ThreadInit Method

Initializes communication between the protocol handler and the protocol host.

Syntax

HRESULT ThreadInit(VOID);

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

After being created by the protocol host, a thread calls this method on the protocol handler to initialize communication between the protocol handler and its host. Depending on the protocol handler, the host might need to provide some per-thread context (for example, a logon session).