Question Detect if Hibernation is an option

JuggaloBrotha

VB.NET Forum Moderator
Staff member
Joined
Jun 3, 2004
Messages
4,530
Location
Lansing, MI; USA
Programming Experience
10+
This kind of goes along with my Shut Down & Restart thread from a few weeks ago, but one of the things I'm wondering is if it's possible to detect if the system has Hibernation enabled, or in the case of Win2k if hibernation is even possible. I already know how to hibernate the computer via the Framework:
VB.NET:
Application.SetSuspendState(PowerState.Hibernate, True, True)
but in my program I would like to provide the hibernate option only if the OS A) is new enough to be able to and B) has it enabled in the user's Power Options in the control panel. I can't seem to find anything via Google and MSDN that leads me in the right direction.
 
Back
Top