现在的位置: 首页 > 综合 > 正文

设置一个按钮,实现关机功能

2013年10月21日 ⁄ 综合 ⁄ 共 100字 ⁄ 字号 评论关闭

 

 

 通过调用Windows 函数    WinExec('shutdown -s -t 0', sw_Show)  实现

 

 

 

 具体参考资料:

http://www.tobgood.com/Neil/784.html

抱歉!评论已关闭.