获取资源信息:电池电量等等 [英] getting resource information: battery level and more

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

问题描述

大家好! :)


我正试图找到一种方法来恢复笔记本电脑的电池电量或

笔记本电脑或任何移动设备(但要简单一点)笔记本电脑将是

罚款。

我正在尝试这样做,因为我正在为一个项目构建一小部分

of a计算网格的接口,可以容纳

adition到通常的设备,也可以是无线设备。

(所以我正在尝试测量一个设备能够做什么提供给

网格......下一步将是衡量在设备上运行的应用程序是什么?b $ b。b。

我在两台电脑上使用Java,一台带有Windows的台式电脑和一台装有Windows XP的笔记本电脑。

虽然我还没有完全放弃Java ,没有命令

来获取我想要的东西所以唯一的方法就是通过Java

Native Interface。那就是我必须用C或C ++来完成它。

如果你能提出任何方法来获得Java,C中的电池级别,我将不胜感激。或者C ++或者使用任何J2ME或JINI

库。


谢谢!

Maria

解决方案

" Maria" <米******* @ warwick.ac.uk>在消息中写道

news:e7 ************************** @ posting.google.c om ...

大家好! :)


我试图找到一种方法来返回笔记本电脑的电池电量
或笔记本电脑或任何移动设备(但为了简化一台笔记本电脑将
罚款)。




只需包含标准标题< battery> ;.


说真的,这个问题不是用标准C ++解决,所以在其他地方询问



问候,

Jonathan


Maria写道:

虽然我还没有完全放弃Java,但是没有命令来获取我想要的东西所以唯一的方法就是通过Java
Native Interface。那就是我必须用C或C ++来做这件事。
如果你能建议用Java,C或C ++或者使用任何J2ME或者任何J2ME获得电池电量,我将非常感激。 JINI
图书馆。

谢谢!
Maria



OT,你应该在OS相关的新闻组中询问(顺便说一句,是你的使用Win或

Linux?)


-

#include< stdio.h>

#define p(s)printf(#s" endian")

int main(void){int v = 1; 0 [(char *)& v]?p(Little) :p(大);返回0;}


Giannis Papadopoulos
http://dop.users.uth.gr/

塞萨利大学

计算机&通信工程部门


说真的我不知道!

我也不明白你的标准标题是什么意思<电池>

....这会是消息的标题吗?

我想我确实通过问这里找到了一些东西,所以谢谢


Maria


" Jonathan Turkanis" < TE ****** @ kangaroologic.com>在消息新闻中写道:< bv ************ @ ID-216073.news.uni-berlin.de> ...

" Maria" <米******* @ warwick.ac.uk>在消息中写道
新闻:e7 ************************** @ posting.google.c om ...

大家好! :)



我试图找到一种方法来返回笔记本的电池电量


笔记本电脑或任何移动设备(但为了简化笔记本电脑将会很好)。



只需包含标准标题< battery>。严重的是,这个问题在标准C ++中没有解决,所以请在其他地方询问。

问候,
Jonathan



Hi all ! :)

I am trying to find a way to return the battery level of a notebook or
laptop or any mobile device (but to make it simple a laptop would be
fine).
I am trying to do this because I''m building for a project a small part
of an interface for a computational grid that would accommodate in
adition to the usual devices, wireless ones too.
( So I''m trying to measure what a device will be able to offer to the
Grid ... the next step will be to measure what applications are
running on a device and so on. )
I am doing this with Java on two computers, a desktop PC with Windows
2000 and a laptop with Windows XP.
Although I have not entirely given up on Java yet, there is no command
to get me what I want so the only way to do it would be through Java
Native Interface. That is I will have to do it in C or C++.
I would be most grateful if you could suggest anyway at all to get the
battery level in Java, C or C++ or maybe using any J2ME or JINI
libraries.

Thanks !
Maria

解决方案

"Maria" <m.*******@warwick.ac.uk> wrote in message
news:e7**************************@posting.google.c om...

Hi all ! :)
I am trying to find a way to return the battery level of a notebook or laptop or any mobile device (but to make it simple a laptop would be
fine).



Just include the standard header <battery>.

Seriously, this issue is not addressed in standard C++, so ask
elsewhere.

Regards,
Jonathan


Maria wrote:

Although I have not entirely given up on Java yet, there is no command
to get me what I want so the only way to do it would be through Java
Native Interface. That is I will have to do it in C or C++.
I would be most grateful if you could suggest anyway at all to get the
battery level in Java, C or C++ or maybe using any J2ME or JINI
libraries.

Thanks !
Maria


OT, you should ask in a OS-related newsgroup (btw, are u using Win or
Linux?)

--
#include <stdio.h>
#define p(s) printf(#s" endian")
int main(void){int v=1;0[(char*)&v]?p(Little):p(Big);return 0;}

Giannis Papadopoulos
http://dop.users.uth.gr/
University of Thessaly
Computer & Communications Engineering dept.


Seriously I didn''t know !
Also I didn''t understand what you mean by standard header <battery>
.... would that be the title of the message ?
I guess I did find out something by asking here though , so thank you

Maria

"Jonathan Turkanis" <te******@kangaroologic.com> wrote in message news:<bv************@ID-216073.news.uni-berlin.de>...

"Maria" <m.*******@warwick.ac.uk> wrote in message
news:e7**************************@posting.google.c om...

Hi all ! :)



I am trying to find a way to return the battery level of a notebook


or

laptop or any mobile device (but to make it simple a laptop would be
fine).



Just include the standard header <battery>.

Seriously, this issue is not addressed in standard C++, so ask
elsewhere.

Regards,
Jonathan



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

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