
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Node bindings to native Win32 DLLs through Koffi.
W
in the Win32 API).npm install libwin32
libwin32
or from libwin32/<dllname>
(without the .dll
extension). Currently, only two dlls are available: kernel32
and user32
.WM_DESTROY
are exported as enum
s, where the prefix is the name of the enum. For instance, WM_DESTROY
and WM_KEYDOWN
are exported as WM.DESTROY
and WM.KEYDOWN
, respectively.import { MessageBox, MB } from 'libwin32'
const result = MessageBox(
null,
"Hello, world!",
"libwin32",
MB.ICONINFORMATION | MB.YESNO
)
console.dir(result)
$ git clone https://github.com/Septh/libwin32.git
$ cd libwin32
$ npm install
$ npm run build
The output goes to /dist
.
Build the lib, then:
$ node dist/demos/messagebox.js
$ node dist/demos/enumdesktopwindows.js
$ node dist/demos/window.js
$ npm run build:demos
$ node demos/messagebox/messagebox.js
$ node demos/enumdesktopwindows/enumdesktopwindows.js
$ node demos/window/window.js
See releases on Github.
All functions come with their associated types and constants.
None.
./source/win32
:
./source/demos
:
./source/rollup
:
FAQs
Node bindings to native Win32 DLLs through Koffi
The npm package libwin32 receives a total of 1 weekly downloads. As such, libwin32 popularity was classified as not popular.
We found that libwin32 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.