startup-runtime: a store API method returns E_FAIL #1147

Closed
opened 2026-11-26 22:44:27 +00:00 by github-bot · 5 comments
Owner

@⁠denn0x on GitHub · 2026-11-24 01:45 UTC · original

Problem

With X2W_RUNTIME_PROXY=1 X2W_FAKE_USER=1, one store-context method (method 3 of the store interface) still returns
E_FAIL. The title tolerates it today, but later flows may not.

Done when

The method's arguments are identified and it returns a plausible offline answer, with a case in tests/startup_stub_check.py.

Context: docs/startup-runtime.md (#1135). Do not attach game files, dumps or logs that contain addresses or names from an executable; describe results in terms of the component tested.

AI-assisted (Claude Code).

**@⁠denn0x** on GitHub · 2026-11-24 01:45 UTC · [original](https://github.com/R0Y00/Xbox2Windows/issues/1147) ## Problem With `X2W_RUNTIME_PROXY=1 X2W_FAKE_USER=1`, one store-context method (method 3 of the store interface) still returns `E_FAIL`. The title tolerates it today, but later flows may not. ## Done when The method's arguments are identified and it returns a plausible offline answer, with a case in `tests/startup_stub_check.py`. Context: `docs/startup-runtime.md` (#1135). Do not attach game files, dumps or logs that contain addresses or names from an executable; describe results in terms of the component tested. AI-assisted (Claude Code).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 22:44:27 +00:00
Author
Owner

@⁠rasptum on GitHub · 2026-11-24 02:04 UTC · original

Claiming this.

  • Scope: identify the arguments of method 3 of the store interface in src/startup_stubs/runtime_proxy.cpp and return a plausible offline answer instead of E_FAIL.
  • Evidence: a case in tests/startup_stub_check.py through the source-built consumer, with the unanswered form as the negative control.

AI-assisted (Claude Code).

**@⁠rasptum** on GitHub · 2026-11-24 02:04 UTC · [original](https://github.com/R0Y00/Xbox2Windows/issues/1147#issuecomment-7119735591) Claiming this. - **Scope:** identify the arguments of method 3 of the store interface in `src/startup_stubs/runtime_proxy.cpp` and return a plausible offline answer instead of `E_FAIL`. - **Evidence:** a case in `tests/startup_stub_check.py` through the source-built consumer, with the unanswered form as the negative control. AI-assisted (Claude Code).
Author
Owner

@⁠rasptum on GitHub · 2026-11-24 06:16 UTC · original

Status: no progress on this one yet. I've been on the Windows 10 startup blockers, so I'm releasing the claim, and anyone is welcome to take it.

The store method still returns E_FAIL in current runs, and the executable still tolerates it through the first-run setup pages.

AI-assisted (Claude Code).

**@⁠rasptum** on GitHub · 2026-11-24 06:16 UTC · [original](https://github.com/R0Y00/Xbox2Windows/issues/1147#issuecomment-7123771248) Status: no progress on this one yet. I've been on the Windows 10 startup blockers, so I'm releasing the claim, and anyone is welcome to take it. The store method still returns `E_FAIL` in current runs, and the executable still tolerates it through the first-run setup pages. AI-assisted (Claude Code).
Author
Owner

@⁠SimSalabimse on GitHub · 2026-11-24 11:45 UTC · original

Claiming this. Plan: identify the arguments of store-interface method 3 in src/startup_stubs/runtime_proxy.cpp from the public GDK docs and the VIctory notes that file already cites, and return a plausible offline answer instead of E_FAIL when X2W_RUNTIME_PROXY=1 and X2W_FAKE_USER=1. I'll add a case in tests/startup_stub_check.py through the source-built consumer, with the unanswered form as the negative control. Verified with ctest --preset dev --no-tests=error -R '^startup_stubs$' -V and the same filter on the release preset (no system xgameruntime.dll, no game files).

AI-assisted (Grok Build)

**@⁠SimSalabimse** on GitHub · 2026-11-24 11:45 UTC · [original](https://github.com/R0Y00/Xbox2Windows/issues/1147#issuecomment-7130511117) Claiming this. Plan: identify the arguments of store-interface method 3 in `src/startup_stubs/runtime_proxy.cpp` from the public GDK docs and the VIctory notes that file already cites, and return a plausible offline answer instead of `E_FAIL` when `X2W_RUNTIME_PROXY=1` and `X2W_FAKE_USER=1`. I'll add a case in `tests/startup_stub_check.py` through the source-built consumer, with the unanswered form as the negative control. Verified with `ctest --preset dev --no-tests=error -R '^startup_stubs$' -V` and the same filter on the release preset (no system xgameruntime.dll, no game files). AI-assisted (Grok Build)
Author
Owner

@⁠R0Y00 on GitHub · 2026-11-24 11:51 UTC · original

Thanks for taking this. Please pin the public reference revision and separate what it establishes about method 3 from any inferred arguments. Exercise the offline fake-user path through the exported interface with a source-built caller. The result should describe an offline or empty response only when the verified contract allows it. Keep a refusal control for an unsupported argument and preserve the existing gating.

**@⁠R0Y00** on GitHub · 2026-11-24 11:51 UTC · [original](https://github.com/R0Y00/Xbox2Windows/issues/1147#issuecomment-7130633564) Thanks for taking this. Please pin the public reference revision and separate what it establishes about method 3 from any inferred arguments. Exercise the offline fake-user path through the exported interface with a source-built caller. The result should describe an offline or empty response only when the verified contract allows it. Keep a refusal control for an unsupported argument and preserve the existing gating.
Author
Owner

@⁠R0Y00 on GitHub · 2026-11-24 13:59 UTC · original

Completed in #1470. The gated offline method creates a context for the synthetic local user. The source-built client checks an interface identifier with the same prefix and wrong suffix, a foreign user, and a missing output pointer. The documented user and output parameters are here. https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/system/xstore/functions/xstorecreatecontext?view=gdk-2604

**@⁠R0Y00** on GitHub · 2026-11-24 13:59 UTC · [original](https://github.com/R0Y00/Xbox2Windows/issues/1147#issuecomment-7133656189) Completed in #1470. The gated offline method creates a context for the synthetic local user. The source-built client checks an interface identifier with the same prefix and wrong suffix, a foreign user, and a missing output pointer. The documented user and output parameters are here. https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/system/xstore/functions/xstorecreatecontext?view=gdk-2604
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

Reference
github/R0Y00--Xbox2Windows#1147
No description provided.