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 services 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:

  • (19.Nov.2005) - first version out
Source Code