Skip to content

KestrelX v0.11.0 — Unmodified DirectX 12 & Microsoft Xbox GDK EXE Execution

Choose a tag to compare

@Batushn Batushn released this 24 Nov 13:51
· 1 commit to main since this release

KestrelX v0.11.0 — Unmodified Full-CRT DirectX 12 & Microsoft Xbox GDK .exe Execution

Highlights

  • Genuine ntdll-Managed Static TLS Slot (kestrel_tls_slot.dll): Provides an authentic 64 KB static TLS slot without mutating TEB->ThreadLocalStoragePointer (gs:[0x58]), preserving host GPU driver TLS stability and propagating guest static TLS automatically across CreateThread worker threads.
  • Guest Process Identity, Exit Isolation & SEH Crash Diagnostics: Executes full-CRT (/MD, wWinMainCRTStartup) guest .exe binaries on a dedicated 4 MB guest thread with kernel32.dll / ucrtbase.dll overlays (GetModuleHandle*, GetModuleFileName*, GetCommandLine*, LoadLibrary*, GetProcAddress, GetFileAttributes*, ExitProcess/exit/_crt_atexit, console drive CreateFile*), SEH exception + register/RIP dump diagnostics, and env-gated KESTREL_TRACE_HLE=1 loader tracing.
  • DXGI / SwapChain Proxy & Ordinal Exports (d3d12.dll / dxgi.dll): KxDxgiFactoryProxy (IDXGIFactory6) + KxSwapChainProxy (IDXGISwapChain4) count Present() frames, capture GPU backbuffers to BMP (--capture), cleanly close guest windows at --max-frames <N>, and resolve standard Windows D3D12/DXGI ordinal imports (#101/#110/#115, #10/#11/#12).
  • Official Microsoft GDK xgameruntime.lib Dynamic Thunk ABI (src/hle/xgameruntime.cpp): Exports InitializeApiImpl, InitializeApiImplEx, InitializeApiImplEx2, UninitializeApiImpl, QueryApiImpl, XErrorReport, XErrorSetCallback, XErrorSetOptions, XGameRuntimeInitializeWithOptions, and XGameRuntimeIsFeatureAvailable, plus virtual HLE DLL GetFileAttributesW probing — allowing unmodified GDK titles to initialize and render cleanly without Microsoft Gaming Services or host xgameruntime.dll.

Verified Unmodified Third-Party MIT .exe Executions (Compiled Locally Outside Repo)

  1. microsoft/DirectX-Graphics-Samples (D3D12HelloTriangle.exe, MIT): pe-probe 85/85 resolved (100.0%), kestrel run --max-frames 5 --capture -> exit 0, draws=5, present=5, 1280×720 RGB backbuffer captured.
  2. microsoft/Xbox-GDK-Samples (SimpleTriangleDesktop.exe, MIT, public Microsoft GDK v2610.0.9661 xgameruntime.lib + DirectXTK12): pe-probe 180/180 resolved (100.0%), loaded KestrelX clean-room xgameruntime.dll thunk (InitializeApiImplEx2, XErrorReport, UninitializeApiImpl) with zero host xgameruntime.dll, kestrel run --max-frames 5 --capture -> exit 0, draws=5, present=5, 1280×720 RGB backbuffer captured.

Verification

  • Release Build (MSVC /W4 /permissive-): 0 warnings
  • Full Dual-GPU Suite (kestrel_tests.exe): 73 passed, 0 failed (NVIDIA RTX 4060 + AMD Radeon 780M)
  • Unit Suite (kestrel_tests.exe --unit-only): 56 passed, 0 failed, 17 skipped
  • GitHub Actions CI: https://github.com/Batushn/KestrelX/actions/runs/45407313807