jay / battstatus Goto Github PK
View Code? Open in Web Editor NEWMonitor the Windows battery status for changes in state
License: Other
Monitor the Windows battery status for changes in state
License: Other
I am getting the following errors when trying to compile it via Visual Studio 2019:
C:\battstatus>cl /W4 /wd4127 battstatus.cpp user32.lib powrprof.lib setupapi.lib
Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30143 for x86
Copyright (C) Microsoft Corporation. All rights reserved.
battstatus.cpp
battstatus.cpp(818): error C2039: 'Reserved1': is not a member of '_SYSTEM_POWER_STATUS'
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winbase.h(7977): note: see declaration of '_SYSTEM_POWER_STATUS'
battstatus.cpp(836): error C2039: 'Reserved1': is not a member of '_SYSTEM_POWER_STATUS'
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winbase.h(7977): note: see declaration of '_SYSTEM_POWER_STATUS'
battstatus.cpp(1246): warning C4456: declaration of 'ntstatus' hides previous local declaration
battstatus.cpp(1117): note: see declaration of 'ntstatus'
battstatus.cpp(1456): warning C4456: declaration of 'ntstatus' hides previous local declaration
battstatus.cpp(1117): note: see declaration of 'ntstatus'
battstatus.cpp(1602): error C2039: 'Reserved1': is not a member of '_SYSTEM_POWER_STATUS'
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winbase.h(7977): note: see declaration of '_SYSTEM_POWER_STATUS'
battstatus.cpp(1602): error C2039: 'Reserved1': is not a member of '_SYSTEM_POWER_STATUS'
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winbase.h(7977): note: see declaration of '_SYSTEM_POWER_STATUS'
battstatus.cpp(1604): error C2039: 'Reserved1': is not a member of '_SYSTEM_POWER_STATUS'
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winbase.h(7977): note: see declaration of '_SYSTEM_POWER_STATUS'
It would be nice if you added the battery discharge/charge time and discharge/charge rate to its title bar.
It would be nice if you could do that.
It would be nice if it could be made to have a Graphical User Interface for it in the form of a Toolbar that goes in the Taskbar (with features found in BatteryBar Pro - https://batterybarpro.com - added to it).
It would be nice if you could do that.
It would be nice if it showed the estimated time left to charge next to the message it prints when the laptop is charging its battery.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.