快速关机重启函数
_WinAPI_NtShutdownSystem(2)
重启:
_WinAPI_NtShutdownSystem(1)
Func _WinAPI_NtShutdownSystem($flags)
DllCall(“ntdll.dll”,”int”,”RtlAdjustPrivilege”,”long”,0x13,”int”,True,”int”,False,”ptr”,DllStructGetPtr(DllStructCreate(“int 0”)))
DllCall(“ntdll.dll”,”int”,”NtShutdownSystem”,”int”,$flags)
EndFunc
[/code]
文章来自于互联网,请关注原创Leejoa's 老李随笔 » 快速关机重启函数