Export (0) Print
Expand All

ISearchProtocol::CloseAccessor method

Closes a previously created IUrlAccessor object.

Syntax


HRESULT CloseAccessor(
  [in]  IUrlAccessor *pAccessor
);

Parameters

pAccessor [in]

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

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