ISearch Protocol Init Method

Initializes a protocol handler.

HRESULT Init(
TIMEOUT_INFO* pTimeoutInfo,
IProtocolHandlerSite* pProtocolHandlerSite,
PROXY_INFO* pProxyInfo
);

Parameters

pTimeoutInfo

[in] Pointer to a TIMEOUT_INFO Structure structure that contains information about connection time-outs.

pProtocolHandlerSite

[in] Pointer to an IProtocolHandlerSite Interface interface that provides a way for a protocol handler implementation to access Filter objects.

pProxyInfo

[in] Pointer to a PROXY_INFO Structure structure that contains information about the proxy settings necessary for accessing items in the content source.

Return Value

If successful, returns S_OK; otherwise returns an error value. For a list of error messages returned by Enterprise Search in Microsoft Office SharePoint Server 2007, see Protocol Handler Error Messages.

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 Filter Daemon may unexpectedly terminate, protocol handlers with persistent information, such as temporary files and registry entries, should do an initial clean up in this method before starting the current instance.

See Also

Reference

PROXY_INFO Structure
TIMEOUT_INFO Structure

Concepts

Protocol Handler Reference
Protocol Handler Interfaces
IProtocolHandlerSite Interface

Other Resources

IFilter Interface