> Here's the section of code (the code following this is not included - I
> stopped at the 'get rom token' line and examined the memory there).
>
> extern Boolean GetDeviceSerialNo (Char *dataP)
> {
> err = SysGetROMToken (0, sysROMTokenSnum, (UInt8**) dataP, &bufLen);
Try:
extern Boolean GetDeviceSerialNo (Char *serialP)
{
UInt8 *dataP;
UInt16 size;
Err err;
if ( (err = SysGetROMToken (0, sysROMTokenSnum, &dataP, &size)) == 0 )
{
MemMove (serialP, dataP, size);
serialP [size] = '\0';
}
return err;
}
Stephen Best
Bitware Australia
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/