Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Killing Word processes
Message
De
10/07/2000 09:02:34
 
 
À
10/07/2000 05:56:52
Paul Robinshaw
Silkworm Technologies Limited
Macclesfield, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00389350
Message ID:
00390146
Vues:
13
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform