// Hooks.h -- Inline hooking (5-byte JMP detour with trampoline)
#ifndef HOOKS_H
#define HOOKS_H

#include "pch.h"

struct Hook {
    void* original;
    BYTE  savedBytes[16];
    void* trampoline;
    int   copySize;
};

void InstallHook(Hook* hook, void* target, void* replacement, int copySize = 5);

#endif // HOOKS_H