2025-08-14 00:28:35 +02:00
2024-09-09 19:00:09 +02:00
2025-08-16 03:44:40 +02:00
2025-05-20 17:12:23 +02:00
2025-08-13 11:37:57 +02:00
2025-08-13 14:58:34 +02:00
2025-08-09 03:43:35 +02:00

libwin32 (work in progress)

Node bindings to native Win32 DLLs through Koffi.

import { MessageBox } from 'libwin32'
import { MB_ } from 'libwin32/consts'

const result = MessageBox(
    null,
    "Hello, world!",
    "libwin32",
    MB_.ICONINFORMATION | MB_.YESNO
)

screenshot

In a nutshell:

  • Very simple and intuitive API (see demos), with TypeScript definitions included.
  • Bundler friendly, designed with tree-shakeability in mind.
  • Opinionated:
    • Only targets 64-bit platforms (Intel/AMD for now, ARM may be added later, no warranty though).
    • Only exposes Unicode functions and data structures (those whose name ends in W in the Win32 API).
  • Very easy to extend with additional functions, data structures and constants. I will add some myself time permitting; any help would be mucho appreciated.

See the repo on Github for full documentation.

License

MIT.

S
Description
Automated archival mirror of github.com/Septh/libwin32
Readme
1.3 MiB
Languages
TypeScript 99.1%
JavaScript 0.9%