add OpenSourceLibrary

This commit is contained in:
Aigio Liu
2021-02-27 01:40:02 +08:00
parent 29118b6047
commit aacbf01635
24 changed files with 5645 additions and 107 deletions
@@ -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;
}
}