arm64 detour throw 0xC000001D: Illegal Instruction. when call the real fn #276
-
the detour works fine with x64 builds. setup with when calling the RealFn unhandled exception 0xC000001D: Illegal Instruction. Any idea what's up with that? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
I am hooking CreateWindowExW, and encounter the same problem |
Beta Was this translation helpful? Give feedback.
-
I don't know if this will be the issue, but make sure your replacement function uses the correct calling convention. ARM64 has two conventions, based on this OldNewThing post: https://devblogs.microsoft.com/oldnewthing/20220823-00/?p=107041 Quick! Click the link before Microsoft break every URL pointing to every developer blogs again, like they do every few months! :-) x64 only has one calling convention for everything, which I have seen mask mismatches until you try an x86 build (or an ARM64, I suspect). |
Beta Was this translation helpful? Give feedback.
-
I have the same problem. |
Beta Was this translation helpful? Give feedback.
I don't know if this will be the issue, but make sure your replacement function uses the correct calling convention. ARM64 has two conventions, based on this OldNewThing post:
https://devblogs.microsoft.com/oldnewthing/20220823-00/?p=107041
Quick! Click the link before Microsoft break every URL pointing to every developer blogs again, like they do every few months! :-)
x64 only has one calling convention for everything, which I have seen mask mismatches until you try an x86 build (or an ARM64, I suspect).