#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;
}
BOOL APIENTRY DllMain(HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)
{
switch (ul_reason_for_call) {
case DLL_PROCESS_ATTACH:
ChangeByte(0x006EDDC9, 0x86);
break;
}
return 1;
}