Assistance with detecting and closing app

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
 
G

G Himangi

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top