Hello,

How can I programmatically set user rights to a particular registry key? Is
this possible? All I have found so far is checkaccess to see if I can access
a key. For instance, If I want to set the ASPnet account to read only on a
registry key HKEY_LOCALMACHINE\software\mystuff\ ?

Re: Administrating the registry by Mattias

Mattias
Wed May 18 14:58:49 CDT 2005


>How can I programmatically set user rights to a particular registry key?

Use the RegSetKeySecurity API.



Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.