Terminate Already-Existing App Instance
Hi Everyone,
I wrote a special app in VB6 that runs every 15 minutes on a network server, 24x7.
What I need to do is check to see if another instance of this same application is running, and if another instance is already running, is to terminate the previous instance of the app, not the instance of the one that is trying to kick off.
I've used App.PrevInstance in other apps to get the current instance to end if another one is out there, but this time I need to do things the other way around.
I've been digging through some process-related APIs, but I'm not having much luck.
Does anyone have an idea for using some specific API functions or another method to get this to work?
Thank You! :)
Warren
|