Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Closing other app. forms in windows
Message
De
10/04/2002 12:50:52
 
 
À
10/04/2002 12:20:57
Hisham Serry
Al-Bahar United Company
Kuwait, Kuwait
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00642066
Message ID:
00643300
Vues:
29
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform