Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Retreiving unique palm id

Status
Not open for further replies.

dendog

Programmer
Jun 28, 2001
53
0
0
US
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
 
I hope this helps.

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;
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top