using System; namespace Microsoft.Win32 { //HANDLE定义 public static partial class NativeMethods { /// /// 无效句柄值 /// public static readonly IntPtr INVALID_HANDLE_VALUE = new IntPtr(-1); } }