Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is the right way to kill FP DOS from VFP?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00500406
Message ID:
00500744
Vues:
39
This message has been marked as the solution to the initial question of the thread.
>Nick,
>
>To the best of my knowledge, there's no way via a window handle to retrieve the handle to a specific process. I think that the only ways are to use either CreateProcess, or GetCurrentProcess.

George,

See Thread #496654 Message #496824 for a way.

Nick,
You could alos use this to kill your process.

In addition, even if you don't want to use this, I would recommend using PostMessage instead of SendMessage. SendMessage waits for a response before returning control to the process that is initiating the send. If the other process is busy or locked up in some way, it may not respond and you will be waiting forever. PostMessage will just add a message to the process's message queue and immediately return. If it is not locked up and is stilling processing the messages, the terminate message will be processed in due course.

HTH,
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform