It is quite straightfordward to get the current ip address(s) from the
FirstUnicastAddress linked list but I cannot see a way to get the IPv4
subnet mask. Is this possible with GetAdaptersAddresses?
Jim
With ConvertLengthToIpv4Mask() for OnLinkPrefixLength - inet_ntoa()
(Vista)
Unfortunately my code needs to work on XP so it's back to using
GetAdaptersInfo. Shame that this obvious feature was only added in Vista!
Jim.
"Christian ASTOR" <cast...@club-internet.fr> wrote in message
news:d72ecbf1-8c8a-4c25...@z31g2000yqd.googlegroups.com...