WriteProcessMemory(Blah blah, (void*) 00001834C, blah blah, blah, NULL);
well i was hacking a flash game on the internet, here is my code:
Code:
#include <windows.h>
#include <iostream>
int main()
{
DWORD newdata = 0x1181C719;
DWORD newdatasize = sizeof(newdata);
DWORD pid = 6864;
HWND WindowHandle = FindWindow(NULL, TEXT("Catapult Madness | Armor Games"));
while(!WindowHandle) //If the handle is null...
{
Sleep(50); //Wait 50 miliseconds..
WindowHandle = FindWindow(NULL,TEXT("Catapult Madness | Armor Games"));//and try again
}
GetWindowThreadProcessId(WindowHandle, & pid);
HANDLE ProcessHandle = OpenProcess(PROCESS_ALL_ACCESS, 0, pid);
WriteProcessMemory(ProcessHandle, (void*) 00001871C ,&newdata, newdatasize, (NULL));
}