Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Terminate Programs
Message
From
07/10/1998 15:52:54
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00144761
Message ID:
00144763
Views:
15
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform