. Advertisement .
..3..
. Advertisement .
..4..
Hi developer experts, I have a small but frustrating use case, and so far, I couldn’t get my head around this problem & ideal solution. I am running my command, and I am facing one problem with the process finished with exit code -1073741819 (0xc0000005) Below is the command I used:
lh_install_hook(func_address, interface(hook_function), None, byref(hook_info))
python38.dll+24174
_ctypes.pyd+A48D
python38.dll+33E00
python38.dll+3DA6E
_ctypes.pyd+3C69
_ctypes.pyd+38AB
python38.dll+507F5
python38.dll+491C8
When I run it, I get the following error:
throw exit code 0xC0000005
I am looking forward to gaining some knowledge from all experts. Thank you, guys!
The cause: TRACED_HOOK_HANDLE is actually a pointer (although its name suggests the opposite), therefore your lh_install_hook.argtypes (1st snippet) is incorrect.
Solution: Here is suggestion: