Neil,
EnumProcesses() was my first look but abandoned due to lack of support of Windows 95/98. That's when I posted here.
>Thankyou Ed I misread MSDN.
>
>For William's benefit though, if you want to enumerate process's on NT4 then use the EnumProcesses() API call.
>
>
> Windows NT/2000: Requires Windows NT 4.0 or later.
> Windows 95/98: Unsupported.
> Windows CE: Unsupported.
> Header: Declared in psapi.h.
> Import Library: Use psapi.lib.