public static bool GetCursorPos(ref Point pt) { POINTAPI mpt32 = new WinApis.POINTAPI(); int d = GetCursorPos(ref mpt32); pt.X = mpt32.X; pt.Y = mpt32.Y; return((d != 0) ? true : false); }
public static bool GetCursorPos(ref int x, ref int y) { POINTAPI mpt32 = new WinApis.POINTAPI(); int d = GetCursorPos(ref mpt32); x = mpt32.X; y = mpt32.Y; return((d != 0) ? true : false); }