changing registry permission

  • Thread starter Thread starter Trups
  • Start date Start date
T

Trups

Has any one know how can I change registry permission
programmatically. I tried regini.exe bit it is changing permission
for that particular folder or key. I want to apply that permission
change for complete tree.
 
Trups said:
Has any one know how can I change registry permission
programmatically. I tried regini.exe bit it is changing permission
for that particular folder or key. I want to apply that permission
change for complete tree.

I don't know if there is a way to change the permission for a whole tree,
but you can change the permission of certain keys using
'RegistryKey.SetAccessControl'. You may want to use
'Microsoft.Win32.Registry' to loop through parts of the registry in order to
apply the permissions.
 
Back
Top