Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Each API to force individual application to exit
Message
From
14/06/1999 13:09:16
 
 
To
14/06/1999 11:44:25
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00229465
Message ID:
00229546
Views:
20
>Hi,
>
>I do not know which Win API know which individual program
>is running in Win9x/NT and then use another API to
>force them to exit peacefully.
>
>I had come across API like - ExitWindow and ExitWindowEx
>which is not what I want as they force all application
>to exit.
>

If you know the Process Handle of the process you want to shut down, then use TerminateProcess()

If you know the hWnd of the main Window of the process that you want to shut down, use SendMessage to send WM_CLOSE to the application you want toi shut down through it;'s main hWnd.

>Any help is very much appreciated. Thank you
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