Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

MyTop - a Top/WinTop like application

0.00/5 (No votes)
26 Mar 2000 1  
An article on listing and killing processes
  • Download demo project - 124 Kb

    Sample Image - MyTop.jpg

    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!

  • License

    This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

    A list of licenses authors might use can be found here