Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2008 Feb : Detecting termination of any Process/Application
| Subject: | Detecting termination of any Process/Application |
| Posted by: | "faruk demirel" (f1delp..@gmail.com) |
| Date: | Wed, 6 Feb 2008 12:15:59 |
Hi;
I want to keep track the usage (in timely manner) of some programs on
Windows xp/2k.
So I want to write a watcher which logs the start and stop time of any
application.
e.g: for Notepad:
start stop
6.2.2008: 11:11:05 6.2.2008: 11:21:05
6.2.2008: 12:10:35 6.2.2008: 12:35:00
getting the process list periodically and comparing current list with
the previous one may be a solution But I hope that there should be a
notification to catch.
So I need to catch processstarted/Processterminated notifications (if
exist).
Any help...:)
Regards.
Faruk