Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Programmieren allgemein (https://www.delphipraxis.net/40-programmieren-allgemein/)
-   -   shut down (https://www.delphipraxis.net/41836-shut-down.html)

transporter2 9. Mär 2005 13:20


shut down
 
mit welchen befehl kann ich meinen Computer runter fahren? (Sprache c++ wenn es geht)

Luckie 9. Mär 2005 13:25

Re: shut down
 
Bemüh mal bitte die Forensuche, das hatten wir schon des öfteren und die API Aufrufe sind die gleichen.

chrisw 9. Mär 2005 13:32

Re: shut down
 
Code:
void __fastcall TForm1::Button1Click(TObject *Sender)
{
      ExitWindows(0,0);
}
Delphi-Quellcode:
procedure TForm1.Button1Click(Sender: TObject);
begin
ExitWindows(0,0);
end;

Luckie 9. Mär 2005 13:37

Re: shut down
 
Damit dürftes du aber bei 70% aller Windows betriebssystem auf die Nase fallen. In der Code-Lib steht auch warum. ;)


Alle Zeitangaben in WEZ +1. Es ist jetzt 23:16 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz