Click here to Skip to main content
15,867,453 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 155K   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

     
    QuestionHow prevent service from termination from Task Manager ? Pin
    R@gi22-Jun-06 4:08
    R@gi22-Jun-06 4:08 
    GeneralCouple problems. Pin
    WREY18-Dec-03 12:47
    WREY18-Dec-03 12:47 
    GeneralSome proccess can't be killed! Pin
    ICE_WIZARD16-Aug-03 5:47
    ICE_WIZARD16-Aug-03 5:47 
    GeneralRe: Some proccess can't be killed! Pin
    Darren Schroeder30-Aug-03 5:11
    Darren Schroeder30-Aug-03 5:11 
    QuestionHow can I invoke ShellExecuteEx in service Pin
    xp++xp24-Feb-03 4:58
    xp++xp24-Feb-03 4:58 
    AnswerRe: How can I invoke ShellExecuteEx in service Pin
    Darren Schroeder24-Feb-03 12:02
    Darren Schroeder24-Feb-03 12:02 
    AnswerRe: How can I invoke ShellExecuteEx in service Pin
    Andrew Allen4-Jun-03 17:23
    Andrew Allen4-Jun-03 17:23 
    AnswerRe: How can I invoke ShellExecuteEx in service Pin
    Paul Farry16-Jul-03 3:24
    professionalPaul Farry16-Jul-03 3:24 
    you may need to set the "allow service to interact with the desktop".


    GeneralRe: How can I invoke ShellExecuteEx in service Pin
    Silent Mobius3-Jun-04 10:14
    Silent Mobius3-Jun-04 10:14 
    QuestionIs there any solution to detect killed processes? Pin
    Jinhyuck Jung12-Aug-02 19:18
    Jinhyuck Jung12-Aug-02 19:18 
    AnswerRe: Is there any solution to detect killed processes? Pin
    Darren Schroeder13-Aug-02 1:44
    Darren Schroeder13-Aug-02 1:44 
    GeneralRe: Is there any solution to detect killed processes? Pin
    Blake Miller12-Feb-03 8:40
    Blake Miller12-Feb-03 8:40 
    QuestionWhat is 'DDE Server Window'? Pin
    25-Mar-02 21:49
    suss25-Mar-02 21:49 
    GeneralMemset Pin
    14-Jan-02 21:25
    suss14-Jan-02 21:25 
    QuestionBring tasks to front? Pin
    15-Dec-01 21:37
    suss15-Dec-01 21:37 
    GeneralCPU utilization Pin
    6-Jun-01 14:54
    suss6-Jun-01 14:54 
    GeneralRe: CPU utilization Pin
    1-Jul-02 10:47
    suss1-Jul-02 10:47 
    QuestionHow do I obtain the text from other's application edit control? Pin
    Corneanu Romulus14-May-01 0:59
    Corneanu Romulus14-May-01 0:59 
    AnswerRe: How do I obtain the text from other's application edit control? Pin
    krism6-Feb-02 1:28
    krism6-Feb-02 1:28 
    AnswerRe: How do I obtain the text from other's application edit control? Pin
    Prashant_ultim17-Jul-03 21:11
    Prashant_ultim17-Jul-03 21:11 
    GeneralHWND Pin
    Daniele Piazza30-Jun-00 23:00
    Daniele Piazza30-Jun-00 23:00 
    GeneralRe: HWND Pin
    Darren Schroeder1-Jul-00 4:39
    Darren Schroeder1-Jul-00 4:39 
    GeneralRe: HWND Pin
    Daniele Piazza6-Jul-00 21:35
    Daniele Piazza6-Jul-00 21:35 
    QuestionHow to Modify other process's memory ? Pin
    Member 192821-May-00 23:31
    Member 192821-May-00 23:31 
    AnswerRe: How to Modify other process's memory ? Pin
    sburnap27-Jun-00 9:38
    sburnap27-Jun-00 9: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.