building a program similiar to "task manager"

May 12 2005 10:13 PM
Suppose a process notepad.exe has started. I like to know how to detect a period of inactivity of a user for that process, for instance how long the user has not entered anything into notepad.Maybe System.Diagnostics can solve this problem but i did not find much information on the websites.Hope to gather some advice here. Thanks a lot