G
Guest
I need to be certain my application only runs once on a machine, and I
implemented a solution using Mutex. The solution was posted many times, but
one great link I found is
http://www.yoda.arachsys.com/csharp/faq/#one.application.instance
The problem is, when I switch users (XP Professional) the second user can
open a second instance of the application! How can I prevent this?
Here's the relevant part of my code:
Sub Main()
Dim vBool As Boolean
Dim FirstInstance As New Mutex(False, "UniqueMutexName", vBool)
If Not vBool Then
Post message to user and exit.
End If
implemented a solution using Mutex. The solution was posted many times, but
one great link I found is
http://www.yoda.arachsys.com/csharp/faq/#one.application.instance
The problem is, when I switch users (XP Professional) the second user can
open a second instance of the application! How can I prevent this?
Here's the relevant part of my code:
Sub Main()
Dim vBool As Boolean
Dim FirstInstance As New Mutex(False, "UniqueMutexName", vBool)
If Not vBool Then
Post message to user and exit.
End If