Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class BatteryLevel {
- /**
- * @param args
- */
- public static void main(String[] args) {
- Kernel32.SYSTEM_POWER_STATUS batteryStatus = new Kernel32.SYSTEM_POWER_STATUS();
- Kernel32.INSTANCE.GetSystemPowerStatus(batteryStatus);
- System.out.println(batteryStatus);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement