"OSWatcher" class

J

John Spiegel

Hi all,

Not sure if there is anything, but I'm looking for direction on how I might
track the topmost process on my PC. Basically, I'm looking to build a
service that would monitor for any time a different window was fronted with
the idea being that it would be a quick estimator of where I'm spending all
my time (ore figuring out where all my time is going!)

If there's a "current processes" class that acts like the FileSystemWatcher,
it would seem rather simple. But I can't seem to find anything I can latch
onto the event of a process "coming forward".

Any directions?

TIA,

John
 
G

Guest

You can take a look into WMI (Windows Management Instrumentation). Do a
google search and also here on MSDN. Very powerful you can do a lot more than
just monitor the top application!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top