Please note that there is a known memory leak issue caused by MS. Read this KB
article: KB893317

I assume the user is familiar with WMI and has already set up his/her machine to compile WMI projects. if not, then check Set Up Delphi For WMI

List all running process with PID on the local machine using WMI in Delphi

Not much of an article since I don't have time to write it, so here is the source code.

I will try to cover everything needed in time.

History:

  • (13.Jul.2008) Rearranged code, removed unneeded stuff, documented IEnumVariant.Next memory leak
  • (20.May.2006) Added "User" to listing
  • (19.Nov.2005) Added "Creation Date" to listing
  • Fixed a bug on displaying PID's: parent PID was swapped with own PID
Source Code