Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Closing other app. forms in windows
Message
From
10/04/2002 12:50:52
 
 
To
10/04/2002 12:20:57
Hisham Serry
Al-Bahar United Company
Kuwait, Kuwait
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00642066
Message ID:
00643300
Views:
28
>Hi Sergey,
>
>in fact this is not I need, this function kills a process event but what I need is to take the form name which is working the desktop of windows for any other windows app. and then close it, like if you run calculator and close it within your function.

If you can get an hWnd for the WinApp, then you can use PostMessage() to send a WM_CLOSE to the hWnd. You can also get the ProcessHandle and use TerminateProcess() as documented in my API_APPRUN class.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform