mirror of
https://github.com/BeyondDimension/SteamTools.git
synced 2026-10-21 17:13:09 +08:00
27 lines
739 B
C#
27 lines
739 B
C#
using System.Runtime.InteropServices;
|
|
|
|
// ReSharper disable once CheckNamespace
|
|
namespace System
|
|
{
|
|
internal static class WinHttp
|
|
{
|
|
[DllImport("winhttp.dll", SetLastError = true)]
|
|
internal static extern bool WinHttpGetIEProxyConfigForCurrentUser(ref WinHttpCurrentUserIEProxyConfig pProxyConfig);
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
internal struct WinHttpCurrentUserIEProxyConfig
|
|
{
|
|
[MarshalAs(UnmanagedType.Bool)]
|
|
public bool AutoDetect;
|
|
|
|
[MarshalAs(UnmanagedType.LPWStr)]
|
|
public string AutoConfigUrl;
|
|
|
|
[MarshalAs(UnmanagedType.LPWStr)]
|
|
public string Proxy;
|
|
|
|
[MarshalAs(UnmanagedType.LPWStr)]
|
|
public string ProxyBypass;
|
|
}
|
|
} |