Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Shutting down an application
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00135143
Message ID:
00135147
Vues:
11
>Well, I've done it again and misplaced the information on what API function and constants to use to programatically shut down a running application from another application. It's SendMessage() with certain parameters or something like that ... isn't it? ... George ... you out there? ... George?
>
Hidy Bill,

Seems like I just answered this one yesterday.:-) Here goes:
DECLARE INTEGER SendMessage IN Win32API;
  INTEGER hWnd, INTEGER uMsg, INTEGER wparm, INTEGER lparm
#define WM_CLOSE  0x0010
* lnhWnd is the Window handle
= SendMessage(lnhWnd, WM_CLOSE, 0, 0)
hth,
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform