Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
End a process in Win2K/WinXP
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00708380
Message ID:
00708416
Vues:
12
Hi Randy,

You could try is sending a WM_NCDESTROY ( = 0x0082) message via SendMessage, to see if that closes it. I've found this this sometimes does the trick when WM_CLOSE and WM_QUIT don't function, e.g. on Win2K Shell Explorer windows. It's just a shot in the dark, but when it works, it seems to be clean and easy.

Mike

>I am using an ActiveX control in my program that doesn't terminate properly when released. It's not a VFP problem - the same thing happens using the control under VB6 using the vendor's own sample files. So far no help from them other than that they designed it this way. I CAN end it by going into Task Manager and ending the process. What I want to do is incorporate this in my program so that when my program ends it also kills this rogue task. Which API call should be used for this, and can it be used under VFP?
>
> Thanks,
> Randy
Montage

"Free at last..."
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform