ISearchProtocol::ShutDown Method

Shuts down the protocol handler.

Syntax

HRESULT ShutDown(VOID);

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

This method is called by the protocol host to enable the protocol handler to clean up and release any associated resources.

The protocol host makes one call to this method before it exits. After this method is called, this instance will not be used any more. However, it is also possible for the protocol host process to terminate abruptly without calling this method. Protocol handlers that have persisted global states, such as registry entries and temporary files, should verify that those resources are cleaned up in the ISearchProtocol::Init method before initialization.