ISearchProtocol2::Init Method
Initializes a protocol handler.
Syntax
HRESULT Init( TIMEOUT_INFO *pTimeoutInfo, IProtocolHandlerSite *pProtocolHandlerSite, PROXY_INFO *pProxyInfo );
Parameters
- pTimeoutInfo
[in] Pointer to a TIMEOUT_INFO structure that contains information about connection time-outs.- pProtocolHandlerSite
[in] Pointer to an IProtocolHandlerSite interface that provides a way for protocol handlers to access IFilters within the filter host.- pProxyInfo
[in] Pointer to a PROXY_INFO structure that contains information about the proxy settings necessary for accessing items in the content source.
Return Value
Returns S_OK if successful, or an error value otherwise.
Remarks
After the protocol handler is created, this method is called in order to perform any initialization specific to the protocol handler. This method is not called again.
Because the Protocol Host may unexpectedly terminate before calling ISearchProtocol::ShutDown, protocol handlers with persistent information, such as temporary files and registry entries, should do an initial clean up of previously opened resources in this method before starting the current instance.