IOC.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. namespace Microsoft.Win32
  2. {
  3. //IOC定义
  4. public static partial class NativeMethods
  5. {
  6. /// <summary>
  7. /// parameters must be &lt; 128 bytes
  8. /// </summary>
  9. public const int IOCPARM_MASK = 0x7F;
  10. /// <summary>
  11. /// no parameters
  12. /// </summary>
  13. public const int IOC_VOID = 0x20000000;
  14. /// <summary>
  15. /// copy out parameters
  16. /// </summary>
  17. public const int IOC_OUT = 0x40000000;
  18. /// <summary>
  19. /// copy in parameters
  20. /// </summary>
  21. public const int IOC_IN = unchecked((int)0x80000000);
  22. /// <summary>
  23. /// IOC_IN | IOC_OUT
  24. /// </summary>
  25. public const int IOC_INOUT = (IOC_IN | IOC_OUT);
  26. /// <summary>
  27. /// IOC_UNIX
  28. /// </summary>
  29. public const int IOC_UNIX = 0x00000000;
  30. /// <summary>
  31. /// IOC_WS2
  32. /// </summary>
  33. public const int IOC_WS2 = 0x08000000;
  34. /// <summary>
  35. /// IOC_PROTOCOL
  36. /// </summary>
  37. public const int IOC_PROTOCOL = 0x10000000;
  38. /// <summary>
  39. /// IOC_VENDOR
  40. /// </summary>
  41. public const int IOC_VENDOR = 0x18000000;
  42. /// <summary>
  43. /// IOC_WSK
  44. /// </summary>
  45. public const int IOC_WSK = (IOC_WS2 | 0x07000000);
  46. }
  47. }