Trigger some kind of event when an application opens in c#

Asked

Viewed 29 times

1

I need to stop working business users from opening many apps at the same time. For example, ABC.exe application can only be opened once on the computer (or 2x). So if you already have two instances of the ABC.exe process open in windows, prevent a third instance from opening.

I searched something native windows and did not find. So I thought I’d create some c# service so I could monitor it.

So here’s the question. Is it possible in C#, to check some kind of event when an X application starts in windows ? For now I check how many of his files there are ?

Any other alternative to help me with the problem is welcome.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.