1.0.8 • Published 1 year ago

hmc-registry v1.0.8

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

注册表编辑器(Editor regedit)

源代码由C++编写而成 效率更高更稳定,与当前软件集成一体,不需要调用cmd执行不容易被杀毒软件失误拦截

The source code is written by C++, which is more efficient and stable. It is integrated with the current software. It does not need to call cmd to execute. It is not easy to be intercepted by errors in antivirus software

该模块的核心组件是(The core components of the module are):hmc-win32


详细使用方法请访问编程帮助文档:

For details on how to use it, please visit the programming help documentation:

编程帮助文档:https://kihlh.gitbook.io/hmc/zhu-ce-biao-bian-ji

Programming help documentation:https://kihlh.gitbook.io/hmc_en/registry-editor

  • HKEY_USERS 用作默认用户首选设置,也作为单个用户的首选设置
  • HKEY_LOCAL_MACHINE 包含描述计算机及其配置的条目。其中包括关于处理器、系统主板、内存和已安装的软件和硬件的信息
  • HKEY_CURRENT_USER 管理系统当前的用户信息
  • HKEY_CURRENT_CONFIG 用作默认用户首选设置,也作为单个用户的首选设置
  • HKEY_CLASSES_ROOT 是与文档类型和 OLE\COM 相关的信息的支持键。这个键是

​ 详细参见:https://learn.microsoft.com/zh-cn/windows/win32/sysinfo/hkey-classes-root-key


安装(install)

 npm i hmc-registry

使用(How to use)

let winReg = require("hmc-registry");

获取键值对内容:(Get the key-value pair content)

let regText= winReg.getStringRegKey("HKEY_CURRENT_USER","Environment","TEMP");
  console.log(regText);
 //log => %USERPROFILE%\AppData\Local\Temp

获取键值对内容(二进制 Buffer):(Get the key-value pair content (Binary Buffer) )

let regBuffer= winReg.getRegistrBuffValue("HKEY_CURRENT_USER","Environment","TEMP");
  console.log(regBuffer);
 //log => <Buffer d0 a4 b8 fa>

let regBufferNot= winReg.getRegistrBuffValue("HKEY_CURRENT_USER","Environment","TEMdsgdhP");
  console.log(regBufferNot);
 //log => undefined

获取键值对内容(二进制 Buffer):(Get the key-value pair content (Binary Buffer) )

let regBuffer= winReg.getRegistrBuffValue("HKEY_CURRENT_USER","Environment","TEMP");
  console.log(regBuffer);
 //log => <Buffer d0 a4 b8 fa>

let regBufferNot= winReg.getRegistrBuffValue("HKEY_CURRENT_USER","Environment","TEMdsgdhP");
  console.log(regBufferNot);
 //log => undefined

获取键值对内容(默认):(Get key-value pair content (default))

let regText= winReg.getStringRegKey("HKEY_CURRENT_USER","Environment","");
  console.log(regText);
 //log => 5265526

获取键值对存在判断:(Get the presence judgment of the key-value pair)

let hasRegKey= winReg.hasStringRegKey("HKEY_CURRENT_USER","Environment","TEMP");
  console.log(hasRegKey);
 //log => true

删除键值对:(Delete key-value pairs)

let removeRegKey= winReg.removeStringRegKey("HKEY_CURRENT_USER","Environment","c");
  console.log(removeRegKey);
 //log => true  

let hasRegKey= winReg.removeStringRegKey("HKEY_CURRENT_USER","Environment","c");
  console.log(hasRegKey);
 //log => false  

设置键值对的值(Set the value of the key-value pair)

 console.log(
     
  winReg.setRegistrKey("HKEY_CURRENT_USER","Environment","c","New Value")
     
  );
 //log => true  

设置键值对的值(默认) (Set the value of the key-value pair (default))

 console.log(
     
  winReg.setRegistrKey("HKEY_CURRENT_USER","Environment","","New Value")
     
  );
 //log => true  

创建一个新的路径(Create a new path)

 console.log(
     
  winReg.createPathRegistr("HKEY_CURRENT_USER","Environment\\54154")
     
  );
 //log => true  

reg => 计算机\HKEY_CURRENT_USER\Environment\54154

枚举路径 中的键值(enum Reg Path Key)

let enumKey = winReg.enumRegistrKey("HKEY_CURRENT_USER","Environment");
console.log(enumKey);

 //log => ['54154']  
1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago