#include "stdfx.h"
#incude "addy.h"
void HandleCheats(cheatCalls);
void HandleCheats(cheatCalls typeCall)
{
//use static bool to deinfe your cheats here
//hackcode here
}
bool isgameoktoohook()
{
if(GetModuleHandleA("CShell.dll") != NULL
&& GetModuleHandleA("ClientFx.fxd") != NULL)
return 1;
return 0;
}
DWORD WINAPI MyThread(LPVOID)
{
while(!Ready2Hook()) Sleep(200);
CreateThread(NULL, NULL, (cheatCalls typeCall)HandleCheats, NULL, NULL, NULL);
return 0;
}
BOOL WINAPI DllMain(HMODULE hModule, DWORD dwReason, LPVOID lpvReserved)
{
if(dwReason == DLL_PROCESS_ATTACH){
CreateThread(0,0,MyThread,0,0,0);
}
return TRUE;
}