Click here to Skip to main content
15,881,709 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted
Comments
Sandeep Mewara 11-May-13 5:45am    
Sounds like trying to access secure information... not sure if it would be allowed/feasible.

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).
 
Share this answer
 
v2
Comments
Maciej Los 11-May-13 5:54am    
+5
ridoy 11-May-13 13:12pm    
+5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900