Upravit

Sdílet prostřednictvím


IWinHttpRequestEvents::OnError event

The OnError event occurs when there is a run-time error in the application.

Syntax

void OnError(
  [in] long ErrorNumber,
  [in] BSTR ErrorDescription
);

Parameters

ErrorNumber [in]

Receives the numerical value of the error. The lower 16 bits of this error number corresponds to one of the errors listed in Error Messages.

ErrorDescription [in]

Specifies a short description of the error which occurred.

Return value

This event does not return a value.

Remarks

Note

For Windows XP and Windows 2000, see the Run-Time Requirements section of the WinHTTP Start Page.

Requirements

Requirement Value
Minimum supported client
Windows XP, Windows 2000 Professional with SP3 [desktop apps only]
Minimum supported server
Windows Server 2003, Windows 2000 Server with SP3 [desktop apps only]
Redistributable
WinHTTP 5.0 and Internet Explorer 5.01 or later on Windows XP and Windows 2000.
IDL
HttpRequest.idl

See also

IWinHttpRequestEvents

WinHttpRequest

WinHTTP Versions