WSADATA (Structures)
Last changed: -77.124.220.248

.
Summary
The WSADATA structure contains information about the Windows Sockets implementation

C# Definition:

    [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)

User-Defined Field Types:

None.

Notes:

dwVendorInfo is now unused (Winsock 2.0 and above)

Documentation
WSADATA on MSDN