Código Delphi [-] uses ComObj; procedure TForm1.Button1Click(Sender: TObject); var Shell: OleVariant; begin Shell := ComObj.CreateOleObject('shell.application'); Shell.ShutDownWindows; end;
uses ComObj; procedure TForm1.Button1Click(Sender: TObject); var Shell: OleVariant; begin Shell := ComObj.CreateOleObject('shell.application'); Shell.ShutDownWindows; end;