toprak1224/Toprak-Steam-API-Hook-Showcase ? reverse-engineered prompt

Reverse engineered prompt

Build me a small C++ Windows demo that shows how DLL proxying and runtime API hooking work in a clear, educational way.

I want it split into a proxy module that forwards normal XInput calls to the real system DLL, then loads a second payload module when the process starts. The payload should demonstrate in memory function hooking with a pattern scanner, so it can find a target function at runtime instead of relying on hardcoded offsets. Keep the code focused on the architecture and make it easy to understand, with comments explaining what each part is doing.

If you need to, look up current docs online for the Windows loader, PE exports, and hooking patterns. Also make sure the project builds cleanly with CMake, and include a simple example of how the proxy and payload connect together without modifying files on disk.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab