ffi-napi-intercept
v1.0.1
Published
捕获FFI.Library加载dll过程中出现的错误
Readme
ffi-napi-intercept
捕获FFI.Library加载dll过程中出现的错误
安装
npm install ffi-napi-intercept使用
const { loadLibrary } = require('ffi-napi-intercept');
loadLibrary('D:/test.dll', {
testFun: ['void', []],
}, (libFile, errorCode, errorFuns) => {
// 输出:D:/test.dll 126 null
// 输出:D:/test.dll 127 ['testFun']
console.log(libFile, errorCode, errorFuns);
});
