简体   繁体   English

关闭 Windows 并警告用户

[英]shutting down Windows with warning to the user

I see that shutdown.exe can be used to shutdown or restart a machine.我看到shutdown.exe 可用于关闭或重新启动机器。 However, the warning given to the user doesn't offer any way to cancel the shutdown (other than doing "shutdown /a" in a command line prompt).但是,给用户的警告并没有提供任何取消关机的方法(除了在命令行提示符下执行“shutdown /a”)。

Is there a different way of shutting down Windows that offers the user some easy way to cancel out?是否有另一种关闭 Windows 的方法,可为用户提供一些简单的取消方法?

Write your own program that calls ExitWindowsEx .编写您自己的调用ExitWindowsEx的程序。 It can allow any cancel operations you want.它可以允许您想要的任何取消操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM