Example #1
0
        static CFMachPort CreateTap(CGEventTapLocation location, CGEventTapPlacement place, CGEventTapOptions options, uint mask, CoreGraphics.CGEvent.CGEventTapCallback cback, IntPtr data)
        {
            var r = CGEventTapCreate(location, place, options, mask, cback, data);

            if (r == IntPtr.Zero)
            {
                return(null);
            }
            return(new CFMachPort(r));
        }
Example #2
0
 public extern static IntPtr CGEventTapCreate(CGEventTapLocation location, CGEventTapPlacement place, CGEventTapOptions options, uint mask, CoreGraphics.CGEvent.CGEventTapCallback cback, IntPtr data);