Library:DXGI
| Vendor | Microsoft |
|---|---|
| Platforms | Windows |
| On this wiki | Facts · Code · Notes · Topics |
Microsoft's DirectX Graphics Infrastructure: factories, adapters and swap chains shared by Direct3D 10/11/12. IDXGISwapChain::Present (vtable slot 8) is the usual hook point for overlays and frame capture.
Identification
- Imports of
dxgi.dll:CreateDXGIFactory,CreateDXGIFactory1,CreateDXGIFactory2. Direct3D 11 games often create the swap chain throughD3D11CreateDeviceAndSwapChainind3d11.dllinstead. - All DXGI interfaces derive from IUnknown, then IDXGIObject (slots 3-6: SetPrivateData, SetPrivateDataInterface, GetPrivateData, GetParent).
- Slot numbers are the same on every Windows version; later interfaces (IDXGISwapChain1 to 4, IDXGIFactory1 to 7) extend the previous vtable and keep earlier slots in place.
Key vtable slots
IDXGISwapChain: Present 8, GetBuffer 9, SetFullscreenState 10, ResizeBuffers 13, ResizeTarget 14. IDXGISwapChain1 adds Present1 at 22. IDXGIFactory: CreateSwapChain 10. See the vtable facts on this page and Library:Direct3D 11, Library:Direct3D 12.
Finding the vtable at runtime
Overlay hooks (Dear ImGui injectors, ReShade-style tools) create a dummy window, device and swap chain, read the vtable pointer from the dummy object and hook the slot, or hook the creation functions. Unverified: how ReShade and RenderDoc do it (not read for this page).
Related
Technique:DLL proxy loading (dxgi.dll is a common proxy name), Library:Dear ImGui.
General background on COM calls, IIDs and the IUnknown slots: Technique:Reading COM and WinRT code.
Code & repositories
- https://github.com/mirror/mingw-w64 @
93f3505a758fe70e56678f00e753af3bc4f640bb· license: BSD-2-Clause (read from COPYING; GitHub's detector did not classify it)
MinGW-w64 headers: COM interface definitions and IIDs for DXGI and Direct3D 9/11/12 (vtable order source).
Tested on: source read, not run: read headers · checked 2026-10-18; last activity 2024-09-25