WINHTTP_ASYNC_RESULT structure (winhttp.h)

The WINHTTP_ASYNC_RESULT structure contains the result of a call to an asynchronous function. This structure is used with the WINHTTP_STATUS_CALLBACK prototype.

Syntax

typedef struct _WINHTTP_ASYNC_RESULT {
  DWORD_PTR dwResult;
  DWORD     dwError;
} WINHTTP_ASYNC_RESULT, *LPWINHTTP_ASYNC_RESULT, *PWINHTTP_ASYNC_RESULT;

Members

dwResult

Return value from an asynchronous Microsoft Windows HTTP Services (WinHTTP) function. This member can be one of the following values:

Value Meaning
API_RECEIVE_RESPONSE
1
The error occurred during a call to WinHttpReceiveResponse.
API_QUERY_DATA_AVAILABLE
2
The error occurred during a call to WinHttpQueryDataAvailable.
API_READ_DATA
3
The error occurred during a call to WinHttpReadData.
API_WRITE_DATA
4
The error occurred during a call to WinHttpWriteData.
API_SEND_REQUEST
5
The error occurred during a call to WinHttpSendRequest.
API_GET_PROXY_FOR_URL
6
The error occurred during a call to WinHttpGetProxyForUrlEx.

dwError

Contains the error code if dwResult indicates that the function failed.

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]
Header winhttp.h
Redistributable WinHTTP 5.0 and Internet Explorer 5.01 or later on Windows XP and Windows 2000.

See also

WinHTTP Versions