「WinHttpSettings」レジストリ値を変更しようとしていますが、エラーが発生しています。スティーブB」を行った後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());
}
以下のどれ間違いのように試してみました告げられた変更:
RegistryKey local = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Connections",true);
、特に
RegistryKey local = Registry.LocalMachine.OpenSubKey(
@"SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Connections",
true
);
第二引数としてtrue
に気づく:0
私が望んでいたが '0000'
エラーは何ですか。 –
'レジストリキーに書き込めません。' – deepi