At 12:35 PM -0800 on 3/15/99, you wrote:
> Bill Kirby wrote:
>> Is there a way to detect the IIIx vs the V?
>> I'd like to disable [something ...] if it is run on a IIIx.
>
> In general, you can call SysGetRomToken (aka HwrGetROMToken) and pass a
> token defined in <Hardware.h>.
>
> The SDK 3.2 version of <Hardware.h> seems to define new tokens for
> contrast ('hswc'), antenna, battery type, etc.
>
> Until they officially release those headers, there's a 3.2 copy of
> <Hardware.h> in the Palm OS Emulator source code at
> http://www.palm.com/devzone/pose/seed.html .
While the presence of a ROM Token for software contrast implies the
presence of software contrast, the *absence* of this token does NOT
imply the absence of software contrast. This token is provided for
hardware partners who build new devices and need to notify the system
that software contrast is present.
To repeat my earlier post...
> I believe what you're looking for is the hwrMiscFlagHasSWContrast
> bit in low memory global GHwrMiscFlags which (in order to avoid
> having to hit low memory globals) is also available from the
> Feature sysFtrNumHwrMiscFlags.
>
> Note that sysFtrNumHwrMiscFlags doesn't exist prior to Palm OS 3.1,
> but then again, neither does software contrast. Thus, an error
> reading the feature implies no software contrast.
(Sometimes it's best to wait at least a FEW minutes or maybe a few
hours for an official answer before launching into wild speculation
about unreleased header files, meanings of ROM tokens, battery
voltage hacks, etc... :-) :-)
--Steve