OK i am trying to understand the mhook library but there aren't much of examples for it.
It is said thatwe need to define _NtOpenProcess so it can dynamicallyt bind to a function. then somehow get the current address to the function to be hooked
somehow the below code is doing it and i can't fully understand it.
i would be very pleased if someone could explain it for a dumb person like me.
i know it would be easier to use the hooks provided by Microsoft but a task requires to use the mhook lib.