pe: route winhttp, mfplat, mfreadwrite and gameinput as Windows #1060

Merged
mumba17 merged 1 commit from upstream-pr/1067 into main 2026-11-24 00:29:56 +00:00
mumba17 commented 2026-11-24 00:08:46 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by mumba17 on 2026-11-24T00:08:46Z.


Change

tools/import_routing.py labels Windows system DLLs from an explicit list. Four in-box System32 modules were missing from it, so compat_report.py and intake_exe.py reported every import from them as unsupported:

  • winhttp.dll
  • mfplat.dll
  • mfreadwrite.dll
  • gameinput.dll

This adds the four names to the windows set and bumps POLICY_VERSION from 1 to 2, because the same input image now gets different routes. Matching stays exact and case-insensitive, and no prefix rule is added. Routes stay candidate and not_checked: no export is resolved and no provider is proven.

Tests

tests/compat_report_check.py:

  • check_policy asserts all four names (plus GameInput.dll for case) as ("windows", "Windows system DLL"). Two near misses, winhttp2.dll and gameinputredist.dll, must stay unsupported.
  • The synthetic positive image gains a winhttp.dll!WinHttpOpen import, so the JSON summary (8 imports, 3 Windows routes) and the sorted rows cover the report path.

Negative controls:

  • The new check against the old policy fails (exit 1).
  • The new check against the new policy with only winhttp.dll removed fails with AssertionError: winhttp.dll.

Verification

Environment: Windows 11 Pro build 26300, MSVC 19.44.35207.1, Python 3.13.1, dev preset, branch based on 9a839a4.

.\out\pe-env\Scripts\python.exe -B tests/compat_report_check.py
ctest --preset dev --no-tests=error -R 'static_exe_intake|conditional_import_paths|compat|pe_package|import'
  • compat report synthetic checks passed
  • CTest: 8 of 8 passed, including static_exe_intake, conditional_import_paths and pe_package_import_closure.
  • pe_package_preflight_check.py, intake/paths_check.py, dependency_paths_check.py, docs_links_check.py and bidi_controls_check.py also pass.

Local observation (no image attached): on the main executable from the #870 checkpoints, the Windows route goes from 318 to 341 imports and unsupported from 252 to 229. A local read of this build's System32 export tables found all 23 affected names (15, 6, 1 and ordinal 1). That check is not part of the policy, which still does not resolve exports.

Notes:

  • mfplat.dll and mfreadwrite.dll are absent on Windows N editions without the Media Feature Pack. The policy names candidate routes, so that is left to runtime resolution.
  • gameinput.dll binds from System32 by ordinal, as noted for the GameInput slice on #870.

Refs #870.

🤖 Generated with Claude Code

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6571535657 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1067). Originally posted by [mumba17](https://github.com/mumba17) on 2026-11-24T00:08:46Z. --- ## Change `tools/import_routing.py` labels Windows system DLLs from an explicit list. Four in-box System32 modules were missing from it, so `compat_report.py` and `intake_exe.py` reported every import from them as `unsupported`: - `winhttp.dll` - `mfplat.dll` - `mfreadwrite.dll` - `gameinput.dll` This adds the four names to the `windows` set and bumps `POLICY_VERSION` from 1 to 2, because the same input image now gets different routes. Matching stays exact and case-insensitive, and no prefix rule is added. Routes stay candidate and `not_checked`: no export is resolved and no provider is proven. ## Tests `tests/compat_report_check.py`: - `check_policy` asserts all four names (plus `GameInput.dll` for case) as `("windows", "Windows system DLL")`. Two near misses, `winhttp2.dll` and `gameinputredist.dll`, must stay `unsupported`. - The synthetic positive image gains a `winhttp.dll!WinHttpOpen` import, so the JSON summary (8 imports, 3 Windows routes) and the sorted rows cover the report path. Negative controls: - The new check against the old policy fails (exit 1). - The new check against the new policy with only `winhttp.dll` removed fails with `AssertionError: winhttp.dll`. ## Verification Environment: Windows 11 Pro build 26300, MSVC 19.44.35207.1, Python 3.13.1, `dev` preset, branch based on `9a839a4`. ```powershell .\out\pe-env\Scripts\python.exe -B tests/compat_report_check.py ctest --preset dev --no-tests=error -R 'static_exe_intake|conditional_import_paths|compat|pe_package|import' ``` - `compat report synthetic checks passed` - CTest: 8 of 8 passed, including `static_exe_intake`, `conditional_import_paths` and `pe_package_import_closure`. - `pe_package_preflight_check.py`, `intake/paths_check.py`, `dependency_paths_check.py`, `docs_links_check.py` and `bidi_controls_check.py` also pass. Local observation (no image attached): on the main executable from the #870 checkpoints, the Windows route goes from 318 to 341 imports and `unsupported` from 252 to 229. A local read of this build's System32 export tables found all 23 affected names (15, 6, 1 and ordinal 1). That check is not part of the policy, which still does not resolve exports. Notes: - `mfplat.dll` and `mfreadwrite.dll` are absent on Windows N editions without the Media Feature Pack. The policy names candidate routes, so that is left to runtime resolution. - `gameinput.dll` binds from System32 by ordinal, as noted for the GameInput slice on #870. Refs #870. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
upstream-sync closed this pull request 2026-11-24 06:46:06 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows!1060
No description provided.