Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Each API to force individual application to exit
Message
De
15/06/1999 20:17:51
 
 
À
14/06/1999 13:09:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00229465
Message ID:
00230232
Vues:
15
Hi Ed,

I had done the following, but the other application still does not exit. What
did I miss out. Please advise.

hWnd = FINDWINDOW(0,'Application caption to exit')
TerminateProcess(hWnd,0)

As for the SendMessage API, it had many parameter which I do not know what to
give, please advise me on that if it can help to exit the application which
I want.

Thank for your kind help.




>>Hi,
>>
>>I do not know which Win API know which individual program
>>is running in Win9x/NT and then use another API to
>>force them to exit peacefully.
>>
>>I had come across API like - ExitWindow and ExitWindowEx
>>which is not what I want as they force all application
>>to exit.
>>
>
>If you know the Process Handle of the process you want to shut down, then use TerminateProcess()
>
>If you know the hWnd of the main Window of the process that you want to shut down, use SendMessage to send WM_CLOSE to the application you want toi shut down through it;'s main hWnd.
>
>>Any help is very much appreciated. Thank you
Best Regards
Virusim
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform