Kann jemand den Rehook fixxen? ich bekomms einfach nich hin...
Kommt mir jez nich mit dem Sourcecode-Thread, da antwortet eh keiner..
Code:
DWORD WINAPI Gh0stslife(LPVOID)
{
DWORD RETURNX;
HMODULE hD3D9Dll;
do
{
hD3D9Dll = GetModuleHandle("d3d9.dll");
Sleep(20);
}
while(!hD3D9Dll);
Sleep(100);
DWORD dwPresent = GetAddressPtr(17);
DWORD dwReset = GetAddressPtr(16);
DWORD dwDrawIndexedPrimitive = GetAddressPtr(82);
while( 1 )
{
Sleep(3000);
if(memcmp((void *)dwPresent, (void *)"\x8B\xFF", 2) == 0)
pPresent = (oPresent)DetourCreateE9((DWORD)dwPresent, (DWORD)myPresent, SIZEOF_MOVEAX_JMPEAX);
if(memcmp((void *)dwReset, (void *)"\x8B\xFF", 2) == 0)
pReset = (oReset)DetourCreateE9((DWORD)dwReset, (DWORD)myReset, SIZEOF_JMP_REL);
if(memcmp((void *)dwDrawIndexedPrimitive, (void *)"\x8B\xFF", 2) == 0)
pDrawIndexedPrimitive = (oDrawIndexedPrimitive)DetourCreateb8((DWORD)dwDrawIndexedPrimitive, (DWORD)myDrawIndexedPrimitive, SIZEOF_MOVEAX_JMPEAX);
return RETURNX;
}}