[DllImport("ws2_32.dll", CharSet = CharSet.Ansi, SetLastError = true)]
internal static extern SocketError WSAStartup([In] short wVersionRequested, out WSAData lpWSAData);
比如这句代码是什么意思,有什么用
在托管代码中申明一个同非托管库ws2_32.dll中的函数
SocketError WSAStartup(short wVersionRequested,WSAData& lpWSAData);
匹配的函数签名.