Repository navigation
winrun: run the updated (64-bit) Steam client started by the bootstrapper - #84
Merged
Merged
Conversation
The bridge had one page of import stubs (340); the Steam client and its DLLs import close to a thousand functions. The stubs now fill eight pages, with the callback return stub at their end. steam.exe, crashhandler, tier0_s and vstdlib_s get signatures for the functions winrun already had, and the missing ones exist now: ANSI forms of registry, file, volume, version, psapi and user32 functions (clientapi.rs), GetBinaryTypeW, GetComputerNameExW, FoldStringW, EnumSystemLocalesW, IsValidLocale, GetLocaleInfoA, CompareStringA, WaitNamedPipeW and the debugging pair (OSyx has no debugger interface). 32-bit layouts: OVERLAPPED (pipes, GetOverlappedResult), EnumProcess- Modules, VirtualQueryEx, CreateProcessA/AsUserW, FormatMessage inserts and its allocated buffer, CopyFileEx progress routines, vectored exception handlers, GetThreadContext, and RtlCaptureContext / RtlCaptureStackBackTrace as 32-bit code (wow64/code32.rs). Not yet run through scripts/win-test.ps1. Co-Authored-By: Claude Opus 5.5 <[email protected]>
A 32-bit DLL with static TLS (__declspec(thread)) can now be loaded with LoadLibrary: every live 32-bit thread gets its block, as Windows gives one to every existing thread. SteamUI, steamclient, tier0_s, vstdlib_s and video.dll all have TLS directories. New functions: menu items (InsertMenuW, DeleteMenu, CheckMenuItem, GetMenuItemInfoW), icons from resource data, the display-mode and display-device ANSI forms, GetWindowInfo, IsWindowUnicode, SetActiveWindow, layered-window attributes, OpenDesktopA/W, VkKeyScanEx, keybd_event, DialogBoxIndirectParamW, DescribePixelFormat, GetPixelFormat, GetBitmapBits, StretchBlt, brush origins, the missing imm32 calls, setupapi instance ids, class GUIDs and CM_Get_DevNode_Status, DragFinish/DragAcceptFiles, EnumResourceNamesW, console control events (GenerateConsoleCtrlEvent runs the registered handlers), SetThreadExecutionState, FreeLibraryAndExitThread, and VariantChangeType(Ex) with the coercion rules probed on Windows. 32-bit layouts: MENUITEMINFOW, ICONINFO, CURSORINFO, FLASHWINFO, INPUT, TRACKMOUSEEVENT, RAWINPUTDEVICE(LIST), SP_DEVINFO_DATA, WAVEHDR and MIDIHDR, STGMEDIUM, PROPVARIANT, VARIANT copies, token information pointers; winmm, monitor-enumeration and COM callbacks run as 32-bit code, on a runtime thread too (it gets 32-bit state on first use). ReplaceFile reports a missing file as ERROR_FILE_NOT_FOUND, as Windows does (probed with mingw). Not yet run through scripts/win-test.ps1. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The Steam update now installs a 64-bit client (steam.exe, SteamUI.dll and its DLLs are PE32+). It reaches its update window, downloads and checks its manifest over HTTPS and verifies its files: - DeleteFileTransactedW and MoveFileTransactedW, with the file system as a KTM resource manager (a rollback restores deleted and renamed files, a commit drops what was kept aside). - VirtualProtect and VirtualQuery for pages of loaded images: section protections, changes recorded per page, RWX pages switched on demand. The CRT's delay-load helper writes the delay IAT this way. - BCrypt pseudo-handles (BCRYPT_RNG_ALG_HANDLE and the hash ones), as Windows 10 provides them (probed). - CertGetCertificateChain read CERT_CHAIN_PARA with x86 offsets on x64: the usage list is at 24, not 16. Not yet run through scripts/win-test.ps1. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Tool Help snapshots (processes, this process's modules), volume GUID names, ReadDirectoryChangesW (polled: OSyx has no change notification), GetExtendedTcpTable, CoSetProxyBlanket, SHGetMalloc, ExtractIconExA/W, hid.dll (no HID device is exposed: requests fail as for a non-HID handle), the service calls on an empty service database, SDDL to security descriptors, ShellExecuteA/ExA, SetupDiGetDeviceInterfaceDetailA, indirect dialogs, GetClassLongPtrA, DisplayConfigSetDeviceInfo, IsProcessDPIAware/SetProcessDPIAware from the manifest, touch injection promoted to pointer events, and stored layered-window attributes. Not yet run through scripts/win-test.ps1; the FFmpeg TLS/crypto imports and steamclient64.dll are still missing. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
Contributor
v3nn7
marked this pull request as ready for review
November 1, 2026 20:57
This was referenced Nov 2, 2026
v3nn7
added a commit
that referenced
this pull request
Nov 2, 2026
winrun: the updated Steam client starts (restore #84, appmodel API)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #83 (base:
v3nn7/upbeat-planck-7qk3j0). Draft: work in progress.Finding
The Steam update downloaded on 2026-11-01 installs a 64-bit client:
steam.exe,SteamUI.dll,SDL3.dll, the FFmpeg DLLs,video64.dll,tier0_s64,vstdlib_s64,steamclient64.dllare PE32+. Only the bootstrapper from SteamSetup is 32-bit. So the relaunchedsteam.exeruns natively in winrun; the WOW64 work serves the bootstrapper and the 32-bit modules kept for games.State
steam.exestarted by the bootstrapper binds all its imports, shows its "Steam" update window, downloads and checks its manifest over HTTPS and verifies its files.LoadLibrary(steamui.dll)still fails: the FFmpeg TLS/crypto imports (crypt32, ncrypt, secur32,getnameinfo) are missing, andsteamclient64.dllandcrashhandler64.dll(wininet) still need functions.Changes
OVERLAPPED; many signatures; 32-bit layouts (MENUITEMINFOW, ICONINFO, INPUT, WAVEHDR, SP_DEVINFO_DATA, VARIANT/PROPVARIANT, STGMEDIUM, CERT_CHAIN_PARA, token info); RtlCaptureContext / RtlCaptureStackBackTrace as 32-bit code; 32-bit vectored handlers; callbacks into 32-bit code from runtime threads; PE32 static TLS inLoadLibrary.CERT_CHAIN_PARAoffsets (crash).Labels: bug, installer
Work report
compatibility/win32/src/— newclientapi.rs,client64.rs,user32/client.rs,oleaut32/coerce.rs,wow64/code32.rs; modified wow64.rs, wow64/sigs.rs, wow64/layouts.rs, loader.rs, mem.rs, kernel32.rs, pipes.rs, ktm.rs, bcrypt.rs, crypt32.rs, user32.rs, user32/gdi.rs, winmm.rs, setupapi.rs, shell32.rs, ole32.rs, propsys.rs, oleaut32.rs, nls.rs, locale.rs, sysext.rs, files.rs, tokens.rs, objsec.rs, accounts.rs, objects.rs, winsta.rs, dwmapi.rs, apiextra.rs, procinfo.rs, psapi.rs, registry.rs, version.rs, volumes.rs, process.rs, main.rs.cargo build -p osyx-win32(release, user target) is clean, with no new warnings. QEMU/WHPX boots of a Steam image with the update installed show the stages above. Windows behaviour was probed with mingw (ReplaceFileW, VariantChangeType, BCrypt pseudo-handles).scripts/win-test.ps1has not been run.steamclient64.dlland wininet imports; SteamUI's first window; the win-test comparison with origin/main.🤖 Generated with Claude Code