ISearchProtocol::CloseAccessor method (searchapi.h)

Closes a previously created IUrlAccessor object.

Syntax

HRESULT CloseAccessor(
  [in] IUrlAccessor *pAccessor
);

Parameters

[in] pAccessor

Type: IUrlAccessor*

Pointer to the IUrlAccessor object that was used to process the current URL item.

Return value

Type: HRESULT

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

Remarks

The protocol host will release the pAccessor pointer passed to this method when this method returns. Use this method to release any resources associated with the IUrlAccessor object, freeing it for reuse by the protocol handler.

Accessors can be created and maintained in a pool, as resources to be used by protocol handlers when needed, and this might improve performance. If you are implementing a pool of IUrlAccessor objects, use IUnknown::AddRef to add an IUrlAccessor to your pool.

Requirements

Requirement Value
Minimum supported client Windows XP with SP2, Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 with SP1 [desktop apps only]
Target Platform Windows
Header searchapi.h
Redistributable Windows Desktop Search (WDS) 3.0