Click here to Skip to main content
15,887,428 members
Articles / Programming Languages / C++
Article

MyTop - a Top/WinTop like application

Rate me:
Please Sign up or sign in to vote.
4.56/5 (3 votes)
26 Mar 2000 155.4K   1.7K   37   35
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


    Written By
    Software Developer (Senior)
    United States United States
    For the last 10 years I have worked for Xerox Corp. I am currently located in Hot Springs, AR, where I serve as Technology Manager for Xerox Imaging Services.

    Comments and Discussions

     
    GeneralRe: How to Modify other process's memory ? Pin
    Miguel Lopes15-Oct-03 4:36
    Miguel Lopes15-Oct-03 4:36 
    GeneralMytop Pin
    Stephen Carr3-May-00 16:58
    sussStephen Carr3-May-00 16:58 
    GeneralRe: Mytop Pin
    Darren Schroeder1-Jul-00 4:36
    Darren Schroeder1-Jul-00 4:36 
    GeneralRe: Mytop Pin
    18-Mar-01 23:07
    suss18-Mar-01 23:07 
    QuestionWin9x? Pin
    Jay2-May-00 13:47
    Jay2-May-00 13:47 
    AnswerRe: Win9x? Pin
    Member 192821-May-00 23:46
    Member 192821-May-00 23:46 
    GeneralRe: Win9x? Pin
    Darren Schroeder1-Jul-00 4:34
    Darren Schroeder1-Jul-00 4:34 
    QuestionWhat about % CPU Usage? Pin
    Member 348827-Mar-00 1:18
    Member 348827-Mar-00 1:18 
    AnswerRe: What about % CPU Usage? Pin
    Darren Schroeder1-Jul-00 4:31
    Darren Schroeder1-Jul-00 4:31 
    AnswerRe: What about % CPU Usage? Pin
    krism6-Feb-02 1:38
    krism6-Feb-02 1:38 

    General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

    Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.