In order to implement a minimum of copy protection system, I'm looking for a way to identify a Mac machine by some unique information.
In Windows I did that by reading the hard disk serial number, with the GetVolumeInformation API, but even after a lot of searching I didn't find a way to do the same on macOS.
Another way to achieve the same result would be to read macOS's own Serial Number (which you see in apple menu > About This Mac). Or any other unique bit of information, such as a CPU ID, or a motherboard ID, etc. (Maybe not the MAC address, because it's changeable... even though that would be better than nothing, but I'm still hoping to find a better way than that)
I've found a few threads where this topic was discussed, but the only solutions and code show were for Windows.
Any advice, and especially any code sample for the mac, will be extremely appreciated!