You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
535 B
19 lines
535 B
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);
|
|
|
|
}
|
|
|
|
}
|
|
|