ShellExecute: How to Kill process? (Delphi 1)

Hi All,

I'm using ShellExecute to launch a DOS application ("command.com /c make.exe >
Output.Txt" to be more precise) and I need to kill the process at the users
request ie. a "Stop Build" menu item!  

Can I use PostAppMessage() with the process handle returned by ShellExecute to
do this? if so which message should I post? (I've tried WM_CLOSE, WM_QUIT,
WM_DESTROY without success)

I've also tried FreeModule() but this gives me a {*word*193} windows exception!

Has anyone done this?
Any help would be appreciated.

TIA.

Gary

--
                                                     ____  /"//"/|__  __    
Gary Olliffe <ga...@parallax.co.uk>                 /   /|/ // / / / / /|  
Snail Mail : Parallax Solutions Ltd., Stone Court, / __/ / // / /> " <|/    
             Siskin Drive, Coventy, CV3 4FJ       /_/|_|/ // / /_/|/ /|    
Tel        : +44 (0)1203 514549                   |_|/./_//_/ /|_|/|_|/    
                                                       |_||_|/ Solutions Ltd