Hi all,
i m developing an application in which i need to traces whatever programs opened in windows. My application is running in taskbar and track which program is loaded in memory..
Plz can someone tell me how i can do it...its urgent plz.
Maybe you could save all the name of the processes(to a list) that are running right after windows is started, then whenever the number of processes increase, you check all the running processes against that list. You could have it check every 3-5 seconds or whichever you prefer. If you use .NET, this should be easier because of the Process class that is available. I'm assuming this is what your goal is...or I could be wrong.
A small amount of work allowed me to come up with this. It's a modified version of one i use. It should do all you want. Only problem is that right now it can only register one new process at a time. So if more than one process is started within five hundred miliseconds of each other, it will only pick up the first one. Change the timer interval to increase it's likelihood of picking it up. NB, it also does processes closing as well.
Hope it's what you're looking for.
KAZAR
The Law Of Programming:
As the Number of Lines of code increases, the number of bugs generated by fixing a bug increases exponentially.
__________________________________ www.startingqbasic.co.uk