Пример #1
0
        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);
        }
Пример #2
0
 private static extern int GetCursorPos(ref WindowsAPI.POINT lpPoint);