Question : C# - I want to add "Everyone" user with full permission to a registry hive. Is there a way for this?

Hi there;

I want to add "Everyone" user with full permission to a registry hive in C#. Is there a way for this?

I think I can create key and subkeys but I don't know how to add "Everyone" user in Windows and giving full permission that user. How can this be done?

Best regards.

Answer : C# - I want to add "Everyone" user with full permission to a registry hive. Is there a way for this?

Try the following
1:
2:
3:
4:
5:
6:
using System.Security.Permissions;

RegistryPermission permission = new RegistryPermission(RegistryPermissionAccess.AllAccess,@"HKEY_LOCAL_
MACHINE\Software\MySoftware\MyKey");

permission.Demand();
Random Solutions  
 
programming4us programming4us