[StructLayout(LayoutKind.Sequential)]
public struct WSADATA
{
const int WSADESCRIPTION_LEN=256;
const int WSASYS_STATUS_LEN=128;
public short wVersion;
public short wHighVersion;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = WSADESCRIPTION_LEN + 1)]
public string szDescription;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = WSASYS_STATUS_LEN + 1)]
public string szSystemStatus;
[Obsolete] // Ignored for v2.0 and above
public int wMaxSockets;
[Obsolete] // Ignored for v2.0 and above
public int wMAXUDPDG;
public IntPtr dwVendorInfo;
}
///
/// public int wMaxSockets;
/// should be
/// public ushort wMaxSockets;
///
///
/// public int wMAXUDPDG;
/// should be
/// public ushort wMAXUDPDG;
///
/// Changed by Mike Petrichenko (http://www.btframework.com)
None.
dwVendorInfo is now unused (Winsock 2.0 and above)