Assistance with detecting and closing app

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there an alternative process to detect when an application is launched and
close it (in .net 2.0)?

Is there some kind of event I can use to watch when an app is about to be
launched?


Currently I am looking into

FindWindow then GetWindowThreadProcessId then OpenProcess and then
TrminateProcess

Thanks
 
When the app starts, its main method is executed.

When an app is about to end, the Application.ApplicationExit Event is
raised. You can handle this event to execute your own code at app closing.

---------
- G Himangi, Sky Software http://www.ssware.com
Shell MegaPack : GUI Controls For Drop-In Windows Explorer like Shell
Browsing Functionality For Your App (.Net & ActiveX Editions).
EZNamespaceExtensions.Net : Develop namespace extensions rapidly in .Net
EZShellExtensions.Net : Develop all shell extensions,explorer bars and BHOs
rapidly in .Net
 
Back
Top