#include <iostream>
#include <windows.h>
using namespace std;
int main()
{
DWORD a;
BYTE bytes[1] = { 0x01 };
BYTE fix[1] = { 0x00 };
STARTUPINFO si;
PROCESS_INFORMATION pi;
memset(&si, 0, sizeof(si));
memset(&pi, 0, sizeof(pi));
si.cb = sizeof(si);
CreateProcess(NULL, "WoW.exe", NULL, NULL, FALSE, CREATE_DEFAULT_ERROR_MODE, NULL, NULL, &si, &pi);
WriteProcessMemory( pi.hProcess, (PVOID)0xCE6CAC, &bytes, 1, &a);
while (true)
{
if (GetAsyncKeyState(VK_END)&1)
{
WriteProcessMemory( pi.hProcess, (PVOID)0xCE6CAC, &fix, 1, &a);
break;
}
Sleep(1);
}
CloseHandle ( pi.hProcess );
return 0;
}