The OpenSubKey method with one parameter opens the key for reading. Use another variation of the OpenSubKey method:
OpenSubKey(String, Boolean) - pass true for the second parameter to open the shared key for writing
OpenSubKey(String, RegistryKeyPermissionCheck) - Allows you to precisely control access control for connections.
OpenSubKey(String, RegistryKeyPermissionCheck, RegistryRights) - As indicated above, but you can specify the necessary rights exactly.
See MSDN for more details.
CF Jan 03 '12 at 14:57 2012-01-03 14:57
source share