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

来源:互联网 发布:samba4 linux 启动 编辑:程序博客网 时间:2024/06/06 09:35

 

 

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

 

 

 

 具体参考资料:

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