I need to check if a MS Access app is up and have been told I can do this using WinAPI's - How?

In an earlier question I was told that I can check if a MS Access app is up and running using WinAPI's. Can anyone tell me how this works or a viable alternative?
Rob4077Asked:
Who is Participating?
 
Rey Obrero (Capricorn1)Commented:
0
 
Rey Obrero (Capricorn1)Commented:
0
 
Rob4077Author Commented:
Hi capricorn1. Doesn't that just tell me if MS Access is running. How do I use it to tell if a particular mdb is running, e.g. myApp.accdb?
0
 
Rob4077Author Commented:
Thanks for the link. Looks like I could make it worm but if I run the code as suggested then the second instance of the app will launch momentarily, flicker on the task bar as it checks to see if the mutex already exists and then closes when it realises it does. In my case, I suspect I should get the other application to check each loop if the mutex exists and only launch again of it's not already running. Does that sound reasonable?
0
 
Rob4077Author Commented:
Thanks for the code. Turned out to be easy once I started.

I put a loop in the parent app that looks for the mutex. If it finds it then it does nothing but if it doesn't find the mutex it launches the slave app. When the slave app starts it creates the Mutex. Perfect!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.