function initport() { Components.utils.import("resource://gre/modules/ctypes.jsm"); var lib = ctypes.open("C:\\myapp\\dl1.dll"); var ans= lib.declare("initPort" , ctypes.stdcall_abi , ctypes.int8_t ); alert("MessageBox result : "+ans()); lib.close(); }
dl1.dll
C:\\myapp\\
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)