Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Kill a process
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Divers
Thread ID:
00890217
Message ID:
00890862
Vues:
29
>Guys , I'm still looking for the code to kill my process in win2k. so far all the codes I've been given don't work. and for some reason the links you all gave don'r work for me, they don't display.
>
>please help

Selim,

I'm not sure why you need to "kill". As Michael Asherman already said, you can close an application by geting its handle window then send WM_CLOSE message.
#Define WM_CLOSE   0x10
Declare Long FindWindow in User32 ;
   String cClassName, String cWindowTitle
Declare Long SendMessage in User32 ;
   Long hWnd, Long Msg, Long wParam, Long lParam

hWnd = FindWindow( Null, 'Window Title')
SendMessage( hWnd, WM_CLOSE, 0, 0 )
Give it a try

PS: my apologies to make this thread off-topic
Herman
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform