feat: offline GDK interfaces (XGameStreaming, XGameUi, XNetworking, XAccessibility, XUser), unnotified subscriptions in E_NOTIMPL — 277/396 #210

Closed
KainanP wants to merge 7 commits from upstream-pr/210 into main
KainanP commented 2026-11-25 15:18:33 +00:00 (Migrated from github.com)

Imported from LooperSalty/AnyXboxX. Originally posted by KainanP on 2026-11-25T15:18:33Z.


Change

New version of #156, as asked in the maintainer's closing note (https://github.com/LooperSalty/AnyXboxX/pull/156#issuecomment-7166165861): the offline GDK interfaces come back unchanged, and the change subscriptions that AnyXboxX never notifies now return E_NOTIMPL and are logged, instead of S_OK with a token.

Linked issue: Refs #156

  • Commits 1–5 are #156's commits, rebased on main (488a71c) without change: XGameStreaming with no streaming client, XGameUi handed to the game's own UI callbacks, the PC's network settings and high-contrast mode (XNetworking, XAccessibility), XUser devices (Windows' default communications audio endpoint, the all-zero controller id documented for PC).
  • Commit 6 (fix: change subscriptions that are never notified return E_NOTIMPL) is the rule 3 fix. XNetworkingRegisterConnectivityHintChanged and XUserRegisterForDefaultAudioEndpointUtf16Changed are wired to ANYXBOXX_NOT_IMPLEMENTED: E_NOTIMPL, the trace line [runtime] méthode d'interface non écrite appelée -> E_NOTIMPL with ANYXBOXX_TRACE=1, no token written. Their unregister functions return false (no registration can succeed). The queries (XNetworkingGetConnectivityHint, XUserGetDefaultAudioEndpointUtf16) still return the current value.
  • One addition to the two functions named in the closing note: XUserRegisterForDeviceAssociationChanged had the same pattern (S_OK, token, callback never called; it was in the first review of #156 next to the audio endpoint), so it returns E_NOTIMPL too. If you prefer it left as it was, it is one table line in user_device_interface.cpp and one test parameter to revert.
  • Because the three registrations are now ANYXBOXX_NOT_IMPLEMENTED in the tables, the GDK runtime counter drops from 280 to 277 of 396 (README in 9 languages). docs/progress.md and docs/fr/avancee.md: the "Subscriptions" section now says E_NOTIMPL + log and cites the decision on #156.
  • Left as is (not in the closing note, and the event cannot happen in AnyXboxX): XGameStreamingRegisterConnectionStateChanged (no streaming client can ever connect) and XStoreRegisterGameLicenseChanged (already on main; the offline license never changes).
  • Images: carte-avancee.svg and traduction.svg are those of main, to be regenerated at merge with the package, as agreed on #156.

Verification

Windows 11 26200, Python 3.12, runtime built from this branch (VS 2022 Build Tools, CMake), on top of main at 488a71c:

python -m ruff check --select W605,F,E9 PrototypeScarlett tests tools → All checks passed!
python -m pytest (RTX 4060)                → 1127 passed, 14 skipped
ANYXBOXX_GPU=warp python -m pytest         → 1127 passed, 14 skipped
ANYXBOXX_GPU=Intel python -m pytest        → 1125 passed, 16 skipped
ANYXBOXX_REQUIRE_RUNTIME=1 python -m pytest tests/test_runtime_*.py → 86 passed

Each commit checked: README test count (1100+) = collected tests rounded down; GDK counter in the README = translation.gdk_runtime_area() (241, 269, 273, 280, 280, 277).

Oracle and test data

  • Rule 3 tests: the three registrations return E_NOTIMPL and leave the caller's token untouched, the unregisters return false; a subprocess with ANYXBOXX_TRACE=1 calls each registration and checks the E_NOTIMPL line on stderr. The five tests fail with the runtime built before commit 6.
  • The rest is unchanged from #156: Microsoft Learn pages cited next to each function; Windows itself as the oracle (IMMDeviceEnumerator, Network List Manager, SPI_GETHIGHCONTRAST). All test data is built in the tests.

Checklist

  • The PR covers a single reviewable behaviour (the offline interfaces of #156, with the rule 3 fix).
  • A test fails without this change and passes with it.
  • The commands and results of each check are given above.
  • An unimplemented function returns an error (E_NOTIMPL), never a fake success.
  • README: the same change in all 9 languages (test_readme_sync.py checks it).
  • No game, console or SDK file, no key, no dump, no download link.
  • Findings drawn from a title: none.
  • Code taken from another project: none.

Made with AI assistance (Claude Code, Claude Opus 5.5); tests run on the adapters above.

🤖 Generated with Claude Code

<!-- greyfinch-sync:LooperSalty/AnyXboxX:issue:6607764595 --> Imported from [LooperSalty/AnyXboxX](https://github.com/LooperSalty/AnyXboxX/pull/210). Originally posted by [KainanP](https://github.com/KainanP) on 2026-11-25T15:18:33Z. --- ## Change New version of #156, as asked in the maintainer's closing note (https://github.com/LooperSalty/AnyXboxX/pull/156#issuecomment-7166165861): the offline GDK interfaces come back unchanged, and the change subscriptions that AnyXboxX never notifies now return `E_NOTIMPL` and are logged, instead of `S_OK` with a token. Linked issue: Refs #156 - Commits 1–5 are #156's commits, rebased on `main` (`488a71c`) without change: `XGameStreaming` with no streaming client, `XGameUi` handed to the game's own UI callbacks, the PC's network settings and high-contrast mode (`XNetworking`, `XAccessibility`), `XUser` devices (Windows' default communications audio endpoint, the all-zero controller id documented for PC). - Commit 6 (`fix: change subscriptions that are never notified return E_NOTIMPL`) is the rule 3 fix. `XNetworkingRegisterConnectivityHintChanged` and `XUserRegisterForDefaultAudioEndpointUtf16Changed` are wired to `ANYXBOXX_NOT_IMPLEMENTED`: `E_NOTIMPL`, the trace line `[runtime] méthode d'interface non écrite appelée -> E_NOTIMPL` with `ANYXBOXX_TRACE=1`, no token written. Their unregister functions return `false` (no registration can succeed). The queries (`XNetworkingGetConnectivityHint`, `XUserGetDefaultAudioEndpointUtf16`) still return the current value. - **One addition to the two functions named in the closing note:** `XUserRegisterForDeviceAssociationChanged` had the same pattern (`S_OK`, token, callback never called; it was in the first review of #156 next to the audio endpoint), so it returns `E_NOTIMPL` too. If you prefer it left as it was, it is one table line in `user_device_interface.cpp` and one test parameter to revert. - Because the three registrations are now `ANYXBOXX_NOT_IMPLEMENTED` in the tables, the GDK runtime counter drops from 280 to **277 of 396** (README in 9 languages). `docs/progress.md` and `docs/fr/avancee.md`: the "Subscriptions" section now says `E_NOTIMPL` + log and cites the decision on #156. - Left as is (not in the closing note, and the event cannot happen in AnyXboxX): `XGameStreamingRegisterConnectionStateChanged` (no streaming client can ever connect) and `XStoreRegisterGameLicenseChanged` (already on `main`; the offline license never changes). - Images: `carte-avancee.svg` and `traduction.svg` are those of `main`, to be regenerated at merge with the package, as agreed on #156. ## Verification Windows 11 26200, Python 3.12, runtime built from this branch (VS 2022 Build Tools, CMake), on top of `main` at `488a71c`: ``` python -m ruff check --select W605,F,E9 PrototypeScarlett tests tools → All checks passed! python -m pytest (RTX 4060) → 1127 passed, 14 skipped ANYXBOXX_GPU=warp python -m pytest → 1127 passed, 14 skipped ANYXBOXX_GPU=Intel python -m pytest → 1125 passed, 16 skipped ANYXBOXX_REQUIRE_RUNTIME=1 python -m pytest tests/test_runtime_*.py → 86 passed ``` Each commit checked: README test count (`1100+`) = collected tests rounded down; GDK counter in the README = `translation.gdk_runtime_area()` (241, 269, 273, 280, 280, 277). ## Oracle and test data - Rule 3 tests: the three registrations return `E_NOTIMPL` and leave the caller's token untouched, the unregisters return `false`; a subprocess with `ANYXBOXX_TRACE=1` calls each registration and checks the `E_NOTIMPL` line on stderr. The five tests fail with the runtime built before commit 6. - The rest is unchanged from #156: Microsoft Learn pages cited next to each function; Windows itself as the oracle (IMMDeviceEnumerator, Network List Manager, SPI_GETHIGHCONTRAST). All test data is built in the tests. ## Checklist - [x] The PR covers a single reviewable behaviour (the offline interfaces of #156, with the rule 3 fix). - [x] A test fails without this change and passes with it. - [x] The commands and results of each check are given above. - [x] An unimplemented function returns an error (`E_NOTIMPL`), never a fake success. - [x] README: the same change in all 9 languages (`test_readme_sync.py` checks it). - [x] No game, console or SDK file, no key, no dump, no download link. - [x] Findings drawn from a title: none. - [x] Code taken from another project: none. Made with AI assistance (Claude Code, Claude Opus 5.5); tests run on the adapters above. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
LooperSalty commented 2026-11-25 15:57:32 +00:00 (Migrated from github.com)

Imported from LooperSalty/AnyXboxX. Originally posted by LooperSalty on 2026-11-25T15:57:32Z.


Closed by the maintainer during PR triage: once merged with current main, CI fails on tests/test_readme_sync.py::test_claimed_count_matches_suite (the suite reaches 1207 tests, so the README line must become 1200+ automated tests in all 9 READMEs). The queue is being cleared now and we no longer push fix-ups to contributor branches. You are welcome to reopen it once rebased on main with the README count updated in the 9 READMEs. Thanks for the work.

<!-- greyfinch-sync:LooperSalty/AnyXboxX:comment:7167464609 --> Imported from [LooperSalty/AnyXboxX](https://github.com/LooperSalty/AnyXboxX/pull/210#issuecomment-7167464609). Originally posted by [LooperSalty](https://github.com/LooperSalty) on 2026-11-25T15:57:32Z. --- Closed by the maintainer during PR triage: once merged with current `main`, CI fails on `tests/test_readme_sync.py::test_claimed_count_matches_suite` (the suite reaches 1207 tests, so the README line must become `1200+ automated tests` in all 9 READMEs). The queue is being cleared now and we no longer push fix-ups to contributor branches. You are welcome to reopen it once rebased on `main` with the README count updated in the 9 READMEs. Thanks for the work.
KainanP commented 2026-11-25 16:18:46 +00:00 (Migrated from github.com)

Imported from LooperSalty/AnyXboxX. Originally posted by KainanP on 2026-11-25T16:18:46Z.


Rebased onto main with the README line at 1200+ (the suite now collects 1218 tests; 1201 passed, 17 skipped on the RTX 4060 and WARP with the runtime rebuilt; ruff clean). GitHub does not allow reopening this PR after the force-push, so it continues in #217.

AI use: Claude Code (Claude Opus 5.5).

<!-- greyfinch-sync:LooperSalty/AnyXboxX:comment:7167777367 --> Imported from [LooperSalty/AnyXboxX](https://github.com/LooperSalty/AnyXboxX/pull/210#issuecomment-7167777367). Originally posted by [KainanP](https://github.com/KainanP) on 2026-11-25T16:18:46Z. --- Rebased onto `main` with the README line at `1200+` (the suite now collects 1218 tests; 1201 passed, 17 skipped on the RTX 4060 and WARP with the runtime rebuilt; ruff clean). GitHub does not allow reopening this PR after the force-push, so it continues in #217. _AI use: Claude Code (Claude Opus 5.5)._

Pull request closed

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
LooperSalty/AnyXboxX!210
No description provided.