Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to kill a task/program in win95
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00117457
Message ID:
00117548
Views:
19
>Hi,
>
> I like to know which function or API to use in order to Kill a task or program running. Any help or suggestion is very much appreciated.
>Thank you and have a nice day.

Hi Virusim,

You can use the SendMessage() API function to close another app:
#DEFINE WM_CLOSE 16
DECLARE INTEGER SendMessage IN Win32API;
  INTEGER hwnd, INTEGER uMsg,;
  INTEGER wParam, INTEGER lParam
* lnhWnd is the handle of the application's
* window you wish to shut down.
= SendMessage(lnhWnd, WM_CLOSE, 0, 0)
hth,
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform