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

  1. using System;
  2. using System.Net.Sockets;
  3. using System.Runtime.InteropServices;
  4. namespace Apewer.Internals.Interop
  5. {
  6. internal class WS2_32
  7. {
  8. [DllImport("ws2_32.dll", SetLastError = true)]
  9. internal static extern IntPtr gethostbyaddr([In] ref int addr, [In] int len, [In] ProtocolFamily type);
  10. [DllImport("ws2_32.dll", BestFitMapping = false, CharSet = CharSet.Ansi, SetLastError = true, ThrowOnUnmappableChar = true)]
  11. internal static extern IntPtr gethostbyname([In] string host);
  12. }
  13. }