My First Menu Hack is Having Problems
Hi guys, I'm almost done with my first menu hack and when I inject it, it causes combat arms to shut down before it even reaches the login screen. Can someone suggest what a problem could be? Maybe detours or hook? I'm pretty sure that my hook is working, but I'm not so sure about my detours.
The Hook that I'm using as of right now is:
Code:
DWORD cBase::GetPointer(int inicio)
{
DWORD* Device = ***(DWORD****)0x0090AF20; // Device Game Address; Changes after all updates, but just change this: 0090AF20
if( Device == NULL )
return 0;
return Device[inicio];
}
bool cBase::IsGameReadyForHook()
{
if( GetModuleHandle( "d3d9.dll" ) != NULL
&& GetModuleHandle( "ClientFX.fxd" ) != NULL
&& GetModuleHandle( "CShell.dll" ) != NULL )
return true;
return false;
}
DWORD WINAPI dwMainThread(LPVOID)
{
while ( !Base.IsGameReadyForHook() )
Sleep(iWaitTime);
Directx.Hook();
return 0;
}
If anyone can TeamViewer me right now, then that would be really helpful as well.