>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
DECLAREINTEGER SendMessage IN Win32API;
INTEGERhwnd, INTEGER uMsg,;
INTEGER wParam, INTEGERlParam* lnhWnd is the handle of the application's* window you wish to shut down.
= SendMessage(lnhWnd, WM_CLOSE, 0, 0)