阻止Windows关闭 [英] Block windows shutdown
本文介绍了阻止Windows关闭的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要在每次Windows关闭过程之前执行一些代码。因此,我想阻止Windows关闭进程一段时间。
I need execute some code before Windows shutdown process each time. So, I want block Windows shutdown process for some time. How can i do it from Java or C++ Builder ?
谢谢。
推荐答案
使用注销或关机脚本启动exe吗?这可以由组策略设置。
Use a logoff or shutdown script to launch an exe? This can be set by Group Policy.
当然,我希望您有充分的理由(例如我的公司机构)来执行此操作。如评论中所述,您打算做什么?
Of course, I hope you have a good reason (like my corporate build) to do this. As mentioned in comments, what are you tring to do please?
这篇关于阻止Windows关闭的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文