2010年4月20日 星期二

调用“关闭Windows”窗口

调用“关闭Windows”窗口: "To programmatically shut down Windows, you can use the ShutdownWindows method.
[codes=delphi]uses ComObj;

procedure TForm1.Button1Click(Sender: TObject);
var
shell: Variant;
begin
shell := CreateOleObject('Shell.Application');
shell.ShutdownWindows;
end;[/codes]
Tags - , , "

沒有留言: