Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Killing Word processes
Message
From
10/07/2000 09:02:34
 
 
To
10/07/2000 05:56:52
Paul Robinshaw
Silkworm Technologies Limited
Macclesfield, United Kingdom
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00389350
Message ID:
00390146
Views:
14
>I haven't taken this for a spin yet. I notice the comment at the top "*-- Valid only for Win9x machines" Any ideas if this works under NT? Getting a list is great but how do I actually kill the thing?
>

Not under NT - some of the API calls aren't supported under NT.

Once you have a ProcessID, you can get a Process handle by calling OpenProcess() requesting the PROCESS_TERMINATE privilege, and use that to call TerminateProcess() to kill the other application, or find the main hWnd of the application and use SendMessage() to send a WM_QUIT message to the application.
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
Reply
Map
View

Click here to load this message in the networking platform