INTERNET_ASYNC_RESULT structure (wininet.h)
Contains the result of a call to an asynchronous function. This structure is used with InternetStatusCallback.
Syntax
typedef struct {
DWORD_PTR dwResult;
DWORD dwError;
} INTERNET_ASYNC_RESULT, *LPINTERNET_ASYNC_RESULT;
Members
dwResult
Result. This parameter can be an HINTERNET handle, unsigned long integer, or Boolean return code from an asynchronous function.
dwError
Error code, if dwResult indicates that the function failed. If the operation succeeded, this member usually contains ERROR_SUCCESS.
Remarks
The value of
dwResult is determined by the value of
dwInternetStatus in the status callback function.
Value of dwInternetStatus | Value of dwResult |
---|---|
INTERNET_STATUS_HANDLE_CREATED | Pointer to the HINTERNET handle |
INTERNET_STATUS_REQUEST_COMPLETE | Boolean return code from the asynchronous function. |
Note WinINet does not support server implementations. In addition, it should not be used from a service. For server implementations or services use Microsoft Windows HTTP Services (WinHTTP).
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Header | wininet.h |