I need to prevent users of the company I work from opening many applications 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 being opened.
I searched for something native to windows and could not find it. So I thought I'd create some C # service so I could monitor that.
So here's the question. Is it possible in C # to check some kind of event when an X application is started in windows? For that moment I check how many processes it exists?
Any other alternative to help me with the problem is welcome.