Help me..Xddddddddd...I noob.
Hola, necesito una solucion que funcione en crossfire eu para windows xp , mis hacks no funcionan , mis dlls al ser injectadas producen el efecto de que el juego crossfire se cierre, la verdad.....no se que metodos utilizais para que funcionen las dlls creadas en visual studio 2010. Que estoy haciendo mal ?
#include <Windows.h>
#include <fstream>
#include <iostream>
#define NoReload 0xBf4
#define WeaponMgr 0xabf8f0
#define NoRecoil1 0x51C
#define Norecoil2 0x684
#define Norecoil3 0x2054
#define Norecoil4 0x2230
#define Norecoil5 0xeb4
#define Norecoil6 0x101c
#define Norecoil7 0x1184
void UndetectedBase(void)
{
int szf = sizeof(float);
int szd = sizeof(DWORD);
bool norecoil = true;
bool noreload = false;
DWORD WeaponClass = NULL;
DWORD pWeaponMgr = NULL;
while(true)
{
DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
while(true)
{
DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
DWORD pWeaponMgr = *(DWORD*)(CShell + WeaponMgr);
if(GetAsyncKeyState(VK_F11)&1) {
noreload = !noreload;
}
{
if(norecoil)
{
for(int y = 0; y<10; y++)
{
*(float*)( NoRecoil1 + (0x51C + (szf*y))) = (float)0;
*(float*)( Norecoil2 + (0x684 + (szf*y))) = (float)0;
*(float*)( Norecoil3 + (0x2054 + (szf*y))) = (float)0;
*(float*)( Norecoil4 + (0x2230 + (szf*y))) = (float)0;
*(float*)( Norecoil5 + (0xeb4 + (szf*y))) = (float)0;
*(float*)( Norecoil6 + (0x101c + (szf*y))) = (float)0;
*(float*)( Norecoil7 + (0x1184 + (szf*y))) = (float)0;
}
}
}
for(int i=0; i<598; i++)
{
pWeaponMgr = (*(DWORD*)(WeaponClass + (szd*i)));
if(pWeaponMgr != NULL)
{
if(pWeaponMgr){
if(noreload)
{
*(float*)(pWeaponMgr + 0xBf4) = (float)72;
}
}
}
}
}
}
}
DWORD WINAPI Base(LPVOID)
{
UndetectedBase();
return 1;
}
BOOL WINAPI DllMain(HMODULE hDll, DWORD dwReason, LPVOID lpReserved)
{
if (dwReason == DLL_PROCESS_ATTACH)
{
}
if (GetModuleHandleA("CShell.dll") && GetModuleHandleA("ClientFx.Fxd") )
{
DisableThreadLibraryCalls(hDll);
SetTimer(0,0,100,(TIMERPROC)Base);
}
return TRUE;
}