Click here to Skip to main content
12,510,189 members (54,550 online)
Click here to Skip to main content
Add your own
alternative version

Stats

140.3K views
1.6K downloads
36 bookmarked
Posted

MyTop - a Top/WinTop like application

, 26 Mar 2000
Rate this:
Please Sign up or sign in to vote.
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

    Share

    About the Author

    Darren Schroeder
    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.

    You may also be interested in...

    Pro
    Pro

    Comments and Discussions

     
    QuestionHow prevent service from termination from Task Manager ? Pin
    R@gi22-Jun-06 4:08
    memberR@gi22-Jun-06 4:08 
    GeneralCouple problems. Pin
    WREY18-Dec-03 12:47
    memberWREY18-Dec-03 12:47 
    GeneralSome proccess can't be killed! Pin
    ICE_WIZARD16-Aug-03 5:47
    memberICE_WIZARD16-Aug-03 5:47 
    GeneralRe: Some proccess can't be killed! Pin
    Darren Schroeder30-Aug-03 5:11
    memberDarren Schroeder30-Aug-03 5:11 
    QuestionHow can I invoke ShellExecuteEx in service Pin
    xp++xp24-Feb-03 4:58
    memberxp++xp24-Feb-03 4:58 
    AnswerRe: How can I invoke ShellExecuteEx in service Pin
    Darren Schroeder24-Feb-03 12:02
    memberDarren Schroeder24-Feb-03 12:02 
    AnswerRe: How can I invoke ShellExecuteEx in service Pin
    Andrew Allen4-Jun-03 17:23
    memberAndrew Allen4-Jun-03 17:23 
    AnswerRe: How can I invoke ShellExecuteEx in service Pin
    Paul Farry16-Jul-03 3:24
    memberPaul Farry16-Jul-03 3:24 
    GeneralRe: How can I invoke ShellExecuteEx in service Pin
    Silent Mobius3-Jun-04 10:14
    memberSilent Mobius3-Jun-04 10:14 
    QuestionIs there any solution to detect killed processes? Pin
    Jinhyuck Jung12-Aug-02 19:18
    memberJinhyuck Jung12-Aug-02 19:18 
    AnswerRe: Is there any solution to detect killed processes? Pin
    Darren Schroeder13-Aug-02 1:44
    memberDarren Schroeder13-Aug-02 1:44 
    GeneralRe: Is there any solution to detect killed processes? Pin
    Blake Miller12-Feb-03 8:40
    memberBlake Miller12-Feb-03 8:40 
    QuestionWhat is 'DDE Server Window'? Pin
    Anonymous25-Mar-02 21:49
    memberAnonymous25-Mar-02 21:49 
    GeneralMemset Pin
    Kwakkie14-Jan-02 21:25
    memberKwakkie14-Jan-02 21:25 
    QuestionBring tasks to front? Pin
    Ryan Aligen15-Dec-01 21:37
    memberRyan Aligen15-Dec-01 21:37 
    GeneralCPU utilization Pin
    Anonymous6-Jun-01 14:54
    memberAnonymous6-Jun-01 14:54 
    GeneralRe: CPU utilization Pin
    Anonymous1-Jul-02 10:47
    memberAnonymous1-Jul-02 10:47 
    QuestionHow do I obtain the text from other's application edit control? Pin
    Corneanu Romulus14-May-01 0:59
    memberCorneanu Romulus14-May-01 0:59 
    AnswerRe: How do I obtain the text from other's application edit control? Pin
    deadface6-Feb-02 1:28
    memberdeadface6-Feb-02 1:28 
    AnswerRe: How do I obtain the text from other's application edit control? Pin
    Prashant_ultim17-Jul-03 21:11
    memberPrashant_ultim17-Jul-03 21:11 
    GeneralHWND Pin
    Daniele Piazza30-Jun-00 23:00
    sussDaniele Piazza30-Jun-00 23:00 
    GeneralRe: HWND Pin
    Darren Schroeder1-Jul-00 4:39
    sussDarren Schroeder1-Jul-00 4:39 
    GeneralRe: HWND Pin
    Daniele Piazza6-Jul-00 21:35
    sussDaniele Piazza6-Jul-00 21:35 
    QuestionHow to Modify other process's memory ? Pin
    Homles21-May-00 23:31
    sussHomles21-May-00 23:31 
    AnswerRe: How to Modify other process's memory ? Pin
    sburnap27-Jun-00 9:38
    susssburnap27-Jun-00 9:38 
    GeneralRe: How to Modify other process's memory ? Pin
    Miguel Lopes15-Oct-03 4:36
    memberMiguel 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
    sussDarren Schroeder1-Jul-00 4:36 
    GeneralRe: Mytop Pin
    Armin Gerritsen18-Mar-01 23:07
    memberArmin Gerritsen18-Mar-01 23:07 
    QuestionWin9x? Pin
    Jay2-May-00 13:47
    sussJay2-May-00 13:47 
    AnswerRe: Win9x? Pin
    Homles21-May-00 23:46
    sussHomles21-May-00 23:46 
    GeneralRe: Win9x? Pin
    Darren Schroeder1-Jul-00 4:34
    sussDarren Schroeder1-Jul-00 4:34 
    QuestionWhat about % CPU Usage? Pin
    Paul Barrass27-Mar-00 1:18
    sussPaul Barrass27-Mar-00 1:18 
    AnswerRe: What about % CPU Usage? Pin
    Darren Schroeder1-Jul-00 4:31
    sussDarren Schroeder1-Jul-00 4:31 
    AnswerRe: What about % CPU Usage? Pin
    deadface6-Feb-02 1:38
    memberdeadface6-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.

    | Advertise | Privacy | Terms of Use | Mobile
    Web02 | 2.8.160929.1 | Last Updated 27 Mar 2000
    Article Copyright 2000 by Darren Schroeder
    Everything else Copyright © CodeProject, 1999-2016
    Layout: fixed | fluid