using System; using System.Runtime.InteropServices; namespace Microsoft.Win32 { /// /// WSABUF定义 /// public static partial class NativeMethods { /// /// The WSABUF structure enables the creation or manipulation of a data buffer used by some Winsock functions. /// [StructLayout(LayoutKind.Sequential)] public struct WSABUF { /// /// The length of the buffer, in bytes. /// public int len; /// /// A pointer to the buffer. /// public IntPtr buf; } } }