I want to make a program that monitors a certain process by its name given by the user.
So the program starts at computer start up and asks you the name of the process that you want it to monitor( e.x. "nfsw.exe" or "klimn.exe" or etc.) then after 3 hours you start the process "klimn.exe".
I want the program to monitor all proceses until you start the klimn.exe process and then keep track of how much time you spent in that process, and writes that time in a file, after you closed the file.
The thing is that i don't know nothing about process monitoring, i looked on the web i found some like process audit but a friend of mine told me that there is a way easier way to do that.
My question is what do i have to look for?I only need indications, link, etc.I want to do this by my own.