[DllImport("user32.dll", EntryPoint = "GetCursorInfo")]private static extern bool GetCursorInfo(ref CURSORINFO cInfo);
private long getMouseStyle() { CURSORINFO pci = new CURSORINFO(); pci.cbSize = Marshal.SizeOf(typeof(CURSORINFO)); ; bool bl = GetCursorInfo(ref pci); return (long)(pci.hCursor); }