最終更新:2016-08-29 (月) 14:16:10 (2787d)  

System.Windows.Forms.Cursor?
System.Windows.Forms.Cursor.Position
Top / System.Windows.Forms.Cursor.Position

        public static Point Position {
            get {
                NativeMethods.POINT p = new NativeMethods.POINT();
                UnsafeNativeMethods.GetCursorPos(p);
                return new Point(p.x, p.y);
            }
            set {
                IntSecurity.AdjustCursorPosition.Demand();
                UnsafeNativeMethods.SetCursorPos(value.X, value.Y);
            }
        }

関連