共用方式為


Terminate method

Releases the resources used by the pluggable protocol handler.

Syntax

HRESULT retVal = object.Terminate(dwOptions);

Parameters

  • dwOptions [in]
    Type: DWORD

    Reserved. Must be set to 0.

Return value

Type: HRESULT

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

Remarks

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.