using System;
using System.Net.Sockets;
using System.Runtime.InteropServices;

namespace Apewer.Internals.Interop
{

    internal class WS2_32
    {

        [DllImport("ws2_32.dll", SetLastError = true)]
        internal static extern IntPtr gethostbyaddr([In] ref int addr, [In] int len, [In] ProtocolFamily type);

        [DllImport("ws2_32.dll", BestFitMapping = false, CharSet = CharSet.Ansi, SetLastError = true, ThrowOnUnmappableChar = true)]
        internal static extern IntPtr gethostbyname([In] string host);

    }

}