Export (0) Print
Expand All

ISearchProtocol::CreateAccessor method

Creates and initializes an IUrlAccessor object.

Syntax


HRESULT CreateAccessor(
  [in]  LPCWSTR                 pcwszURL,
  [in]  AUTHENTICATION_INFO     *pAuthenticationInfo,
  [in]  INCREMENTAL_ACCESS_INFO *pIncrementalAccessInfo,
  [in]  ITEM_INFO               *pItemInfo,
  [out] IUrlAccessor            **ppAccessor
);

Parameters

pcwszURL [in]

Type: LPCWSTR

Pointer to a null-terminated Unicode string containing the URL of the item being accessed.

pAuthenticationInfo [in]

Type: AUTHENTICATION_INFO*

Pointer to an AUTHENTICATION_INFO structure that contains authentication information necessary for accessing this item in the content source.

pIncrementalAccessInfo [in]

Type: INCREMENTAL_ACCESS_INFO*

Pointer to an INCREMENTAL_ACCESS_INFO structure that contains incremental access information, such as the last time the file was accessed by the gatherer.

pItemInfo [in]

Type: ITEM_INFO*

Pointer to an ITEM_INFO structure that contains information about the URL item, such as the name of the item's workspace catalog.

ppAccessor [out]

Type: IUrlAccessor**

Receives the address of a pointer to the IUrlAccessor object created by this method. This object contains information about the URL item, such as the item's file name.

Return value

Type: HRESULT

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

Remarks

The protocol host calls this method on the protocol handler once for every URL processed by the gatherer and retrieves a pointer to the IUrlAccessor object. This method creates and initializes an IUrlAccessor object to process an item currently being accessed by the gatherer.

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