diff options
author | Zeex <zeex@rocketmail.com> | 2014-11-27 00:07:51 +0600 |
---|---|---|
committer | Zeex <zeex@rocketmail.com> | 2014-11-27 01:27:30 +0600 |
commit | 1375e4c9119255de10a87d66e45dd7760d0d76ad (patch) | |
tree | 058124afed4d82feaefa11801b15fefbb135f669 /subhook_private.h | |
parent | 4600350ebfb3c7f28b70b314d2d1fbe743a584b4 (diff) | |
download | subhook-1375e4c9119255de10a87d66e45dd7760d0d76ad.zip subhook-1375e4c9119255de10a87d66e45dd7760d0d76ad.tar.gz subhook-1375e4c9119255de10a87d66e45dd7760d0d76ad.tar.bz2 |
Add support for trampolines
Diffstat (limited to 'subhook_private.h')
-rw-r--r-- | subhook_private.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/subhook_private.h b/subhook_private.h index 6bcaf6c..f3aad37 100644 --- a/subhook_private.h +++ b/subhook_private.h @@ -27,12 +27,13 @@ #define SUBHOOK_PRIVATE_H struct subhook { - int unlocked : 1; - int installed : 1; + int installed; void *src; void *dst; + void *code; + void *trampoline; }; -void *subhook_unlock(void *address, size_t size); +void *subhook_unprotect(void *address, size_t size); #endif /* SUBHOOK_PRIVATE_H */ |