Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Terminate Programs
Message
De
07/10/1998 15:52:54
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00144761
Message ID:
00144763
Vues:
16
>Is there any way to terminate a running Win95 application (such as Internet Explorer) from within a VFP application?

Try the following:

DECLARE INTEGER FindWindow IN Win32API;
STRING @lpClassName, STRING @lpWindowName
* lctitle is the title bar text
lnhWnd = FindWindow(0, @lctitle)
DECLARE INTEGER SendMessage IN Win32API;
INTEGER hWnd, INTEGER uMsg, INTEGER wparm, INTEGER lparm
#define WM_CLOSE 0x0010
= SendMessage(lnhWnd, WM_CLOSE, 0, 0)

It's coming from the search based on a previously given solution.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform