|
Posted by Amit on May 25, 2007, 3:09 am
Please log in for more thread options
You can create a named mutex at the start of the application.check for the
Getlasterror value,if it is ERROR_ALREADY_EXIXTS then another instance of
your application is running.You can then bring the running instance on the
foregroud and then exit
--
Thanks and Regards
Amit Ranjan
blog:http://amitranjan.wordpress.com
"vjsharma_27" wrote:
> How to ensure that only one instance of an application is running on pocket
> pc? Give me both example for c++ application and C# application.
|