Search code examples
node.jsangulardllelectronelectron-packager

How to call C# dll method in electron App?


I have an electron app which reads credit card details from card reader. They provided a c# dll to interact with app. I have no idea about how to read the dll methods from electron app.


Solution

  • First check the exposed functions in the dll using dependency walker. Then use the node module ffi to call the exposed functions in that dll.