Ed, this isn't working... I am running Excel 2000 (and I used the ResKit tool PULIST to find out the PID is 378). From the command window I did:
Declare Short TerminateProcess in Win32API as KillProc ;
Integer hProcess , Integer uExitCode
nResult = KillProc(378,0)
and nResult returns "0" and Excel is not killed.
How can I get the PID from inside VFP and how do I integrate PostMessage() since I just want to blast-kill Excel?
Thanks.
>It's preferable to use PostMessage() or SendMessageTimeout() rather than SendMessage(), since PostMessage() returns immediately, and SendMessageTimeout