Is there any way to get the status of the Battery (charging/discharging/Current Charge/Capacity/etc...) from a C++ program in a portable manner between Windows & Linux. I'm doing a small program for my own use and require some help with it. Kindly look over the description of the program on my blog:
The JB Journals
Also, is there any way to actually see if a computer is currently connected to the internet. I'm doing this currently by requesting www.google.com and seeing if I get a "503 Error" in return. Any better way of doing this? I'm using libCurl for the webinterface part of my program, but would like to know if there are better alternatives...