Home » U++ Library support » TopWindow&PopUp, TrayIcon » How to check whether application is running
Re: How to check whether application is running [message #38770 is a reply to message #27874] |
Wed, 16 January 2013 12:29 |
|
Alboni
Messages: 214 Registered: January 2012 Location: Deventer, Netherlands
|
Experienced Member |
|
|
GUI_APP_MAIN
{
HANDLE mutex = ::CreateMutex(0, true, "__MYAPP_EXE__");
if (!mutex)
{
PromptOK("Cannot open MUTEX.");
return;
}
if (GetLastError()==ERROR_ALREADY_EXISTS)
{
PromptOK("Program is already started.");
CloseHandle(mutex);
return;
}
App().Run();
CloseHandle(mutex);
}
[Updated on: Wed, 16 January 2013 12:29] Report message to a moderator
|
|
|
|
|
How to check whether application is running
By: bushman on Mon, 09 August 2010 03:59
|
|
|
Re: How to check whether application is running
By: bushman on Mon, 09 August 2010 04:16
|
|
|
Re: How to check whether application is running
|
|
|
Re: How to check whether application is running
By: bushman on Mon, 09 August 2010 05:18
|
|
|
Re: How to check whether application is running
|
|
|
Re: How to check whether application is running
By: unodgs on Tue, 10 August 2010 22:47
|
|
|
Re: How to check whether application is running
By: kohait00 on Fri, 13 August 2010 16:21
|
|
|
Re: How to check whether application is running
By: Alboni on Wed, 16 January 2013 12:29
|
|
|
Re: How to check whether application is running
By: lectus on Wed, 16 January 2013 14:38
|
|
|
Re: How to check whether application is running
By: Alboni on Wed, 16 January 2013 15:44
|
|
|
Re: How to check whether application is running
|
|
|
Re: How to check whether application is running
By: lectus on Fri, 18 January 2013 01:56
|
|
|
Re: How to check whether application is running
|
|
|
Re: How to check whether application is running
By: Alboni on Wed, 16 January 2013 17:38
|
|
|
Re: How to check whether application is running
By: Alboni on Wed, 16 January 2013 18:01
|
|
|
Re: How to check whether application is running
By: BioBytes on Wed, 16 January 2013 21:32
|
Goto Forum:
Current Time: Mon Jun 03 00:33:52 CEST 2024
Total time taken to generate the page: 0.01491 seconds
|