Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Mobile Development
  3. Mobile
  4. Uniquely indentify a Windows Mobile 5.0 device

Uniquely indentify a Windows Mobile 5.0 device

Scheduled Pinned Locked Moved Mobile
wcfquestion
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    JGentsch
    wrote on last edited by
    #1

    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?

    E R 2 Replies Last reply
    0
    • J JGentsch

      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?

      E Offline
      E Offline
      Expert Coming
      wrote on last edited by
      #2

      Google is a beautiful thing![^] First result even works!

      The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo

      J 1 Reply Last reply
      0
      • E Expert Coming

        Google is a beautiful thing![^] First result even works!

        The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo

        J Offline
        J Offline
        JGentsch
        wrote on last edited by
        #3

        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.

        C 1 Reply Last reply
        0
        • J JGentsch

          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.

          C Offline
          C Offline
          Christopher Fairbairn
          wrote on last edited by
          #4

          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/

          1 Reply Last reply
          0
          • J JGentsch

            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?

            R Offline
            R Offline
            Ravenet
            wrote on last edited by
            #5

            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

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups