Download demo project - 124 Kb
Have you ever tried to kill a process with Windows NT's Task Manager and couldn't? Well now you can with MyTop... at least most of them. As much as I'd likt to take the credit for this application i cannot. The guts of it come straight from MSDN's Code Center http://msdn.microsoft.com/code. A nice little applicatoin called TList. I took TList, which is a command line program and put an interface on it. It's pretty intuitive. All you do is start it and right click on the task you want to kill and then left click on Kill Process. That's it. MyTop will tell you if the process was killed successfully or not.
DISCLAIMER: One should be careful about killing certain process id's. It could cause MAJOR problems.
This is a dialog based application that uses a ListCtrl. I'm running Windows 2000 Pro so I know it works here. The code is supposed to work in Win9x but i have not tried or tested this. All comments and/or suggestions are welcome Darren Schroeder. BTW, I know the code is nasty but that was one key to this article. It's a "How-To" hack code together so it works. I've tried to leave all Microsofts code in tact and only comment it out. There may be a few lines where i just deleted it.
That's it!