views:

73

answers:

2

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.

+1  A: 

Use the constructor for SecurityIdentifier that takes a WellKnownSidType and use WellKnownSidType.WorldSid.

Stephen Martin
+1  A: 

Create a SecurityIdentifier with the constructor that takes WellknownSidType.WorldSid. The Domain SID doesn't matter.

Hans Passant