Commit Graph

47 Commits

Author SHA1 Message Date
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
Zeex
51598ff1fa Remove unused includes 2014-11-27 01:33:36 +06:00
Zeex
1375e4c911 Add support for trampolines 2014-11-27 01:27:30 +06:00
Zeex
4600350ebf Update copyright year 2014-10-15 14:25:56 +07:00
Zeex
51152a795f Add SetSrc and SetDst methods 2014-10-13 22:34:26 +07:00
Zeex
d4cd4aa8f4 Call subhook_unprotect() only on first install 2014-07-29 17:42:34 +07:00
Zeex
df95b921b9 Fix MSVC warning in IsInstalled()
subhook.h(156): warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
2013-12-23 14:31:28 +07:00
Zeex
2320184aeb Revert "Move sources and headers to src and include"
This reverts commit 48e7a711ae.
2013-12-15 02:00:51 +07:00
Zeex
48e7a711ae Move sources and headers to src and include 2013-12-14 20:38:09 +07:00
Zeex
fc6f1b7fc1 Remove the SUBHOOK_INSTALL_HOOK macro 2013-12-14 13:27:44 +07:00
Zeex
60c90f7aa6 Fix compile errors after silly find & replace 2013-12-14 13:13:43 +07:00
Zeex
3005298313 Get rid of installed_ in SubHook 2013-12-14 13:11:32 +07:00
Zeex
88d878cc68 Fix coding style 2013-12-06 13:52:08 +07:00
Zeex
bab4da2a39 Add subhook_t typedef 2013-12-05 02:11:39 +07:00
Zeex
57712a3718 Fix grammar 2013-12-05 01:50:18 +07:00
Zeex
0ee3ab3c07 Remove subhook_unprotect() from public API 2013-12-05 01:49:33 +07:00
Zeex
5ae9d7c0f3 Make subhook_is_installed() part of the exported API 2013-05-18 02:04:30 +07:00
Zeex
03e6b766e5 Experimental support for x86-64 2013-01-19 00:25:39 +07:00
Zeex
a766bd4828 Add SubHook::GetSrc() and SubHook::GetDst() 2013-01-17 06:07:06 +07:00
Zeex
b6ef2992f8 Add SubHook::ReadDst(void *src) 2013-01-17 06:04:23 +07:00
Zeex
3d0c4f9c84 Update year 2013-01-16 02:41:49 +07:00
Zeex
94319e51b5 Disable copying and assignment of ScopedInstall/ScopedRemove 2013-01-15 05:21:14 +07:00
Zeex
fed3d67e29 Rename some functions 2013-01-15 04:02:06 +07:00
Zeex
f1000e9158 First commit 2013-01-13 22:15:49 +07:00