GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - waitingsong/node-win32-api: win32 api

BranchesTags
Open more actions menu

Latest commit

 

History

2,030 Commits
2,030 Commits

Folders and files

NameName
Last commit message
Last commit date
.githooks
.githooks
 
 
.github
.github
 
 
.scripts
.scripts
 
 
.vscode
.vscode
 
 
docs
docs
 
 
packages
packages
 
 
.codecov.yml
.codecov.yml
 
 
.editorconfig
.editorconfig
 
 
.env
.env
 
 
.gitignore
.gitignore
 
 
.mocharc.yml
.mocharc.yml
 
 
.npmrc
.npmrc
 
 
.nycrc.json
.nycrc.json
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CHANGES.v22.md
CHANGES.v22.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
README.zh-CN.md
README.zh-CN.md
 
 
bin-hashbang.js
bin-hashbang.js
 
 
commitlint.config.cjs
commitlint.config.cjs
 
 
eslint.config.mjs
eslint.config.mjs
 
 
init-project.sh
init-project.sh
 
 
lerna.json
lerna.json
 
 
migrate13.md
migrate13.md
 
 
nx.json
nx.json
 
 
package.json
package.json
 
 
rollup.config.js
rollup.config.js
 
 
tsconfig.base.json
tsconfig.base.json
 
 
tsconfig.eslint.json
tsconfig.eslint.json
 
 
tsconfig.json
tsconfig.json
 
 
typedoc.json
typedoc.json
 
 

Repository files navigation

win32-api

FFI Definitions of Windows win32 api for koffi

GitHub tag License Available platform ci codecov Conventional Commits lerna

Significant Changes.V22

Compile successfully with

  • Node.js v18
  • Node.js v20
  • Node.js v22

Migrate to v13

See migrate13

Packages

Package Version
win32-api main-svg
win32-def def-svg

What can I do with this?

Calling win32 native functions come from user32.dll, kernel32.dll, comctl32.dll by Node.js via node-ffi-napi

Installing

npm install win32-api

Usage

DLL Wrapper

  • User32
  • Winspool
import { 
  FindWindowEx, 
  GetDefaultPrinter,
} from 'win32-api/util'
import {spawn} from 'child_process'; 

// Retrieves the printer name of the default printer for the current user on the local computer
const printerName = await GetDefaultPrinter()

const child = spawn('notepad.exe')
const hWnd = await FindWindowEx(0, 0, 'Notepad', null)

Demo

  • Demos
  • Tests

Relevant

  • Windows Api documentation
  • Windows Data Types
  • System Error Codes
  • FFI doc

License

MIT

Languages

  • English
  • 中文

About

win32 api

Topics

comctl32electronesmffiffi-napikernel32koffitypescriptuser32win32

Resources

Readme
MIT license
Activity

Stars

493 stars

Watchers

8 watching

Forks

62 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.