Generating a Hardware-ID on Windows

Patrick Glandien picture Patrick Glandien · May 26, 2009 · Viewed 20.2k times · Source

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)?

Answer

AgileJon picture AgileJon · May 26, 2009

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

HKEY_LOCAL_MACHINE\Software\Microsoft\Cryptography\MachineGuid