using System; namespace Microsoft.Win32 { //BOOLEAN定义 public static partial class NativeMethods { /// /// 真 /// public static readonly IntPtr TRUE = new IntPtr(1); /// /// 假 /// public static readonly IntPtr FALSE = IntPtr.Zero; } }