Reputation: 2747
I want to monitor the status of an application that runs in Windows. What is the best method (Win32 or newer API) that I can use to watch for when a specific application is run and execute another app of my choice thereafter?
Upvotes: 1
Views: 39
Reputation: 65516
You can use the WMI - see this SO question and answer How to monitor process/program execution in windows?.
Specifically the Win32_ProcessStartTrace class
There are some other options in that thread also.
Upvotes: 3