// For 32-bit execution
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)]
public struct WSAData
{
public Int16 version;
public Int16 highVersion;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 257)]
public String description;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 129)]
public String systemStatus;
public Int16 maxSockets;
public Int16 maxUdpDg;
public IntPtr vendorInfo;
}
// For 64-bit execution
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)]
internal struct WSAData64
{
internal ushort wVersion;
internal ushort wHighVersion;
internal ushort iMaxSockets;
internal ushort iMaxUdpDg;
internal IntPtr lpVendorInfo;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 257)]
internal string szDescription;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 129)]
internal string szSystemStatus;
}
Declare Function WSAData Lib "ws2_32.dll" (TODO) As TODO
None.
Used in calling WSAStartup.
Please add some!
Please add some!
Do you know one? Please contribute it!