Does anybody have any idea on how can I detect when an application is being launched using C#?
Printable View
Does anybody have any idea on how can I detect when an application is being launched using C#?
Your application will have a static main() method, this is the entry point for the application. This is the function that gets called when the application is launched. What exactly is that you want to do?
Do you with an other application? Than you can periodically check Process.GetProcesses().
I want to detect when a process is created when an application is launched and possibly stop it before launching.
Which process do you want want to stop from launching? Did you take a look at what Arjay posted?
Have you tried setting up proper rights on the Windows system so that the user can only use certain specific applications?