Andreas Rosenberg andreas_rosenberg@web.de writes:
+INT WINAPI WSAStringToAddressW(LPCWSTR AddressString,
INT AddressFamily,
LPWSAPROTOCOL_INFOA lpProtocolInfo,
You should have an LPWSAPROTOCOL_INFOW here instead, and convert it before calling WSAStringToAddressA.