URGENT - Detecting current power scheme Hibernation settings?
Posted on 2004-11-14
My application needs the computer to NEVER go in Hibernation mode so I need to be able to detect if the "current power scheme" hibernates after a few hours or "never" so that if it's not "never", I can warn the user.
None of the API calls I checked seem to address that question, such as:
and structures such as POWER_POLICY, etc... seem to have all the settings about power management except anything mentioning hibernation.
What can I do to check for that information? Either by API or by looking up the registry.
Please keep in mind that I'm using VB4 so any API call that uses an ENUM data type won't work for me, unless it can be adapted.