#include <windows.h>
#include <iostream>
using namespace std;
HWND hWnd;
HANDLE phandle;
DWORD crack;
int main()
{
////////////////////////////////////////////////////////.
hWnd = FindWindow(NULL,"World of Warcraft");
if(hWnd !=0)
{
GetWindowThreadProcessId(hWnd, &crack);
phandle = OpenProcess(PROCESS_ALL_ACCESS, 0, crack);
cout <<"WoW is running!";
}
else
{
cout <<"WoW is not running!";
}
////////////////////////////////////////////////////////
LONG address = 0x5687C4; // X pos address
int score = 1741; // Teleport to 741
WriteProcessMemory(phandle, (LPVOID)address, (LPVOID) &score, 4, 0);
cout << address;
////////////////////////////////////////////////////////
cin.get();
cin.get();
return 0;
}