get windows phone unique id


/ Published in: C#
Save to your folder(s)

don't forgot to add capability ID_CAP_IDENTIFY_DEVICE


Copy this code and paste it in your HTML
  1. private static string get_unique_id()
  2. {
  3. object uniqueId;
  4. var hexString = string.Empty;
  5. if (DeviceExtendedProperties.TryGetValue("DeviceUniqueId", out uniqueId))
  6. hexString = BitConverter.ToString((byte[])uniqueId).Replace("-", string.Empty);
  7. return hexString;
  8. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.