I can get a list of running job for Win98/Win2k. But the same code cannot work for WinNT4.0

Do anybody have source code that can retrieve the following information:

Running program, with their Process ID or Win Handle,
the executable file name, such as IEXPLORER.exe

Thanks