Hi,
At 22:21 Uhr -0800 22.2.2007, you, Shruti Wadhwa wrote:
I used the function PhnLibGetDeviceID (UInt16 refNum, CharPtr *
deviceId) to get the device ID of my Treo 650.
What i noticed is that for two Treo 650 it is giving the same ID.
Am i wrong somewhere ?
Is there another way to get the Device ID ? I believe it is unique
I've always used PhnLibCardInfo() instead of PhnLibGetDeviceID() as
the latter crashes e.g. on the Treo600.
In both cases, make sure you open the Phone lib (PhnLibOpen) before
trying to get the serial. In addition, I use a fallback to
HsGetVersionString() in case the PhnLibCardInfo() does not succeed.
So far, I haven't encountered duplicate device IDs with this implementation.
Best regards,
--
Lukas Zeller ([EMAIL PROTECTED])
-
Synthesis AG, SyncML Solutions & Sustainable Software Concepts
[EMAIL PROTECTED], http://www.synthesis.ch
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/