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); }
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; }
unsafe extern static int /* CGError = int32_t */ CGGetEventTapList ( uint /* uint32_t */ maxNumberOfTaps, CGEventTapInformation *tapList, out uint /* uint32_t* */ eventTapCount);