Terminate method

Releases the resources used by the pluggable protocol handler.


HRESULT retVal = object.Terminate(dwOptions);


  • dwOptions [in]
    Type: DWORD

    Reserved. Must be set to 0.

Return value


If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.


Note to implementers

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

Note to callers

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