mirror of
https://github.com/Dasharo/subhook.git
synced 2026-03-06 15:04:20 -08:00
Export subhook_disasm()
This commit is contained in:
@@ -124,6 +124,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).
|
||||
|
||||
@@ -88,7 +88,7 @@ struct subhook_jmp64 {
|
||||
|
||||
extern subhook_disasm_handler_t subhook_disasm_handler;
|
||||
|
||||
static int subhook_disasm(void *src, int *reloc_op_offset) {
|
||||
SUBHOOK_EXPORT int SUBHOOK_API subhook_disasm(void *src, int *reloc_op_offset) {
|
||||
enum flags {
|
||||
MODRM = 1,
|
||||
PLUS_R = 1 << 1,
|
||||
|
||||
Reference in New Issue
Block a user