Skip to content

CyberSecDemon/node-regwatch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A NAPI Native C++ Addons to monitor Windows Registry changes using RegNotifyChangeKeyValue

Installation

npm install regwatch

You will need C/C++ build tools and Python 2.7(node-gyp) to build this module.

Example

const regwatch = require("regwatch");

let watch = regwatch("HKCU","Software/Microsoft/Windows/CurrentVersion/Run",function(){
  console.log("Registry change detected !");
  watch.close(); //stop monitoring
});

API

function(hkey, subkey, callback)

hkey: Root hive key, possible values are HKCR, HKCU, HKLM, HKU, HCC
subkey: Registry subkey
callback: Callback function to execute on monitored registry key change

Return an object containing a close method to stop the monitoring

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published