"OSWatcher" class

  • Thread starter Thread starter John Spiegel
  • Start date Start date
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
 
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!!
 
Back
Top