How to get NIC MAC address

Here is a good reference, Thanks Khalid!
https://www.codeguru.com/Cpp/I-N/network/networkinformation/article.php/c5451/

Here is my code, just a little modification on Khaild's: