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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?U2Ftc3VkZWVu?=

    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 ManagementEvent Watcher 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.

  • Marc Gravell

    #2
    Re: Stop an Executable from Starting which i dont have control of.

    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

    Comment

    • =?Utf-8?B?U2Ftc3VkZWVu?=

      #3
      Re: Stop an Executable from Starting which i dont have control of.

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

      Comment

      • Marc Gravell

        #4
        Re: Stop an Executable from Starting which i dont have control of.

        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

        Comment

        • Marc Gravell

          #5
          Re: Stop an Executable from Starting which i dont have control of.

          The tool I meants was the "global flags" editor - search for
          Gflags.exe

          Marc

          Comment

          • =?Utf-8?B?U2Ftc3VkZWVu?=

            #6
            Re: Stop an Executable from Starting which i dont have control of.



            "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

            Comment

            Working...