111,089
社区成员




SecurityIdentifier everyone = new SecurityIdentifier(WellKnownSidType.WorldSid, null);
MutexAccessRule allowEveryone = new MutexAccessRule(everyone, MutexRights.FullControl, AccessControlType.Allow);
MutexSecurity mutexSecurity = new MutexSecurity();
mutexSecurity.AddAccessRule( allowEveryone );
bool createNew;
Mutex mutex = new Mutex(false, "MyMutex", out createNew, mutexSecurity);