Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need To Close An Application
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00691241
Message ID:
00691252
Vues:
14
>I need to close an application from within VFP. I know
>that title of the application. What's the API call
>for this? Thanks
#DEFINE WM_CLOSE 			0x10

DECLARE INTEGER SendMessage IN WIN32API ;
        INTEGER hWnd, ;
        INTEGER Msg, ;
        INTEGER wParameter, ;
        INTEGER lParameter

DECLARE INTEGER FindWindow IN Win32API STRING, STRING

hWnd = FindWindow(0, "My Application Window Name")
   
=SendMessage(hWnd, WM_CLOSE, 0, 0)
-Paul

RCS Solutions, Inc.
Blog
Twitter
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform