Changing OEM Info in C#
How do I add/change OEMInformation registry keys using C#?
I tried to use this code but it returns an error :
RegistryKey myKey =
Registry.LocalMachine.OpenSubKey(@"SOFTWARE\\Microsoft\Windows\CurrentVersion\OEMInformation",
true);
myKey.SetValue("manufacturer", "Asus", RegistryValueKind.String);
This error is being returned :
An unhandled exception of type 'System.Security.SecurityException'
occurred in mscorlib.dll
Additional information: Requested registry access is not allowed.
No comments:
Post a Comment