Public Declare Function ExitWindowsEx Lib "user32" (Byval uFlags as long , Byval dwReserved as long) as long ' 函数声明 ExitWindowsEx 1 , 0 ' 关闭计算机 'ExitWindowsEx 0 , 1 '重新启动计算机