WINHTTP_ASYNC_RESULT structure

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


struct WINHTTP_ASYNC_RESULT {
  DWORD_PTR dwResult;
  DWORD     dwError;
};

Members

dwResult

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

ValueMeaning
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.

 

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

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.

Header

Winhttp.h

See also

WinHTTP Versions

 

 

Community Additions

ADD
Show:
© 2015 Microsoft