注册表项未在C#中提到的路径更新
string path = @"Software\Microsoft\Windows NT\CurrentVersion\Windows\";
RegistryKey myKey = Microsoft.Win32.Registry.LocalMachine.OpenSubKey(path, true);
myKey.SetValue("USERProcessHandleQuota", 50000, RegistryValueKind.DWord);
myKey.Close();
Run Code Online (Sandbox Code Playgroud)
而不是在下面的路径更新给定的路径值: -
@"Software\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Windows\";
Run Code Online (Sandbox Code Playgroud)
我的机器是64位,我运行的应用程序是32位.
请建议如何更新,即在上述路径地址的值Software\Microsoft,而不是Software\wow6432node.
c# ×1