How to get the IdentityReference for “Everyone” to create MutexAccessRule on localized systems?

后端 未结 1 1212
广开言路
广开言路 2020-12-16 11:28

I\'d like to use the code as in this question or this question to create a system wide Mutex.
This works fine on most systems, but on a German XP installation I get the

相关标签:
1条回答
  • 2020-12-16 12:10

    Just found the solution by continuing searching. See the answer to this question here:

    new SecurityIdentifier(WellKnownSidType.WorldSid, null)
    

    This can be used rather than "Everyone".

    Can someone mark this question here as duplicate if found correct?

    0 讨论(0)
提交回复
热议问题