Not realy, its still not working...
Here is a paste of my Hook. I can finally write some code myself. But a hook goes a little too far. I hope people here find it :P
I use BuRn3R his base.
Here is a paste of my Hook. I can finally write some code myself. But a hook goes a little too far. I hope people here find it :P
Code:
HRESULT __stdcall DirectXHooK()
{
DWORD dwD3D9;
do
{
dwD3D9 = (DWORD)GetModuleHandleA("D3D9.DLL");
Sleep(1000);
}
while (!dwD3D9);
pReset = (oReset)E9Detour((DWORD)VTable->ID(16),(DWORD)Reset,5);
pPresent = (oPresent)E9Detour((DWORD)VTable->ID(17),(DWORD)Present,5);
return true;
}
void HackLooP()
{
for (;;)
{
PlayerHacks();
ServerHacks();
Sleep(5);
}
}
BOOL __stdcall DllMain(HMODULE hDll, DWORD dwReason, LPVOID lpReserved)
{
DisableThreadLibraryCalls(hDll);
if (dwReason == DLL_PROCESS_ATTACH)
{
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)HackLooP, NULL, NULL, NULL);
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)DirectXHooK, NULL, NULL, NULL);
}
return TRUE;

#16 ·




![=]](/forum/images/emotions/=].gif)