In the Windows 98 Reskit there is also a utility called TLIST.EXE

You can combine it with the FIND command and test the result code in order to detect an active application. It also works with Windows 95.

You can get Windows 98 Reskit at Microsoft.

------------------
Luis Hevia