ISearchProtocol::CloseAccessor Method
Closes a previously created IUrlAccessor object.
Syntax
HRESULT CloseAccessor( IUrlAccessor *pAccessor );
Parameters
- pAccessor
[in] Pointer to the IUrlAccessor object that was used to process the current URL item.
Return Value
Returns S_OK if successful, or an error value otherwise.
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.