Uniquely indentify a Windows Mobile 5.0 device
-
Is there a way to uniquely identify a Windows Mobile 5.0 device? I am using web services to sync data and I want to be able to identify which device is being synced so I can send only the needed data. I'm assuming each Windows Mobile installation has a guid. Does anybody know?
-
Is there a way to uniquely identify a Windows Mobile 5.0 device? I am using web services to sync data and I want to be able to identify which device is being synced so I can send only the needed data. I'm assuming each Windows Mobile installation has a guid. Does anybody know?
Google is a beautiful thing![^] First result even works!
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
-
Google is a beautiful thing![^] First result even works!
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
-
I get the impression that those solutions are completely native code. I'm using C#. I'd like to use managed code. I could use System.Net.Dns.GetHostName(), but that's unreliable for uniqueness.
Hi,
JGentsch wrote:
I get the impression that those solutions are completely native code. I'm using C#. I'd like to use managed code. I could use System.Net.Dns.GetHostName(), but that's unreliable for uniqueness
Yes that is correct, the .NET Compact Framework / Windows Mobile OS doesn't provide any managed way to easily access the unique device id. However this shouldn't be too much of an issue, since it can be worked around via a little bit of Platform Invoke code. For example www.pinvoke.net has a page discussing how you could do this on a Windows Mobile 5.0 or higher device via a function called GetDeviceUniqueID at http://pinvoke.net/default.aspx/coredll/GetDeviceUniqueID.html Hope this helps, Christopher Fairbairn
Windows Mobile Development blog http://www.christec.co.nz/blog/
-
Is there a way to uniquely identify a Windows Mobile 5.0 device? I am using web services to sync data and I want to be able to identify which device is being synced so I can send only the needed data. I'm assuming each Windows Mobile installation has a guid. Does anybody know?
Hi Man when u try transfer dat to W mobile with Web services, u ask first giuve ur unique ID, after u keep that in ur system until that sync will be close. u must do small pinvoke for get ID here code for Get Unigue ID http://samples.gotdotnet.com/quickstart/CompactFramework/doc/deviceid.aspx[^] i hope help to u
Cheers,Earn and Enjoy RRave MCTS,MCPD