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.
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); \
}
Source: https://stackoverflow.com/a/36359457