winhttpgetieproxyconfigforcurrentuser (winhttp)
Last changed: -58.167.41.65

.
Summary
Retrieve the proxy setting in IE for the current user and the current active connection

C# Signature:

[DllImport("winhttp.dll", SetLastError=true)]
static extern bool WinHttpGetIEProxyConfigForCurrentUser(ref WINHTTP_CURRENT_USER_IE_PROXY_CONFIG pProxyConfig);

VB Signature:

Declare Function WinHttpGetIEProxyConfigForCurrentUser Lib "winhttp.dll" (ByRef pProxyConfig As WINHTTP_CURRENT_USER_IE_PROXY_CONFIG) As Boolean

User-Defined Types:

WINHTTP_CURRENT_USER_IE_PROXY_CONFIG

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

None.

Tips & Tricks:

Sample Code:

C#:

WINHTTP_CURRENT_USER_IE_PROXY_CONFIG ieProxyConfig = new WINHTTP_CURRENT_USER_IE_PROXY_CONFIG();
WinHttpGetIEProxyConfigForCurrentUser(ref ieProxyConfig);

VB:

Dim ieProxyConfig As WINHTTP_CURRENT_USER_IE_PROXY_CONFIG = New WINHTTP_CURRENT_USER_IE_PROXY_CONFIG()
WinHttpGetIEProxyConfigForCurrentUser(ieProxyConfig)

Documentation