Ejemplo n.º 1
0
        static EventStatus SendApplicationEvent(CarbonEventClass classID, uint kind, CarbonEventAttributes flags)
        {
            IntPtr      eventHandle;
            EventStatus s = CreateEvent(IntPtr.Zero, classID, kind, 0, flags, out eventHandle);

            if (s != EventStatus.Ok)
            {
                return(s);
            }
            s = SendEventToEventTarget(eventHandle, GetApplicationEventTarget());
            ReleaseEvent(eventHandle);
            return(s);
        }
Ejemplo n.º 2
0
 static extern EventStatus CreateEvent(IntPtr allocator, CarbonEventClass classID, uint kind, double eventTime,
                                       CarbonEventAttributes flags, out IntPtr eventHandle);