Delphi ShellExecute调用系统命令关闭计算机


本文整理自网络,侵删。

 
uses shellapi;

 if Application.MessageBox(System.Pchar('关闭计算机?'), '询问', 1 + 32) = id_OK then
  begin
    ShellExecute(Handle,'open','shutdown.exe','-f -s -t 0', nil, SW_HIDE);
  end;

相关阅读 >>

Delphixe jpg图片压缩

Delphi android 获取通�记录

Delphi crc32算法

Delphi json 转换成 tfdmemtable

Delphi的cpu调试窗口

Delphi获取flash文件的影片时长,原始尺寸,帧数等信息

Delphi firedac tfdconnection连接mysql数据库

winapi 字符及字符串函数(9): lstrcat - 合并字符串

Delphi tlistview控件里添加背景色

Delphi 如何在定义局部变量时赋初始值

更多相关阅读请进入《Delphi》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...