how to check if the application is running

Posted By: bobby_danseco

how to check if the application is running - 01/18/10 08:24

how to check if the application is running already.
i wanted to avoid running of multiple instances incidentally..

thanks
Posted By: KDuke

Re: how to check if the application is running - 01/18/10 12:43

I guess you have to resort to the Windows "Process Status API".
Here is a sample of how to obtain information about all currently running processes:
Enumerating All Processes (Windows)

greeting
K-Duke
Posted By: bobby_danseco

Re: how to check if the application is running - 01/18/10 13:13

Thanks KDude laugh
Posted By: DJBMASTER

Re: how to check if the application is running - 01/18/10 18:53

The most efficient way would be to create a MUTEX using win32 functions 'CreateMutex','OpenMutex', etc.
© 2024 lite-C Forums