https://learn.microsoft.com/en-us/windows/win32/api/ws2tcpip/nf-ws2tcpip-getaddrinfow?redirectedfrom=MSDN
GetAddrInfoW function (ws2tcpip.h) - Win32 apps | Microsoft Learn
Provides protocol-independent translation from a Unicode host name to an address.
functionhappsmicrosoftlearn