I am looking for c/c++ code (no third party lib dependency) to get the physical address of ethernet card on mother board.
Most of them suggests to use the shell commands and process the output. For example "ipconfig /all".
There is another case when you install virtualization apps such as VirtualBox or VmPlayer, they create a virtual adepter for their own use. In that case running "ipconfig /all" returns all the adepters. (physical and virtual)
I have heard of another cases also when "ipconfig /all" return other adepters including physical one.
How do I get correct ethernet address of physical adepter only?
I am going to use this utility for license generation so it has to work correctly.
Cheers
Prashant
