Hi, I know that we can use "dmidecode -t system | grep "UUID"" in terminal to get the UUID of system in Ubuntu, but how to read the same system UUID through C++?
The dmidecode has GPL licence and thus its source code must be publicly available. There you should find the (C language) system function calls that do retrieve the data.