Repository navigation
gameinput: the retail executable imports GameInputCreate as GameInput.dll #1 and was built against v0 (settles a VERIFY, from the file) - #7667
Conversation
….dll ordinal 1 and was built against v0 Settles docs/gameinput.md's VERIFY "Which API version and module" and the ASSUMPTION at gameinput.cpp:32 from the executable file alone (nothing run): its only GameInput import is GameInput.dll ItsNotRexed#1, which is GameInputCreate in the SDK's (v0) and NuGet 1.2's (v1) import libraries; NuGet 2.x-4.x load GameInputRedist.dll / GameInputCreateWithVersion at run time, and the image holds neither name; and v1's wrapper needs IID_IGameInput 40FFB7E4-..., which the image doesn't hold (nor any of v0-v4's 30 interface IIDs). Docs and a comment only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GZEZyXGTTXs4V33hrBw1tD
|
Tested 8bdc864 merged onto main (1befe1d) on AMD Radeon RX 9070 XT, Adrenalin 26.11.1 (LLPC / Vulkan 1.4.359), Windows 11:
|
|
Code read and partial check of
AI-assisted (Claude Code). No game files. |
|
Tested
AI-assisted: yes |
|
Thanks @eizispark (RX 9070 XT, including the retail |
|
Tested
No game files. AI-assisted (Claude Code). |
Claimed in the coordination issue as: new RT-5 item, #7599 (comment)
Depends on: none. Related: #3410 and #7216 register the ordinal-1 import this records; this PR doesn't touch the registry, so either order merges cleanly (no shared hunks).
What and why
docs/gameinput.mdsaid "The game executable is not available yet, so whether it imports GameInput this way, and under which module, is unverified", and its VERIFY list asked which API version and module.runtime/shims/gameinput.cpp:32had the matching ASSUMPTION, andtools/exe_checklist.pylists it as one of the things to confirm against the executable. This settles both from the executable file alone. Nothing was run; the file was read in place. Only names, counts and public IIDs are given here, no bytes of the image.GameInput.dll#1(tools/pe_inspect.py). There's noxgameruntime.dll!GameInputCreate.#1isGameInputCreate: in the two import libraries that link GameInput this way, the Windows SDK'sum/x64/GameInput.lib(10.0.26100, v0) and NuGetMicrosoft.GameInput1.2.26100.4782 (v1), the import object forGameInputCreatehas name type ordinal, ordinal 1, DLLGameInput.dll.GameInput.libthat loadsGameInputRedist.dlland callsGameInputCreateWithVersion. The image contains neither name, in ASCII or UTF-16.GameInputCreatereturns anIUnknown, and the header's inline wrapper callsQueryInterface(IID_IGameInput)with40FFB7E4-6150-407A-B439-132BADC08D2D. That IID isn't in the image. Neither are any of the 30 interface IIDs in the v0–v4 headers, searched as their 16-byte in-memory form. v0 hands outIGameInputdirectly, which fits. It's not a proof, since a compiler can build a GUID on the stack, and the doc says so.Changes: a new "The retail executable (RT-5)" section in
docs/gameinput.md, the VERIFY bullet narrowed to what still needs a run (that the first calls land in v0's vtable slots), and thegameinput.cpp:32comment rewritten to the measured facts (the by-name registrations don't serve the#1import yet). There's no code change.What's left: binding ordinal 1 (#3410 / #7216), and the run-time check of the vtable slots.
Tested
Windows 10 19045, RTX 5060 Ti (no GPU needed),
main34969aa20.tools/pe_inspect.pyon the image:GameInput.dll | normal | system | 1.GameInput.libfiles (a short local script), plus a 16-byte search of the image for each IID and DLL name (another local script). Neither is committed; I can post them if wanted.tools/exe_checklist.py: thegameinput.cppnote is no longer listed.tests/test_docs_*.py: all pass excepttest_docs_links(1) andtest_docs_cli_flags(2). Both fail identically onmain(docs/dev-tools.md,docs/embedded_shaders.md; not this PR).Not tested: a run of the title (nothing was run), GameInput NuGet versions other than the four named above, and the console GDK's own
GameInput.lib(not public).AI-assisted: yes (Claude Code)
Checklist
docs/design.md, with how it was confirmed. (No translator change.)🤖 Generated with Claude Code
https://claude.ai/code/session_01GZEZyXGTTXs4V33hrBw1tD