Mega Code Archive

 
Categories / Delphi / System
 

How to invoke Shutdown Windows dialog

Title: How to invoke Shutdown Windows dialog uses ComObj; {....} procedure TForm1.Button1Click(Sender: TObject); var shell: Variant; begin shell := CreateOleObject('Shell.Application'); shell.ShutdownWindows; end;