I am trying to capture proxy setting (\"Automatically Detect Settings\"). My code works on XP and Vista. But it is NOT working on Windows 7
Please see the details of
I have a C# code snippet where you can Check/Uncheck 'Automatically detect settings' check box of IE Connection Settings. You can find what you are looking for in this snippet.
public bool IsIEAutoDetectProxy(bool set)
{
// Setting Proxy information for IE Settings.
RegistryKey RegKey = Registry.CurrentUser.OpenSubKey(@"Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Connections", true);
byte[] defConnection = (byte[])RegKey.GetValue("DefaultConnectionSettings");
if (defConnection[8] == Convert.ToByte(9))
return true;
else
return false;
}