Solvedhmm chams vtable

Posts 1–4 of 4 · Page 1 of 1
hmm chams vtable
ok im useing vtable chams works great intill now it crashes when i scope in or open my menu ingame heres my hook anyone got any ideas why


void HookThis(void)
{
DWORD hD3D9Module, dwDevicePointer, * vTable;
hD3D9Module = 0;

do
{
hD3D9Module = (DWORD)GetModuleHandleA("d3d9.dll");
}
while(!hD3D9Module);
dwDevicePointer = FindPattern(hD3D9Module, 0x128000, (PBYTE)"\xC7\x06\x00\x00\x00\x00\x89\x86\x00\x00\x 00\x00\x89\x86", "xx????xx????xx");// Sig scan for DevicePointer

if(dwDevicePointer)
{
memcpy(&vTable, (void *)(dwDevicePointer + 2), 4 );

oReset = ( tReset )DetourCreate(( PBYTE ) vTable[18],( PBYTE) &Reset, 5);
oPresent = ( tPresent )DetourCreate(( PBYTE ) vTable[17], ( PBYTE ) &Present, 5);
oDrawIndexedPrimitive = (tDrawIndexedPrimitive)DetourCreate((BYTE *)vTable[82], (BYTE *)&hkDrawIndexedPrimitive, 5);
DWORD WINAPI StartRoutine( LPVOID ) ;
}
}
oReset = ( tReset )DetourCreate(( PBYTE ) vTable[18],( PBYTE) &Reset, 5);
oPresent = ( tPresent )DetourCreate(( PBYTE ) vTable[17], ( PBYTE ) &Present, 5);
Reset is VTable 16 not 18.

Posts 1–4 of 4 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us