@swisston, , " ". , . mutex . . ( ): ;) , ;)
Edit:
. :
Mutex mutex = new Mutex(true, "MyPermissions");
, :
static bool CheckPermissions()
{
try
{
Mutex mutex = Mutex.OpenExisting("MyPermissions");
}
catch (Exception ex)
{
return false;
}
return true;
}
, CheckPermissions false ;)
source
share