Hello,
1) To check the serial number of your palm use this (seems to work if OS >
3.0)
Char *bufP;
UInt16 bufLen;
SysGetROMToken (0, sysROMTokenSnum, (BytePtr*) &bufP, &bufLen);
if ((!retval) && (bufP) && ((Byte) *bufP != 0xFF)) {
// it's valid!
WinDrawChars(bufP, bufLen, 20, 50);
} else
// the unit doesn't have a serial number
2) You can retrieve CPU type by this:
UInt32 valueP;
err=FtrGet(sysFtrCreator, sysFtrNumProcessorID, &valueP);
if (!err) {
cpu = valueP & sysFtrNumProcessorMask;
revision = valueP & 0x0ffff;
switch(cpu)
{
case sysFtrNumProcessor328:
//Normal DragonBall;
break;
case sysFtrNumProcessorEZ:
//DragonBall EZ;
break;
default:
// What else ?
break;
}
"Zailong Bian" <[EMAIL PROTECTED]> a �crit dans le message news:
[EMAIL PROTECTED]
>
> Is the serial number of the devide accessable? Does the CPU or other
hardware
> has some other sort of unchangable unique numbers?
>
> Thanks.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/