vc 重启和关机
ExitWindowsEx(EWX_SHUTDOWN | EWX_FORCE, 0) 关机
ExitWindowsEx(EWX_REBOOT| EWX_FORCE, 0) 重启
or
ShellExecute("shutdown")
ExitWindowsEx(EWX_REBOOT| EWX_FORCE, 0) 重启
or
ShellExecute("shutdown")
Life is a journey, not a destination.