472,971 Members | 1,824 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,971 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 1206
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: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
3
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.