Convert hostname (web address) to IP
Performs a lookup of a hostname and returns its IP address. If the lookup fails the function returns a blank string.
You must first call WSAStartup() to initialize the Winsock DLL prior to doing the lookup, and call WSACleanup() when operations are complete.