Integrate windows native APIs in cpp to your nodejs application.
- List all active Displays (external monitors attached to the machine)
- List all available microphones, mute them, set volume, get volume level
- get a list of all applications running in the background of your windows machine
const win_native_interface = require('.\\build\\Release\\nodejs-windows-process-monitor')
console.log(win_native_interface)
JSVolumeControl = new win_native_interface.JSVolumeControl()
JSDisplayControl = new win_native_interface.JSDisplayControl()
JSProcessMonitor = new win_native_interface.JSProcessMonitor()
//Examples
JSVolumeControl.setMuted(false);
JSVolumeControl.setVolume(0.7)
console.log(JSVolumeControl.getMicrophoneStatuses());
console.log("processes : " + ProcessMonitor.getActiveProcesses());
A native Windows API binding to have a list of running processes on windows.
const Controls = require('.\\build\\Release\\nodejs-windows-process-monitor')
console.log(Controls)
ProcessMonitor = new Controls.JSProcessMonitor()
console.log("processes : " + ProcessMonitor.getActiveProcesses());
Returns list of comma separated active process running in windows.
To build the project you need in Windows to install windows-build-tools in an elevated PowerShell prompt npm install --global --production windows-build-tools
and then npm install
or if you have node-gyp
installed globally
npm install -g node-gyp
$ node-gyp configure
$ node-gyp build
The repository contains a demo of the usage
$ node demo.js