PS (Process Status) for Windows 95 and Windows NT

A PS (Process Status) program for Windows 95 and Windows NT. This is a program to list all the active processes under Windows 95 or Windows NT. It lists each program's full path name and Process ID. If you run it with no command line arguments, it displays the output on the console. If you supply an argument (regardless of what it is) it displays the output in a Listbox instead.

In addition, a simple "kill" command is included. If you type "kill" followed by the Process ID shown in the PS display, that process will be killed (unless it's a 16 bit Windows task, which would require a bit more work.) When using KILL, you can use hex, decimal or octal for the Process ID, following the normal C conventions -- a prefix of "0x" indicates hex, a prefix of `0' indicates octal, and no prefix indicates decimal.

Full source code.
VC++ 5.0 SP3 project files. (untested with earlier versions)
hand-written makefile for command line builds.


Unzip the into a directory of your choice. Assuming you have VC++ correctly intalled, switch to that directory and type nmake. The executable should come to a bit under 8K.

If you use the VC++ project files, you'll probably get a message telling you that the project has been moved -- this is normal unless you happen to pick exactly the path name to put it in that I used.

Known bugs:

1) Under NT, DOS programs are not displayed. (16 bit Windows programs are...)

2) If you attempt to use the PID supplied for a 16 bit Windows program under NT to kill the program, killing the program will fail unless the kill program takes the special nature of the program into account. (You can kill the NTVDM that the Windows program runs under, and with sufficient code, you should be able to kill the Windows program by itself as well, but I don't know of a kill program that does so.)

This code was written by Jerry Coffin. It is hereby released into the public domain. Since the program is free, I provide no guaranty or warranty of any sort with it. However, if you report any bugs to, there's a reasonable chance I'll try to fix them when I get a chance. Have fun.

Download demo project - 5KB

Download source - 16KB


  • help me please

    Posted by Legacy on 02/04/2004 12:00am

    Originally posted by: james lee

    what can i do by process handle ...?

  • Idle Time of a system through VC++

    Posted by Legacy on 09/13/2003 12:00am

    Originally posted by: Rama Sastry

    How can i Get the idle time of the system through vc++

  • How to get process info using process handle

    Posted by Legacy on 07/15/2003 12:00am

    Originally posted by: Alap

    Hi guys,

    I was trying to write a code using netstat and i wanted to list down process info for particular connection. I can get the handle from process id but then how to get process info using that process handle???


  • How can I get the networktraffic?

    Posted by Legacy on 03/27/2003 12:00am

    Originally posted by: Wolli

    How can I select the networktraffic and represented it in a view or diagram ?

  • How can I check if some process is running, or, not.

    Posted by Legacy on 03/25/2003 12:00am

    Originally posted by: Venkat

    How can I check if some process is running, or, not.

    I would like to check if some process is running, or, not. How can i do that? (instead of using the process's path, but, just using the name of the process.)


  • Grate toolkit you are the best - Don't try TLIST to do this job

    Posted by Legacy on 02/03/2003 12:00am

    Originally posted by: dror

    Grate toolkit you are the best - Don't try TLIST to do this job

  • How to get the CPU utilization of a computer

    Posted by Legacy on 01/15/2003 12:00am

    Originally posted by: Truong Quang Khai

    Please tell me how to measure CPU utilization of a computer.

  • Getting all processes running ?

    Posted by Legacy on 12/30/2002 12:00am

    Originally posted by: Bhavin,Mukesh

    How do we get all the processes running on Win2K using platform SDK ?

  • network

    Posted by Legacy on 11/19/2002 12:00am

    Originally posted by: ramu

    How to find how many computers are connected to lan.

  • How to run a process in a network computer?

    Posted by Legacy on 11/01/2002 12:00am

    Originally posted by: Senthil Kumar.c


    How we can run one computer process in another computer in a NT network. Is there any for this? Please give your ideas.


  • Loading, Please Wait ...

Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • Do you know where your data is? Consumer cloud-based file sharing services store your sensitive company data on servers outside of your control, outside of your policy and regulatory guidelines – maybe even outside your country – and not managed by you. The potential for data leakage, security breaches, and harm to your business is enormous. Download this white paper to learn about file sync and share alternatives that allow you to manage and protect your sensitive data while integrating and …

  • Available On-Demand Today's changing workforce dynamics, economic challenges, and technological advances are placing immense pressure on business leaders to turn their focus on people – their most valuable asset – in order to remain competitive. Research shows that a significant number of new employees quit within one year of taking a new job*. Whether it's through a merger and acquisition, or standard hiring process, like any first impression, early experiences shape their opinions of their new …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds