Example #1
0
 public static extern bool ScreenToClient(IntPtr hwnd, ref POINT pt);
Example #2
0
 public static int[] GetMousePosition()
 {
     POINT point = new POINT();
     NativeMethods.GetCursorPos(ref point);
     return new int[] { point.X, point.Y };
 }
Example #3
0
 public static extern bool GetCursorPos(ref POINT pt);