djhackersdev / bemanitools

Runs recent Konami arcade games and emulates various arcade hardware.
The Unlicense
87 stars 17 forks source link

Utilize process_hijack_startup to replace hacky hooking of iidxhook1-3 #61

Open icex2 opened 4 years ago

icex2 commented 4 years ago

With !47, the hook/process module adds process_hijack_startup which allows hooking code right before main is called. Replace the current solution in iidxhook1-3 which uses OpenProcess as the earliest entry point available back then.

Also check if there are other hook libs that use inject and need code hooked right before main (which should always be the case).

icex2 commented 2 years ago

In GitLab by @33c17f40 on May 24, 2022, 03:43

process_hijack_startup doesn't seem to work on WinXP in my limited testing. Did not hit the entry point at all with ddrhook1 on WinXP. https://dev.s-ul.net/djhackers/bemanitools/-/merge_requests/113