https://bugs.winehq.org/show_bug.cgi?id=36092
Michael Hampton error@ioerror.us changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |error@ioerror.us
--- Comment #36 from Michael Hampton error@ioerror.us --- This function really isn't new, it's been in Windows since Vista. It is an IPv6 function, which is why almost nobody has used it until now.
This appears to be Microsoft's dramatically over-engineered attempt to comply with RFC 3484. This MSDN article (different from the one linked earlier!) explains how it's intended to be used. http://msdn.microsoft.com/en-us/library/windows/desktop/ms740614%28v=vs.85%2...
By comparison getaddrinfo() accomplishes the task much more easily and does a lot more. I think it could be used to implement CreateSortedAddressPairs, though there is probably a "better" way to do it.