make D3d9 Hook?
Why this hook detect by xtrap?
DWORD WINAPI Hook(LPVOID lpArgs)
{
DWORD dwD3D9 = 0;
while(!dwD3D9) {
Sleep(100);
dwD3D9 = (DWORD)GetModuleHandle("d3d9.dll");
}
DWORD dwVTable[2] = { 0 };
CreateDevice(dwVTable);
oReset = (tReset) DetourCreate((PBYTE) dwVTable[0], (PBYTE) &hkReset, 5);
oPresent = (tPresent)DetourCreate((PBYTE) dwVTable[1], (PBYTE) &hkPresent, 5);
return FALSE;
}
someone help me ?
How to fix it undetect hook
VTable Hook was patched a long time you only can do it if you use VTable with DIP and not net normal 82 = DrawIndexPrimitiv
You need a other number 1... the number is not in a normal list here und MPGH