Jump to content

Recommended Posts

Posted

I have some c++ code using the functions GetIfTable() and GetIfEntry() to retrieve the MAC Address. The problem is it doesn't always get MAC Address, though when I run ipconfig /all from the command line I can see that there is a valid MAC Address in those instances. I would use the GetAdaptersInfo() function except I need the code to run on Windows NT and XP and GetAdaptersInfo doesn't work on NT.

Anyone have any suggestions to always be able to get the MAC Address?

Thanks.


Posted

Thanks. I had already tried all the methods in the first link you provided and none were consistent across all platforms. But the method provided in that MS Article seems to have done the trick.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...