Compartilhar via


Abort method

Cancels an operation that is in progress.

Syntax

HRESULT retVal = object.Abort(hrReason, dwOptions);

Parameters

  • hrReason [in]
    Type: HRESULT

    An HRESULT value that contains the reason for canceling the operation. This is the HRESULT that is reported by the pluggable protocol if it successfully canceled the binding. The pluggable protocol uses the IInternetProtocolSink::ReportResult method to pass this HRESULT to urlmon.dll. Urlmon.dll uses IBindStatusCallback::OnStopBinding to pass this HRESULT to the host.

  • dwOptions [in]
    Type: DWORD