end process

G

Guest

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
 
V

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top