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....

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.