...get more... for Delphi.NET, C#, VB.NET for Delphi VCL, BCB 3-6
greatis.blogspot.com
Use ExitWindowEx function. This function allows you to restart Windows as you wish.
procedure TForm1.Button1Click(Sender: TObject); begin ExitWindowsEx(EWX_REBOOT,0); end;