Are all those indirections still needed? https://docs.microsoft.com/en-us/windows/win32/api/ws2tcpip/nf-ws2tcpip-getaddrinfo > The getaddrinfo function was added to the Ws2_32.dll on Windows > XP and later.