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

Closed
opened 2026-11-24 01:45:36 +00:00 by denn0x · 5 comments
denn0x commented 2026-11-24 01:45:36 +00:00 (Migrated from github.com)
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by denn0x on 2026-11-24T01:45:36Z.


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).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6572714520 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1147). Originally posted by [denn0x](https://github.com/denn0x) on 2026-11-24T01:45:36Z. --- ## 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).
rasptum commented 2026-11-24 06:50:08 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by rasptum on 2026-11-24T02:04:55Z.


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).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7119735591 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1147#issuecomment-7119735591). Originally posted by [rasptum](https://github.com/rasptum) on 2026-11-24T02:04:55Z. --- 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 commented 2026-11-24 06:50:31 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by rasptum on 2026-11-24T06:16:53Z.


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).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7123771248 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1147#issuecomment-7123771248). Originally posted by [rasptum](https://github.com/rasptum) on 2026-11-24T06:16:53Z. --- 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).
SimSalabimse commented 2026-11-24 12:03:18 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by SimSalabimse on 2026-11-24T11:45:38Z.


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)

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7130511117 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1147#issuecomment-7130511117). Originally posted by [SimSalabimse](https://github.com/SimSalabimse) on 2026-11-24T11:45:38Z. --- 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)
R0Y00 commented 2026-11-24 12:03:19 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T11:51:06Z.


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7130633564 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1147#issuecomment-7130633564). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T11:51:06Z. --- 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 commented 2026-11-24 14:03:27 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T13:59:29Z.


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

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7133656189 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1147#issuecomment-7133656189). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T13:59:29Z. --- 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
Sign in to join this conversation.
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#1140
No description provided.