یک دکمه بر روی فرم خود قرار دهید و از کد زیر استفاده کنید:

uses ComObj;

procedure TForm1.Button1Click(Sender: TObject);
var
  shell: Variant;
begin
  shell := CreateOleObject('Shell.Application');
  shell.ShutdownWindows;
end;