2018年12月19日
摘要: m_Read = Semaphore.OpenExisting(spname); 用过之后要记得关闭 否则内存泄漏 m_Read.Close(); 要想 服务进程 之间交互 使用 Global\\Erist.Remote.ShareMemory 全局对象 阅读全文
posted @ 2018-12-19 12:46 eristjy 阅读(123) 评论(0) 推荐(0) 编辑
摘要: public void SetCursor(Bitmap cursor, Point hotPoint)//移动自定义光标的图象位置,使他在0 0点起作用 { try { int hotX = hotPoint.X; int hotY = hotPoint.Y; Bitmap myNewCursor 阅读全文
posted @ 2018-12-19 09:30 eristjy 阅读(304) 评论(0) 推荐(0) 编辑
摘要: 1 Bitmap CaptureCursor(ref Point position) { CURSORINFO cursorInfo = new CURSORINFO(); cursorInfo.cbSize = Marshal.SizeOf(cursorInfo); if (!GetCursorInfo(out cursorInfo)) return null; if (cursorInfo.... 阅读全文
posted @ 2018-12-19 09:22 eristjy 阅读(171) 评论(0) 推荐(0) 编辑