Click to See Complete Forum and Search --> : Detecting application launch in C#


deathsbane
September 8th, 2009, 02:49 AM
Does anybody have any idea on how can I detect when an application is being launched using C#?

Shuja Ali
September 8th, 2009, 02:57 PM
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?

boudino
September 9th, 2009, 01:58 AM
Do you with an other application? Than you can periodically check Process.GetProcesses().

deathsbane
September 12th, 2009, 02:07 AM
I want to detect when a process is created when an application is launched and possibly stop it before launching.

Shuja Ali
September 12th, 2009, 01:28 PM
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?