471,325 Members | 1,450 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,325 software developers and data experts.

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

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.

Aug 19 '08 #1
5 1146
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
Aug 19 '08 #2
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..

Aug 19 '08 #3
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
Aug 19 '08 #4
The tool I meants was the "global flags" editor - search for
Gflags.exe

Marc
Aug 19 '08 #5


"Marc Gravell" wrote:
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
Thnx Marc for your time. i really appreciate on your reply.. should see for
other means to get my work done though..
Thnx again..
Shiham
Aug 19 '08 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Jay Haslup | last post: by
1 post views Thread by Peter Steele | last post: by
6 posts views Thread by Jacobus Terhorst | last post: by
2 posts views Thread by Nathan | last post: by
6 posts views Thread by Phil Stanton | last post: by
5 posts views Thread by Guillermo Antonio Amaral Bastidas | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.