//hooking thread main function void TF() { GetDevice9Methods(); //get the VMT and the offsets HookDevice9Methods(); //actually, hook the needed functions }
DWORD __stdcall TF(void* lpParam) { GetDevice9Methods(); HookDevice9Methods(); return 0; }