locale-independent way of getting standard windows registry security object
-
22-07-2019 - |
Question
Is there a way to get the built-in "Everyone" registry security object in a locale-independent manner? I want to make a RegistryAccessRule without needing to translate "Everyone" to each language.
Solution
Create a SecurityIdentifier with the constructor that takes WellknownSidType.WorldSid. The Domain SID doesn't matter.
OTHER TIPS
Use the constructor for SecurityIdentifier that takes a WellKnownSidType and use WellKnownSidType.WorldSid.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow