Skip to content

Instantly share code, notes, and snippets.

@ye4241
ye4241 / InternetExplorerProxyHelper.cs
Created September 21, 2017 05:20
Change IE proxy via C#
[DllImport("wininet.dll")]
public static extern bool InternetSetOption(IntPtr hInternet, int dwOption, IntPtr lpBuffer, int dwBufferLength);
public const int INTERNET_OPTION_SETTINGS_CHANGED = 39;
public const int INTERNET_OPTION_REFRESH = 37;
static void setProxy(string proxyhost, bool proxyEnabled)
{
const string userRoot = "HKEY_CURRENT_USER";
const string subkey = "Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings";
@ye4241
ye4241 / Update-AUPackages.md
Last active July 3, 2024 18:01
Update-AUPackages Report #powershell #chocolatey
@ye4241
ye4241 / aggregator
Last active June 23, 2024 08:06
aggregator
https://github.com/wzdnzd/aggregator