Solved Hooking a function to get its return value using EasyHook in C#

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat


Full Member
Sep 26, 2015
Hi there,

I am completly new to hooking, please forgive my stupid questions =)

I want to retrieve the return value of a hooked function everytime the function gets called by the game. All examples about hooking functions with EasyHook had the functions name and parameters of the hooked function. Example (scroll down):

Do I really need to know the function name and parameters even if I just want to get its return value? All I got is the memory address of the function and the IDA pseudo code.

(I just want to retrieve the result)

Maybe this question isn't EasyHook specific but more a general hooking question.



Escobar Tier VIP
Trump Tier Donator
Jun 25, 2014
No clue how this works with easy hook, but if you only want the return value then just place a hook at the end of the function and read eax ( or setup the registers so eax has the return value, as it should, but maybe the bytes were overwritten ).
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Community Mods