terminate A process borland C++ Builder 3

I am making a console application
and i need to end a windows process
Example.EXE

I am going to run it on Windows 9X & NT4.0 - 5.1
i need it to work the same on all those systems

I am using borland C++ Builder 3
I need to know how to End the process "Example.EXE" weather its crashed or not

What is the code to terminate the process "Example.EXE" when i run the program
For Windows 9x call kill.exe /f <processname>.exe
Get kill.exe from here if you don't have .
ftp://ftp.microsoft.com/services/technet/samples/ps/win98/reskit/diagnose

For Windows NT call taskill.exe (Its available in XP, I think Its also available for NT)
Topic archived. No new replies allowed.