求哪位好心人帮我看下这个源代码
https://down.bccn.net/9557.html
这是一个屏幕录像的源代码,可以正常运行。但是录制的视频没有鼠标,我想加上录制鼠标光标的功能,应该如何修改呢。感觉无从下手,求好心人给个提示
或思路。谢谢了,
/// <summary> /// 取得当前鼠标样式 /// </summary> [StructLayout(LayoutKind.Sequential)] struct CURSORINFO { public int cbSize; public int flags; public IntPtr hCursor; public Point ptScreenPos; } [DllImport("user32.dll")] static extern bool GetCursorInfo(out CURSORINFO pci); private const int CURSOR_SHOWING = 0x00000001; private static Cursor vCursor; /// <summary> /// 画当前鼠标样式 /// </summary> /// <param name="bmp">图像</param> /// <param name="x">位置 x</param> /// <param name="y">位置 y</param> public static void Record_Mouse() { CURSORINFO vCurosrInfo; vCurosrInfo.cbSize = Marshal.SizeOf(typeof(CURSORINFO)); GetCursorInfo(out vCurosrInfo); if ((vCurosrInfo.flags & CURSOR_SHOWING) != CURSOR_SHOWING) return; vCursor = new Cursor(vCurosrInfo.hCursor); }