I\'ve been successfully creating a .net mutex like this: SingleIns = new Mutex(true, AppName); for a while. It works in XP, Vista, but apparently not in Windows7. So I nee
Should be as simple as:
private static System.Threading.Mutex _mutex = null;
const string guid = "{...GUID...}";
bool createdNew;
_mutex = new Mutex(true, guid, out createdNew);
if (!createdNew) {
// it is in use already
}
system wide mutex creation - ownership: https://stackoverflow.com/a/3111740/1644202