79096903

Date: 2024-10-17 07:07:06
Score: 1
Natty:
Report link

It's an old question, but may be someone will search for a solution.

You can call UnhookWindowsHookEx at the very beginning of the function with a breakpoint and then call SetWindowsHookEx at the very end of the function. If there is a return from the function somewhere in the middle, you should also call SetWindowsHookEx prior to return. If there is an exception handler inside the function, you also need to call SetWindowsHookEx in it.

For me this method works fine and there are no any freezing problems during debugging of the function.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: teslasystems