Exemple #1
0
        public unsafe CGEventTapInformation [] GetEventTapList()
        {
            uint count;

            if (CGGetEventTapList(0, null, out count) != 0)
            {
                return(null);
            }
            var result = new CGEventTapInformation [count];

            fixed(CGEventTapInformation *p = &result[0])
            {
                if (CGGetEventTapList(count, p, out count) != 0)
                {
                    return(null);
                }
            }

            return(result);
        }
Exemple #2
0
		public unsafe CGEventTapInformation [] GetEventTapList ()
		{
			uint count;
			if (CGGetEventTapList (0, null, out count) != 0)
				return null;
			var result = new CGEventTapInformation [count];
			fixed (CGEventTapInformation *p = &result [0]){
				if (CGGetEventTapList (count, p, out count) != 0)
					return null;
			}
			return result;
		}
Exemple #3
0
		unsafe extern static int /* CGError = int32_t */ CGGetEventTapList (
			uint /* uint32_t */ maxNumberOfTaps,
			CGEventTapInformation *tapList,
			out uint /* uint32_t* */ eventTapCount);