DIP
Looking for an undetected DIP hook, mine just crashes WarRock after a minute..
#define DIPEngine 0x007D7D03
DWORD retDIPEngine = ( DIPEngine + 12 );
while(true)
{
if(memcmp((void*)DIPEngine, (void*)(PBYTE)"\x8B\x10", 2) == 0)
{
MessageBox(NULL, "memcmp", NULL, NULL);
Sleep(100);
DetourCreate((PBYTE)DIPEngine, (PBYTE)drawIndexedPrimitive, 12);
}
Sleep(50);
}
HRESULT WINAPI drawIndexedPrimitive(LPDIRECT3DDEVICE9 device, D3DPRIMITIVETYPE type, INT baseVertexIndex, UINT minVertexIndex, UINT numVertices, UINT startIndex, UINT primCount)
{
return pDrawIndexedPrimitive(device, type, baseVertexIndex, minVertexIndex, numVertices, startIndex, primCount);
}
