How can I limited to just create a single instance of application?? When user click the exe agin , i want to opened application set to focus...like Outlook Express.
Although this is the accepted method (using a simple named mutex), there are
cases where it doesn't work, specifically when running in a different user
context such as under Terminal Services.
To get this method to unconditionally work, prepend the mutex name with
"Global\\".