Skip to content

Dealing with powrprof.dll, checking your batteries state

Notifications You must be signed in to change notification settings

OlimilO1402/Syst_BatteryState

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Syst_BatteryState

how to check your batteries state with powrprof.dll

Recently (jan. 2021) I found some interesting win-api functions in WindowsApiCodePack 1.1.4.
I didn't even know this dll exists. If your program runs on a laptop-computer it can check your battery's state.
You can do this in your own program by using the class BatteryState.
The purpose could be, to check the battery before the user performs a long lasting function, that maybe could not come to an end before the end of the battery power.

BatteryState1 Image BatteryState2 Image

About

Dealing with powrprof.dll, checking your batteries state

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages