Пример #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);
		}