Search code examples
uuidwindows-storewindows-10

HardwareIdentification.GetPackageSpecificToken API changed in Windows 10


I'm using HardwareIdentification.GetPackageSpecificToken in my app. See following resource:

https://msdn.microsoft.com/en-us/library/windows/apps/JJ553431.aspx

Now, Windows.System.Profile is no longer available in the new Windows SDK 10240. Any idea where I can find it now?


Solution

  • It's available for device family "Desktop" and "Mobile" only. (See https://msdn.microsoft.com/en-us/library/windows/apps/windows.system.profile.hardwareidentification.getpackagespecifictoken.aspx )

    So you have to add an Extension SDK. You can do this using the Reference Manager. See the detailed description how to add an Extension SDK here: Windows 10 Mobile - cannot hide status bar (StatusBar doesn't exist in context)