Re: NTLK Auto detecting battery type

From: Paul Guyot (pguyot@pnm-consulting.com)
Date: Fri Jul 07 2000 - 07:14:07 CDT


> I have never looked into it, but I think it would be possible to
> write an application which overrides the part of the OS that
> battery utilities query (for the programmers: I'm talking of the
> BatteryStatus(0) call) and return a battery type different
> from what's actually installed. Maybe Paul can comment on
> this?

Maybe you're talking about the SetBatteryType function?
I guess it is what Nick calls in SoftCharge. It takes two arguments, the battery index and the type as returned by the BatteryStatus function (Programmer's reference page 788) I say that because AFAIK it is undocumented.

Regards,

Paul

--
Sent with Enroute on my MP 2100
P&M Consulting Newton Program:
http://www.pnm-consulting.com/newton/
This Newton is online: http://newt.dyndns.org:8080/
 
***************************************
NewtonTalk brought to you by:

EVOTE.COM -- the ESPN of politics on the Internet! All the players, all the news, and the hottest analysis and features (plus 'toons!) anywhere.... visit http://www.evote.com today!

*************************************** Need Subscribe/Unsubscribe info?

Visit the NewtonTalk section at http://www.planetnewton.com



This archive was generated by hypermail 2b29 : Tue Aug 01 2000 - 06:50:08 CDT