aboutsummaryrefslogtreecommitdiff
path: root/subhook.h
diff options
context:
space:
mode:
authorZeex <zeex@rocketmail.com>2020-05-30 20:17:19 +0600
committerZeex <zeex@rocketmail.com>2020-05-30 20:17:19 +0600
commitb6706e2030a5ff4ea9b4e8a2ca2ba393f40b55fa (patch)
tree0b6e3ffd006ee9e882ee12c1ac7679072917a460 /subhook.h
parent5a7c048f30984d71269bb2254e3ed324a60ad2bf (diff)
downloadsubhook-b6706e2030a5ff4ea9b4e8a2ca2ba393f40b55fa.zip
subhook-b6706e2030a5ff4ea9b4e8a2ca2ba393f40b55fa.tar.gz
subhook-b6706e2030a5ff4ea9b4e8a2ca2ba393f40b55fa.tar.bz2
Export subhook_disasm()
Diffstat (limited to 'subhook.h')
-rw-r--r--subhook.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/subhook.h b/subhook.h
index 03d9b5f..61e363f 100644
--- a/subhook.h
+++ b/subhook.h
@@ -125,6 +125,12 @@ SUBHOOK_EXPORT int SUBHOOK_API subhook_remove(subhook_t hook);
SUBHOOK_EXPORT void *SUBHOOK_API subhook_read_dst(void *src);
/*
+ * Returns the length of the first instruction in src. You can replace it with
+ * a custom function via subhook_set_disasm_handler.
+ */
+SUBHOOK_EXPORT int SUBHOOK_API subhook_disasm(void *src, int *reloc_op_offset);
+
+/*
* Sets a custom disassmbler function to use in place of the default one
* (subhook_disasm).
*