mirror of
https://github.com/BeyondDimension/SteamTools.git
synced 2026-10-29 07:27:36 +08:00
add OpenSourceLibrary
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user