In WinRT, can EasClientDeviceInformation.Id be used as a unique identifier for a specific user on a specific device?

In our WinRT application, we need a unique identifier for a registered user, which is 100% compatible between running applications on one device and is preserved between uninstalling applications and reinstalling on one device. The identifier should only be consistent for the same registered user.

We reviewed ASHWID , but โ€œhardware driftโ€ will reassign this identifier in an unpredictable way and is not suitable for our design.

Question: Could EasClientDeviceInformation.Id be appropriate? This sounds good, but I cannot find much documentation or use cases for this. When and how can this identifier change?

EasClientDeviceInformation.Id | id

Returns the identifier of the local computer. The Id property represents a DeviceId using a GUID truncated from the first 16 bytes of the SHA256 MachineID hash, user SID, and application identifier, where MachineID uses the SID of the local user group. Each GUID component is returned in network byte order.

+4
source share

All Articles