public EcoreEventDndPosition(IntPtr EventInfo) { EcoreEventDndPosition e = new EcoreEventDndPosition(); e = (EcoreEventDndPosition)Marshal.PtrToStructure(EventInfo, typeof(EcoreEventDndPosition)); win = e.win; src = e.src; action = e.action; }