Is there any way to create a read only registry key in C#?
When you create a subkey you can provide permissions, and you can also call SetAccessControl
afterwards. Both of these use the RegistrySecurity
class to represent the ACLs.
It's not as simple as "read-only" but it should be able to represent what you want.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With