Results 1 to 3 of 3

Thread: CE Battery Level

  1. #1

    Thread Starter
    Addicted Member Dmyze's Avatar
    Join Date
    Mar 2002
    Location
    Seattle
    Posts
    160

    CE Battery Level

    I am trying to figure out how to monitor the battery level on a CE Device. The idea is once the battery gets to a certain level it will backup it's database onto a storage card and prompt the user to recharge.

    I read the following article:

    http://msdn.microsoft.com/library/de...l/sdeforvb.asp

    See "Windows CE API"

    I have put all this code into my program and it complies fine, but when I try to run it the device crashes with "Not Supported" Exception.
    -Daryl
    "Two More Rolls of Duct tape, and the world is mine!"
    VB.NET Guru

  2. #2
    Frenzied Member
    Join Date
    Oct 2005
    Posts
    1,286

    Re: CE Battery Level

    Hi,
    the OpenNETCF (www.opennetcf.org) has a function for getting battery status, amongst many other functions

    It is open source

    HTH

    Pete

  3. #3

    Thread Starter
    Addicted Member Dmyze's Avatar
    Join Date
    Mar 2002
    Location
    Seattle
    Posts
    160

    Re: CE Battery Level

    Thanks! It worked!
    -Daryl
    "Two More Rolls of Duct tape, and the world is mine!"
    VB.NET Guru

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width