Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 226
  • Last Modified:

Battery Capacity leve

Hi Everyone,

I am wondering if any one knows how to read the power capacity in a labtop. So I need to know the power remaining in battery as well the duration left. (using Java)

Thanks,
Mo009
0
Mo009
Asked:
Mo009
1 Solution
 
bkrahmerCommented:
You would have to create a .dll that calls the GetSystemPowerStatus SDK function, and load and call that through JNI.  

cheers,
brian
0
 
Mo009Author Commented:
Thanks Brian,
I am not that great with Java. So would be possible that you provid me with example to show me how I can create the .dll and where I should store it and how I can load it and use it.

Thanks,
Mo
0
 
bkrahmerCommented:
Google is your friend.  'jni tutorial'.  First link.  :)

cheers,
brian
0
 
CleanupPingCommented:
Mo009:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
jimmackCommented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Accept bkrahmer's comment as answer.

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

jimmack
EE Cleanup Volunteer
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now