I've tried this, and it works, at least on Tungsten T and the simulator I've
tried. Don't know about the m500.

 CharPtr bufP;
 UInt16Ptr bufLen;
 char serialnumber[12];

 SysGetROMToken(0,sysROMTokenSnum,(UInt8**)&bufP,(UInt16*)&bufLen);
 MemMove(serienummer, bufP, 12);
 FrmCustomAlert(AboutAlert, serialnumber,"", "");


In order to find out if it'll work or not, it'd be very useful to at least check the error code returned! The docs for SysGetROMToken are quite clear on the THREE things you check, so you can tell whether or not the device has a serial number.

Please read our fine manuals; that's why we write them.

-David Fedor
PalmSource, Inc.

--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to