Windows herunterfahren in C?



  • Moin,

    ich möchte einen Rechner ohne Maus und Tastatur beutzen und diesen entsprechend über Netzwerk herunterfahren. Mein Hauptprogramm ist in Java und wenn ich Windows 98 über RUNDLL.exe herunterfahren möchte, so kommt erst noch ein Bestätigungsfenster, Windows könne das Programm nicht selbstständig beenden und man solle doch OK oder ABBRECHEN drücken. Wie kann man in C ohne Rücksicht auf Verluste und vorallem ohne diese lästige Bestätigung Windows 98 herunterfahren? Geht das überhaupt?

    Gruß,

    Jörn



  • beim Befehl rundll32.exe -user,exitwindows fragt win98 nicht mehr nach. jedenfalls hat er bei mir nicht nachgefragt, ich weiß ja nicht, wie dein befehl aussieht.



  • Dazu würde ich die WinAPI Funktion ExitWindowsEx() nehmen. Ist auch ein Beispiel drin...



  • rundll32.exe is a process which executes DLL's and places their libraries into the memory, so they can be used more efficiently by applications.This program is important for the stable and secure running of your computer and should not be terminated.
    Note: rundll32.exe is also a process which is registered as the W32.Miroot.Worm. This Trojan allows attackers to access your computer, stealing passwords and personal data. It is a registered security risk and should be removed immediately. Please see additional details regarding this process




Anmelden zum Antworten