This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for

This method releases the resources used by the pluggable protocol handler.


HRESULT Terminate(



[in] Reserved. Must be set to zero.

Return Value

Returns S_OK if successful or an error value otherwise.


Notes to implementers

Urlmon.dll will not call this method until your asynchronous pluggable protocol handler calls the Urlmon.dll IInternetProtocolSink::ReportResultmethod. When your IInternetProtocolRoot::Terminatemethod is called, your asynchronous pluggable protocol handler should free all resources it has allocated.

Notes to callers

This method should be called after receiving a call to your IInternetProtocolSink::ReportResultmethod and after the protocol handler's IInternetProtocol::LockRequestmethod has been called.


Header urlmon.h, urlmon.idl
Library urlmon.lib
Windows Embedded CE Windows CE .NET 4.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also