We use MAC addresses to identify computers licensed to run software. (Do not care about MAC spoofing, licenses are difficult to obtain :) PCs can have several Ethernet controllers (we also don’t worry about the case when it is not there; we did not see such a machine after 5 years), and therefore there is a problem with a reliable choice of a stable one .
I thought we had this nail, but no. We use GetAdaptersInfo from the iphlpapi Microsoft SDK module and go down the list. We use the latest adapter as the supposedly motherboard for an Ethernet controller. Alas, we are faced with the Thinkpad, which appears to change the last controller depending on whether it is docked or not.
Is there a way to reliably find the MAC address for the Ethernet controller motherboard in the system, if one exists? And for those motherboards that have 2 or more, choose one that is stable? [If I knew that the kit was based on the motherboard, I can easily select the MAC address with the lowest address.
licensing nic
Ira Baxter
source share