public static int GetCursorPos(ref Point lpPoint) { WindowsAPI.POINT lpPoint1 = new WindowsAPI.POINT(); int cursorPos = WindowsAPI.GetCursorPos(ref lpPoint1); lpPoint.X = lpPoint1.X; lpPoint.Y = lpPoint1.Y; return(cursorPos); }
private static extern int GetCursorPos(ref WindowsAPI.POINT lpPoint);