WriteProcessMemory doesn't work
Hey guys, Ive got a problem, I want to have noRecoil and noFlash so I opened the process like this
then wrote the new hexcode like this
but in game nothing happens.
What do I have to do?
Greetings
NEokil
Code:
mw2_hwnd = FindWindow(NULL,L"AlterIWNet"); GetWindowThreadProcessId(mw2_hwnd,&mw2_pid); mw2_process_w = OpenProcess(PROCESS_VM_WRITE,false,mw2_pid);
Code:
#define ADDR_FLASH 0x00457310
BYTE NoFlash[6] = {0xB8, 0x00, 0x00, 0x00, 0x00, 0xC3};
WriteProcessMemory(mw2_process_w,(PVOID)(ADDR_FLASH),&NoFlash,6,NULL);
What do I have to do?
Greetings
NEokil
