Mega Code Archive

 
Categories / Delphi / System
 

Restart windows

Title: Restart windows Use ExitWindowEx function. This function allows you to restart Windows as you wish. procedure TForm1.Button1Click(Sender: TObject); begin ExitWindowsEx(EWX_REBOOT,0); end;