Monitor application switch. launch, and exit events

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to monitor "applications" much
like the Windows Task Manger does. All I want to know is what applications
are running, and which application is on top. However, I don't want to
"poll" the task manager for that info periodically. Instead, I need to know
whenever
there is a change in the status of the application window.

Are there events that deal with this?
 
Hi,

Use a window hook
http://msdn.microsoft.com/msdnmag/issues/02/10/CuttingEdge/

Ken
---------------------------
I want to monitor "applications" much
like the Windows Task Manger does. All I want to know is what applications
are running, and which application is on top. However, I don't want to
"poll" the task manager for that info periodically. Instead, I need to know
whenever
there is a change in the status of the application window.

Are there events that deal with this?
 
Hi Ken,
Thank you for your response. This solution doesn't quite provide me with
the behavior I was hoping for, and it doesn't seem like the mechanism that
the task manager uses to detect applications. I am not particularly
concerned with windows and dialog boxes. I just want to know when
applications are started and terminated. Is there any API that can get me
information from the Windows Task Manager? Maybe I can start there.
 
Back
Top