Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Init
Collapse the table of content
Expand the table of content

ISearchProtocol::Init method

Initializes a protocol handler.

Syntax


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

Parameters

pTimeoutInfo [in]

Type: TIMEOUT_INFO*

Pointer to a TIMEOUT_INFO structure that contains information about connection time-outs.

pProtocolHandlerSite [in]

Type: IProtocolHandlerSite*

Pointer to an IProtocolHandlerSite interface that enables protocol handlers to access IFiltearwithin the filter host.

pProxyInfo [in]

Type: PROXY_INFO*

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

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

After the protocol handler is created, this method is called 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 resources previously opened in this method before starting the current instance.

Requirements

Minimum supported client

Windows XP with SP2, Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 with SP1 [desktop apps only]

Redistributable

Windows Desktop Search (WDS) 3.0

Header

Searchapi.h

IDL

Srchprth.idl

 

 

Community Additions

ADD
Show:
© 2015 Microsoft