WinHttpGetProxyResult function (winhttp.h)

The WinHttpGetProxyResult function retrieves the results of a call to WinHttpGetProxyForUrlEx.

Syntax

WINHTTPAPI DWORD WinHttpGetProxyResult(
  [in]  HINTERNET            hResolver,
  [out] WINHTTP_PROXY_RESULT *pProxyResult
);

Parameters

[in] hResolver

The resolver handle used to issue a previously completed call to WinHttpGetProxyForUrlEx.

[out] pProxyResult

A pointer to a WINHTTP_PROXY_RESULT structure that contains the results of a previous call to WinHttpGetProxyForUrlEx. The results must be freed by calling WinHttpFreeProxyResult.

Return value

A status code indicating the result of the operation.

The following codes may be returned. Description
ERROR_WINHTTP_INCORRECT_HANDLE_TYPE
The type of handle supplied is incorrect for this operation.
ERROR_WINHTTP_INCORRECT_HANDLE_STATE
The resolver handle has not successfully completed a call to WinHttpGetProxyForUrlEx.

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Target Platform Windows
Header winhttp.h
Library Winhttp.lib
DLL Winhttp.dll