#include <Windows.h>
inline void ChangeByte(DWORD _Adress, byte _NewByte) {
DWORD old_protect;
VirtualProtect((void*)_Adress, 1, PAGE_EXECUTE_READWRITE, &old_protect);
*(byte*)_Adress = _NewByte;
}
DWORD WINAPI MainTheard(LPVOID lpReserved)
{
ChangeByte(0x006EDDC9, 0x86);
return 0;
}
BOOL APIENTRY DllMain(HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)
{
switch (ul_reason_for_call) {
case DLL_PROCESS_ATTACH:
CreateThread(0, 0, MainTheard, 0, 0, 0);
break;
}
return 1;
}