Not all devices have an ID.  Which model are you running your code on?
Also, don't know if this is the issue but bufLen is a pointer and has no
memory associates with it.  Try UInt16 bufLen and pass &bufLen.

----- Original Message ----- 
From: "narender reddy" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Thursday, September 04, 2003 4:56 AM
Subject: deviceID


> Hello Guys
>
>           How to find the unique device ID of an
> device.I will be thankful to you if you provide some
> sample of code.
>
> I am writing this code but still i am not able to do.
>
> Char* bufP;
> UInt16* bufLen;
> Err retval;
>
> retval = SysGetROMToken (0, sysROMTokenSnum,(UInt8**)
> &bufP,&bufLen);
> if ((!retval) && (bufP) && ((UInt8) *bufP !=0xFF)) {
> FrmCustomAlert(1000,"Valid serial num:","-",bufP);
> }
>
> Regards
> Narender
>
> ________________________________________________________________________
> Yahoo! India Matrimony: Find your partner online.
> Go to http://yahoo.shaadi.com
>
> -- 
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
>


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

Reply via email to