WinHttpGetProxySettingsEx function (winhttp.h)
Retrieves extended proxy settings.
Syntax
WINHTTPAPI DWORD WinHttpGetProxySettingsEx(
HINTERNET hResolver,
WINHTTP_PROXY_SETTINGS_TYPE ProxySettingsType,
PWINHTTP_PROXY_SETTINGS_PARAM pProxySettingsParam,
DWORD_PTR pContext
);
Parameters
hResolver
Type: _In_ HINTERNET
The WinHTTP resolver handle returned by the WinHttpCreateProxyResolver function.
ProxySettingsType
Type: _In_ WINHTTP_PROXY_SETTINGS_TYPE
A proxy settings type.
pProxySettingsParam
Type: _In_opt_ PWINHTTP_PROXY_SETTINGS_PARAM
An optional pointer to a WINHTTP_PROXY_SETTINGS_PARAM.
pContext
Type: _In_opt_ DWORD_PTR
An optional pointer to a DWORD containing context data that will be passed to the completion callback function.
Return value
A DWORD containing a status code indicating the result of the operation. The following codes can be returned (the list is not exhaustive).
Code | Description |
---|---|
ERROR_IO_PENDING | The operation is continuing asynchronously. |
Requirements
Requirement | Value |
---|---|
Header | winhttp.h |
Library | Winhttp.lib |
DLL | Winhttp.dll |