Retreiving unique palm id
Retreiving unique palm id
(OP)
Hey all;
My name is Dennis Golovaty and i was wondering how i would go about writing the code to retrieve the unique palm id associated with each palm pilot. Thank you very much for taking the time to answer this question.
DENNIS
My name is Dennis Golovaty and i was wondering how i would go about writing the code to retrieve the unique palm id associated with each palm pilot. Thank you very much for taking the time to answer this question.
DENNIS
RE: Retreiving unique palm id
Sebs
static CharPtr GetSerialNum(void)
{
CharPtr bufP,num;
Word bufLen,retval;
retval = SysGetROMToken (0, sysROMTokenSnum,(BytePtr*) &bufP, &bufLen);
if ((!retval) && (bufP) && ((Byte) *bufP != 0xFF))
{
// there's a valid serial number!
// Get it!
bufLen = 12;
num = (char *)MemPtrNew(bufLen + 1);
StrCopy(num,"");
StrNCat(num,bufP,bufLen+1);
}
return num;
}