runtime: trampoline xgameruntime!QueryApiImpl for pre-attach GPA caches #2350
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows#2350
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@cursor[bot] on GitHub · 2026-11-25 13:14 UTC · original
Context
startup_runtime_proxy_scopeand the account-picker Y stall dig after #2166 show that aQueryApiImplpointer resolved before the GameInput/runtime_proxyattach stays the real export. IAT/GPA rewrites do not touch already-held function pointers, so FakeUser/X2W_TRACE_APInever see providers on that path.Related: bound delay-IAT rewrite in #2349. Refs #870. Do not ship a FakeUser slot-7 guess from account-picker logs that still show zero providers.
Done when
QueryApiImplpointer that was cached fromxgameruntime.dllbefore attach forwards through the proxy (providers /provider … proxiedappear when that pointer is called with readable GUIDs).QueryApiImpl(the existing decoy) is not trampolined.X2W_RUNTIME_PROXYrow indocs/startup-runtime.mddescribing the export trampoline and its limits.Acceptance command
Extend that fixture (or a sibling) so the pre-attach cached pointer check that today expects the real export instead expects the proxy after this change.
Also keep:
Negative control
QueryApiImplexport must remain the decoy's own function (existing scope check).xgameruntime.dllmodules' exports.Out of scope
FakeUser
XUserAddAsync/ slot 7 completion. That needs observed provider calls after Y first.@SimSalabimse on GitHub · 2026-11-25 13:35 UTC · original
Claiming for an
xgameruntime!QueryApiImplexport trampoline so a pre-attach cached pointer forwards through the proxy after attach (IAT/GPA alone cannot). DecoyQueryApiImplstays untouched. Synthetic fixture + negative control instartup_runtime_proxy_scope; docs one-liner on theX2W_RUNTIME_PROXYrow. Refs #870. Not shipping a FakeUser slot-7 guess from zero-provider logs.