Hi all,
i m trying to read registry root keys and their subkeys but there are some keys on which access is not allowed. For getting access to such keys, i used the following code where keypath is the path to that particular key to which i want to gain access, such as HKLM\ SAM. but it still not allows me to read that key and throws an exception "Registrykey access not allowed". so plz tell me a way to do this. thanks
RegistryPermission f = new RegistryPermission(
RegistryPermissionAccess.Read,
keypath);