Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Shut down a program started with the RUN command
Message
De
08/08/1999 09:42:08
 
 
À
07/08/1999 09:15:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00250898
Message ID:
00251233
Vues:
16
Hi Ed,

Thanks for the help again.

>
>SendMessage() is a Win32 API call that sends a standard message to a specific Window; there are samples of how to use it in various entries in the FAQ under Win32 and Other AIs, mostly stuff by George Tasker. There have been several threads about this in the past several months.
>
>API_APPRUN can also shut down anything that it starts up, but it uses TerminateProcess() to do this, and that's a messy shutdown - it simply blows away the process and doesn't allow it to try to initiate an orderly shutdown like SendMessage() might allow using a WM_CLOSE message. However, terminateProcess() always works, regardless of the type of app running,and regardless of whether the app is capable of processing standard Windows messages (great for killing things that get locked up in an infinite loop, for example.)
>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform