DrNseven/SetWindowsHookEx-Injector — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a small Windows C or C++ Visual Studio project that demonstrates using SetWindowsHookEx to load a DLL into a running app window for local testing. I want an exe called hookloader that finds a target window by its title, loads a chosen DLL name, gets the exported NextHook function, installs the hook, keeps running while the hook is active, then cleans up properly when I close it.

Also include a simple test DLL that exports NextHook and calls CallNextHookEx, plus a basic D3D11 hook example like an overlay test. Keep the code easy to edit, with the target window title and DLL name clearly visible in main.cpp. Add comments so I can understand what to change for my own test window and DLL.

Please make it buildable in Visual Studio with a solution file, and include a short README that explains how to compile it and run it on my own machine.

Want more depth? Deep Reverse