0

Hi

I want to change the permission of a registry key , and I want to set it as a read only...

How can I do that ???

I tried this way, but it doesn't change anything, also it doesn't give me anything. like nothing is happened...

RegistryPermission rp = new RegistryPermission(RegistryPermissionAccess.Read, "HKEY_LOCAL_MACHINE\\SOFTWARE\\paci_1\\identity\\ASPNET_SETREG");
            rp.AddPathList(RegistryPermissionAccess.Read, "HKEY_LOCAL_MACHINE\\SOFTWARE\\paci_1\\identity\\ASPNET_SETREG");

am I missing anything ??

also, how can i specify it if I want it for a user or administrator or owner ...etc ??

Thanks alot....

2
Contributors
2
Replies
4
Views
6 Years
Discussion Span
Last Post by abd640
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.