Z22 has two chips that ave unique serial numbers in them not accessible via the OS, but is accessible via direct hardware access. that is what he's trying to do
---- Best Regards, Dmitry Grinberg (847) 226 9295 On Fri, Mar 27, 2009 at 4:25 AM, Regis St-Gelais <[email protected]> wrote: > "Guilherme Campos Hazan" <[email protected]> a écrit dans le message de > news: 187...@palm-dev-forum... >>I am - but that doesn't work on Z22. >> > > Not all devices have a serial number. > I don't recall if the Z22 does. > > There are 2 way to get the serial number depending on the device type. > > 1- Check if you are on an handspring based device (like the Treos) > if (FtrGet(hsFtrCreator, hsFtrIDVersion, &ulngValue) == errNone) > if yes, then read the serial using: > HsGetVersionString(hsVerStrSerialNo, strpSerialNumber, &intBufferLen); > > 2- if not on an handspring device than use the rom token mothode: > intResult = SysGetROMToken(0,sysROMTokenSnum, (UInt8**) &strpBuffer, > &intBufferLen); > > If after that you still don't have a serial number, than the device does not > have one. > > One way to manualy check if the device has a serial number if to use the > launcher main menu: "App --> Info..." and to select the "Version" view. > If the device has a serial it will be display on the 3th line "Flash ID: > ..." > > HTH > > -- > Regis St-Gelais > www.laubrass.com > > > > -- > For information on using the ACCESS Developer Forums, or to unsubscribe, > please see http://www.access-company.com/developers/forums/ > -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
