CodePudding user response:
Perform ipconfig -all, written into the file, then the manual programming read file, the address analysis outThe code below
The run (" ipconfig - all & gt;> C: \ 1. TXT ")
And then parse c: \ 1. TXT can
CodePudding user response:
Gethostbyname itself is will get all the network card.See the MSDN hostent structure.