Retrieving the unique device ID of Microsoft Surface

与世无争的帅哥 提交于 2020-01-15 11:06:10

问题


I am developing an application for Windows 8 and I am testing it on Microsoft's Surface. Does any one know how I can retrieve the unique device ID of Surface?

Just like we do for Windows Phone by retrieving its unique device id using Microsoft.Phone.Info namespace.


回答1:


I use Windows.System.Profile.HardwareIdentification.GetPackageSpecificToken(null).Id converted to string, details at http://coding.kulman.sk/how-to-uniquely-identify-a-windows-8-device/




回答2:


AFAIK, the closest thing you'll find (for Windows Store apps) is the ASHWID, which isn't device specific but rather app+device specific. There are a number of options you can provide in terms of weighting the different factors that comprise the ASHWID.




回答3:


EasClientDeviceInformation esClientDeviceInformation=new EasClientDeviceInformation(); var localDeviceID= esClientDeviceInformation.Id;

Happy Coding:)



来源:https://stackoverflow.com/questions/13913579/retrieving-the-unique-device-id-of-microsoft-surface

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!