need help on shutting down non delphi apps


i have just recently finshed making a delphi application that allows you
to launch misc internet programs and misc dos based and win95 based apps,
and you have a certain amount of online time (eg:30 min) to use whatever
program you want that i have included in my menu system. the problem is
this, when the user runs out of time, i want all the programs that the
user was using to shut down before the main menu form shows again.

eg: lets say a user loads mirc and does not shut it down, just minimizes
it and then load up a game of doom and plays untill there time rns out, i
want the program to automatically close mirc and doom without any user
intervention and then proceed to the main logon menu.

how do i do it?

steve brown