[DllImport("user32.dll")]public static extern bool GetCursorPos(out POINT lpPoint);[StructLayout(LayoutKind.Sequential)]public struct POINT{ public int X; public int Y; public POINT(int x, int y) { this.X = x; this.Y = y; }}
本文共 329 字,大约阅读时间需要 1 分钟。
[DllImport("user32.dll")]public static extern bool GetCursorPos(out POINT lpPoint);[StructLayout(LayoutKind.Sequential)]public struct POINT{ public int X; public int Y; public POINT(int x, int y) { this.X = x; this.Y = y; }}
转载于:https://my.oschina.net/monkeybiao/blog/94407