views:

178

answers:

2

This happens sometimes with Windows XP installations. Unless the display drivers are installed, power saving actions such as standby and hibernate are not supported.

Whether the system supports hibernate can be checked - http://pinvoke.net/default.aspx/powrprof/IsPwrHibernateAllowed.html

Is there something similar for checking standby support?

+3  A: 

check out all the porwer management functions here

there is IsPwrSuspendAllowed which u could use it

Adinochestva
Ganesh R.
+3  A: 

TO send a machine to sleep or hibernate use Win32 SetSuspendState Function Function

http://msdn.microsoft.com/en-us/library/aa373201%28VS.85%29.aspx

BUT I could not find anything that will tell if that mode is available without actually calling the above function & getting the error using GEtLastError() function.

EDIT: Use GetPwrCapabilities Function

http://msdn.microsoft.com/en-us/library/aa372691%28VS.85%29.aspx

In that the structure SYSTEM_POWER_CAPABILITIES returns: SleepButtonPresent

http://msdn.microsoft.com/en-us/library/aa373215%28VS.85%29.aspx which may help.

Ganesh R.