using System.Runtime.InteropServices; using System.Collections.Generic; using System; using System.Windows.Forms; namespace Phoenix { //注册系统按键消息 class HotKeys { [DllImport("user32.dll")] private static extern bool RegisterHotKey(IntPtr hWnd, int
SetWindowsHookEx function https://msdn.microsoft.com/en-us/library/windows/desktop/ms644990(v=vs.85).aspx 无焦点下获取条码枪返回值的Hook(再次改良版) http://www.oschina.net/code/snippet_934211_27611 using System; using System.Collections.Generic; using System.Linq; usi
// 条码扫描器 // 窗体部分相关代码: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace ReadBadCode { public partial class frmTest : Form { B
针对上一个版本再次改良,上除掉无用代码,新手绝对可以看懂! using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.InteropServices; using System.Reflection; namespace BookLibraryManagement.CommonTools { class BarCodeHook { publi