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\";