Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
#include <windows.h>
#include <stdio.h>
int main(void)
{
LPSYSTEM_POWER_STATUS lpSystemPowerStatus;
if( GetSystemPowerStatus( lpSystemPowerStatus ) )
{
printf("Battery time left in percent: %d%%\n", lpSystemPowerStatus->BatteryLifePercent);
}
else
{
printf("Getting Battery Status failed with error code %d", GetLastError());
return -1;
}
return 0;
}
#include <windows.h>
#include <stdio.h>
int main(void)
{
SYSTEM_POWER_STATUS SystemPowerStatus;
if( GetSystemPowerStatus( &SystemPowerStatus ) )
{
printf("Battery time left in percent: %d%%\n", SystemPowerStatus.BatteryLifePercent);
}
else
{
printf("Getting Battery Status failed with error code %d", GetLastError());
return -1;
}
return 0;
}