#include "stdafx.h"
#include <windows.h>
void Start();
int a;
BOOL APIENTRY DllMain(HMODULE hModule, DWORD ulReason, LPVOID lpReserved)
{
if (ulReason == DLL_PROCESS_ATTACH)
{
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)Start, 0, 0, 0);
MessageBoxA(NULL, "Successfully Injected", "Trainer", MB_OK);
}
return TRUE;
}
void Start()
{
while (1)
{
if (GetKeyState(VK_F12) < 0) // Turn On
{
DWORD *WH_Start = (DWORD*)(*(DWORD*)0x0B87170 + 0x40814);
for(a = 0; a<= 0x3ffff; a++)
{
memset( WH_Start , 0x0, 0x40000);
}
}
Sleep(1);
}
}
anyone can correct this?