Search code examples
c++windowsuniqueuuidcopy-protection

Generating a Hardware-ID on Windows


What is the best way to generate a unique hardware ID on Microsoft Windows with C++ that is not easily spoofable (with for example changing the MAC Address)?


Solution

  • Windows stores a unique Guid per machine in the registry at:

    HKEY_LOCAL_MACHINE\Software\Microsoft\Cryptography\MachineGuid