Repository navigation
Add safe flat Win32 code generation - #102
leileizhang (lei9444) wants to merge 4 commits into
Conversation
e2525ac to
fad3666
Compare
Mixed-language test coverageWorkflow status: ✅ Passed
|
157872a to
0d798d7
Compare
Introduce metadata-driven flat Win32 call planning, safe and unsafe JavaScript entrypoints, resource ownership, pointer-bearing structures, OVERLAPPED I/O, coverage reporting, samples, documentation, and end-to-end tests. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 6307886d-3c24-4596-8924-ba44b0e850a5
0d798d7 to
0bb3ae4
Compare
Split the synchronous flat Win32 runner path into API-level milestones so hosted CI hangs identify the exact native call. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 6307886d-3c24-4596-8924-ba44b0e850a5
Exclude mapi32.dll from safe flat Win32 generation until its required initialization lifecycle is modeled, and replace the hosted E2E probe with deterministic PtInRect by-value ABI coverage. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 6307886d-3c24-4596-8924-ba44b0e850a5
Replace blocking OVERLAPPED waiters with a windows-rs IOCP runtime and add guarded Winsock, GDI+, Media Foundation, and MAPI utility initialization contexts with generated codegen requirements and live E2E coverage. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 6307886d-3c24-4596-8924-ba44b0e850a5
|
Superseded by #152. The replacement is based on main and starts with the independent Win32 contract registry and five SystemInformation/Registry exports. The broader implementation is preserved for incremental migration; follow-up scope is recorded in #152. Closing this PR without deleting its branch. |
|
Reopening: #152 currently implements only a foundation subset and does not yet replace the full functionality of this PR. #102 remains the capability baseline. The replacement must preserve the complete supported export set, ABI and ownership semantics, IOCP operations and subsystem contexts, without regressing WinRT. #152 will remain draft until full parity is demonstrated. |
|
The complete committed capability set from this PR (13e4758) is now implemented in #152, rather than the earlier five-export prototype. The frozen gate preserves all 8,936 projections and 10,680 public exports/helpers with matching default ABI/projection semantics, enums, builders and subsystem requirements. Original Win32 runners and samples, plus WinRT/COM regressions, pass on the main-based implementation including #151. Keeping #102 open during #152 review/CI; no branch or archived implementation has been deleted. |
Summary
@microsoft/dynwinrt/win32, with explicit raw access under/win32/unsafeReadFile/WriteFilepromisesSafety model
Review hardening
NullNullTerminatedAttributeandReservedAttributethrough semantic projectionWindows.Win32.*namespace generation through flat Win32 and reject Pythonreturns.mjsCoverage
Validation