SetWindowsHookEx Injector with d3d11 hook example
- hookloader.exe = injector
- test.dll = dll
-
Just add this to your dll: extern "C" __declspec(dllexport) int NextHook(int code, WPARAM wParam, LPARAM lParam) { return CallNextHookEx(NULL, code, wParam, lParam); }
-
Edit your game window in hookloader/main.cpp: HWND hwnd = FindWindow(NULL, L"UnrealTournament "); //<-- game window example
-
Edit your dll name in hookloader/main.cpp: HMODULE dll = LoadLibraryEx(L"test.dll", NULL, DONT_RESOLVE_DLL_REFERENCES); //<-- DLL name
-
Compile & done