user1561108
user1561108

Reputation: 2747

Is there a method in the Windows API for firing off code when a specific application is run?

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

Answers (1)

Preet Sangha
Preet Sangha

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

Related Questions