initial commit
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
using System.Threading;
|
||||
|
||||
namespace CvMega.Helper;
|
||||
|
||||
public static class MutexControl
|
||||
{
|
||||
public static Mutex currentApp;
|
||||
|
||||
public static bool createdNew;
|
||||
|
||||
public static bool CreateMutex(string mtx)
|
||||
{
|
||||
currentApp = new Mutex(initiallyOwned: false, mtx, out createdNew);
|
||||
return createdNew;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user