Пример #1
0
		public static CFMachPort CreateTap (IntPtr processSerialNumber, CGEventTapLocation location, CGEventTapPlacement place, CGEventTapOptions options, CGEventMask mask, CGEventTapCallback cback, IntPtr data)
		{
			var r = CGEventTapCreateForPSN (processSerialNumber, location, place, options, mask, cback, data);
			if (r == IntPtr.Zero)
				return null;
			return new CFMachPort (r);
		}
Пример #2
0
        public static CFMachPort CreateTap(IntPtr processSerialNumber, CGEventTapLocation location, CGEventTapPlacement place, CGEventTapOptions options, CGEventMask mask, CGEventTapCallback cback, IntPtr data)
        {
            var r = CGEventTapCreateForPSN(processSerialNumber, location, place, options, mask, cback, data);

            if (r == IntPtr.Zero)
            {
                return(null);
            }
            return(new CFMachPort(r));
        }
Пример #3
0
 extern static IntPtr CGEventTapCreateForPSN(IntPtr processSerialNumer, CGEventTapLocation location, CGEventTapPlacement place, CGEventTapOptions options, CGEventMask mask, CGEventTapCallback cback, IntPtr data);
Пример #4
0
 extern static IntPtr CGEventTapCreate(CGEventTapLocation location, CGEventTapPlacement place, CGEventTapOptions options, CGEventMask mask, CGEventTapCallback cback, IntPtr data);
Пример #5
0
		extern static IntPtr CGEventTapCreateForPSN (IntPtr processSerialNumer, CGEventTapLocation location, CGEventTapPlacement place, CGEventTapOptions options, CGEventMask mask, CGEventTapCallback cback, IntPtr data);
Пример #6
0
		extern static IntPtr CGEventTapCreate (CGEventTapLocation location, CGEventTapPlacement place, CGEventTapOptions options, CGEventMask mask, CGEventTapCallback cback, IntPtr data);
Пример #7
0
        public static CFMachPort?CreateTap(CGEventTapLocation location, CGEventTapPlacement place, CGEventTapOptions options, CGEventMask mask, CGEventTapCallback cback, IntPtr data)
        {
            var r = CGEventTapCreate(location, place, options, mask, cback, data);

            if (r == IntPtr.Zero)
            {
                return(null);
            }
            return(new CFMachPort(r, true));
        }