I am looking for a WIN 32 API to detect application launch and termination in my application. I am looking to develop a dockBar/TaskBar for which I need to get handle of application that are launch and terminate.
Asked
Active
Viewed 875 times
1
-
1What have you tried so far? How did that work? How did that *not* work (often as important to know what did work)? – Some programmer dude Oct 25 '13 at 05:49
-
Try searching before you ask. I believe your answer is already supplied here: http://stackoverflow.com/questions/3556048/how-to-detect-win32-process-creation-termination-in-c – o_weisman Oct 25 '13 at 06:21
-
You can do this through WMI – David Heffernan Oct 25 '13 at 08:39
1 Answers
2
For a DockBar/TaskBar have a look at the RegisterShellHookWindow function.
Specifically, the HSHELL_WINDOWCREATED
and HSHELL_WINDOWDESTROYED
notification.

Paul
- 6,061
- 6
- 39
- 70