Example #1
0
        private static Point GetMousePosition()
        {
            Point point   = new Point();
            bool  success = WinAPIDeclarations.GetCursorPos(ref point);

            return(point);
        }
Example #2
0
        private static IntPtr GetWindowUnderCursor()
        {
            Point point   = new Point();
            bool  success = WinAPIDeclarations.GetCursorPos(ref point);

            return(WinAPIDeclarations.WindowFromPoint(point));
        }