Is there some sort of service in the windows operating system that tracks all processes that have run on a computer throughout the day? Task manager tells you what is currently happening, but I want to find out what is happening throughout the entire day.
I know that it is possible to use WMI to monitor ongoing process creation and deletion, through system System.Management
namespace. E.g.:
String query = @"SELECT * FROM __InstanceOperationEvent WITHIN 1 WHERE TargetInstance ISA 'Win32_Process'";
ManagementEventWatcher watcher = new ManagementEventWatcher(query);
// Set up a listener for events
watcher.EventArrived += new EventArrivedEventHandler(this.HandleEvent);
// Start listening
watcher.Start();
But I am wondering if there is an API (even WMI) that already tracks process lifetimes for the current Windows session.
I apologize if my question is way too generic and vague.