I have used solution of Mutex to disallow opening more than one instance of my application at the same time
but, when i use Switch User in windows and open another user, and try to open the application, it opened normally and can't detect that it's running on other account
how could i solve something like this and disallow opening the application among Logged in Windows User Accounts
i am using code like this
Dim onlyInstance As Boolean = False
_mutex = New Mutex(True, "Application Name", onlyInstance)
If Not onlyInstance Then
MessageBox.Show("Application is already running.", "Error.")
System.Diagnostics.Process.GetCurrentProcess.Kill()
System.Diagnostics.Process.GetCurrentProcess.WaitForExit()
End If