Devices without Flash ROM do not have serial numbers available in ROM.
Devices without Flash use a mask ROM that cannot be modified, thus cannot be
programmed with a serial number.
Treo devices may have a serial number, but do not respond to the
SysGetROMToken() call. You must use the
HsGetVersionString(hsVerStrSerialNo). Here's sample code:
char serialNumber[32];
serialNumber[0] = 0;
if (handspring)
{
UInt16 size;
size = sizeof(serialNumber);
HsGetVersionString(hsVerStrSerialNo,serialNumber,&size);
}
else
{
UInt8 *p;
UInt16 size;
if (SysGetROMToken(0,sysROMTokenSnum,&p,&size) == 0 && size
> 0 && *p != 0xFF)
{
if (size > sizeof(serialNumber)-1)
size = sizeof(serialNumber)-1;
MemMove(serialNumber,p,size);
serialNumber[size] = 0;
}
}
--------------------
Jeff Loucks
Work 425-284-1128 [EMAIL PROTECTED]
Home 253-851-8908 [EMAIL PROTECTED]
Mobile 253-691-8812
-----Original Message-----
From: Yuen Kwee [mailto:[EMAIL PROTECTED]
Sent: Friday, June 10, 2005 8:54 PM
To: Palm Developer Forum
Subject: Zire Rom ID problem
hi there!
a user of the program i wrote is having problems getting the rom id from hi
Zire 71, i wrote this to get the rom id
returnVal = SysGetROMToken((UInt16) 0,(UInt32)
sysROMTokenSnum,&datap,&size);
the line works, but not for treo and tungsten E. are the zire series the
same as the TE? or some of the zire series has and some doesn't?
please help!
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/