我試圖更改'WinHttpSettings'註冊表值,但它給出錯誤。我試着像下面要更改WinHttpSettings註冊表值
RegistryKey OurKey = Registry.LocalMachine;
//MessageBox.Show(OurKey.ToString());
RegistryKey local = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Connections");
string value = local.GetValue("WinHttpSettings").ToString();
byte[] b ={ 1, 1, 1, 1 };
if (value != null)
{
local.SetValue("WinHttpSettings",b);
//MessageBox.Show(value.ToString());
}
任何錯誤,我在上面的代碼或任何其他解決方案
之前在註冊表中所做的值象下面這樣:
做「史蒂夫B」後告訴變更:
RegistryKey local = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Connections",true);
但我想是改變第一圖像值 '0000'
什麼是錯誤! –
'無法寫入註冊表項。' – deepi