Here is your hint:
System.Diagonistics.Process.GetProcesses()
From the win32 api.
If you get the procs then you can find find the calls to the object returns that will kill each one that you choose.
Make sure to look at how the signals work so you send the right one, and be aware of the process tree so you don't kill a bunch of important processes where you just meant to kill one.