473,386 Members | 1,693 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 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 1219
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Jay Haslup | last post by:
I am trying to figure out how to get the CMD (dos) window to come up when I call a executable. I have this working on a Win2000/apache machine and am trying to use the same code on a identical...
5
by: jwb | last post by:
Hello all, I just was wondering if any one knows how to compare compiled VB.NET executables to determine whether or not they are identical. In the dark ages (read: pre-CLR and .NET) one could...
4
by: Niel | last post by:
Hello friends, I think this issue has been posted before but i have not been able to get any solution that is why i am posting it again in detail as to what exactly is happneing in my case. Hope...
1
by: Peter Steele | last post by:
Okay, I assume I'm missing something obvious here. I have created a simple service in C# that on starting spawns a thread to do some processing. The service can be stopped with a "net stop" command...
6
by: Jacobus Terhorst | last post by:
Using C#: I tried: ServiceController me = new ServiceController(this.ServiceName); me.Stop(); it raises an exception: Cannot find Service I also tried:
2
by: Nathan | last post by:
I have created a windows service but am having difficulties handling exceptions in the OnStart. What I want to do is if an exeception occurs during any of the code executed during the OnStart is...
6
by: Phil Stanton | last post by:
I am running a query that calls a function used to format addresses depending on the width of a control on a report that shows that address. The same query is used as the RecordSource of lots of...
1
by: aj | last post by:
A few service stop/start/restart questions on SQL Server 2005 SP2, which I'll call SQLS. It looks as if there are *potentially* 6 ways to start/stop SQLS Services like the engine itself,...
5
by: Guillermo Antonio Amaral Bastidas | last post by:
Hi everybody, I have a quick and probably dumb question, keep in mind I just dumped my old love FastCGI + Perl for it's younger hotter friend PHP5. If the user calls a time consuming script...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.