Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Api for Shutdown Machine
Message
De
19/10/1999 09:30:54
 
 
À
05/10/1999 12:31:58
Amit Abhangrao
Charmi Software Exports
Mumbai, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00272760
Message ID:
00278130
Vues:
20
>Hi All,
>
> I want to shut down the machine from my program. I found Few Win32Api functions as ExitWindowsEx which works fine. And one is InitiateSystemShutdown which works in NT. and through this we can shutdown other machine also. Is there any other api or function, which shutdowns other machine in novell server ? So one can shutdown other machine from one machine
>
>Please help

You could write a COM object (which would have to run on each target machine that you want to be able to shut down this way) that implements ExitWindowsEx() on the server, and make each one addressible somehow. This would require an out-of-process remote (DCOM) server to run on each target system, and would open up the possibility that you might shut down something accidentally (or worse, maliciously).
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