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);
时间: 2024-10-11 16:22:42