The following node explains how to get a list of processes and IDs:
Getting a Local/Remote Win32 Task List.
Another option is using WMI (Win32_Process class). I don't have any code for this. But if you do a
Super Search for WMI or "Win32 process" you will probably get some more useful information. Also see
MSDN for WMI specifics.
Good Luck.
$,=reverse'"ro_';s,$,\$,;s,$,lc ref sub{},e;$,
=~y'_"' ';eval"die";print $_,lc substr$@,0,3;