A simple single-file header for hijacking a DLL in a desired executable, allowing third-party modifications without DLL injection.
#include "xxx.hpp"
int __stdcall DllMain(HMODULE m_hModule, DWORD m_dReason, void* m_pReserved)
{
if (m_dReason == DLL_PROCESS_ATTACH)
{
sneakyevil_DllHijack::Initialize();
// Your code...
}
return 1;
}