Skip to content

feat(win32): callbacks and message windows on the classic engine - #53

Merged
triniwiz merged 1 commit into
mainfrom
feat/win32-callbacks-classic
Nov 11, 2026
Merged

triniwiz merged 1 commit into
mainfrom
feat/win32-callbacks-classic

Conversation

@triniwiz

@triniwiz triniwiz commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

Brings NSWinRT.win32.callback and NSWinRT.win32.messageWindow to the classic engine, matching napi.

  • callback(ret, argTypes, fn) returns { pointer, release() }: a libffi closure that runs fn on its creating thread, hopping through the UI dispatcher when native code calls from another thread. A throw is reported and the callback returns zero.
  • messageWindow(listener) returns { hwnd, close() } for a hidden top-level window, so it also gets broadcasts like TaskbarCreated.
  • napi fix: a message window created off the UI thread now delivers to its listener on its own thread.

Tests: win32_callback_runs_during_the_call and win32_message_window_delivers_messages integration tests.

Brings NSWinRT.win32.callback and NSWinRT.win32.messageWindow to the
classic engine, matching napi. A napi message window created off the UI
thread now delivers to its listener on its own thread.
@coderabbitai

coderabbitai Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Pre-merge checks: Passed 1 · Inconclusive 1

Failed Failed checks: 1 inconclusive

Check name Status Explanation Resolution
Title check Pending This assessment has not completed. The check will be retried on the next pre-merge check run.
Passed Passed checks: 1 passed

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Base automatically changed from perf/win32-call to main November 11, 2026 13:57
@triniwiz
triniwiz merged commit 225b1e2 into main Nov 11, 2026
3 checks passed
@triniwiz
triniwiz deleted the feat/win32-callbacks-classic branch November 11, 2026 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant