I know that Mutex
can be used to determine if another instance of application is running, but can I find from Mutex
the PID or name of the other instance? And if not from Mutex
, is there another way around to kill other instance if it is running. This is kinda tricky, because it also must be bounded to user and it shouldn't use files to do the trick (I know that Mutex
creates files, but those created by .NET via internal functions are OK).
Note that I need to get info of other instance to kill it.
Thanks for reading!
Something like this ought to do you: