You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried what was in the unit test (because I can't run that one in VS2022):
void Hook( fn_hooks::Registers regs )
{
OutputDebugStringA( "Hook" );
}
void HookedFunction( )
{
OutputDebugStringA( "GlobalFunction" );
}
int main()
{
// To hook
const size_t byte_count = 0x1A; // How many bytes to copy to end of the hook from start of the function
const uint64_t fn_ptr = fn_hooks::ReadJump( reinterpret_cast<uint64_t>( HookedFunction ) );
fn_hooks::InlineHook( fn_ptr, Hook, byte_count );
HookedFunction( );
}
and it crashes after it exits Hook()
The text was updated successfully, but these errors were encountered:
I tried what was in the unit test (because I can't run that one in VS2022):
and it crashes after it exits Hook()
The text was updated successfully, but these errors were encountered: