Here is the Code:
I have sawed this code in YouTube.
#include <iostream>
#include <windows.h>
//FindWindow();
//GetWindowThreadProcessId();
//OpenProcess();
//WriteProcessMemory();
//CloseHandle();
using namespace std;
int main
{
int newValue = 50;
HWND hWnd = (0, "t6mp.exe")
if(hWnd == 0)
{
cerr << "Couldn't finde BO2" << endl;
}else[
DWORD pId;
GetWindowThreadProcessId(hWnd, &pId);
HANDLE hProc = OpenProcess(PROCESS_ALL_ACCESS, FALSE, pId);
if(!hProc)
{
cerr << "Couldn't open BO2" << endl;
}else
{
WriteProcessMemory(hProc, (LPVOID)0x1F00ED4, (DWORD)sizeof(newValue), NULL);
if(isSuccessful > 0)
{
clog << "Memory is overwritten" << endl;
}else
{
cerr << "can not overwrite Memory" << endl;
}
}
]
}
Please can you say me if that is right if not pls can you tell me
Cuze i had some trouble with DevC++ Compiler and it sayed that it ,The programm(DevC++), couldn't be compiled cuze some errors and i didn't see
Errors!.