here is my code, it won't write the memory and idk wat's wrong.
Code:
#include <iostream>
#include <Windows.h>
int main()
{
HWND game = FindWindow(NULL, TEXT("Catapult Madness | Armor Games - Windows Internet Explorer"));
DWORD pid;
GetWindowThreadProcessId(game, &pid);
HANDLE hproc = OpenProcess(PROCESS_ALL_ACCESS, 0, pid);
std::cout<<pid<<std::endl;
if(WriteProcessMemory(hproc, (LPVOID) 0x0EBF071C, (LPCVOID) 0, sizeof(4), NULL)){
MessageBox(NULL, TEXT("Memory Copied."), TEXT("Hack"), NULL);
}
if(!WriteProcessMemory(hproc, (LPVOID) 0x0EBF071C, (LPCVOID) 0, sizeof(4), NULL)){
MessageBox(NULL, TEXT("Failure"), TEXT("Hack"), NULL);
}
std::cin.get();
return 0;
}