Search code examples
.netglobalization

locale-independent way of getting standard windows registry security object


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.