Possible Duplicate:
Track started applications in Windows
I’ like to create a program or service in C# which monitors when a user launches a certain application like excel or access. With System.Diagnostics.Process I can get the running processes but I want to monitor the event when a user launches the application. We’d like to create some sort of usage history.
I did a small example using WqlEventQuery object to check if there is a new instance of a process. Afterwards check for the name and do as you want. If you want to improve my query – feel free to have a look at the according syntax description.