_CreateEvent() private method

private _CreateEvent ( IntPtr inAllocator, EventClass inClassID, UInt32 kind, System.Double when, EventAttributes flags, IntPtr &outEvent ) : OSStatus
inAllocator System.IntPtr
inClassID EventClass
kind System.UInt32
when System.Double
flags EventAttributes
outEvent System.IntPtr
return OSStatus
示例#1
0
        internal static IntPtr CreateWindowEvent(WindowEventKind kind)
        {
            IntPtr   outEvent;
            OSStatus @event = API._CreateEvent(IntPtr.Zero, EventClass.Window, (uint)kind, 0.0, EventAttributes.kEventAttributeNone, out outEvent);

            if (@event != OSStatus.NoError)
            {
                throw new MacOSException(@event);
            }
            else
            {
                return(outEvent);
            }
        }