Stop an Executable from Starting which i dont have control of.

  • Thread starter Thread starter Samsudeen
  • Start date Start date
S

Samsudeen

There is an application "abc.exe" which i dont have control of. i need to
monitor this application and prevent it from starting & doing any
functionality. Killing it, when it try to startup is fine as long as it
doesnt do any functionalty such as actions written in initialization or
constructor code.
Through WMI ManagementEventWatcher i could track when it starts. But its too
late , i couldnt stop the application from being doing its functions when it
starts up. I really need to stop that application from being started up so
that i could do some checking and go about manually startup that
application(abc.exe).
Note: abc.exe is launched by the user of the application & i dont have
control over it.

Please help me on this.
 
From .NET? Tricky. You'd need to be a bit lower down, really. For
simple scenarios you can use some OS tools to repoint a process start
- so if the user loads "excel.exe" it actually launches
"calc.exe" (substitute your own "do nothing" exe here) - but that
won't stop them just renaming the exe file! Plus the name of the OS
tool has fled by memory (I'm just looking through some old notes to
see if I find it...).

Marc
 
So Marc, what you say is i will not be able to get through this being on top
of .Net? If you can deirect me how i can accomplish this functionality
through a low level means is ok failing to do so in c#.

Thnx Marc for the quick reply..
 
If you can deirect me how i can accomplish this functionality
through a low level means is ok failing to do so in c#.

Outside of my area, I'm afraid. I just know that C# isn't the best
place to try it...

Marc
 
Back
Top