Find previous instance (not App.PrevInstance)
How can my application know if there are any previous instances of this application running, and know when they have terminated.
I want my program to be able to sit and wait until any previous instance of itself has terminated, before displaying a form. So App.PrevInstance is no good because it does not refresh.
The title of the windows in this application will not be constant, the only thing I will know for sure is the path to, and name of the .exe file.
So basically;
Are there some API's I can use to determine if windows is running any instances of an executable, that's not the current instance..
Thanks
Mutex, Semphores and more! Oh my!
Mutex, Semaphore..all one big heap of mumbo-jumbo to me at this point in time ;-)
I'll try seeing what MSDN has to say about Semaphores but if you can come up with an example that would be great.