Assistance with detecting and closing app

Assistance with detecting and closing app

am 30.09.2007 23:30:01 von Chris

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

Re: Assistance with detecting and closing app

am 01.10.2007 10:10:26 von 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
---------


"Chris" wrote in message
news:B5B56D67-4B4E-4723-931B-454E5175C625@microsoft.com...
> 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