public EcoreEventDndLeave(IntPtr EventInfo) { EcoreEventDndLeave e = new EcoreEventDndLeave(); e = (EcoreEventDndLeave)Marshal.PtrToStructure(EventInfo, typeof(EcoreEventDndLeave)); win = e.win; source = e.source; }