Hello,
I have created a VB.NET application.
I want only one instance of application to be running on one machine at a time.
It worked with Process.getCurrentProcess and checking FilePrivatePart of Module\FileVersion\
For accessing the process class User on that machine needs to be an administrator.
But my application is runned even though user is not administrator.
Could any let me know how to solve this.
One more thing user can copy the exe to another and run also..
Regards
Amit Pandya

Getting process running when user is not administrator
Frederic Jacqueme
http://msdn.microsoft.com/msdnmag/issues/01/12/NETServ/
Sung Kim
Hello James,
Thanks for the link it was helpful to some extend.
But in this there can be multiple instances of multiple user of the same machine.
I wanted only one instance in one machine either it is an Admin,
Guest or anyother.
The application can be started only once in this system.
Any ideas.
Regards
Amit Pandya
VeeraMuthiah
If you don't need to communicate between instances, you can also try to acquire a named Mutex. If you fail to acquire the mutex, another instance of your app must be running and you can simply exit. This technique also works under non-admin privileges.