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

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.
 
M

Marc Gravell

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
 
S

Samsudeen

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..
 
M

Marc Gravell

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
 

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