The code for cPP looks like this. How can I use ffi to call the Login method? typedef struct _LoginInfo{ LoginAuthType authType; char *username; char *userPassword; char *appKey; char *appToken; char *timestamp; char *...
my code: const ffi = require( ffi ); const ref = require("ref"); let ReadIdcard = ffi.Library( . ReadIdcard.dll , { initReadIdcard : [ int , [ pointer ]] }); let callback = ffi.Callback( void , [ string ], function(data) ...