快速关机重启函数


关机:
_WinAPI_NtShutdownSystem(2)

重启:

[code]
关机:
_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]