I wanted to know if anyone knows of a way to catch new applications starting or stopping on a computer. for instance, a user logs in and opens word, outlook, or IE. I want to catch that instance opening. I have been working with Process.
I am building a service that runs in the background and writes to the event log.
public string applicationID()
{
Process p = new Process();
string application = p.ProcessName.ToString();
return application;
}
I know to do a foreach to get the process list. Some pointers or samples would be great.