Files
SteamTools/System.Application.SteamTools.Client.Desktop.Windows/WinHttp.cs
T
2021-02-27 01:40:02 +08:00

26 lines
698 B
C#

using System.Runtime.InteropServices;
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;
}
}