New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

hcm-win32

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hcm-win32

HMC Connection System api

  • 1.0.1
  • unpublished
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

HMC-win32:适用于Windows平台的封装

什么情况下使用HMC?

  • 对执行速度有要求(例如cmd运行需要多出100ms用于调用,而且兼容性地狱级别,需要多出进程来处理)
  • 需要对窗口自动化进行辅助的
  • 需要一些很简单但是通过node很难实现的
  • 逃离痛苦的编译失败
  • 对内存要求高
  • 开发桌面小工具
  • HMC封装了上千种桌面应用常用或者不常用的API

能够实现一些什么功能

  • C++轻易实现的功能比如关闭进程 获取剪贴板但是node不支持这些
  • 窗口处理
  • 进程处理
  • 系统api调用
  • 禁用用户操作
  • 等...

从安装开始

npm i hcm-win32

如何调用

let HMC = require("hcm-win32");
//判断当前软件是否使用管理员权限开启
console.log("App:Admin=>",HMC.isAdmin())
//App:Admin=> true

//获取当前系统空闲时间
console.log("SystemIdleTime=>",HMC.getSystemIdleTime())
//SystemIdleTime=> 25

Keywords

FAQs

Package last updated on 14 Sep 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc