https://github.com/septh/libwin32
Node bindings to native Win32 DLLs through Koffi
https://github.com/septh/libwin32
Last synced: about 1 year ago
JSON representation
Node bindings to native Win32 DLLs through Koffi
- Host: GitHub
- URL: https://github.com/septh/libwin32
- Owner: Septh
- Created: 2024-09-06T06:43:09.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-31T00:09:05.000Z (about 1 year ago)
- Last Synced: 2025-03-31T01:20:10.100Z (about 1 year ago)
- Language: TypeScript
- Size: 748 KB
- Stars: 2
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# libwin32 (work in progress)
> Node bindings to native Win32 DLLs through [Koffi](https://koffi.dev).
### In a nutshell:
* Very simple and intuitive API (see [demos](./source//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.
````js
import { MessageBox } from 'libwin32'
import { MB_ } from 'libwin32/consts'
const result = MessageBox(
null,
"Hello, world!",
"libwin32",
MB_.ICONINFORMATION | MB_.YESNO
)
````

See [the repo on Github](https://github.com/Septh/libwin32#readme) for full documentation.
### Licence
MIT.