A simple and stable proxy DLL for Windows x64.
Assembly inlining is not supported in MSVC on x64, therefore this project uses GCC through MinGW.
- mingw-w64 7.0.0+
- CMake 3.16+
If you get an error like: undefined reference to 'orig_somefunc'
, you may need to prefix your assembly symbols with an underscore:
#define WRAPPER_GENFUNC(name) \
FARPROC orig_##name; \
__declspec(naked) void _##name() \
{ \
- asm("jmp *orig_"#name); \
+ asm("jmp *_orig_"#name); \
}