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