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.Linq; using System.Text; using System.Runtime.InteropServices; using System.Reflection; namespace BookLibraryManagement.CommonTools { class BarCodeHook { publi…
1. Introduction. 1.1 In part 1 of this series of blogs we studied how to pass a managed structure (which contains strings) to unmanaged code. The structure was passed as an "in" (by-value) parameter, i.e. the structure was passed to the unmanage…
1. Introduction. 1.1 In part 1 of this series of blogs we studied how to pass a managed structure (which contains strings) to unmanaged code. The structure was passed as an "in" (by-value) parameter, i.e. the structure was passed to the unmanage…