Get the Battery status on windows 8

时光怂恿深爱的人放手 提交于 2019-12-01 19:05:13

According to everything that I can find, we do not have access to the Power API in WinRT, it is only available for a desktop application. See this MSDN Forum article

From above link:

Power Management Functions apply to "desktop app only".

No equivalent for the Power APIs in Metro style app. Please check Alternatives to Windows APIs in Metro style apps

Here is another thread http://social.msdn.microsoft.com/Forums/en-US/tailoringappsfordevices/thread/3e9dc84c-bbf9-42f3-bc19-25bce3e7e04c for your reference.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!