From: "Patrick Ouellet" <[EMAIL PROTECTED]>
Subject: Sigularity of each Palm device


> Is there some kind of serial number retreivable
> via programming for each palm...

Patrick -  this question comes up all the time so you might want to check
the archives for various suggestions about what you can do.  However, the
short answer is "No, Palm OS devices do not necessarily have a unique serial
number".  Certain devices store a serial number in Flash ROM, but not all
devices have Flash ROM.  Many programmers use the HotSync username,
sometimes in conjunction with other information, to create a "unique"
identifier they can rely on.  If you want to retrieve the HotSync user name,
you can use this code:

#include <DLServer.h>
...
 Char *userName;
 MemHandle nameH;

 nameH = MemHandleNew( dlkMaxUserNameLength + 1 );
 userName = MemHandleLock( nameH );
 MemSet( userName, dlkMaxUserNameLength + 1, 0 );
 DlkGetSyncInfo( NULL, NULL, NULL, userName, NULL, NULL );
 MemPtrUnlock( userName );



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

Reply via email to