View Full Version : Power Management

09-22-2003, 09:34 PM
Hey everyone, I was wondering if anyone knew how to check if a computer has power management on, Windows features that shut down the hard drive after idle time is curropting our database application, so if these options are turned on I would like to either warn the user during install or even change this settings. Any ideas will help, are settings set in the registry? Or is there another call I can use to find out what these are.

09-25-2003, 09:54 AM
Try IsPwrHibernateAllowed or IsPwrSuspendAllowed methods declared in Powrprof.h

The CallNtPowerInformation function sets or retrieves power information too.