Zeex
85a2406774
Add flag to support allocation of trampolines within 32-bit offset range of target code on 64-bit Windows
...
Plus minor formatting fixes and more documentation for flags.
Fixes #9
2023-02-10 00:02:01 +06:00
Dudi
ba0872c0b2
Removing subhook_macos.c
2021-11-20 22:12:51 +02:00
Dudi
c5aa6ac920
Add MacOS support
2021-11-11 13:27:23 +02:00
Zeex
8d0b8a8d57
FreeBSD build support
2020-11-01 12:40:41 +06:00
Zeex
0a8ac4c6b0
Revert "Change 0 to nullptr"
...
This reverts commit 873e7cd795 .
2020-05-30 20:24:03 +06:00
Zeex
b6706e2030
Export subhook_disasm()
2020-05-30 20:17:19 +06:00
Zeex
5a7c048f30
Fix typo
2020-05-30 20:07:39 +06:00
Zeex
2fe65f1de9
Make Install(src, dst, flags) remove existing hook
2020-05-30 20:07:29 +06:00
Zeex
873e7cd795
Change 0 to nullptr
...
It's 2020 today... I guess it should not cause any problems
2020-05-30 19:49:24 +06:00
Zeex
7f09b51466
Fix typo in macro name
...
Fixes #37 .
2019-02-07 06:47:30 +06:00
Zeex
12732c1d1d
Cleanup and code style fixse
2018-11-22 05:29:35 +06:00
Zeex
dae419521c
Add subhook_set_disasm_handler()
2018-11-22 04:22:15 +06:00
Zeex
6cc020b2fd
Rename "options" to "flags"
2018-09-06 23:59:35 +06:00
Zeex
12b527d642
Clean up and improve comments
...
* Replace SUBHOOK_BITS equality comparisons with SUBHOOK_X86_64 macro
definition checks (less error-prone)
* Improve comments in subhook_disasm() and remove unused variable
(address_size)
* Update copyright year across all files
2018-09-03 20:10:28 +06:00
Y_Less
e120562ea0
Made all subhook calls NULL safe, not just one destructor.
2017-07-28 01:23:55 +03:00
Zeex
699a6bd357
Merge pull request #23 from gocha/fix-dtor-nullref
...
Fix null reference on the destruction of empty Hook
2017-03-31 22:32:15 +06:00
gocha
46ebdb5e15
Add new ScopedHookInstall constructor which can set/override the new hook destination
2017-03-31 15:42:52 +09:00
gocha
1edbc7246c
Fix null reference on the destruction of empty Hook
2017-03-31 14:34:54 +09:00
Zeex
af522f7245
Add support for Mac OS
2016-08-28 15:10:11 +06:00
Zeex
bfdb2b4ea6
Improve C++ interface
2016-08-13 02:17:42 +06:00
Zeex
cba3854843
Fix compile errors in C++ wrapper
...
Fixes #14 .
2016-08-13 01:59:37 +06:00
Zeex
bda8b5f905
Convert tabs to spaces
2016-07-24 05:18:51 +06:00
Zeex
1b89e7f8ad
Return support for 32-bit jumps on x86-64
...
Add an option to allow the caller to decide whether to use 32-bit or 64-bit
jumps (the latter requires almost 3 times more space (5 vs 14 bytes)).
Also see: #13
2016-07-24 05:04:07 +06:00
Zeex
5cacdf0b59
Make it build on Cygwin
2016-01-02 22:08:37 +06:00
Zeex
762679a333
Update year
2015-02-12 21:15:37 +06:00