检查Windows用户是否在唤醒时启用了密码 [英] Check if windows user have enabled password on wakeup

查看:107
本文介绍了检查Windows用户是否在唤醒时启用了密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个应用程序,我想检查用户是否在从睡眠模式或休眠状态唤醒时启用了密码。谁能帮我吗?在此先感谢。

I have an application in which i want to check if user have enabled password require on wake up from sleep mode or from hibernate. Can any one help me out? Thanks in advance.

推荐答案

我找到了这个解决方案如何在高级电源设置中关闭''允许混合睡眠'?通过c# [ ^ ]在StackOverflow上使用WMI [ ^ ]获取电源设置 [ ^ ]。



注意这仅适用于Windows 7(及更高版本)。
I found this solution how can I turn off ''allow hybrid sleep'' in advanced power setting? by c#[^] on StackOverflow that uses WMI[^] to get the power settings[^].

Note that this only works on Windows 7 (and higher).


请按照以下链接:

HT tp://stackoverflow.com/questions/6409711/how-can-i-change-the-value-on-require-a-password-on-wakeup-to-false-programmat [ ^ ]

Windows Vista在审核中运行时模式很长一段时间后,系统从待机状态或休眠状态恢复后锁定计算机 [ ^ ]
Please, follow the below links:
http://stackoverflow.com/questions/6409711/how-can-i-change-the-value-on-require-a-password-on-wakeup-to-false-programmat[^]
When Windows Vista is running in audit mode for a long time, the computer is locked after the system resumes from standby or from hibernation[^]


这篇关于检查Windows用户是否在唤醒时启用了密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆