CloseAccessor Method

The CloseAccessor method closes a previously created UrlAccessor object, freeing it for reuse by the protocol handler.

Syntax
HRESULT CloseAccessor(
  IUrlAccessor* pAccessor);
Parameters
  • pAccessor
    [in] Pointer to the UrlAccessor object that was used to process the current URL item.
Return Value

For a list of error messages returned by SharePoint Portal Server Protocol Handlers, see Error Messages.

Remarks

The Filter Daemon will release the pAccessor pointer passed to this method when this method returns. You may also use the CloseAccessor method to release any resources associated with the UrlAccessor object. If you are implementing a pool of UrlAccessor objects, you will need to use IUnknown::AddRef to add an UrlAccessor to your pool.

Examples

To see this method in a fuller context, see Protocol Handler Sample.