Awesome
Universal-D3D11-Hook
Universal hook for DX11 based games written in C++
What you need?
How to use?
Download latest release and add source files to your project.
After initialize the hook through ImplHookDX11_Init()
function (see example).
Example
#include <windows.h>
#include <d3d11.h>
#include "d3d11hook.h"
D3D11_HOOK_API void ImplHookDX11_Present(ID3D11Device *device, ID3D11DeviceContext *ctx, IDXGISwapChain *swap_chain)
{
// here your magic
}
BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID)
{
switch (dwReason)
{
case DLL_PROCESS_ATTACH:
ImplHookDX11_Init(FindWindow(0, L"WINDOWNAME"));
break;
case DLL_PROCESS_DETACH:
ImplHookDX11_Shutdown();
break;
}
return TRUE;
}
Changelog
GO TO RELEASES FOR SEE LATEST CHANGELOGS