closing a process

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • vidya nair via DotNetMonster.com

    #1

    closing a process

    hi
    i am doing a socket program in c#. and i m invoking a whiteboard
    application in
    server side and at the same time it should be invoking the other end ie in
    client side. i want to close the application in the client end when i close
    it in the server side. how can it be possible in c#
    how can i get the handle of the whiteboard application while closing the
    application.
    expecting ur reply

    vidya

    --
    Message posted via http://www.dotnetmonster.com
  • Chad Z. Hower aka Kudzu

    #2
    Re: closing a process

    "vidya nair via DotNetMonster.c om" <forum@nospam.D otNetMonster.co m> wrote in
    news:c555e082bb cf4956b24abf29b 1488430@DotNetM onster.com:[color=blue]
    > server side and at the same time it should be invoking the other end ie in
    > client side. i want to close the application in the client end when i close
    > it in the server side. how can it be possible in c#[/color]

    You have to send a signal/command and act on that.


    --
    Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
    "Programmin g is an art form that fights back"

    Develop ASP.NET applications easier and in less time:

    Comment

    • Senthil Kumar

      #3
      Re: closing a process

      AFAIK, you can't remotely kill a process. What you can do is send a
      message to the other side indicating that this side is closing. The
      other side can then shut itself down on seeing the message.

      Comment

      • Yosh

        #4
        Re: closing a process

        "You can't remotely kill a process?"

        You can using WMI. We are doing it now.

        "Senthil Kumar" <senthilkumar@w devs.com> wrote in message
        news:1115469025 .392660.196300@ o13g2000cwo.goo glegroups.com.. .[color=blue]
        > AFAIK, you can't remotely kill a process. What you can do is send a
        > message to the other side indicating that this side is closing. The
        > other side can then shut itself down on seeing the message.
        >[/color]


        Comment

        • Bob Grommes

          #5
          Re: closing a process

          You can also do it by having a remoting server on the remote machine that
          makes the actual request, and has an interface through which authorized
          clients can make the request.

          --Bob

          "Yosh" <Yosh@nospam.co m> wrote in message
          news:%23dVgFiwU FHA.2172@tk2msf tngp13.phx.gbl. ..[color=blue]
          > "You can't remotely kill a process?"
          >
          > You can using WMI. We are doing it now.
          >
          > "Senthil Kumar" <senthilkumar@w devs.com> wrote in message
          > news:1115469025 .392660.196300@ o13g2000cwo.goo glegroups.com.. .[color=green]
          >> AFAIK, you can't remotely kill a process. What you can do is send a
          >> message to the other side indicating that this side is closing. The
          >> other side can then shut itself down on seeing the message.
          >>[/color]
          >
          >[/color]


          Comment

          Working...