Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Close particular program(.exe)
Message
 
 
To
24/11/2000 03:27:43
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00445134
Message ID:
00445136
Views:
18
>Hi,
> Anyone know which API can use to close the runned application(.exe)? Is it got any API that don't need to get the window handle or proccess ID of the runned program ?

As Larry Miller pointed out earlier today, search the API section for the SendMessage() function. The example uses the WM_CLOSE message, which is what you want. Getting the window handle is trivial (FindWindow()), so it shouldn't be necessary to know the actual target path (e. g., "c:\myappdir\myapp.exe") of the process in order to send the message.
Mike Stewart
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform