Thread Herunterfahren Windows' abfangen (22 answers)
Opened by jemand at 2005-07-19 23:50

anti
 2005-07-21 23:57
#11683 #11683
User since
2003-11-29
155 Artikel
BenutzerIn
[default_avatar]
Hi,
[quote=jemand,21.07.2005, 19:36]Von shutdown hab ich schonmal gehört aber ich dachte eigentlich das ist einfach 'n Prog das man halt aufrufen kann wenn der Computer sich selbst nach ner Zeit ausschalten soll.[/quote]
Nicht nur das, es können auch Rechner remote Heruntergefahren werden.
Code: (dl )
1
2
shutdown -?
shutdown -i

[quote=jemand,21.07.2005, 19:36]Wird dieser Befehl selbst(also von der rundll) aufgerufen um das System herunterzufahren??[/quote]
Das läuft afaik über die rundll32.exe, ob diese aber genau den Befehl ruft weiß ich nicht.


Edit: Übrigens sollte der Vorschlag von Strat (Cpan: Win32::Daemon) genau die richtige Lösung sein:
Quote
Note: When the system shuts down it will send a SERVICE_CONTROL_SHUTDOWN message. The Perl script has approximately 20 seconds to perform any shutdown activities before the Control Manger stops the service. If more time is needed call the State() function passing in the SERVICE_STOP_PENDING control message along with how many seconds it will take to shutdown the service. This time value is only an estimate. When the service is finally ready to stop it must submit the SERVICE_STOPPED message


Greetz, anti\n\n

<!--EDIT|anti|1121981305-->

View full thread Herunterfahren Windows' abfangen