value not update in Registry at given path in C#

Jan 8 2018 1:11 AM
value not update in Registry at given path in 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();
 
instead of given path value update at below path :-
 
@"Software\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Windows\";

Answers (1)