先来一个辅助类 using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Windows.Forms; namespace HZCX.Utils { /// <summary> /// 鼠标全局钩子 /// </summary> public static class
类文件: C#类文件 using System; using System.Collections.Generic; using System.Text; using System.Runtime.InteropServices; using System.Reflection; namespace Common { public class BardCodeHooK { public delegate void BardCodeDeletegate(BarCodes barCode); pub