首页 > 代码库 > nodejs ffi(DLL)

nodejs ffi(DLL)

npm install ffi

Error: The specified module could not be found.

npm rebuild

 

var ffi = require(‘ffi‘);var Test = ffi.Library(‘user32.dll‘,{‘MessageBoxA‘: [‘int‘,[‘int‘,‘string‘,‘string‘,‘int‘]]});Test.MessageBoxA(0,‘123‘,‘456‘,0);

  

nodejs ffi(DLL)