获得在Windows 8上的电池状态 [英] Get the Battery status on windows 8

查看:259
本文介绍了获得在Windows 8上的电池状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我找遍了互联网,我发现了一点点有用的唯一的事情就是让在Windows Phone 8.电池状态,但我想它在Windows 8(RT)的方式。

I searched over the Internet and the only thing that I found a little bit helpful was the way to get Battery status on Windows Phone 8. But I want it on Windows 8 (RT).

谁能帮我?

推荐答案

据我能找到的一切,我们没有访问在WinRT中功能强大的API,它仅适用于桌面应用程序。看到这个 MSDN论坛文章

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

从上面的链接:

电源管理功能适用于桌面应用程序只有

Power Management Functions apply to "desktop app only".

没有等同于Metro风格应用的电源API。 请检查替代的Metro风格应用程序的Windows API

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

下面是另一个线程的 http://social.msdn.microsoft.com/Forums/en-US/tailoringappsfordevices/thread/3e9dc84c-bbf9-42f3-bc19-25bce3e7e04c 供您参考。

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

这篇关于获得在Windows 8上的电池状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆