Public Declare Function ExitWindowsEx Lib "user32" (Byval uFlags as long , Byval dwReserved as long) as long ' 函数声明 ExitWindowsEx 1 , 0 ' 关闭计算机 'ExitWindowsEx 0 , 1 '重新启动计算机
在vb中实现关闭计算机
最新推荐文章于 2021-08-05 18:21:12 发布
博客展示了在VB中使用ExitWindowsEx函数的代码。通过在user32库中声明该函数,可实现关闭或重启计算机的操作,如使用ExitWindowsEx 1, 0关闭计算机,ExitWindowsEx 0, 1重新启动计算机。
1494

被折叠的 条评论
为什么被折叠?



