electron-dllinjector

1.0.1 • Public • Published

dllinjector

npm install dllinjector
npm install electron@7.1.0

A wrapper around an electron native addon. Built for use on Windows OS. Currently compiled for use in Electron version 7.1.0, but it may work for newer versions.

For use with Electron, use npm electron-rebuild

//Access to the injector class
const dllinjector = require('electron-dllinjector')

Electron in production will usually put this package inside an asar file. That could cause issues, so you may want to move this entire package into a resources folder to keep it outside of the asar file.

Class methods

InjectDLL(<string> DLLFilePath, <int>ProcessID)
  //Injects the dll at the specified path into the process with specified id
  //Returns true if no error

GetProcessIDByName(<string> ProcessName)
  //Searches process list for the first occurance of the specified process name and returns the process id
  
KillProcess(<int> ProcessID)
  //Kills the process with the specified ID
  //Returns true if killed, false otherwise
  
GetRunningApplications()
  //Returns array of objects. Ex. [{pid: 0, name:"notepad.exe"},{pid: 1, name:"program.exe"},...]

&more

Package Sidebar

Install

npm i electron-dllinjector

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

664 kB

Total Files

9

Last publish

Collaborators

  • jon21