Neutral Political Machine
Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

winreg-ffi

0.0.5 • Public • Published

winreg-ffi

A Node.js module for binding Winreg.h using node-ffi.

Example

# written in CoffeeScript
Registry = require('winreg-ffi')
 
# keys
parent = 'Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall'
registry = Registry.open('HKLM', parent)
console.log keys = registry.keys()
registry.close()
 
# values
children = keys.map (key) -> parent + '\\' + key.name
registry = Registry.open('HKLM', children[5])
console.log registry.values()
registry.close()

CLI

>winreg-ffi --help

A Node.js module for binding Winreg.h using node-ffi.

Usage:
  winreg-ffi --help
  winreg-ffi query KEY [--reg32 | --reg64]

Examples:
  winreg-ffi query HKLM\SOFTWARE
  winreg-ffi query HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Office15.PROPLUS

Development

Test

npm test

or

set DEBUG=winreg-ffi:*
node_modules\.bin\mocha

ToDo

  • RegOpenKeyExW Registry.open()
  • RegCloseKey Registry.close()
  • RegQueryInfoKey Registry.info()
  • RegEnumKeyExW Registry.keys()
  • RegEnumValueW Registry.values()
  • RegQueryValueExW
  • RegCreateKeyExW
  • RegDeleteKeyW
  • RegSetValueExW
  • RegDeleteValueW
  • RegFlushKey
  • CLI

Author

  • Masayuki Higashino

License

The MIT License (MIT)

install

npm i winreg-ffi

Downloadsweekly downloads

1

version

0.0.5

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability