namespace Microsoft.Win32 { //IOC定义 public static partial class NativeMethods { /// /// parameters must be < 128 bytes /// public const int IOCPARM_MASK = 0x7F; /// /// no parameters /// public const int IOC_VOID = 0x20000000; /// /// copy out parameters /// public const int IOC_OUT = 0x40000000; /// /// copy in parameters /// public const int IOC_IN = unchecked((int)0x80000000); /// /// IOC_IN | IOC_OUT /// public const int IOC_INOUT = (IOC_IN | IOC_OUT); /// /// IOC_UNIX /// public const int IOC_UNIX = 0x00000000; /// /// IOC_WS2 /// public const int IOC_WS2 = 0x08000000; /// /// IOC_PROTOCOL /// public const int IOC_PROTOCOL = 0x10000000; /// /// IOC_VENDOR /// public const int IOC_VENDOR = 0x18000000; /// /// IOC_WSK /// public const int IOC_WSK = (IOC_WS2 | 0x07000000); } }