You can achieve this by simple piece of dos command.
ipconfig /all >> [path]
path should be a txt file location in which you will get all the NIC MAC address. Then you just need to manipulate it a bit more to server your purpose.
See.. 1st place the dos command "ipconfig /all" (without quotes) into dos and see the output. you will find all the mac of ur nics. then you just need to catch this mac address in ur c++ code.. better u start off c++ file handling before doing this..
And don't use any sort of command redirection into file, and parsing the file. That is absurd. A command window may open, would distract the user. And most importantly, output of any command (like 'ipconfig') may change by different versions of OS.
And don't use any sort of command redirection into file, and parsing the file. That is absurd. A command window may open, would distract the user. And most importantly, output of any command (like 'ipconfig') may change by different versions of OS.
Bookmarks