Awesome
IbDllHijackLib
A C library for Windows DLL hijacking.
Usage
// Export functions of version.dll (by export forwarding)
#include <IbDllHijack/dlls/version.h>
BOOL APIENTRY DllMain( HMODULE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
case DLL_THREAD_ATTACH:
case DLL_THREAD_DETACH:
case DLL_PROCESS_DETACH:
break;
}
return TRUE;
}
You can use the generator to generate header files for any DLL.
Build the test
vcpkg install boost-test
mkdir build
cd build
cmake .. -DCMAKE_TOOLCHAIN_FILE="C:\...\vcpkg\scripts\buildsystems\vcpkg.cmake"