Help Center

CWinHttpRequest.Abortmethod

Aborts a WinHTTP **Send** method.

COMmethoddocumented

Syntax

FUNCTION Abort () AS HRESULT

Return value

The return value is S_OK (0) on success or an error value otherwise.

Description

Aborts a WinHTTP Send method.

Remarks

You can abort both asynchronous and synchronous Send methods. To abort a synchronous Send method, you must call Abort from within an IWinHttpRequestEvents event.

Reference

  • Defined in AfxNova/CWinHttpRequest.inc:472
  • Documented in COM/CWinHttpRequest Class.md
  • Topic: CWinHttpRequest Class