Jump to content

[c++] Getting MAC Address


Recommended Posts

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.

Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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