Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Put an Icon in a WSH Script?
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00478045
Message ID:
00483186
Views:
41
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
Previous
Reply
Map
View

Click here to load this message in the networking platform