HRESULT DrawIndexedPrimitive( [in] D3DPRIMITIVETYPE Type, [in] INT BaseVertexIndex, [in] UINT MinIndex, [in] UINT NumVertices, [in] UINT StartIndex, [in] UINT PrimitiveCount );
HRESULT DrawIndexedPrimitive( [in] LPDIRECT3DDEVICE9 D3DDevice, [in] D3DPRIMITIVETYPE Type, [in] INT BaseVertexIndex, [in] UINT MinIndex, [in] UINT NumVertices, [in] UINT StartIndex, [in] UINT PrimitiveCount );
DWORD** FindDevice(DWORD base, DWORD len)
{
unsigned long i = 0, n = 0;
for( i = 0; i < len-0xD; i++ )
{
if(*(BYTE *)(base+i+0x00)==0xC7)
n++;
if(*(BYTE *)(base+i+0x01)==0x06)
n++;
if(*(BYTE *)(base+i+0x06)==0x89)
n++;
if(*(BYTE *)(base+i+0x07)==0x86)
n++;
if(*(BYTE *)(base+i+0x0C)==0x89)
n++;
if(*(BYTE *)(base+i+0x0D)==0x86)
n++;
if(n == 6)
{
return (DWORD**)(base + i + 2);
}
n = 0;
}
return NULL;
}
Hooked endscene and logged the pointer