GetPwrCapabilities is giving me wrong sleep state results on some computers. How can I get a more accurate result?
问题 I have a 64-bit Win7 Ultimate machine that I'm calling GetPwrCapabilities on. However it tells me that sleep state 4 (hibernation) is not available and that there is no hibernation file. I can hibernate the machine and there is a hibernation file. Am i doing something wrong? Is there anything else I can call to get accurate supported sleep states Thanks EDIT It's interesting that powercfg -AVAILABLESTATES provides the correct information. Does anyone know what API it calls or why there is a