unsigned long ulBrAddr = 0;
hookInfo_t hI;
...
...
void __declspec(naked) hkGetProfileIntA(void)
{
__asm
{
xor eax, eax
mov dword ptr ss:[esp+0x20], eax
jmp [ulBrAddr]
}
}
void _pbssBlock()
{
DWORD dwGetProfileIntA = (DWORD)GetProcAddress(GetModuleHandleA("kernel32.dll"), "GetProfileIntA");
ulBrAddr = Ring3Hook_Detour_0xE9((void *)dwGetProfileIntA, &hkGetProfileIntA, &hI);
}