circu.js
    Preparing search index...

    Function watchRegistry

    • Watch a registry key for any value changes. The callback is invoked on the JS event loop whenever the key or its values change. Call .close() on the returned handle to stop watching.

      Watching is recursive (subkeys included).

      Parameters

      • hive: number
      • key: string
      • callback: () => void

      Returns RegWatch

      const watcher = watchRegistry(HKCU,
      'Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings',
      () => { console.log('Proxy settings changed'); });

      // later…
      watcher.close();