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