I'm trying to detect whether a specific program is open, and then keep track of how long it stays open. Any ideas?
This is a discussion on Detecting if a program is open within the C++ Programming forums, part of the General Programming Boards category; I'm trying to detect whether a specific program is open, and then keep track of how long it stays open. ...
I'm trying to detect whether a specific program is open, and then keep track of how long it stays open. Any ideas?
I take it the program you want to track is not one you have written?!
what operating system? Cant think of any portable way of doing this without conditional compilation.
Free the weed!! Class B to class C is not good enough!!
And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi
Unless you want to use a mutex, if you know the file name then peruse this: http://msdn.microsoft.com/msdnmag/is...A/default.aspx
Gays can't love like real people
entropysink.com -- because arses weren't designed for running websites.
No it's not a program I've written... it would be running under Windows XP. Thanks for your help. I haven't finished checking out that website, Ken, but it looks helpful. Thank you!