Home All Groups Group Topic Archive Search About
Author
14 Sep 2006 7:22 AM
Julia
Hi

I have a windows program (C#) and I need to end a process from my
application. This shold work equal to when you open the Windows Task Manager
and right klick on a process and choose "end process". Any ideas?

Thanks
Julia

Author
14 Sep 2006 7:54 AM
Vadym Stetsyak
Hello, Julia!

J> I have a windows program (C#) and I need to end a process from my
J> application. This shold work equal to when you open the Windows Task
J> Manager and right klick on a process and choose "end process". Any
J> ideas?

If you want to terminate another process from yours, take a look at
TerminateProcess Win32 function. To use it you'll have to do P/Invoke.

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
Author
14 Sep 2006 1:07 PM
Cowboy (Gregory A. Beamer)
Here is the signature
http://www.pinvoke.net/search.aspx?search=TerminateProcess&namespace=[All]

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************************************************
Think outside of the box!
*************************************************
Show quote
"Vadym Stetsyak" <vady***@ukr.net> wrote in message
news:uEoBQK91GHA.1548@TK2MSFTNGP02.phx.gbl...
> Hello, Julia!
>
> J> I have a windows program (C#) and I need to end a process from my
> J> application. This shold work equal to when you open the Windows Task
> J> Manager and right klick on a process and choose "end process". Any
> J> ideas?
>
> If you want to terminate another process from yours, take a look at
> TerminateProcess Win32 function. To use it you'll have to do P/Invoke.
>
> --
> Regards, Vadym Stetsyak
> www: http://vadmyst.blogspot.com
Author
14 Sep 2006 1:14 PM
Laura T
System.Diagnostics.Process.Kill()

Show quote
"Julia" <Ju***@discussions.microsoft.com> ha scritto nel messaggio
news:AD32CD93-1C54-4466-ABD9-B5B8E26B9CDF@microsoft.com...
> Hi
>
> I have a windows program (C#) and I need to end a process from my
> application. This shold work equal to when you open the Windows Task
> Manager
> and right klick on a process and choose "end process". Any ideas?
>
> Thanks
> Julia

AddThis Social Bookmark Button