Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to kill a task/program in win95
Message
De
16/07/1998 07:47:24
 
 
À
16/07/1998 00:02:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00117457
Message ID:
00118041
Vues:
28
I think you can use the CloseHandle() Win32 API function if you have a handle to the process you want to kill.

Vlad

> Thank for your help. However, the API function seem to only close the running application window. I had a program running in the background, however, when I use the function, it only close that window, it is still running in the background.
>Maybe I had use it in a wrong way. Please advise or help. Thank you.
>
>Best regards
>Virusim
>
>
>>>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,
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform