[System.Runtime.InteropServices.DllImport("user32.dll", EntryPoint="GetCursorPos")]
public static extern int GetCursorPos (
ref POINTAPI lpPoint
);
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential)]
public struct POINTAPI
{
public int x;
public int y;
}