C++ DLL template for DirectX 11 overlays using ImGui, MinHook, and mINI.
Hooks the swap chain (Present + ResizeBuffers), waits for d3d11.dll / dxgi.dll before installing hooks, and rebinds the device after resolution changes or graphics reloads.
| Key | Action |
|---|---|
INSERT |
Toggle menu |
END |
Unload DLL |
Menu tabs: Player, Visuals, Misc (theme, accent color, save/load config).
Visual Studio
- Open
ImGui DirectX11 Base.sln. - Select Release x64.
- Build — output is
Build/Corrupted.dll.
VS Code / Cursor
- Default build task: Release x64 (
.vscode/tasks.json).
Requirements
- Configuration type: Dynamic Library (
.dll) - Windows SDK 10
- Platform toolset: v143
- C++20, Multi-Byte character set
- Link:
d3d11.lib,dxgi.lib,d3dcompiler.lib
ImGui DirectX11 Base/
src/
dllmain.cpp
gui/
bootstrapper.cpp — D3D11 hooks, overlay lifetime
gui.cpp — menu shell
pages/ — player, visuals, misc
game/ — game hooks, offsets, structs (stubs)
project/ — config (INI), helpers, your features
ext/ — imgui, minhook, mINI (read-only)
Build/ — Corrupted.dll
Put your logic in src/project/ and game-facing code in src/game/. Config saves to Corrupted.ini next to the host executable.
Inject Build/Corrupted.dll into a DirectX 11 process.
