will do. brb
EDIT: Back. @why06 I put that in hook and it appears. So its somethin wrong with my endscene probs..
EDIT: Back. @why06 I put that in hook and it appears. So its somethin wrong with my endscene probs..

void Hook()
{
DWORD D3DBase = (DWORD)GetModuleHandleA("d3d9.dll");
while(!D3DBase);
DevPtr = FindPattern(D3DBase, 0x128000, (PBYTE)"\xC7\x06\x00\x00\x00\x00\x89\x86\x00\x00\x00\x00\x89\x86", "xx????xx????xx");
if(DevPtr){
memcpy(&vTable,(void *)(DevPtr+2),4);
oReset = (tReset) DetourFunction((PBYTE)vTable[16],(PBYTE)hkReset );
oEndScene = (tEndScene)DetourFunction((PBYTE)vTable[42],(PBYTE)nEndScene);
oDrawIndexedPrimitive = ( tDrawIndexedPrimitive ) DetourFunction(( PBYTE ) vTable[82], ( PBYTE ) &hkDrawIndexedPrimitive );
oSetStreamSource = ( tSetStreamSource ) DetourFunction(( PBYTE ) vTable[100], ( PBYTE ) &hkSetStreamSource );
}
}

DWORD D3DBase = (DWORD)GetModuleHandleA("d3d9.dll");
while(!D3DBase);
DevPtr = FindPattern(D3DBase, 0x128000, (PBYTE)"\xC7\x06\x00\x00\x00\x00\x89\x86\x00\x00\x00\x00\x89\x86", "xx????xx????xx");