此代码插入注册表值
Microsoft.Win32.RegistryKey key;
key = Microsoft.Win32.Registry.LocalMachine.CreateSubKey("SOFTWARE\\Microsoft\\Internet Explorer\\MAIN\\FeatureControl\\FEATURE_BROWSER_EMULATION");
key.SetValue("MyBrowser.exe", 8000);
textBox1.Text = key.GetValue("MyBrowser.exe").ToString();
key.Close();
在 Windows 32 位工作,但在 64 位插入到 wow6432node 如何禁用重定向?