WSABUF.cs 719 B

123456789101112131415161718192021222324252627
  1. using System;
  2. using System.Runtime.InteropServices;
  3. namespace Microsoft.Win32
  4. {
  5. /// <summary>
  6. /// WSABUF定义
  7. /// </summary>
  8. public static partial class NativeMethods
  9. {
  10. /// <summary>
  11. /// The WSABUF structure enables the creation or manipulation of a data buffer used by some Winsock functions.
  12. /// </summary>
  13. [StructLayout(LayoutKind.Sequential)]
  14. public struct WSABUF
  15. {
  16. /// <summary>
  17. /// The length of the buffer, in bytes.
  18. /// </summary>
  19. public int len;
  20. /// <summary>
  21. /// A pointer to the buffer.
  22. /// </summary>
  23. public IntPtr buf;
  24. }
  25. }
  26. }