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