using a dll with node-ffi
问题 I'm using node-ffi to access a dll supplied by a custom hardware i bought, the dll uses device driver to do things, they don't supply dll docs but they have a sample app in c#, the dll is used in c# like this: [DllImport("POS_CIDR.dll", CharSet = CharSet.Unicode)] private static extern IntPtr CIDR_Info(); ... result = Marshal.PtrToStringUni(CIDR.CIDR_Info()); ... now i try to access CIDR_Info function of dll with following node code: var ffi = require('ffi') var ref = require('ref') var int =