René's URL Explorer Experiment


Title: feat(napi): Win32 calls, native callbacks and message windows by triniwiz · Pull Request #50 · NativeScript/windows · GitHub

Open Graph Title: feat(napi): Win32 calls, native callbacks and message windows by triniwiz · Pull Request #50 · NativeScript/windows

X Title: feat(napi): Win32 calls, native callbacks and message windows by triniwiz · Pull Request #50 · NativeScript/windows

Description: The napi engines (@nativescript/windows-napi and the standalone engine runtimes) only reached WinRT. This adds NSWinRT.win32 to them (exported as win32 from windows-napi), built on the classic engine's libffi Win32 core in runtime/src/win32.rs, which now compiles for both engines. Calls — call, bind, define and import, as in the classic runtime: pointer arguments also take an ArrayBuffer, typed array or DataView (its memory, for structs and out-parameters), a pointer object, or a BigInt. null for a wstr/str parameter is a null pointer. 64-bit results beyond 2^53 come back as BigInt; define also accepts { args, ret } per function. Callbacks — win32.callback(retType, argTypes, fn) returns { pointer, release() }: a libffi closure that calls fn synchronously on the JS thread (calls from another thread are run there and waited on, as for WinRT delegates). For APIs that take a function pointer: EnumWindows, a WNDPROC, hooks. Window messages — win32.messageWindow(listener) returns { hwnd, close() }, a hidden top-level window whose messages are delivered to listener(msg, wParam, lParam) through the UI dispatcher, so JS never runs inside the window procedure. It is the window for a tray icon's callback message, RegisterHotKey (WM_HOTKEY) and popup menus (WM_COMMAND). Being top-level rather than message-only, it also receives broadcasts such as TaskbarCreated. While open, it keeps a standalone runtime's event loop running. The README has a tray icon + global hotkey example; test/win32-test.js covers calls, buffers, BigInt, null strings, callbacks (including a throwing one) and message delivery.

Open Graph Description: The napi engines (@nativescript/windows-napi and the standalone engine runtimes) only reached WinRT. This adds NSWinRT.win32 to them (exported as win32 from windows-napi), built on the classic engi...

X Description: The napi engines (@nativescript/windows-napi and the standalone engine runtimes) only reached WinRT. This adds NSWinRT.win32 to them (exported as win32 from windows-napi), built on the classic engi...

Opengraph URL: https://github.com/NativeScript/windows/pull/50

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:f1c9df08-589b-42f1-0486-1bd1ca4bdbf3
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idEDE0:1087D4:1BC8759:2512C2A:6B016538
html-safe-nonce7fd5c97acb66d36551af8b4b599e8d2b42fd338f711a99741ce548c92e057c38
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFREUwOjEwODdENDoxQkM4NzU5OjI1MTJDMkE6NkIwMTY1MzgiLCJ2aXNpdG9yX2lkIjoiMjkzMTE5NTk0NDQzMzE4MjAwOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac973c1feef6fcedd3ae6b368c8834920b3600e00980820c70fff16458e84a7645
hovercard-subject-tagpull_request:5217208905
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/NativeScript/windows/pull/50/files
twitter:imagehttps://avatars.githubusercontent.com/u/6695919?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/6695919?s=400&v=4
og:image:altThe napi engines (@nativescript/windows-napi and the standalone engine runtimes) only reached WinRT. This adds NSWinRT.win32 to them (exported as win32 from windows-napi), built on the classic engi...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/NativeScript/windows git https://github.com/NativeScript/windows.git
octolytics-dimension-user_id7392261
octolytics-dimension-user_loginNativeScript
octolytics-dimension-repository_id373653886
octolytics-dimension-repository_nwoNativeScript/windows
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id373653886
octolytics-dimension-repository_network_root_nwoNativeScript/windows
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/NativeScript/windows/pull/50/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Fwindows%2Fpull%2F50%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Fwindows%2Fpull%2F50%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=NativeScript%2Fwindows
Reloadhttps://github.com/NativeScript/windows/pull/50/files
Reloadhttps://github.com/NativeScript/windows/pull/50/files
Reloadhttps://github.com/NativeScript/windows/pull/50/files
NativeScripthttps://github.com/NativeScript
windowshttps://github.com/NativeScript/windows
Codehttps://github.com/NativeScript/windows
Issueshttps://github.com/NativeScript/windows/issues
Pull requestshttps://github.com/NativeScript/windows/pulls
Actionshttps://github.com/NativeScript/windows/actions
Projectshttps://github.com/NativeScript/windows/projects
Security and qualityhttps://github.com/NativeScript/windows/security
Insightshttps://github.com/NativeScript/windows/insights
Sign up for GitHub https://github.com/signup?return_to=%2FNativeScript%2Fwindows%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FNativeScript%2Fwindows%2Fissues%2Fnew%2Fchoose
triniwizhttps://github.com/triniwiz
mainhttps://github.com/NativeScript/windows/tree/main
feat/napi-win32https://github.com/NativeScript/windows/tree/feat/napi-win32
Conversation 1 https://github.com/NativeScript/windows/pull/50
Commits 1 https://github.com/NativeScript/windows/pull/50/commits
Checks 3 https://github.com/NativeScript/windows/pull/50/checks
Files changed https://github.com/NativeScript/windows/pull/50/files
Please reload this pagehttps://github.com/NativeScript/windows/pull/50/files
feat(napi): Win32 calls, native callbacks and message windows https://github.com/NativeScript/windows/pull/50/files#top
Show all changes 1 commit https://github.com/NativeScript/windows/pull/50/files
b9954a7 feat(napi): Win32 calls, native callbacks and message windows triniwiz Nov 9, 2026 https://github.com/NativeScript/windows/pull/50/commits/b9954a7fa8f858f6d0010fbdc4cd1dcbb49a19b3
Clear filters https://github.com/NativeScript/windows/pull/50/files
Please reload this pagehttps://github.com/NativeScript/windows/pull/50/files
Please reload this pagehttps://github.com/NativeScript/windows/pull/50/files
lib.rs https://github.com/NativeScript/windows/pull/50/files#diff-0ec06ea58bd455f09ce6b3bb4c2c1c0d37bda51c1e1be2151c560c9c973959ec
event_loop.rs https://github.com/NativeScript/windows/pull/50/files#diff-2935e18b57f5943f999d3918b2a76bc125b9a049a4e980b7a7131ea68e555dc7
globals.rs https://github.com/NativeScript/windows/pull/50/files#diff-9f033ef211b34f16cacaba12f365dbae871346d6b0bb93b1704340c0840cd423
mod.rs https://github.com/NativeScript/windows/pull/50/files#diff-f17c4e7871d0f3328e069caddc321b6589d38c82a83140fd58d98ef40eb81589
win32.rs https://github.com/NativeScript/windows/pull/50/files#diff-490954993e355d2928a163bc11c5feb18ead79fc9ffedcaa700add7127d150f6
win32.rs https://github.com/NativeScript/windows/pull/50/files#diff-3808377706980b3c625e06a3aa205920c793e0ee0b37b68d9dec2735cc736560
README.md https://github.com/NativeScript/windows/pull/50/files#diff-f7479017b835de4e2d2ecfc9cdddfc5e3cd7c0305024343cccbd59986aad544b
index.d.ts https://github.com/NativeScript/windows/pull/50/files#diff-8502e4b2e1cb51978ffe1e8d844dab1c23349bfa9b088b3c2ef9a5376b4da195
nswinrt.js https://github.com/NativeScript/windows/pull/50/files#diff-1154dc4810ffaf9120e7797a08a8c7ed7a19366ed5566a3f0e325c825bd2fa9f
lib.rs https://github.com/NativeScript/windows/pull/50/files#diff-3d132a5490fba46b9183f0f5eb6be17b3a968c5180df569f28a0e954bdd45abb
win32-test.js https://github.com/NativeScript/windows/pull/50/files#diff-d0aee63979dcd186dc16ce2573be1fa499748010c1b99c7917f59e38ab2dbe6a
runtime/src/lib.rshttps://github.com/NativeScript/windows/pull/50/files#diff-0ec06ea58bd455f09ce6b3bb4c2c1c0d37bda51c1e1be2151c560c9c973959ec
View file https://github.com/NativeScript/windows/blob/b9954a7fa8f858f6d0010fbdc4cd1dcbb49a19b3/runtime/src/lib.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/windows/pull/50/{{ revealButtonHref }}
https://github.com/NativeScript/windows/pull/50/files#diff-0ec06ea58bd455f09ce6b3bb4c2c1c0d37bda51c1e1be2151c560c9c973959ec
https://github.com/NativeScript/windows/pull/50/files#diff-0ec06ea58bd455f09ce6b3bb4c2c1c0d37bda51c1e1be2151c560c9c973959ec
runtime/src/napi_engine/event_loop.rshttps://github.com/NativeScript/windows/pull/50/files#diff-2935e18b57f5943f999d3918b2a76bc125b9a049a4e980b7a7131ea68e555dc7
View file https://github.com/NativeScript/windows/blob/b9954a7fa8f858f6d0010fbdc4cd1dcbb49a19b3/runtime/src/napi_engine/event_loop.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/windows/pull/50/{{ revealButtonHref }}
https://github.com/NativeScript/windows/pull/50/files#diff-2935e18b57f5943f999d3918b2a76bc125b9a049a4e980b7a7131ea68e555dc7
https://github.com/NativeScript/windows/pull/50/files#diff-2935e18b57f5943f999d3918b2a76bc125b9a049a4e980b7a7131ea68e555dc7
https://github.com/NativeScript/windows/pull/50/files#diff-2935e18b57f5943f999d3918b2a76bc125b9a049a4e980b7a7131ea68e555dc7
runtime/src/napi_engine/globals.rshttps://github.com/NativeScript/windows/pull/50/files#diff-9f033ef211b34f16cacaba12f365dbae871346d6b0bb93b1704340c0840cd423
View file https://github.com/NativeScript/windows/blob/b9954a7fa8f858f6d0010fbdc4cd1dcbb49a19b3/runtime/src/napi_engine/globals.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/windows/pull/50/{{ revealButtonHref }}
https://github.com/NativeScript/windows/pull/50/files#diff-9f033ef211b34f16cacaba12f365dbae871346d6b0bb93b1704340c0840cd423
https://github.com/NativeScript/windows/pull/50/files#diff-9f033ef211b34f16cacaba12f365dbae871346d6b0bb93b1704340c0840cd423
runtime/src/napi_engine/mod.rshttps://github.com/NativeScript/windows/pull/50/files#diff-f17c4e7871d0f3328e069caddc321b6589d38c82a83140fd58d98ef40eb81589
View file https://github.com/NativeScript/windows/blob/b9954a7fa8f858f6d0010fbdc4cd1dcbb49a19b3/runtime/src/napi_engine/mod.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/windows/pull/50/{{ revealButtonHref }}
https://github.com/NativeScript/windows/pull/50/files#diff-f17c4e7871d0f3328e069caddc321b6589d38c82a83140fd58d98ef40eb81589
https://github.com/NativeScript/windows/pull/50/files#diff-f17c4e7871d0f3328e069caddc321b6589d38c82a83140fd58d98ef40eb81589
Please reload this pagehttps://github.com/NativeScript/windows/pull/50/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.