要用到API 函数ExitWindow
'Api定义
Private Declare Function ExitWindows Lib "user32" Alias "ExitWindows" (ByVal dwReserved As Long, ByVal uReturnCode As Long) As Long
Private Const EWX_REBOOT = 2 '重启动
Private Const EWX_SHUTDOWN = 1 ‘关闭这样调用:
ExitWindows EWX_SHUTDOWN,0
'Api定义
Private Declare Function ExitWindows Lib "user32" Alias "ExitWindows" (ByVal dwReserved As Long, ByVal uReturnCode As Long) As Long
Private Const EWX_REBOOT = 2 '重启动
Private Const EWX_SHUTDOWN = 1 ‘关闭这样调用:
ExitWindows EWX_SHUTDOWN,0
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货