Windows Kernel32.BatteryLifePercent = 255
问题 I'm trying to build a Java app that reads the status of a laptop battery and sends a notification to the user if it's low. In order to do this, I'm using jna with Kernel32 native library as explained in the first answer of this question: How to get the remaining battery life in a Windows system? Running the example, the program yields this output: ACLineStatus: Offline Battery Flag: High, more than 66 percent Battery Life: Unknown Battery Left: 0 seconds Battery Full: 10832 seconds The fields