示例#1
0
		public static bool IsTapEnabled (CFMachPort machPort)
		{
			if (machPort == null)
				throw new ArgumentNullException ("machPort");
			return CGEventTapIsEnabled (machPort.Handle);
		}
示例#2
0
		public static void TapDisable (CFMachPort machPort)
		{
			if (machPort == null)
				throw new ArgumentNullException ("machPort");
			CGEventTapEnable (machPort.Handle, false);
		}