|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
end processHi
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 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. Here is the signature
http://www.pinvoke.net/search.aspx?search=TerminateProcess&namespace=[All] -- Show quoteGregory A. Beamer MVP; MCP: +I, SE, SD, DBA ************************************************* Think outside of the box! ************************************************* "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 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 |
|||||||||||||||||||||||