获取Windows CE 5.0设备的电池信息 [英] Getting battery information of a windows CE 5.0 device

查看:75
本文介绍了获取Windows CE 5.0设备的电池信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

先生,我正在为运行WINDOWS CE 5.0的设备开发应用程序。我想知道设备的电池/电源信息。我不喜欢CE编程。请说明Windows Mobile编程和CE编程之间是否有区别?我发现可以使用MICROSOFT.WINDOWSMOBILE.STATUS命名空间。但是当我包含引用时,此名称空间在列表中不可见。我该怎么办?

Sir, I am developing an application for a device running WINDOWS CE 5.0. I want to know the battery/power information of the device. I am quit new in CE programming. Please make clear is there any difference between windows mobile programming and CE programming? I found MICROSOFT.WINDOWSMOBILE.STATUS namespace to work with. But when i include the reference, this namespace is not visible in the list. What should i do?

推荐答案

您需要 P /调用GetSystemPowerStatusEx 。实际上可以在这篇旧的MSDN文章中找到一个示例。

You need to P/Invoke GetSystemPowerStatusEx. An example is actually found in this old MSDN article.

这篇关于获取Windows CE 5.0设备的电池信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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