none
C# P/Invoke Callback To Manage Code (WSAIoctl) RRS feed

  • Question

  • I am beginner in C# and I try to p/invoke WSAIoctl(). I try to make this DLLImport but I'm not sure that is correct what I do.

    [DllImport("Ws2_32.dll", EntryPoint = "WSAIoctl", SetLastError = true)]
     public static extern Int32 WSAIoctl(
              Socket sock,                 int dwControlCode,
              IntPtr hook,                   int cbInBuffer,
              IntPtr lpvOutBuffer,           int cbOutBuffer,
              out UInt16 lpcbBytesReturned,  
              IntPtr lpOverlapped,           IntPtr lpCompletion);

    Wednesday, July 25, 2018 11:53 AM

All replies