diff options
| author | mrp1no <137657338+mrp1no@users.noreply.github.com> | 2026-11-23 01:23:09 +0100 |
|---|---|---|
| committer | mrp1no <137657338+mrp1no@users.noreply.github.com> | 2026-11-23 01:23:09 +0100 |
| commit | 600c8bbb30d9f92aa22813bacf2dbf51d0d902f6 (patch) | |
| tree | f2b867ced27e3b553a503a388b6e6933f6118c0c /docs | |
| parent | a12aa3e63bfd20a835d2af34f20518a0e3159e5d (diff) | |
docs/runtime_imports.md: say which shims moved the DLLs' import counts
One paragraph after the table names what changed since its first version:
the UCRT argv/abort imports served by process.cpp, the file-system calls of
the write overlay, and winhttp.dll as a module the shims own, whose 15
WinHttp* imports in each HTTP client are why those two moved the most.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/runtime_imports.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/runtime_imports.md b/docs/runtime_imports.md index 189667052..5a606371f 100644 --- a/docs/runtime_imports.md +++ b/docs/runtime_imports.md | |||
| @@ -61,6 +61,8 @@ Since the library-loader shims (`runtime/shims/library_loader.cpp`), a module's | |||
| 61 | 61 | ||
| 62 | The process shim (`runtime/shims/process.cpp`) serves `ExitProcess` and `GetCommandLineA/W` the same way: through `kernel32`, `kernelbase`, and `api-ms-win-core-processthreads-l1-1-0` and `api-ms-win-core-processenvironment-l1-1-0`, the sets the API-set umbrella libraries (`OneCore_apiset.lib`, `mincore.lib`) bind them to. `vcomp140.dll` imports `ExitProcess` from the first of these. The UCRT's `_get_narrow_winmain_command_line` and `_get_wide_winmain_command_line` are served too, so a `WinMain` executable gets the game's command line as `lpCmdLine`. The table above is `gta6rt --dry-run` on each DLL at the commit that added this paragraph. | 62 | The process shim (`runtime/shims/process.cpp`) serves `ExitProcess` and `GetCommandLineA/W` the same way: through `kernel32`, `kernelbase`, and `api-ms-win-core-processthreads-l1-1-0` and `api-ms-win-core-processenvironment-l1-1-0`, the sets the API-set umbrella libraries (`OneCore_apiset.lib`, `mincore.lib`) bind them to. `vcomp140.dll` imports `ExitProcess` from the first of these. The UCRT's `_get_narrow_winmain_command_line` and `_get_wide_winmain_command_line` are served too, so a `WinMain` executable gets the game's command line as `lpCmdLine`. The table above is `gta6rt --dry-run` on each DLL at the commit that added this paragraph. |
| 63 | 63 | ||
| 64 | The shims added since account for the rest of the difference from the first version of the table. The UCRT's `_configure_narrow_argv`, `_configure_wide_argv`, `__p___argc`, `__p___wargv` and `abort` are served by `runtime/shims/process.cpp`, which is why almost every DLL gained one or two. The file-system calls listed in *Console paths and the write overlay* below (`CreateFile2`, `CopyFile2`, `CreateDirectoryW`, `FindFirstFileExW`, `SetFileAttributesW` and the rest) account for `msvcp140.dll`, `vcomp140.dll`, `Bink2Scarlett.dll`'s `CreateFile2` and part of the two HTTP clients. `winhttp.dll` is a module the shims own (*WinHTTP offline* below), so every `WinHttp*` import binds to it: 15 in `libHttpClient.GDK.dll` (all 16 but `WinHttpCrackUrl`) and 15 in `XCurl.dll` (all but `WinHttpQueryOption`). That is why the two HTTP clients moved the most: 11 to 26 and 9 to 24 shim imports. | ||
| 65 | |||
| 64 | The six unique Xbox-specific imports (eight consumer/import pairs) are exactly the set recorded in | 66 | The six unique Xbox-specific imports (eight consumer/import pairs) are exactly the set recorded in |
| 65 | [`d3d12_vulkan.md` §7](d3d12_vulkan.md#7-prior-art-and-measured-xbox-abi): | 67 | [`d3d12_vulkan.md` §7](d3d12_vulkan.md#7-prior-art-and-measured-xbox-abi): |
| 66 | 68 | ||