Uniquely identify PC based on software/hardware

后端 未结 7 1744
甜味超标
甜味超标 2020-12-16 19:38

For a requirement to generate per-PC license keys, I need some code which will return a stable and (near) unique key on any PC. It doesn\'t have to be guaranteed un

7条回答
  •  执笔经年
    2020-12-16 20:14

    I think there no really easy and unique method so far discovered here.

    1. GetVolumeInformation retrieves not even close to unique ID.....
    2. To use any hardware serial is problematic because manufactures are not committed to supported it always and especially to keep it globally unique
    3. GetCurrentHwProfile retrieves GUID but it's value affected by minor! hardware changes...
    4. Using Product Key ... will bring U to deal with the stolen software - there lot of pirate installations over the globe.
    5. Creation of own GUID and preserving it under registry (in any place) will not prevent duplication by cloning of image ....
      etc... From my perspective of view the best way is combine: Volume ID + MAC's list + Machine SID + Machine Name. And obviously manage license policy on the server side ;0)

    Regards Mickel.

提交回复
热议问题